38 return Key % TableSize;
47 for ( ppEntry = p->pTable +
Hop_Hash(pObj, p->nTableSize); *ppEntry; ppEntry = &(*ppEntry)->
pNext )
48 if ( *ppEntry == pObj )
50 assert( *ppEntry == NULL );
79 for ( pEntry = p->pTable[
Hop_Hash(pGhost, p->nTableSize)]; pEntry; pEntry = pEntry->
pNext )
108 assert( *ppPlace == NULL );
128 assert( *ppPlace == pObj );
130 *ppPlace = pObj->
pNext;
149 for ( i = 0; i < p->nTableSize; i++ )
150 for ( pEntry = p->pTable[i]; pEntry; pEntry = pEntry->
pNext )
170 int nTableSizeOld,
Counter, nEntries, i;
174 pTableOld = p->pTable;
175 nTableSizeOld = p->nTableSize;
182 for ( i = 0; i < nTableSizeOld; i++ )
183 for ( pEntry = pTableOld[i], pNext = pEntry? pEntry->
pNext : NULL; pEntry; pEntry = pNext, pNext = pEntry? pEntry->
pNext : NULL )
187 assert( *ppPlace == NULL );
190 pEntry->
pNext = NULL;
194 assert( Counter == nEntries );
216 for ( i = 0; i < p->nTableSize; i++ )
219 for ( pEntry = p->pTable[i]; pEntry; pEntry = pEntry->
pNext )
222 printf(
"%d ", Counter );
static Hop_Obj_t * Hop_ObjChild0(Hop_Obj_t *pObj)
static Hop_Obj_t * Hop_ObjFanin1(Hop_Obj_t *pObj)
static int Abc_PrimeCudd(unsigned int p)
static int Hop_ObjRefs(Hop_Obj_t *pObj)
static Hop_Type_t Hop_ObjType(Hop_Obj_t *pObj)
void Hop_TableInsert(Hop_Man_t *p, Hop_Obj_t *pObj)
#define ABC_ALLOC(type, num)
static void Hop_TableResize(Hop_Man_t *p)
static abctime Abc_Clock()
static int Hop_ObjFaninC1(Hop_Obj_t *pObj)
static ABC_NAMESPACE_IMPL_START unsigned long Hop_Hash(Hop_Obj_t *pObj, int TableSize)
DECLARATIONS ///.
Hop_Obj_t * Hop_TableLookup(Hop_Man_t *p, Hop_Obj_t *pGhost)
FUNCTION DEFINITIONS ///.
static Hop_Obj_t ** Hop_TableFind(Hop_Man_t *p, Hop_Obj_t *pObj)
#define ABC_NAMESPACE_IMPL_END
static Hop_Obj_t * Hop_ObjChild1(Hop_Obj_t *pObj)
static int Hop_IsComplement(Hop_Obj_t *p)
static int Hop_ObjIsExor(Hop_Obj_t *pObj)
static Hop_Obj_t * Hop_ObjFanin0(Hop_Obj_t *pObj)
#define ABC_NAMESPACE_IMPL_START
static int Hop_ObjFaninC0(Hop_Obj_t *pObj)
void Hop_TableDelete(Hop_Man_t *p, Hop_Obj_t *pObj)
static int Hop_ManNodeNum(Hop_Man_t *p)
typedefABC_NAMESPACE_HEADER_START struct Hop_Man_t_ Hop_Man_t
INCLUDES ///.
void Hop_TableProfile(Hop_Man_t *p)
int Hop_TableCountEntries(Hop_Man_t *p)