Commit f14f5c92 by Alan Mishchenko

Fixing obscure memory problem with 'int' on large designs.

parent c1edeccc
...@@ -159,7 +159,8 @@ clk = clock(); ...@@ -159,7 +159,8 @@ clk = clock();
if ( pPars->fUseBackward ) if ( pPars->fUseBackward )
p->pCnfFrames = Cnf_Derive( p->pFrames, Aig_ManPoNum(p->pFrames) ); p->pCnfFrames = Cnf_Derive( p->pFrames, Aig_ManPoNum(p->pFrames) );
else else
p->pCnfFrames = Cnf_Derive( p->pFrames, 0 ); // p->pCnfFrames = Cnf_Derive( p->pFrames, 0 );
p->pCnfFrames = Cnf_DeriveSimple( p->pFrames, 0 );
p->timeCnf += clock() - clk; p->timeCnf += clock() - clk;
// report statistics // report statistics
if ( pPars->fVerbose ) if ( pPars->fVerbose )
...@@ -226,7 +227,20 @@ p->timeCnf += clock() - clk; ...@@ -226,7 +227,20 @@ p->timeCnf += clock() - clk;
printf( "Found a real counterexample in frame %d.\n", p->nFrames ); printf( "Found a real counterexample in frame %d.\n", p->nFrames );
p->timeTotal = clock() - clkTotal; p->timeTotal = clock() - clkTotal;
*piFrame = p->nFrames; *piFrame = p->nFrames;
pAig->pSeqModel = (Abc_Cex_t *)Inter_ManGetCounterExample( pAig, p->nFrames+1, pPars->fVerbose ); // pAig->pSeqModel = (Abc_Cex_t *)Inter_ManGetCounterExample( pAig, p->nFrames+1, pPars->fVerbose );
{
int RetValue;
Saig_ParBmc_t ParsBmc, * pParsBmc = &ParsBmc;
Saig_ParBmcSetDefaultParams( pParsBmc );
pParsBmc->nConfLimit = 100000000;
pParsBmc->nStart = p->nFrames;
pParsBmc->fVerbose = pPars->fVerbose;
RetValue = Saig_ManBmcScalable( pAig, pParsBmc );
if ( RetValue == 1 )
printf( "Error: The problem should be SAT but it is UNSAT.\n" );
else if ( RetValue == -1 )
printf( "Error: The problem timed out.\n" );
}
Inter_ManStop( p ); Inter_ManStop( p );
Inter_CheckStop( pCheck ); Inter_CheckStop( pCheck );
return 0; return 0;
......
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