cudd  3.0.0
The University of Colorado Decision Diagram Package
Functions
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. More...
 
DdNodeCudd_zddUnateProduct (DdManager *dd, DdNode *f, DdNode *g)
 Computes the product of two unate covers represented as ZDDs. More...
 
DdNodeCudd_zddWeakDiv (DdManager *dd, DdNode *f, DdNode *g)
 Applies weak division to two covers. More...
 
DdNodeCudd_zddDivide (DdManager *dd, DdNode *f, DdNode *g)
 Computes the quotient of two unate covers. More...
 
DdNodeCudd_zddWeakDivF (DdManager *dd, DdNode *f, DdNode *g)
 Modified version of Cudd_zddWeakDiv. More...
 
DdNodeCudd_zddDivideF (DdManager *dd, DdNode *f, DdNode *g)
 Modified version of Cudd_zddDivide. More...
 
DdNodeCudd_zddComplement (DdManager *dd, DdNode *node)
 Computes a complement cover for a ZDD node. More...
 
DdNodecuddZddProduct (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddProduct. More...
 
DdNodecuddZddUnateProduct (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddUnateProduct. More...
 
DdNodecuddZddWeakDiv (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddWeakDiv. More...
 
DdNodecuddZddWeakDivF (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddWeakDivF. More...
 
DdNodecuddZddDivide (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddDivide. More...
 
DdNodecuddZddDivideF (DdManager *dd, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_zddDivideF. More...
 
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. More...
 
int cuddZddGetCofactors2 (DdManager *dd, DdNode *f, int v, DdNode **f1, DdNode **f0)
 Computes the two-way decomposition of f w.r.t. v. More...
 
DdNodecuddZddComplement (DdManager *dd, DdNode *node)
 Computes a complement of a ZDD node. More...
 
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

Function Documentation

◆ Cudd_zddComplement()

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.

◆ Cudd_zddDivide()

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

◆ Cudd_zddDivideF()

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

Modified version of Cudd_zddDivide.

This function may disappear in future releases.

Side effects None

◆ Cudd_zddProduct()

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

◆ 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

◆ Cudd_zddWeakDiv()

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

◆ Cudd_zddWeakDivF()

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

◆ cuddZddComplement()

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.

◆ cuddZddDivide()

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

Performs the recursive step of Cudd_zddDivide.

Side effects None
See also
Cudd_zddDivide

◆ cuddZddDivideF()

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

Performs the recursive step of Cudd_zddDivideF.

Side effects None
See also
Cudd_zddDivideF

◆ cuddZddGetCofactors2()

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

◆ 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

◆ cuddZddProduct()

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

Performs the recursive step of Cudd_zddProduct.

Side effects None
See also
Cudd_zddProduct

◆ cuddZddUnateProduct()

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

Performs the recursive step of Cudd_zddUnateProduct.

Side effects None
See also
Cudd_zddUnateProduct

◆ cuddZddWeakDiv()

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

Performs the recursive step of Cudd_zddWeakDiv.

Side effects None
See also
Cudd_zddWeakDiv

◆ cuddZddWeakDivF()

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

Performs the recursive step of Cudd_zddWeakDivF.

Side effects None
See also
Cudd_zddWeakDivF