From 4af39856b2929bae67c5bd46baaa20602ad24a71 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sat, 3 Jan 2015 22:59:34 -0800 Subject: Returning multiple counter-examples. --- src/sat/bmc/bmcChain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3