62 Abc_Ntk_t *
Abc_NtkRenode(
Abc_Ntk_t * pNtk,
int nFaninMax,
int nCubeMax,
int nFlowIters,
int nAreaIters,
int fArea,
int fUseBdds,
int fUseSops,
int fUseCnfs,
int fUseMv,
int fVerbose )
69 printf(
"Performing renoding with choices.\n" );
170 if ( pGraph == NULL )
198 DdNode * bFunc, * bFuncNew;
201 pPerm[i] = pOrder[i] = -100;
205 if ( pOrder[i] >= 0 )
206 pPerm[pOrder[i]] = ++k;
231 if ( RetValue == -1 )
233 assert( RetValue == 0 || RetValue == 1 );
251 int i, RetValue, nClauses;
257 if ( RetValue == -1 )
259 assert( RetValue == 0 || RetValue == 1 );
265 if ( RetValue == -1 )
267 assert( RetValue == 0 || RetValue == 1 );
292 if ( RetValue == -1 )
294 assert( RetValue == 0 || RetValue == 1 );
299 if ( RetValue == -1 )
301 assert( RetValue == 0 || RetValue == 1 );
static Kit_Node_t * Kit_GraphNodeLast(Kit_Graph_t *pGraph)
#define CUDD_UNIQUE_SLOTS
static Vec_Int_t * s_vMemory
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)
static int If_CutLeaveNum(If_Cut_t *pCut)
DdNode * Extra_Reorder(reo_man *p, DdManager *dd, DdNode *Func, int *pOrder)
static char * If_CutPerm(If_Cut_t *pCut)
DdNode * Kit_TruthToBdd(DdManager *dd, unsigned *pTruth, int nVars, int fMSBonTop)
static int Abc_NtkRenodeEvalCnf(If_Man_t *p, If_Cut_t *pCut)
Abc_Ntk_t * Abc_NtkIf(Abc_Ntk_t *pNtk, If_Par_t *pPars)
int(* pFuncCost)(If_Man_t *, If_Cut_t *)
ABC_DLL int Abc_NtkGetChoiceNum(Abc_Ntk_t *pNtk)
int Kit_GraphLeafDepth_rec(Kit_Graph_t *pGraph, Kit_Node_t *pNode, Kit_Node_t *pLeaf)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
#define IF_MAX_LUTSIZE
INCLUDES ///.
void Kit_GraphFree(Kit_Graph_t *pGraph)
int Kit_TruthIsop(unsigned *puTruth, int nVars, Vec_Int_t *vMemory, int fTryBoth)
FUNCTION DEFINITIONS ///.
static int Abc_NtkRenodeEvalMv(If_Man_t *p, If_Cut_t *pCut)
#define ABC_NAMESPACE_IMPL_END
DdManager * Cudd_Init(unsigned int numVars, unsigned int numVarsZ, unsigned int numSlots, unsigned int cacheSize, unsigned long maxMemory)
static unsigned * If_CutTruth(If_Man_t *p, If_Cut_t *pCut)
static ABC_NAMESPACE_IMPL_START int Abc_NtkRenodeEvalAig(If_Man_t *p, If_Cut_t *pCut)
DECLARATIONS ///.
static void Kit_TruthNot(unsigned *pOut, unsigned *pIn, int nVars)
#define ABC_NAMESPACE_IMPL_START
Abc_Ntk_t * Abc_NtkRenode(Abc_Ntk_t *pNtk, int nFaninMax, int nCubeMax, int nFlowIters, int nAreaIters, int fArea, int fUseBdds, int fUseSops, int fUseCnfs, int fUseMv, int fVerbose)
FUNCTION DEFINITIONS ///.
static int Abc_NtkRenodeEvalBdd(If_Man_t *p, If_Cut_t *pCut)
static int Vec_IntSize(Vec_Int_t *p)
static int Abc_NtkRenodeEvalSop(If_Man_t *p, If_Cut_t *pCut)
static int Kit_GraphNodeNum(Kit_Graph_t *pGraph)
reo_man * Extra_ReorderInit(int nDdVarsMax, int nNodesMax)
FUNCTION DECLARATIONS ///.
void Extra_ReorderQuit(reo_man *p)
ABC_DLL int Abc_NodeEvalMvCost(int nVars, Vec_Int_t *vSop0, Vec_Int_t *vSop1)
static void Vec_IntFree(Vec_Int_t *p)
Kit_Graph_t * Kit_TruthToGraph(unsigned *pTruth, int nVars, Vec_Int_t *vMemory)
static Vec_Int_t * s_vMemory2
int Cudd_DagSize(DdNode *node)