106 Vec_Int_t * vSwitching = NULL, * vSwitching2 = NULL;
107 float * pSwitching = NULL, * pSwitching2 = NULL;
122 pSwitching = (
float *)vSwitching->pArray;
124 pSwitching2 = (
float *)vSwitching2->pArray;
159 pNode->
pData = pIfObj;
161 pSwitching2[pIfObj->
Id] = pSwitching[pNode->
Id];
206 for ( pTemp = pIfObj; pTemp; pTemp = pTemp->
pEquiv )
209 if ( gFunc0 == (
void *)1 )
212 if ( gFunc1 == (
void *)1 )
250 if ( gFunc == (
void *)1 )
252 printf(
"Nwk_NodeIfToHop(): Computing local AIG has failed.\n" );
283 int i, k, nLeaves, * ppLeaves;
315 for ( k = 0; k < nLeaves; k++ )
339 pObj->
pData = pObjNew;
371 if ( pIfMan == NULL )
static Vec_Ptr_t * Vec_PtrStart(int nSize)
Hop_Obj_t * Nwk_NodeIfToHop2_rec(Hop_Man_t *pHopMan, If_Man_t *pIfMan, If_Obj_t *pIfObj, Vec_Ptr_t *vVisited)
static If_Obj_t * If_NotCond(If_Obj_t *p, int c)
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
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)
typedefABC_NAMESPACE_HEADER_START struct Aig_Man_t_ Aig_Man_t
INCLUDES ///.
static int If_ManAndNum(If_Man_t *p)
typedefABC_NAMESPACE_HEADER_START struct Nwk_Obj_t_ Nwk_Obj_t
INCLUDES ///.
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
If_Man_t * If_ManStart(If_Par_t *pPars)
FUNCTION DEFINITIONS ///.
Nwk_Man_t * Nwk_MappingIf(Aig_Man_t *p, Tim_Man_t *pManTime, If_Par_t *pPars)
#define If_CutForEachLeaf(p, pCut, pLeaf, i)
static int If_CutLeaveNum(If_Cut_t *pCut)
static void If_CutSetData(If_Cut_t *pCut, void *pData)
static Aig_Obj_t * Aig_ObjFanin0(Aig_Obj_t *pObj)
If_Man_t * Nwk_ManToIf(Aig_Man_t *p, If_Par_t *pPars, Vec_Ptr_t *vAigToIf)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
#define ABC_ALLOC(type, num)
static int If_ObjIsCi(If_Obj_t *pObj)
static If_Cut_t * If_ObjCutBest(If_Obj_t *pObj)
int(* pFuncCost)(If_Man_t *, If_Cut_t *)
static abctime Abc_Clock()
static Aig_Obj_t * Aig_ObjFanin1(Aig_Obj_t *pObj)
Hop_Obj_t * Nwk_NodeIfToHop(Hop_Man_t *pHopMan, If_Man_t *pIfMan, If_Obj_t *pIfObj)
static Hop_Obj_t * Hop_Not(Hop_Obj_t *p)
static void If_ObjSetLevel(If_Obj_t *pObj, int Level)
static int Aig_ManNodeNum(Aig_Man_t *p)
If_Obj_t * If_ManCreateCo(If_Man_t *p, If_Obj_t *pDriver)
ABC_NAMESPACE_IMPL_START void Nwk_ManSetIfParsDefault(If_Par_t *pPars)
DECLARATIONS ///.
static int Aig_ObjIsNode(Aig_Obj_t *pObj)
static int If_ManCiNum(If_Man_t *p)
static int Aig_ManCoNum(Aig_Man_t *p)
ABC_DLL void Nwk_ManMinimumBase(Nwk_Man_t *pNtk, int fVerbose)
static Vec_Int_t * Vec_IntStart(int nSize)
ABC_DLL int Nwk_ManCheck(Nwk_Man_t *p)
DECLARATIONS ///.
Vec_Int_t * Saig_ManComputeSwitchProbs(Aig_Man_t *pAig, int nFrames, int nPref, int fProbOne)
void Aig_ManSetRegNum(Aig_Man_t *p, int nRegs)
static int * If_CutLeaves(If_Cut_t *pCut)
static int Aig_ManCiNum(Aig_Man_t *p)
ABC_DLL Nwk_Man_t * Nwk_ManAlloc()
DECLARATIONS ///.
#define ABC_NAMESPACE_IMPL_END
static If_Obj_t * If_ManConst1(If_Man_t *p)
static int Aig_ObjIsConst1(Aig_Obj_t *pObj)
static Aig_Obj_t * Aig_ObjEquiv(Aig_Man_t *p, Aig_Obj_t *pObj)
ABC_DLL Nwk_Obj_t * Nwk_ManCreateCo(Nwk_Man_t *pMan)
Tim_Man_t * Tim_ManDup(Tim_Man_t *p, int fUnitDelay)
static void * If_CutData(If_Cut_t *pCut)
static int If_ObjIsTerm(If_Obj_t *pObj)
static int Aig_ObjFaninC0(Aig_Obj_t *pObj)
static void Vec_PtrWriteEntry(Vec_Ptr_t *p, int i, void *Entry)
static int Aig_ManObjNumMax(Aig_Man_t *p)
#define ABC_NAMESPACE_IMPL_START
static void * Vec_PtrEntry(Vec_Ptr_t *p, int i)
static int If_ManObjNum(If_Man_t *p)
static void If_ObjSetChoice(If_Obj_t *pObj, If_Obj_t *pEqu)
ABC_DLL Nwk_Obj_t * Nwk_ManCreateCi(Nwk_Man_t *pMan, int nFanouts)
#define Aig_ManForEachObj(p, pObj, i)
static Hop_Obj_t * Hop_NotCond(Hop_Obj_t *p, int c)
void If_ManCreateChoice(If_Man_t *p, If_Obj_t *pRepr)
int If_ManPerformMapping(If_Man_t *p)
void If_ManCleanCutData(If_Man_t *p)
If_Obj_t * If_ManCreateCi(If_Man_t *p)
ABC_DLL void Nwk_ManBidecResyn(Nwk_Man_t *p, int fVerbose)
static int Aig_ObjFaninC1(Aig_Obj_t *pObj)
static int Aig_ObjLevel(Aig_Obj_t *pObj)
If_Obj_t * If_ManCreateAnd(If_Man_t *p, If_Obj_t *pFan0, If_Obj_t *pFan1)
ABC_DLL void Nwk_ObjAddFanin(Nwk_Obj_t *pObj, Nwk_Obj_t *pFanin)
static void Vec_PtrClear(Vec_Ptr_t *p)
typedefABC_NAMESPACE_HEADER_START struct Tim_Man_t_ Tim_Man_t
INCLUDES ///.
static int If_ManCoNum(If_Man_t *p)
static void Vec_IntFree(Vec_Int_t *p)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
static int Aig_ObjIsCi(Aig_Obj_t *pObj)
char * Abc_UtilStrsav(char *s)
void Aig_ManCleanData(Aig_Man_t *p)
Nwk_Man_t * Nwk_ManFromIf(If_Man_t *pIfMan, Aig_Man_t *p, Vec_Ptr_t *vAigToIf)
void If_ManStop(If_Man_t *p)
typedefABC_NAMESPACE_HEADER_START struct Hop_Man_t_ Hop_Man_t
INCLUDES ///.
static int Aig_ObjIsCo(Aig_Obj_t *pObj)
Hop_Obj_t * Hop_IthVar(Hop_Man_t *p, int i)
FUNCTION DEFINITIONS ///.
static int Aig_ObjIsChoice(Aig_Man_t *p, Aig_Obj_t *pObj)
static int Aig_ObjIsAnd(Aig_Obj_t *pObj)
static void Vec_PtrFree(Vec_Ptr_t *p)
ABC_DLL Nwk_Obj_t * Nwk_ManCreateNode(Nwk_Man_t *pMan, int nFanins, int nFanouts)