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

Miscellaneous utility functions for ZDDs. More...

#include <math.h>
#include "util.h"
#include "cuddInt.h"
Include dependency graph for cuddZddMisc.c:

Functions

int Cudd_zddDagSize (DdNode *p_node)
 Counts the number of nodes in a ZDD. More...
 
double Cudd_zddCountMinterm (DdManager *zdd, DdNode *node, int path)
 Counts the number of minterms of a ZDD. More...
 
void Cudd_zddPrintSubtable (DdManager *table)
 Prints the ZDD table for debugging purposes. More...
 
static int cuddZddDagInt (DdNode *n, st_table *tab)
 Performs the recursive step of Cudd_zddDagSize. More...
 

Detailed Description

Miscellaneous utility functions for ZDDs.

Author
Hyong-Kyoon Shin, In-Ho Moon

Function Documentation

◆ Cudd_zddCountMinterm()

double Cudd_zddCountMinterm ( DdManager zdd,
DdNode node,
int  path 
)

Counts the number of minterms of a ZDD.

Counts the number of minterms of the ZDD rooted at node. This procedure takes a parameter path that specifies how many variables are in the support of the function.

Returns
the count. If the procedure runs out of memory, it returns (double) CUDD_OUT_OF_MEM.
Side effects None
See also
Cudd_zddCountDouble

◆ Cudd_zddDagSize()

int Cudd_zddDagSize ( DdNode p_node)

Counts the number of nodes in a ZDD.

Deprecated:
This function duplicates Cudd_DagSize and is only retained for compatibility.
Side effects None
See also
Cudd_DagSize

◆ Cudd_zddPrintSubtable()

void Cudd_zddPrintSubtable ( DdManager table)

Prints the ZDD table for debugging purposes.

Side effects None

◆ cuddZddDagInt()

static int cuddZddDagInt ( DdNode n,
st_table tab 
)
static

Performs the recursive step of Cudd_zddDagSize.

Does not check for out-of-memory conditions.

Side effects None