39 return Key % TableSize;
47 for ( i =
Ivy_Hash(pObj, p->nTableSize); p->pTable[i]; i = (i+1) % p->nTableSize )
48 if ( p->pTable[i] == pObj->
Id )
82 for ( i =
Ivy_Hash(pObj, p->nTableSize); p->pTable[i]; i = (i+1) % p->nTableSize )
111 if ( (pObj->
Id & 63) == 0 )
143 i = pPlace - p->pTable;
144 for ( i = (i+1) % p->nTableSize; p->pTable[i]; i = (i+1) % p->nTableSize )
190 for ( i = 0; i < p->nTableSize; i++ )
191 Counter += (p->pTable[i] != 0);
208 int * pTableOld, * pPlace;
209 int nTableSizeOld,
Counter, nEntries, e;
213 pTableOld = p->pTable;
214 nTableSizeOld = p->nTableSize;
217 p->pTable =
ABC_ALLOC(
int, p->nTableSize );
218 memset( p->pTable, 0,
sizeof(
int) * p->nTableSize );
221 for ( e = 0; e < nTableSizeOld; e++ )
223 if ( pTableOld[e] == 0 )
229 *pPlace = pTableOld[e];
253 for ( i = 0; i < p->nTableSize; i++ )
259 printf(
"%d ", Counter );
static int Ivy_ObjIsHash(Ivy_Obj_t *pObj)
static int Ivy_IsComplement(Ivy_Obj_t *p)
static ABC_NAMESPACE_IMPL_START unsigned Ivy_Hash(Ivy_Obj_t *pObj, int TableSize)
DECLARATIONS ///.
static int Abc_PrimeCudd(unsigned int p)
Ivy_Obj_t * Ivy_TableLookup(Ivy_Man_t *p, Ivy_Obj_t *pObj)
FUNCTION DEFINITIONS ///.
int Ivy_TableCountEntries(Ivy_Man_t *p)
static int Ivy_ObjFaninId1(Ivy_Obj_t *pObj)
void Ivy_TableDelete(Ivy_Man_t *p, Ivy_Obj_t *pObj)
#define ABC_ALLOC(type, num)
static abctime Abc_Clock()
static int Ivy_ObjIsLatch(Ivy_Obj_t *pObj)
static Ivy_Obj_t * Ivy_ObjFanin1(Ivy_Obj_t *pObj)
static Ivy_Obj_t * Ivy_ObjFanin0(Ivy_Obj_t *pObj)
static int Ivy_ObjFaninId0(Ivy_Obj_t *pObj)
static int Ivy_ObjFaninC1(Ivy_Obj_t *pObj)
static Ivy_Obj_t * Ivy_ManObj(Ivy_Man_t *p, int i)
void Ivy_TableUpdate(Ivy_Man_t *p, Ivy_Obj_t *pObj, int ObjIdNew)
#define ABC_NAMESPACE_IMPL_END
static Ivy_Type_t Ivy_ObjType(Ivy_Obj_t *pObj)
static Ivy_Obj_t * Ivy_ObjChild0(Ivy_Obj_t *pObj)
typedefABC_NAMESPACE_HEADER_START struct Ivy_Man_t_ Ivy_Man_t
INCLUDES ///.
#define ABC_NAMESPACE_IMPL_START
static int Ivy_ObjIsExor(Ivy_Obj_t *pObj)
static int Ivy_ManHashObjNum(Ivy_Man_t *p)
static void Ivy_TableResize(Ivy_Man_t *p)
static int * Ivy_TableFind(Ivy_Man_t *p, Ivy_Obj_t *pObj)
static Ivy_Obj_t * Ivy_ObjChild1(Ivy_Obj_t *pObj)
static unsigned int Cudd_PrimeAig(unsigned int p)
void Ivy_TableProfile(Ivy_Man_t *p)
void Ivy_TableInsert(Ivy_Man_t *p, Ivy_Obj_t *pObj)
static int Ivy_ObjFaninC0(Ivy_Obj_t *pObj)
static Ivy_Init_t Ivy_ObjInit(Ivy_Obj_t *pObj)