diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-04-03 12:06:09 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-04-03 12:06:09 -0700 |
commit | 3db3be2d6130324f9c8d685c4dc04d7069fcab12 (patch) | |
tree | 0fb78b94b3134f43a2baa13d1f4c64e8aef88897 /src/map/if/ifDsd.c | |
parent | b21589ea1aa63d3c2045e91dc5817fd8b4c6e13e (diff) | |
download | abc-3db3be2d6130324f9c8d685c4dc04d7069fcab12.tar.gz abc-3db3be2d6130324f9c8d685c4dc04d7069fcab12.tar.bz2 abc-3db3be2d6130324f9c8d685c4dc04d7069fcab12.zip |
Improvements to technology mapping.
Diffstat (limited to 'src/map/if/ifDsd.c')
-rw-r--r-- | src/map/if/ifDsd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/if/ifDsd.c b/src/map/if/ifDsd.c index 135d487f..ac324d13 100644 --- a/src/map/if/ifDsd.c +++ b/src/map/if/ifDsd.c @@ -1787,9 +1787,10 @@ int If_DsdManCompute( If_DsdMan_t * p, word * pTruth, int nLeaves, unsigned char word pCopy[DAU_MAX_WORD], * pRes; char pDsd[DAU_MAX_STR]; int iDsd, nSizeNonDec, nSupp = 0; + int nWords = Abc_TtWordNum(nLeaves); abctime clk; assert( nLeaves <= DAU_MAX_VAR ); - Abc_TtCopy( pCopy, pTruth, p->nWords, 0 ); + Abc_TtCopy( pCopy, pTruth, nWords, 0 ); clk = Abc_Clock(); nSizeNonDec = Dau_DsdDecompose( pCopy, nLeaves, 0, 1, pDsd ); p->timeDsd += Abc_Clock() - clk; @@ -1808,7 +1809,7 @@ p->timeCanon += Abc_Clock() - clk; clk = Abc_Clock(); pRes = If_DsdManComputeTruth( p, iDsd, pPerm ); p->timeVerify += Abc_Clock() - clk; - if ( !Abc_TtEqual(pRes, pTruth, p->nWords) ) + if ( !Abc_TtEqual(pRes, pTruth, nWords) ) { // If_DsdManPrint( p, NULL ); printf( "\n" ); |