diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-07-30 20:26:17 +0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-07-30 20:26:17 +0700 |
commit | 340e4380e9a7b4b8beb8a6f889d560ff6913bdac (patch) | |
tree | 1f2e6951fc3911bfb446d6625eb60e09b76009be /src/base/abci | |
parent | 43d8b8bece095d86cb927bf1d5ccac9aa1fab4e2 (diff) | |
download | abc-340e4380e9a7b4b8beb8a6f889d560ff6913bdac.tar.gz abc-340e4380e9a7b4b8beb8a6f889d560ff6913bdac.tar.bz2 abc-340e4380e9a7b4b8beb8a6f889d560ff6913bdac.zip |
Changes to enable smarter simulation (bug fix).
Diffstat (limited to 'src/base/abci')
-rw-r--r-- | src/base/abci/abc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 3e2f720e..02ac88c5 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -25279,6 +25279,11 @@ int Abc_CommandAbc9Equiv2( Abc_Frame_t * pAbc, int argc, char ** argv ) } if ( fUseCex ) { + if ( pAbc->pCex == NULL ) + { + Abc_Print( 0, "Abc_CommandAbc9Equiv2(): Counter-example is not available.\n" ); + return 0; + } if ( pAbc->pCex->nPis != Gia_ManPiNum(pAbc->pGia) ) { Abc_Print( -1, "Abc_CommandAbc9Equiv2(): The number of PIs differs in cex (%d) and in AIG (%d).\n", @@ -25438,6 +25443,11 @@ int Abc_CommandAbc9Equiv3( Abc_Frame_t * pAbc, int argc, char ** argv ) } if ( fUseCex ) { + if ( fMiter ) + { + Abc_Print( 0, "Abc_CommandAbc9Equiv3(): Considering the miter as a circuit because the CEX is given.\n" ); + fMiter = 0; + } if ( pAbc->pCex == NULL ) { Abc_Print( 0, "Abc_CommandAbc9Equiv3(): Counter-example is not available.\n" ); |