cudd  3.0.0
The University of Colorado Decision Diagram Package
Functions
cuddAddNeg.c File Reference

Function to compute the negation of an ADD. More...

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

Functions

DdNodeCudd_addNegate (DdManager *dd, DdNode *f)
 Computes the additive inverse of an ADD. More...
 
DdNodeCudd_addRoundOff (DdManager *dd, DdNode *f, int N)
 Rounds off the discriminants of an ADD. More...
 
DdNodecuddAddNegateRecur (DdManager *dd, DdNode *f)
 Implements the recursive step of Cudd_addNegate. More...
 
DdNodecuddAddRoundOffRecur (DdManager *dd, DdNode *f, double trunc)
 Implements the recursive step of Cudd_addRoundOff. More...
 

Detailed Description

Function to compute the negation of an ADD.

Author
Fabio Somenzi, Balakrishna Kumthekar

Function Documentation

◆ Cudd_addNegate()

DdNode* Cudd_addNegate ( DdManager dd,
DdNode f 
)

Computes the additive inverse of an ADD.

Returns
a pointer to the result if successful; NULL otherwise.
Side effects None
See also
Cudd_addCmpl

◆ Cudd_addRoundOff()

DdNode* Cudd_addRoundOff ( DdManager dd,
DdNode f,
int  N 
)

Rounds off the discriminants of an ADD.

The discriminants are rounded off to N digits after the decimal.

Returns
a pointer to the result ADD if successful; NULL otherwise.
Side effects None

◆ cuddAddNegateRecur()

DdNode* cuddAddNegateRecur ( DdManager dd,
DdNode f 
)

Implements the recursive step of Cudd_addNegate.

Returns
a pointer to the result.
Side effects None

◆ cuddAddRoundOffRecur()

DdNode* cuddAddRoundOffRecur ( DdManager dd,
DdNode f,
double  trunc 
)

Implements the recursive step of Cudd_addRoundOff.

Returns
a pointer to the result.
Side effects None