cudd/cuddZddFuncs.c File Reference

Functions to manipulate covers represented as ZDDs. More...

#include "util.h"
#include "cuddInt.h"
Include dependency graph for cuddZddFuncs.c:

Functions

DdNodeCudd_zddProduct (DdManager *dd, DdNode *f, DdNode *g)
 Computes the product of two covers represented by ZDDs.
DdNodeCudd_zddUnateProduct (DdManager *dd, DdNode *f, DdNode *g)
 Computes the product of two unate covers represented as ZDDs.
DdNodeCudd_zddWeakDiv (DdManager *dd, DdNode *f, DdNode *g)
 Applies weak division to two covers.
DdNodeCudd_zddDivide (DdManager *dd, DdNode *f, DdNode *g)
 Computes the quotient of two unate covers.
DdNodeCudd_zddWeakDivF (DdManager *dd, DdNode *f, DdNode *g)
 Modified version of Cudd_zddWeakDiv.
DdNodeCudd_zddDivideF (DdManager *dd, DdNode *f, DdNode *g)
 Modified version of Cudd_zddDivide.
DdNodeCudd_zddComplement (DdManager *dd, DdNode *node)
 Computes a complement cover for a ZDD node.
DdNodecuddZddProduct (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddProduct.
DdNodecuddZddUnateProduct (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddUnateProduct.
DdNodecuddZddWeakDiv (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddWeakDiv.
DdNodecuddZddWeakDivF (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddWeakDivF.
DdNodecuddZddDivide (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddDivide.
DdNodecuddZddDivideF (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddDivideF.
int cuddZddGetCofactors3 (DdManager *dd, DdNode *f, int v, DdNode **f1, DdNode **f0, DdNode **fd)
 Computes the three-way decomposition of f w.r.t. v.
int cuddZddGetCofactors2 (DdManager *dd, DdNode *f, int v, DdNode **f1, DdNode **f0)
 Computes the two-way decomposition of f w.r.t. v.
DdNodecuddZddComplement (DdManager *dd, DdNode *node)
 Computes a complement of a ZDD node.
int cuddZddGetPosVarIndex (DdManager *dd, int index)
 Returns the index of positive ZDD variable.
int cuddZddGetNegVarIndex (DdManager *dd, int index)
 Returns the index of negative ZDD variable.
int cuddZddGetPosVarLevel (DdManager *dd, int index)
 Returns the level of positive ZDD variable.
int cuddZddGetNegVarLevel (DdManager *dd, int index)
 Returns the level of negative ZDD variable.

Detailed Description

Functions to manipulate covers represented as ZDDs.

Author:
In-Ho Moon

Copyright (c) 1995-2015, Regents of the University of Colorado

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of the University of Colorado nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Function Documentation

DdNode* Cudd_zddComplement ( DdManager dd,
DdNode node 
)

Computes a complement cover for a ZDD node.

For lack of a better method, we first extract the function BDD from the ZDD cover, then make the complement of the ZDD cover from the complement of the BDD node by using ISOP. The result depends on current variable order.

Returns:
a pointer to the resulting cover if successful; NULL otherwise.
Side effects
The result depends on current variable order.
DdNode* Cudd_zddDivide ( DdManager dd,
DdNode f,
DdNode g 
)

Computes the quotient of two unate covers.

Computes the quotient of two unate covers represented by ZDDs. Unate covers use one ZDD variable for each BDD variable.

Returns:
a pointer to the resulting ZDD if successful; NULL otherwise.
Side effects
None
See also:
Cudd_zddWeakDiv
DdNode* Cudd_zddDivideF ( DdManager dd,
DdNode f,
DdNode g 
)

Modified version of Cudd_zddDivide.

This function may disappear in future releases.

Side effects
None
DdNode* Cudd_zddProduct ( DdManager dd,
DdNode f,
DdNode g 
)

Computes the product of two covers represented by ZDDs.

The result is also a ZDD. The covers on which Cudd_zddProduct operates use two ZDD variables for each function variable (one ZDD variable for each literal of the variable). Those two ZDD variables should be adjacent in the order.

Returns:
a pointer to the result if successful; NULL otherwise.
Side effects
None
See also:
Cudd_zddUnateProduct
DdNode* Cudd_zddUnateProduct ( DdManager dd,
DdNode f,
DdNode g 
)

Computes the product of two unate covers represented as ZDDs.

Unate covers use one ZDD variable for each BDD variable.

Returns:
a pointer to the result if successful; NULL otherwise.
Side effects
None
See also:
Cudd_zddProduct
DdNode* Cudd_zddWeakDiv ( DdManager dd,
DdNode f,
DdNode g 
)

Applies weak division to two covers.

Applies weak division to two ZDDs representing two covers. The result of weak division depends on the variable order. The covers on which Cudd_zddWeakDiv operates use two ZDD variables for each function variable (one ZDD variable for each literal of the variable). Those two ZDD variables should be adjacent in the order.

Returns:
a pointer to the ZDD representing the result if successful; NULL otherwise.
Side effects
None
See also:
Cudd_zddDivide
DdNode* Cudd_zddWeakDivF ( DdManager dd,
DdNode f,
DdNode g 
)

Modified version of Cudd_zddWeakDiv.

This function may disappear in future releases.

Side effects
None
See also:
Cudd_zddWeakDiv
DdNode* cuddZddComplement ( DdManager dd,
DdNode node 
)

Computes a complement of a ZDD node.

So far, since we couldn't find a direct way to get the complement of a ZDD cover, we first convert a ZDD cover to a BDD, then make the complement of the ZDD cover from the complement of the BDD node by using ISOP. The result depends on current variable order.

DdNode* cuddZddDivide ( DdManager dd,
DdNode f,
DdNode g 
)

Performs the recursive step of Cudd_zddDivide.

Side effects
None
See also:
Cudd_zddDivide
DdNode* cuddZddDivideF ( DdManager dd,
DdNode f,
DdNode g 
)

Performs the recursive step of Cudd_zddDivideF.

Side effects
None
See also:
Cudd_zddDivideF
int cuddZddGetCofactors2 ( DdManager dd,
DdNode f,
int  v,
DdNode **  f1,
DdNode **  f0 
)

Computes the two-way decomposition of f w.r.t. v.

Side effects
The results are returned in f1 and f0.
See also:
cuddZddGetCofactors3
int cuddZddGetCofactors3 ( DdManager dd,
DdNode f,
int  v,
DdNode **  f1,
DdNode **  f0,
DdNode **  fd 
)

Computes the three-way decomposition of f w.r.t. v.

Computes the three-way decomposition of function f (represented by a ZDD) with respect to variable v.

Returns:
0 if successful; 1 otherwise.
Side effects
The results are returned in f1, f0, and fd.
See also:
cuddZddGetCofactors2
DdNode* cuddZddProduct ( DdManager dd,
DdNode f,
DdNode g 
)

Performs the recursive step of Cudd_zddProduct.

Side effects
None
See also:
Cudd_zddProduct
DdNode* cuddZddUnateProduct ( DdManager dd,
DdNode f,
DdNode g 
)

Performs the recursive step of Cudd_zddUnateProduct.

Side effects
None
See also:
Cudd_zddUnateProduct
DdNode* cuddZddWeakDiv ( DdManager dd,
DdNode f,
DdNode g 
)

Performs the recursive step of Cudd_zddWeakDiv.

Side effects
None
See also:
Cudd_zddWeakDiv
DdNode* cuddZddWeakDivF ( DdManager dd,
DdNode f,
DdNode g 
)

Performs the recursive step of Cudd_zddWeakDivF.

Side effects
None
See also:
Cudd_zddWeakDivF
 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated on 31 Dec 2015 for cudd by  doxygen 1.6.1