62 float Prob = (float)2.0 * dProb * (1.0 - dProb);
63 assert( Prob >= 0.0 && Prob <= 0.5 );
88 for ( i = 0; i < nVars; i++ )
91 for ( i = nVars + 1; i < nNodes; i++ )
116 int i, nGainTotal = 0, nNodes1, nNodes2;
122 pPars->fVerbose = fVerbose;
123 if ( pPars->nVarsMax > 15 )
126 printf(
"Resynthesis is not performed for nodes with more than 15 inputs.\n" );
127 pPars->nVarsMax = 15;
138 nGainTotal += nNodes1 - nNodes2;
144 printf(
"Total gain in AIG nodes = %d. ", nGainTotal );
Bdc_Fun_t * Bdc_ManRoot(Bdc_Man_t *p)
static int Abc_NtkIsLogic(Abc_Ntk_t *pNtk)
static Hop_Obj_t * Hop_ManConst1(Hop_Man_t *p)
Hop_Obj_t * Hop_And(Hop_Man_t *p, Hop_Obj_t *p0, Hop_Obj_t *p1)
int Hop_DagSize(Hop_Obj_t *pObj)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
Bdc_Man_t * Bdc_ManAlloc(Bdc_Par_t *pPars)
MACRO DEFINITIONS ///.
static int Abc_ObjFaninNum(Abc_Obj_t *pObj)
ABC_DLL int Abc_NtkGetFaninMax(Abc_Ntk_t *pNtk)
int Bdc_ManDecompose(Bdc_Man_t *p, unsigned *puFunc, unsigned *puCare, int nVars, Vec_Ptr_t *vDivs, int nNodesMax)
static abctime Abc_Clock()
Bdc_Fun_t * Bdc_ManFunc(Bdc_Man_t *p, int i)
DECLARATIONS ///.
static Hop_Obj_t * Hop_ManPi(Hop_Man_t *p, int i)
void Bdc_FuncSetCopy(Bdc_Fun_t *p, void *pCopy)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Bdc_Fun_t_ Bdc_Fun_t
INCLUDES ///.
static ABC_NAMESPACE_IMPL_START Hop_Obj_t * Bdc_FunCopyHop(Bdc_Fun_t *pObj)
DECLARATIONS ///.
#define ABC_NAMESPACE_IMPL_END
static int Hop_IsComplement(Hop_Obj_t *p)
#define Abc_NtkForEachNode(pNtk, pNode, i)
Bdc_Fun_t * Bdc_FuncFanin0(Bdc_Fun_t *p)
#define ABC_NAMESPACE_IMPL_START
static int Bdc_IsComplement(Bdc_Fun_t *p)
static Hop_Obj_t * Hop_NotCond(Hop_Obj_t *p, int c)
void Abc_NtkBidecResyn(Abc_Ntk_t *pNtk, int fVerbose)
Hop_Obj_t * Abc_NodeIfNodeResyn(Bdc_Man_t *p, Hop_Man_t *pHop, Hop_Obj_t *pRoot, int nVars, Vec_Int_t *vTruth, unsigned *puCare, float dProb)
FUNCTION DEFINITIONS ///.
ABC_DLL int Abc_NtkToAig(Abc_Ntk_t *pNtk)
unsigned * Hop_ManConvertAigToTruth(Hop_Man_t *p, Hop_Obj_t *pRoot, int nVars, Vec_Int_t *vTruth, int fMsbFirst)
int Bdc_ManNodeNum(Bdc_Man_t *p)
void Bdc_ManFree(Bdc_Man_t *p)
Bdc_Fun_t * Bdc_FuncFanin1(Bdc_Fun_t *p)
void * Bdc_FuncCopy(Bdc_Fun_t *p)
static void Vec_IntFree(Vec_Int_t *p)
static Hop_Obj_t * Hop_Regular(Hop_Obj_t *p)
typedefABC_NAMESPACE_HEADER_START struct Hop_Man_t_ Hop_Man_t
INCLUDES ///.
static Bdc_Fun_t * Bdc_Regular(Bdc_Fun_t *p)