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

Functions to check that the minterm counts have not changed during reordering. More...

#include "ntr.h"
Include dependency graph for chkMterm.c:

Functions

st_tablecheckMinterms (BnetNetwork *net, DdManager *dd, st_table *previous)
 Check that minterm counts have not changed. More...
 
static enum st_retval stFree (void *key, void *value, void *arg)
 Frees the data of the symbol table. More...
 

Detailed Description

Functions to check that the minterm counts have not changed during reordering.

Author
Fabio Somenzi

Function Documentation

◆ checkMinterms()

st_table* checkMinterms ( BnetNetwork net,
DdManager dd,
st_table previous 
)

Check that minterm counts have not changed.

Counts the minterms in the global functions of the primary outputs of the network passed as argument. When it is calld with the second argument set to NULL, it allocates a symbol table and stores, for each output, the minterm count. If an output does not have a BDD, it stores a NULL pointer for it. If it is called with a non-null second argument, it assumes that the symbol table contains the minterm counts measured previously and it compares the new counts to the old ones. Finally, it frees the symbol table. check_minterms is designed so that it can be called twice: once before reordering, and once after reordering.

Returns
a pointer to the symbol table on the first invocation and NULL on the second invocation.
Side effects None

◆ stFree()

static enum st_retval stFree ( void *  key,
void *  value,
void *  arg 
)
static

Frees the data of the symbol table.

Side effects None