diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2007-01-15 20:01:00 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2007-01-15 20:01:00 -0800 |
commit | 76bcf6b25411e1b0d73e5dff6c8fd3e2f4bab9e1 (patch) | |
tree | 5956241cd46a10ca868092acec7f94a3fa6df2ad /src/opt/res/resFilter.c | |
parent | 93aedd2c5155478de7602db4db2c2df4c73e32e0 (diff) | |
download | abc-76bcf6b25411e1b0d73e5dff6c8fd3e2f4bab9e1.tar.gz abc-76bcf6b25411e1b0d73e5dff6c8fd3e2f4bab9e1.tar.bz2 abc-76bcf6b25411e1b0d73e5dff6c8fd3e2f4bab9e1.zip |
Version abc70115_2
Diffstat (limited to 'src/opt/res/resFilter.c')
-rw-r--r-- | src/opt/res/resFilter.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/opt/res/resFilter.c b/src/opt/res/resFilter.c index c9615c1e..e2e295a0 100644 --- a/src/opt/res/resFilter.c +++ b/src/opt/res/resFilter.c @@ -6,7 +6,7 @@ PackageName [Resynthesis package.] - Synopsis [] + Synopsis [Filtering resubstitution candidates.] Author [Alan Mishchenko] @@ -42,6 +42,23 @@ ***********************************************************************/ Vec_Ptr_t * Res_FilterCandidates( Res_Win_t * pWin, Res_Sim_t * pSim ) { + unsigned * pInfo; + Abc_Obj_t * pFanin; + int i, RetValue; + // check that the info the node is one + pInfo = Vec_PtrEntry( pSim->vOuts, 1 ); + RetValue = Abc_InfoIsOne( pInfo, pSim->nWordsOut ); + if ( RetValue == 0 ) + printf( "Failed 1!" ); + // collect the fanin info + pInfo = Vec_PtrEntry( pSim->vOuts, 0 ); + Abc_InfoClear( pInfo, pSim->nWordsOut ); + Abc_ObjForEachFanin( pWin->pNode, pFanin, i ) + Abc_InfoOr( pInfo, Vec_PtrEntry( pSim->vOuts, 2+i ), pSim->nWordsOut ); + // check that the simulation info is constant 1 + RetValue = Abc_InfoIsOne( pInfo, pSim->nWordsOut ); + if ( RetValue == 0 ) + printf( "Failed 2!" ); return NULL; } |