47 if ( p->nSize == p->nCap )
60 for ( i = 0; i < p->nSize; i++ )
61 pArray[i] = p->pArray[i];
70 p->pArray[p->nSize++] = Entry;
119 printf(
"The obj %d is not found among the fanins of obj %d ...\n", pFanin->
Id, pObj->
Id );
124 printf(
"The obj %d is not found among the fanouts of obj %d ...\n", pObj->
Id, pFanin->
Id );
148 for ( k = vFaninsOld->nSize - 1; k >= 0; k-- )
155 assert( vFaninsOld->nSize == 0 );
178 assert( pFaninOld != pFaninNewR );
185 printf(
"Node %s is not among",
Abc_ObjName(pFaninOld) );
186 printf(
" the fanins of node %s...\n",
Abc_ObjName(pObj) );
205 printf(
"Node %s is not among",
Abc_ObjName(pObj) );
206 printf(
" the fanouts of its old fanin %s...\n",
Abc_ObjName(pFaninOld) );
226 int iFanoutIndex, iFaninIndex;
230 printf(
"Node %s is not among",
Abc_ObjName(pNodeOut) );
231 printf(
" the fanouts of node %s...\n",
Abc_ObjName(pNodeIn) );
237 printf(
"Node %s is not among",
Abc_ObjName(pNodeIn) );
238 printf(
" the fanins of node %s...\n",
Abc_ObjName(pNodeOut) );
272 assert( pNodeFrom != pNodeTo );
279 for ( i = 0; i < vFanouts->nSize; i++ )
302 assert( pNodeOld != pNodeNew );
326 if ( pObj == pFanin )
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
void Abc_ObjAddFanin(Abc_Obj_t *pObj, Abc_Obj_t *pFanin)
Abc_Obj_t * Abc_ObjInsertBetween(Abc_Obj_t *pNodeIn, Abc_Obj_t *pNodeOut, Abc_ObjType_t Type)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static int Abc_ObjFanoutNum(Abc_Obj_t *pObj)
static int Abc_ObjFaninNum(Abc_Obj_t *pObj)
void Abc_ObjDeleteFanin(Abc_Obj_t *pObj, Abc_Obj_t *pFanin)
static int Abc_ObjIsPi(Abc_Obj_t *pObj)
static int Vec_IntFind(Vec_Int_t *p, int Entry)
ABC_DLL void Abc_NtkDeleteObj_rec(Abc_Obj_t *pObj, int fOnlyNodes)
#define ABC_ALLOC(type, num)
void Abc_ObjPatchFanin(Abc_Obj_t *pObj, Abc_Obj_t *pFaninOld, Abc_Obj_t *pFaninNew)
ABC_DLL Abc_Obj_t * Abc_NtkCreateObj(Abc_Ntk_t *pNtk, Abc_ObjType_t Type)
static Abc_Obj_t * Abc_NtkObj(Abc_Ntk_t *pNtk, int i)
static int Abc_ObjIsCo(Abc_Obj_t *pObj)
void Mem_StepEntryRecycle(Mem_Step_t *p, char *pEntry, int nBytes)
static void Vec_IntWriteEntry(Vec_Int_t *p, int i, int Entry)
static int Abc_ObjIsNode(Abc_Obj_t *pObj)
static void Abc_ObjSetFaninC(Abc_Obj_t *pObj, int i)
#define ABC_NAMESPACE_IMPL_END
char * Mem_StepEntryFetch(Mem_Step_t *p, int nBytes)
int Abc_ObjFanoutFaninNum(Abc_Obj_t *pFanout, Abc_Obj_t *pFanin)
static int Vec_IntRemove(Vec_Int_t *p, int Entry)
#define ABC_NAMESPACE_IMPL_START
void Abc_ObjReplace(Abc_Obj_t *pNodeOld, Abc_Obj_t *pNodeNew)
static Abc_Obj_t * Abc_ObjRegular(Abc_Obj_t *p)
void Abc_ObjRemoveFanins(Abc_Obj_t *pObj)
void Abc_ObjTransferFanout(Abc_Obj_t *pNodeFrom, Abc_Obj_t *pNodeTo)
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
#define Abc_ObjForEachFanin(pObj, pFanin, i)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
static int Abc_ObjIsNet(Abc_Obj_t *pObj)
static void Abc_ObjXorFaninC(Abc_Obj_t *pObj, int i)
static int Abc_ObjIsPo(Abc_Obj_t *pObj)
ABC_DLL void Abc_NodeCollectFanouts(Abc_Obj_t *pNode, Vec_Ptr_t *vNodes)
static int Abc_ObjIsComplement(Abc_Obj_t *p)
static ABC_NAMESPACE_IMPL_START void Vec_IntPushMem(Mem_Step_t *pMemMan, Vec_Int_t *p, int Entry)
DECLARATIONS ///.
static void Vec_PtrFree(Vec_Ptr_t *p)