47 if ( nCap > 0 && nCap < 8 )
139 if ( p->
nCap >= nCapMin )
215 for ( i = 0; i < p->
nSize; i++ )
216 if ( p->
pArray[i] == Entry )
239 for ( i = p->
nSize-1; i > 0; i-- )
243 if ( pNode1 >= pNode2 )
264 for ( i = 0; i < p->
nSize; i++ )
265 if ( p->
pArray[i] == pNode )
288 for ( i = p->
nSize-1; i > 0; i-- )
313 for ( i = 0; i < p->
nSize; i++ )
314 if ( p->
pArray[i] == pNode )
350 for ( i = 0; i < p->
nSize; i++ )
351 if ( p->
pArray[i] == Entry )
354 for ( i++; i < p->
nSize; i++ )
372 assert( i >= 0 && i < p->nSize );
389 assert( i >= 0 && i < p->nSize );
408 if ( Level1 < Level2 )
410 if ( Level1 > Level2 )
430 if ( Level1 > Level2 )
432 if ( Level1 < Level2 )
475 if ( nRefs1 < nRefs2 )
477 if ( nRefs1 > nRefs2 )
483 if ( nRefs1 < nRefs2 )
485 if ( nRefs1 > nRefs2 )
int Fraig_NodeVecReadSize(Fraig_NodeVec_t *p)
Fraig_Node_t * Fraig_NodeVecReadEntry(Fraig_NodeVec_t *p, int i)
void Fraig_NodeVecSortByLevel(Fraig_NodeVec_t *p, int fIncreasing)
void Fraig_NodeVecFree(Fraig_NodeVec_t *p)
#define ABC_REALLOC(type, obj, num)
ABC_NAMESPACE_IMPL_START Fraig_NodeVec_t * Fraig_NodeVecAlloc(int nCap)
DECLARATIONS ///.
#define ABC_ALLOC(type, num)
Fraig_Node_t ** Fraig_NodeVecReadArray(Fraig_NodeVec_t *p)
void Fraig_NodeVecPushOrder(Fraig_NodeVec_t *p, Fraig_Node_t *pNode)
void Fraig_NodeVecRemove(Fraig_NodeVec_t *p, Fraig_Node_t *Entry)
void Fraig_NodeVecShrink(Fraig_NodeVec_t *p, int nSizeNew)
int Fraig_NodeVecCompareLevelsIncreasing(Fraig_Node_t **pp1, Fraig_Node_t **pp2)
Fraig_NodeVec_t * Fraig_NodeVecDup(Fraig_NodeVec_t *pVec)
int Fraig_NodeVecPushUnique(Fraig_NodeVec_t *p, Fraig_Node_t *Entry)
#define ABC_NAMESPACE_IMPL_END
int Fraig_NodeVecCompareNumbers(Fraig_Node_t **pp1, Fraig_Node_t **pp2)
int Fraig_NodeVecCompareLevelsDecreasing(Fraig_Node_t **pp1, Fraig_Node_t **pp2)
#define ABC_NAMESPACE_IMPL_START
void Fraig_NodeVecWriteEntry(Fraig_NodeVec_t *p, int i, Fraig_Node_t *Entry)
Fraig_Node_t * Fraig_NodeVecPop(Fraig_NodeVec_t *p)
int Fraig_NodeVecPushUniqueOrder(Fraig_NodeVec_t *p, Fraig_Node_t *pNode)
void Fraig_NodeVecClear(Fraig_NodeVec_t *p)
void Fraig_NodeVecSortByNumber(Fraig_NodeVec_t *p)
void Fraig_NodeVecGrow(Fraig_NodeVec_t *p, int nCapMin)
int Fraig_NodeVecCompareRefCounts(Fraig_Node_t **pp1, Fraig_Node_t **pp2)
void Fraig_NodeVecPushOrderByLevel(Fraig_NodeVec_t *p, Fraig_Node_t *pNode)
void Fraig_NodeVecSortByRefCount(Fraig_NodeVec_t *p)
int Fraig_NodeVecPushUniqueOrderByLevel(Fraig_NodeVec_t *p, Fraig_Node_t *pNode)
void Fraig_NodeVecPush(Fraig_NodeVec_t *p, Fraig_Node_t *Entry)