Commit 71fd9165 by Alan Mishchenko

Correctly updating the failed output when recording the CEX in bmc3 -a.

parent 5a20a27c
......@@ -1772,6 +1772,7 @@ nTimeSat += clkSatRun;
// check if other outputs failed under the same counter-example
Saig_ManForEachPo( pAig, pObj, k )
{
Abc_Cex_t * pCexDup;
if ( k >= Saig_ManPoNum(pAig) )
break;
// skip solved outputs
......@@ -1807,7 +1808,10 @@ nTimeSat += clkSatRun;
Gia_ManToBridgeResult( stdout, 0, pCexNew0, pCexNew0->iPo );
}
// remember solved output
Vec_PtrWriteEntry( p->vCexes, k, Abc_CexDup(pCexNew, Saig_ManRegNum(pAig)) );
//Vec_PtrWriteEntry( p->vCexes, k, Abc_CexDup(pCexNew, Saig_ManRegNum(pAig)) );
pCexDup = Abc_CexDup(pCexNew, Saig_ManRegNum(pAig));
pCexDup->iPo = k;
Vec_PtrWriteEntry( p->vCexes, k, pCexDup );
}
Abc_CexFreeP( &pCexNew0 );
Abc_CexFree( pCexNew );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment