diff options
Diffstat (limited to 'src/base/abci')
-rw-r--r-- | src/base/abci/abc.c | 7 | ||||
-rw-r--r-- | src/base/abci/abcIvy.c | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 035f0d4c..e6d2f052 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -10633,6 +10633,13 @@ int Abc_CommandIProve( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_PrintTime( 1, "Time", clock() - clk ); // replace the current network Abc_FrameReplaceCurrentNetwork( pAbc, pNtkTemp ); + // update counter example + if ( RetValue == 0 && Abc_NtkLatchNum(pNtkTemp) == 0 ) + { + Abc_Cex_t * pCex = Abc_CexDeriveFromCombModel( pNtkTemp->pModel, Abc_NtkPiNum(pNtkTemp), 0, iOut ); + Abc_FrameReplaceCex( pAbc, &pCex ); + + } return 0; usage: diff --git a/src/base/abci/abcIvy.c b/src/base/abci/abcIvy.c index 092350ca..52ac5192 100644 --- a/src/base/abci/abcIvy.c +++ b/src/base/abci/abcIvy.c @@ -520,8 +520,7 @@ int Abc_NtkIvyProve( Abc_Ntk_t ** ppNtk, void * pPars ) pFanin = Abc_ObjFanin0(pObj); if ( Abc_ObjFanin0(pObj)->fPhase != (unsigned)Abc_ObjFaninC0(pObj) ) { - pNtk->pModel = ABC_ALLOC( int, Abc_NtkPiNum(pNtk) ); - memset( pNtk->pModel, 0, sizeof(int) * Abc_NtkPiNum(pNtk) ); + pNtk->pModel = ABC_CALLOC( int, Abc_NtkCiNum(pNtk) ); return 0; } |