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

Computation of signatures. More...

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

Functions

double * Cudd_CofMinterm (DdManager *dd, DdNode *node)
 Computes the fraction of minterms in the on-set of all the positive cofactors of a BDD or ADD. More...
 
static double * ddCofMintermAux (DdManager *dd, DdNode *node, st_table *table)
 Recursive Step for Cudd_CofMinterm function. More...
 

Detailed Description

Computation of signatures.

Author
Fabio Somenzi

Function Documentation

◆ Cudd_CofMinterm()

double* Cudd_CofMinterm ( DdManager dd,
DdNode node 
)

Computes the fraction of minterms in the on-set of all the positive cofactors of a BDD or ADD.

The array has as many positions as there are BDD variables in the manager plus one. The last position of the array contains the fraction of the minterms in the ON-set of the function represented by the BDD or ADD. The other positions of the array hold the variable signatures.

Returns
the pointer to an array of doubles if successful; NULL otherwise.
Side effects None

◆ ddCofMintermAux()

static double* ddCofMintermAux ( DdManager dd,
DdNode node,
st_table table 
)
static

Recursive Step for Cudd_CofMinterm function.

Traverses the DD node and computes the fraction of minterms in the on-set of all positive cofactors simultaneously. It allocates an array with two more entries than there are variables below the one labeling the node. One extra entry (the first in the array) is for the variable labeling the node. The other entry (the last one in the array) holds the fraction of minterms of the function rooted at node. Each other entry holds the value for one cofactor. The array is put in a symbol table, to avoid repeated computation, and its address is returned by the procedure, for use by the caller.

Returns
a pointer to the array of cofactor measures.
Side effects None