37 static inline int *
Aig_FanoutObj(
int * pData,
int ObjId ) {
return pData + 5*ObjId; }
38 static inline int *
Aig_FanoutPrev(
int * pData,
int iFan ) {
return pData + 5*(iFan >> 1) + 1 + (iFan & 1); }
39 static inline int *
Aig_FanoutNext(
int * pData,
int iFan ) {
return pData + 5*(iFan >> 1) + 3 + (iFan & 1); }
62 assert( p->pFanData == NULL );
64 if ( p->nFansAlloc < (1<<12) )
65 p->nFansAlloc = (1<<12);
66 p->pFanData =
ABC_ALLOC(
int, 5 * p->nFansAlloc );
67 memset( p->pFanData, 0,
sizeof(
int) * 5 * p->nFansAlloc );
91 assert( p->pFanData != NULL );
109 int iFan, * pFirst, * pPrevC, * pNextC, * pPrev, * pNext;
113 if ( pObj->
Id >= p->nFansAlloc || pFanout->
Id >= p->nFansAlloc )
116 p->pFanData =
ABC_REALLOC(
int, p->pFanData, 5 * nFansAlloc );
117 memset( p->pFanData + 5 * p->nFansAlloc, 0,
sizeof(
int) * 5 * (nFansAlloc - p->nFansAlloc) );
118 p->nFansAlloc = nFansAlloc;
120 assert( pObj->
Id < p->nFansAlloc && pFanout->
Id < p->nFansAlloc );
135 assert( *pNext == *pFirst );
156 int iFan, * pFirst, * pPrevC, * pNextC, * pPrev, * pNext;
157 assert( p->pFanData && pObj->
Id < p->nFansAlloc && pFanout->
Id < p->nFansAlloc );
169 if ( *pFirst == iFan )
171 if ( *pNextC == iFan )
typedefABC_NAMESPACE_HEADER_START struct Aig_Man_t_ Aig_Man_t
INCLUDES ///.
static Aig_Obj_t * Aig_ObjChild0(Aig_Obj_t *pObj)
#define ABC_REALLOC(type, obj, num)
void Aig_ManFanoutStop(Aig_Man_t *p)
static Aig_Obj_t * Aig_ObjFanin0(Aig_Obj_t *pObj)
static int Aig_IsComplement(Aig_Obj_t *p)
#define ABC_ALLOC(type, num)
static int Abc_MaxInt(int a, int b)
static Aig_Obj_t * Aig_ObjFanin1(Aig_Obj_t *pObj)
static int Aig_ManBufNum(Aig_Man_t *p)
static int Aig_ObjWhatFanin(Aig_Obj_t *pObj, Aig_Obj_t *pFanin)
#define ABC_NAMESPACE_IMPL_END
void Aig_ObjAddFanout(Aig_Man_t *p, Aig_Obj_t *pObj, Aig_Obj_t *pFanout)
static Aig_Obj_t * Aig_ObjChild1(Aig_Obj_t *pObj)
static int * Aig_FanoutObj(int *pData, int ObjId)
static int * Aig_FanoutPrev(int *pData, int iFan)
static int Aig_ManObjNumMax(Aig_Man_t *p)
#define ABC_NAMESPACE_IMPL_START
static int * Aig_FanoutNext(int *pData, int iFan)
#define Aig_ManForEachObj(p, pObj, i)
void Aig_ObjRemoveFanout(Aig_Man_t *p, Aig_Obj_t *pObj, Aig_Obj_t *pFanout)
static ABC_NAMESPACE_IMPL_START int Aig_FanoutCreate(int FanId, int Num)
DECLARATIONS ///.
void Aig_ManFanoutStart(Aig_Man_t *p)
FUNCTION DEFINITIONS ///.