diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-08-18 10:42:57 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-08-18 10:42:57 -0700 |
commit | b7c8f9188d99b4ab509c57f75b95f26de4fb656c (patch) | |
tree | 1dd980e00284ec679e65e5c38ca938da2b4c890c /src/map/if/ifMap.c | |
parent | 3459683e3b5ee9bb3f155fff3bf1041c840266c4 (diff) | |
download | abc-b7c8f9188d99b4ab509c57f75b95f26de4fb656c.tar.gz abc-b7c8f9188d99b4ab509c57f75b95f26de4fb656c.tar.bz2 abc-b7c8f9188d99b4ab509c57f75b95f26de4fb656c.zip |
Adding code to count statistics about decomposable LUT5.
Diffstat (limited to 'src/map/if/ifMap.c')
-rw-r--r-- | src/map/if/ifMap.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/if/ifMap.c b/src/map/if/ifMap.c index 7520c325..853e9cb0 100644 --- a/src/map/if/ifMap.c +++ b/src/map/if/ifMap.c @@ -273,6 +273,16 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep p->nCutsUseless[pCut->nLeaves] += pCut->fUseless; p->nCutsCountAll++; p->nCutsCount[pCut->nLeaves]++; + if ( p->pPars->fVerbose && pCut->nLeaves == 5 ) + { + extern int If_CluCheckDecIn( word t, int nVars ); + extern int If_CluCheckDecOut( word t, int nVars ); + unsigned TruthU = *If_CutTruth(pCut); + word Truth = (((word)TruthU << 32) | (word)TruthU); + p->nCuts5++; + if ( If_CluCheckDecIn( Truth, 5 ) || If_CluCheckDecOut( Truth, 5 ) ) + p->nCuts5a++; + } } } if ( p->pPars->fUseDsd ) |