cudd/cuddBddAbs.c File Reference

Quantification functions for BDDs. More...

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

Functions

DdNodeCudd_bddExistAbstract (DdManager *manager, DdNode *f, DdNode *cube)
 Existentially abstracts all the variables in cube from f.
DdNodeCudd_bddExistAbstractLimit (DdManager *manager, DdNode *f, DdNode *cube, unsigned int limit)
 Existentially abstracts all the variables in cube from f.
DdNodeCudd_bddXorExistAbstract (DdManager *manager, DdNode *f, DdNode *g, DdNode *cube)
 Takes the exclusive OR of two BDDs and simultaneously abstracts the variables in cube.
DdNodeCudd_bddUnivAbstract (DdManager *manager, DdNode *f, DdNode *cube)
 Universally abstracts all the variables in cube from f.
DdNodeCudd_bddBooleanDiff (DdManager *manager, DdNode *f, int x)
 Computes the boolean difference of f with respect to x.
int Cudd_bddVarIsDependent (DdManager *dd, DdNode *f, DdNode *var)
 Checks whether a variable is dependent on others in a function.
DdNodecuddBddExistAbstractRecur (DdManager *manager, DdNode *f, DdNode *cube)
 Performs the recursive steps of Cudd_bddExistAbstract.
DdNodecuddBddXorExistAbstractRecur (DdManager *manager, DdNode *f, DdNode *g, DdNode *cube)
 Takes the exclusive OR of two BDDs and simultaneously abstracts the variables in cube.
DdNodecuddBddBooleanDiffRecur (DdManager *manager, DdNode *f, DdNode *var)
 Performs the recursive steps of Cudd_bddBoleanDiff.
static int bddCheckPositiveCube (DdManager *manager, DdNode *cube)
 Checks whether cube is a BDD representing the product of positive literals.

Detailed Description

Quantification functions for BDDs.

Author:
Fabio Somenzi

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

static int bddCheckPositiveCube ( DdManager manager,
DdNode cube 
) [static]

Checks whether cube is a BDD representing the product of positive literals.

Returns:
1 in case of success; 0 otherwise.
Side effects
None
DdNode* Cudd_bddBooleanDiff ( DdManager manager,
DdNode f,
int  x 
)

Computes the boolean difference of f with respect to x.

Computes the boolean difference of f with respect to the variable with index x.

Returns:
the BDD of the boolean difference if successful; NULL otherwise.
Side effects
None
DdNode* Cudd_bddExistAbstract ( DdManager manager,
DdNode f,
DdNode cube 
)

Existentially abstracts all the variables in cube from f.

Returns:
the abstracted BDD if successful; NULL otherwise.
Side effects
None
See also:
Cudd_bddUnivAbstract Cudd_addExistAbstract
DdNode* Cudd_bddExistAbstractLimit ( DdManager manager,
DdNode f,
DdNode cube,
unsigned int  limit 
)

Existentially abstracts all the variables in cube from f.

Returns:
the abstracted BDD if successful; NULL if the intermediate result blows up or more new nodes than limit are required.
Side effects
None
See also:
Cudd_bddExistAbstract
DdNode* Cudd_bddUnivAbstract ( DdManager manager,
DdNode f,
DdNode cube 
)

Universally abstracts all the variables in cube from f.

Returns:
the abstracted BDD if successful; NULL otherwise.
Side effects
None
See also:
Cudd_bddExistAbstract Cudd_addUnivAbstract
int Cudd_bddVarIsDependent ( DdManager dd,
DdNode f,
DdNode var 
)

Checks whether a variable is dependent on others in a function.

No new nodes are created.

Returns:
1 if the variable is dependent; 0 otherwise.
Side effects
None
Parameters:
dd manager
f function
var variable
DdNode* Cudd_bddXorExistAbstract ( DdManager manager,
DdNode f,
DdNode g,
DdNode cube 
)

Takes the exclusive OR of two BDDs and simultaneously abstracts the variables in cube.

The variables are existentially abstracted.

Returns:
a pointer to the result is successful; NULL otherwise.
Side effects
None
See also:
Cudd_bddUnivAbstract Cudd_bddExistAbstract Cudd_bddAndAbstract
DdNode* cuddBddBooleanDiffRecur ( DdManager manager,
DdNode f,
DdNode var 
)

Performs the recursive steps of Cudd_bddBoleanDiff.

Exploits the fact that dF/dx = dF'/dx.

Returns:
the BDD obtained by XORing the cofactors of f with respect to var if successful; NULL otherwise.
Side effects
None
DdNode* cuddBddExistAbstractRecur ( DdManager manager,
DdNode f,
DdNode cube 
)

Performs the recursive steps of Cudd_bddExistAbstract.

It is also used by Cudd_bddUnivAbstract.

Returns:
the BDD obtained by abstracting the variables of cube from f if successful; NULL otherwise.
Side effects
None
See also:
Cudd_bddExistAbstract Cudd_bddUnivAbstract
DdNode* cuddBddXorExistAbstractRecur ( DdManager manager,
DdNode f,
DdNode g,
DdNode cube 
)

Takes the exclusive OR of two BDDs and simultaneously abstracts the variables in cube.

The variables are existentially abstracted.

Returns:
a pointer to the result is successful; NULL otherwise.
Side effects
None
See also:
Cudd_bddAndAbstract
 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated on 31 Dec 2015 for cudd by  doxygen 1.6.1