Commit 6dc3a0a2 by Alan Mishchenko

Bug fix in bmc3.

parent 1f9abfd7
...@@ -1240,12 +1240,17 @@ int Saig_ManBmcRunTerSim_rec( Gia_ManBmc_t * p, Aig_Obj_t * pObj, int iFrame ) ...@@ -1240,12 +1240,17 @@ int Saig_ManBmcRunTerSim_rec( Gia_ManBmc_t * p, Aig_Obj_t * pObj, int iFrame )
***********************************************************************/ ***********************************************************************/
int Saig_ManBmcCreateCnf( Gia_ManBmc_t * p, Aig_Obj_t * pObj, int iFrame ) int Saig_ManBmcCreateCnf( Gia_ManBmc_t * p, Aig_Obj_t * pObj, int iFrame )
{ {
int Lit;
// perform terminary simulation // perform terminary simulation
int Value = Saig_ManBmcRunTerSim_rec( p, pObj, iFrame ); int Value = Saig_ManBmcRunTerSim_rec( p, pObj, iFrame );
if ( Value != SAIG_TER_UND ) if ( Value != SAIG_TER_UND )
return (int)(Value == SAIG_TER_ONE); return (int)(Value == SAIG_TER_ONE);
// construct CNF if value is ternary // construct CNF if value is ternary
return Saig_ManBmcCreateCnf_rec( p, pObj, iFrame ); Lit = Saig_ManBmcCreateCnf_rec( p, pObj, iFrame );
// extend the SAT solver
if ( p->nSatVars > sat_solver_nvars(p->pSat) )
sat_solver_setnvars( p->pSat, p->nSatVars );
return Lit;
} }
......
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