cudd
3.0.0
The University of Colorado Decision Diagram Package
|
ADD ITE function and satellites. More...
Functions | |
DdNode * | Cudd_addIte (DdManager *dd, DdNode *f, DdNode *g, DdNode *h) |
Implements ITE(f,g,h). More... | |
DdNode * | Cudd_addIteConstant (DdManager *dd, DdNode *f, DdNode *g, DdNode *h) |
Implements ITEconstant for ADDs. More... | |
DdNode * | Cudd_addEvalConst (DdManager *dd, DdNode *f, DdNode *g) |
Checks whether ADD g is constant whenever ADD f is 1. More... | |
DdNode * | Cudd_addCmpl (DdManager *dd, DdNode *f) |
Computes the complement of an ADD a la C language. More... | |
int | Cudd_addLeq (DdManager *dd, DdNode *f, DdNode *g) |
Determines whether f is less than or equal to g. More... | |
DdNode * | cuddAddIteRecur (DdManager *dd, DdNode *f, DdNode *g, DdNode *h) |
Implements the recursive step of Cudd_addIte(f,g,h). More... | |
DdNode * | cuddAddCmplRecur (DdManager *dd, DdNode *f) |
Performs the recursive step of Cudd_addCmpl. More... | |
static void | addVarToConst (DdNode *f, DdNode **gp, DdNode **hp, DdNode *one, DdNode *zero) |
Replaces variables with constants if possible (part of canonical form). More... | |
ADD ITE function and satellites.
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.
|
static |
Replaces variables with constants if possible (part of canonical form).
Computes the complement of an ADD a la C language.
The complement of 0 is 1 and the complement of everything else is 0.
Checks whether ADD g is constant whenever ADD f is 1.
f must be a 0-1 ADD. If f is identically 0, the check is assumed to be successful, and the background value is returned. No new nodes are created.
Implements ITE(f,g,h).
This procedure assumes that f is a 0-1 ADD.
Implements ITEconstant for ADDs.
f must be a 0-1 ADD. No new nodes are created. This function can be used, for instance, to check that g has a constant value (specified by h) whenever f is 1. If the constant value is unknown, then one should use Cudd_addEvalConst.
Determines whether f is less than or equal to g.
No new nodes are created. This procedure works for arbitrary ADDs. For 0-1 ADDs Cudd_addEvalConst is more efficient.
Performs the recursive step of Cudd_addCmpl.