56 if (
p->nCutsPeak <
p->nCutsAlloc -
p->nCutsDealloc )
57 p->nCutsPeak =
p->nCutsAlloc -
p->nCutsDealloc;
99 for ( i = 0; i < (int)pCut1->
nLeaves; i++ )
122 Cut_Cut_t * pHead = NULL, ** ppTail = &pHead;
129 memcpy( pCopy, pTemp, (
size_t)
p->EntrySize );
131 ppTail = &pCopy->
pNext;
187 Cut_Cut_t * pList = NULL, ** ppTail = &pList;
189 while ( pList1 && pList2 )
194 pList1 = pList1->
pNext;
199 pList2 = pList2->
pNext;
202 ppTail = &pCut->
pNext;
204 *ppTail = pList1? pList1: pList2;
241 if (
p->pParams->fSeq )
246 pCut->
uSign = Cut_NodeSign( Node );
247 if (
p->pParams->fTruth )
255 unsigned * pTruth = Cut_CutReadTruth(pCut);
257 for ( i = 0; i <
p->nTruthWords; i++ )
258 pTruth[i] = 0xAAAAAAAA;
280 printf(
"%d : {", pCut->
nLeaves );
281 for ( i = 0; i < (int)pCut->
nLeaves; i++ )
290 printf(
" %d", pCut->
pLeaves[i] );
311 for ( pCut = pList; pCut; pCut = pCut->
pNext )
329 printf(
"%d : %5d %5d %5d %5d %5d\n",
337 printf(
"%d : %5d %5d %5d %5d %5d\n",
346 printf(
"Cannot merge\n" );
348 printf(
"%d : %5d %5d %5d %5d %5d\n",
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
void Cut_CutPrintList(Cut_Cut_t *pList, int fSeq)
void Cut_CutRecycleList(Cut_Man_t *p, Cut_Cut_t *pList)
Cut_Cut_t * Cut_CutDupList(Cut_Man_t *p, Cut_Cut_t *pList)
int Cut_CutCountList(Cut_Cut_t *pList)
void Cut_CutNumberList(Cut_Cut_t *pList)
void Cut_CutPrintMerge(Cut_Cut_t *pCut, Cut_Cut_t *pCut0, Cut_Cut_t *pCut1)
Cut_Cut_t * Cut_CutMergeLists(Cut_Cut_t *pList1, Cut_Cut_t *pList2)
ABC_NAMESPACE_IMPL_START Cut_Cut_t * Cut_CutAlloc(Cut_Man_t *p)
DECLARATIONS ///.
void Cut_CutPrint(Cut_Cut_t *pCut, int fSeq)
Cut_Cut_t * Cut_CutCreateTriv(Cut_Man_t *p, int Node)
int Cut_CutCompare(Cut_Cut_t *pCut1, Cut_Cut_t *pCut2)
void Cut_CutRecycle(Cut_Man_t *p, Cut_Cut_t *pCut)
#define Cut_ListForEachCut(pList, pCut)
#define Cut_ListForEachCutSafe(pList, pCut, pCut2)
struct Cut_ManStruct_t_ Cut_Man_t
BASIC TYPES ///.
struct Cut_CutStruct_t_ Cut_Cut_t