summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-01-03 22:59:34 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2015-01-03 22:59:34 -0800
commit4af39856b2929bae67c5bd46baaa20602ad24a71 (patch)
tree7eb6218e238ab8b84f78beaf3f75773de7991a4d
parent3b9e363ef2cdbf5e78030a302588263a6373b981 (diff)
downloadabc-4af39856b2929bae67c5bd46baaa20602ad24a71.tar.gz
abc-4af39856b2929bae67c5bd46baaa20602ad24a71.tar.bz2
abc-4af39856b2929bae67c5bd46baaa20602ad24a71.zip
Returning multiple counter-examples.
-rw-r--r--src/sat/bmc/bmcChain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sat/bmc/bmcChain.c b/src/sat/bmc/bmcChain.c
index 5c5af6c2..6ef96560 100644
--- a/src/sat/bmc/bmcChain.c
+++ b/src/sat/bmc/bmcChain.c
@@ -342,9 +342,10 @@ int Bmc_ChainTest( Gia_Man_t * p, int nFrameMax, int nConfMax, int fVerbose, int
vOutputs = Bmc_ChainFindFailedOutputs( pNew, pvCexes ? *pvCexes : NULL );
assert( Vec_IntFind(vOutputs, pCex->iPo) >= 0 );
// save the counter-example
- //Abc_CexFree( pCex );
if ( pvCexes )
Vec_PtrPush( *pvCexes, pCex );
+ else
+ Abc_CexFree( pCex );
clkSat += Abc_Clock() - clk2;
// remove them from the AIG
clk2 = Abc_Clock();