48 DdNode * bSum, * bCube, * bTemp, * bVar;
58 for ( v = 0; v < nVars; v++ )
60 Value = ((uCube >> 2*v) & 3);
63 else if ( Value == 2 )
93 DdNode * bFunc, * bFunc0, * bFunc1;
143 DdNode * bF0, * bF1, * bF;
147 unsigned uTruth, uMask;
148 uMask = ((~(unsigned)0) >> (32 - (1<<nVars)));
149 uTruth = (pTruth[iBit>>5] >> (iBit&31)) & uMask;
152 if ( uTruth == uMask )
156 Var = fMSBonTop? nVarsTotal-nVars : nVars-1;
202 DdNode * bFunc1, * bFunc2;
216 RetValue = (bFunc1 == bFunc2);
217 if ( bFunc1 != bFunc2 )
#define CUDD_UNIQUE_SLOTS
void Cudd_RecursiveDeref(DdManager *table, DdNode *n)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static Kit_Node_t * Kit_GraphNode(Kit_Graph_t *pGraph, int i)
void Cudd_Deref(DdNode *node)
DdNode * Cudd_ReadLogicZero(DdManager *dd)
static int Kit_GraphIsComplement(Kit_Graph_t *pGraph)
static int Kit_GraphLeaveNum(Kit_Graph_t *pGraph)
static int Kit_GraphIsVar(Kit_Graph_t *pGraph)
DdNode * Cudd_bddIte(DdManager *dd, DdNode *f, DdNode *g, DdNode *h)
DdNode * Kit_GraphToBdd(DdManager *dd, Kit_Graph_t *pGraph)
#define Kit_GraphForEachLeaf(pGraph, pLeaf, i)
static int Kit_GraphIsConst(Kit_Graph_t *pGraph)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
ABC_NAMESPACE_IMPL_START DdNode * Kit_SopToBdd(DdManager *dd, Kit_Sop_t *cSop, int nVars)
DECLARATIONS ///.
#define Kit_GraphForEachNode(pGraph, pAnd, i)
#define ABC_NAMESPACE_IMPL_END
DdNode * Kit_TruthToBdd(DdManager *dd, unsigned *pTruth, int nVars, int fMSBonTop)
DdManager * Cudd_Init(unsigned int numVars, unsigned int numVarsZ, unsigned int numSlots, unsigned int cacheSize, unsigned long maxMemory)
DdNode * Cudd_bddOr(DdManager *dd, DdNode *f, DdNode *g)
#define Kit_SopForEachCube(cSop, uCube, i)
ITERATORS ///.
#define ABC_NAMESPACE_IMPL_START
DdNode * Cudd_ReadOne(DdManager *dd)
typedefABC_NAMESPACE_HEADER_START struct Kit_Sop_t_ Kit_Sop_t
INCLUDES ///.
static int Vec_IntSize(Vec_Int_t *p)
DdNode * Cudd_bddIthVar(DdManager *dd, int i)
#define Cudd_NotCond(node, c)
DdNode * Cudd_bddAnd(DdManager *dd, DdNode *f, DdNode *g)
static int Kit_GraphVarInt(Kit_Graph_t *pGraph)
static void Vec_IntFree(Vec_Int_t *p)
DdNode * Kit_TruthToBdd_rec(DdManager *dd, unsigned *pTruth, int iBit, int nVars, int nVarsTotal, int fMSBonTop)
void Kit_SopCreate(Kit_Sop_t *cResult, Vec_Int_t *vInput, int nVars, Vec_Int_t *vMemory)
DECLARATIONS ///.
int Kit_SopFactorVerify(Vec_Int_t *vCover, Kit_Graph_t *pFForm, int nVars)