cudd
3.0.0
The University of Colorado Decision Diagram Package
|
Functions to manipulate covers represented as ZDDs. More...
Functions | |
DdNode * | Cudd_zddProduct (DdManager *dd, DdNode *f, DdNode *g) |
Computes the product of two covers represented by ZDDs. More... | |
DdNode * | Cudd_zddUnateProduct (DdManager *dd, DdNode *f, DdNode *g) |
Computes the product of two unate covers represented as ZDDs. More... | |
DdNode * | Cudd_zddWeakDiv (DdManager *dd, DdNode *f, DdNode *g) |
Applies weak division to two covers. More... | |
DdNode * | Cudd_zddDivide (DdManager *dd, DdNode *f, DdNode *g) |
Computes the quotient of two unate covers. More... | |
DdNode * | Cudd_zddWeakDivF (DdManager *dd, DdNode *f, DdNode *g) |
Modified version of Cudd_zddWeakDiv. More... | |
DdNode * | Cudd_zddDivideF (DdManager *dd, DdNode *f, DdNode *g) |
Modified version of Cudd_zddDivide. More... | |
DdNode * | Cudd_zddComplement (DdManager *dd, DdNode *node) |
Computes a complement cover for a ZDD node. More... | |
DdNode * | cuddZddProduct (DdManager *dd, DdNode *f, DdNode *g) |
Performs the recursive step of Cudd_zddProduct. More... | |
DdNode * | cuddZddUnateProduct (DdManager *dd, DdNode *f, DdNode *g) |
Performs the recursive step of Cudd_zddUnateProduct. More... | |
DdNode * | cuddZddWeakDiv (DdManager *dd, DdNode *f, DdNode *g) |
Performs the recursive step of Cudd_zddWeakDiv. More... | |
DdNode * | cuddZddWeakDivF (DdManager *dd, DdNode *f, DdNode *g) |
Performs the recursive step of Cudd_zddWeakDivF. More... | |
DdNode * | cuddZddDivide (DdManager *dd, DdNode *f, DdNode *g) |
Performs the recursive step of Cudd_zddDivide. More... | |
DdNode * | cuddZddDivideF (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... | |
DdNode * | cuddZddComplement (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. | |
Functions to manipulate covers represented as ZDDs.
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.
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.
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.
Modified version of Cudd_zddDivide.
This function may disappear in future releases.
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.
Computes the product of two unate covers represented as ZDDs.
Unate covers use one ZDD variable for each BDD variable.
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.
Modified version of Cudd_zddWeakDiv.
This function may disappear in future releases.
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.
Computes the two-way decomposition of f w.r.t. v.
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.