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

Functions that generate Walsh matrices and residue functions in ADD form. More...

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

Functions

DdNodeCudd_addWalsh (DdManager *dd, DdNode **x, DdNode **y, int n)
 Generates a Walsh matrix in ADD form. More...
 
DdNodeCudd_addResidue (DdManager *dd, int n, int m, int options, int top)
 Builds an ADD for the residue modulo m of an n-bit number. More...
 
static DdNodeaddWalshInt (DdManager *dd, DdNode **x, DdNode **y, int n)
 Implements the recursive step of Cudd_addWalsh. More...
 

Detailed Description

Functions that generate Walsh matrices and residue functions in ADD form.

Author
Fabio Somenzi

Function Documentation

◆ addWalshInt()

static DdNode* addWalshInt ( DdManager dd,
DdNode **  x,
DdNode **  y,
int  n 
)
static

Implements the recursive step of Cudd_addWalsh.

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

◆ Cudd_addResidue()

DdNode* Cudd_addResidue ( DdManager dd,
int  n,
int  m,
int  options,
int  top 
)

Builds an ADD for the residue modulo m of an n-bit number.

The modulus must be at least 2, and the number of bits at least 1. Parameter options specifies whether the MSB should be on top or the LSB; and whther the number whose residue is computed is in two's complement notation or not. The macro CUDD_RESIDUE_DEFAULT specifies LSB on top and unsigned number. The macro CUDD_RESIDUE_MSB specifies MSB on top, and the macro CUDD_RESIDUE_TC specifies two's complement residue. To request MSB on top and two's complement residue simultaneously, one can OR the two macros: CUDD_RESIDUE_MSB | CUDD_RESIDUE_TC.

Returns
a pointer to the resulting ADD if successful; NULL otherwise.
Side effects None
Parameters
ddmanager
nnumber of bits
mmodulus
optionsoptions
topindex of top variable

◆ Cudd_addWalsh()

DdNode* Cudd_addWalsh ( DdManager dd,
DdNode **  x,
DdNode **  y,
int  n 
)

Generates a Walsh matrix in ADD form.

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