diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-04-04 13:14:16 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-04-04 13:14:16 -0700 |
commit | f6ae0e41f338a109ad2c973ace13b728f4947e14 (patch) | |
tree | 7092fea7145cfce4a903d8e8878fe9ec547ae2f1 /src/sat/bmc/bmcCexTools.c | |
parent | 11bab8caf92416c6e9bf9dc7fb187a0d49d756b0 (diff) | |
download | abc-f6ae0e41f338a109ad2c973ace13b728f4947e14.tar.gz abc-f6ae0e41f338a109ad2c973ace13b728f4947e14.tar.bz2 abc-f6ae0e41f338a109ad2c973ace13b728f4947e14.zip |
Better CEX minimization and renaming of write_counter into write_cex.
Diffstat (limited to 'src/sat/bmc/bmcCexTools.c')
-rw-r--r-- | src/sat/bmc/bmcCexTools.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sat/bmc/bmcCexTools.c b/src/sat/bmc/bmcCexTools.c index 811a90b7..05dade97 100644 --- a/src/sat/bmc/bmcCexTools.c +++ b/src/sat/bmc/bmcCexTools.c @@ -348,7 +348,7 @@ int Bmc_CexVerify( Gia_Man_t * p, Abc_Cex_t * pCex, Abc_Cex_t * pCexCare ) Gia_Obj_t * pObj; int i, k; assert( pCex->nRegs > 0 ); - assert( pCexCare->nRegs == 0 ); +// assert( pCexCare->nRegs == 0 ); Gia_ObjTerSimSet0( Gia_ManConst0(p) ); Gia_ManForEachRi( p, pObj, k ) Gia_ObjTerSimSet0( pObj ); @@ -356,7 +356,7 @@ int Bmc_CexVerify( Gia_Man_t * p, Abc_Cex_t * pCex, Abc_Cex_t * pCexCare ) { Gia_ManForEachPi( p, pObj, k ) { - if ( !Abc_InfoHasBit( pCexCare->pData, i * pCexCare->nPis + k ) ) + if ( !Abc_InfoHasBit( pCexCare->pData, pCexCare->nRegs + i * pCexCare->nPis + k ) ) Gia_ObjTerSimSetX( pObj ); else if ( Abc_InfoHasBit( pCex->pData, pCex->nRegs + i * pCex->nPis + k ) ) Gia_ObjTerSimSet1( pObj ); |