Bug fix in the timeout mechanism of 'pdr'.

This commit is contained in:
Alan Mishchenko 2013-05-17 08:38:46 -07:00
parent 7be3e3e6b4
commit 1dd80e1cfa
1 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ static inline sat_solver * Pdr_ManNewSolver1( sat_solver * pSat, Pdr_Man_t * p,
Vec_IntWriteEntry( p->vVar2Reg, Pdr_ObjSatVar(p, k, pObj), i );
}
pSat = (sat_solver *)Cnf_DataWriteIntoSolverInt( pSat, p->pCnf1, 1, fInit );
sat_solver_set_runtime_limit( pSat, (int)p->timeToStop );
sat_solver_set_runtime_limit( pSat, p->timeToStop );
return pSat;
}
@ -325,7 +325,7 @@ static inline sat_solver * Pdr_ManNewSolver2( sat_solver * pSat, Pdr_Man_t * p,
// start the SAT solver
// pSat = sat_solver_new();
sat_solver_setnvars( pSat, 500 );
sat_solver_set_runtime_limit( pSat, (int)p->timeToStop );
sat_solver_set_runtime_limit( pSat, p->timeToStop );
return pSat;
}