mirror of https://github.com/YosysHQ/abc.git
Bug fix in the timeout mechanism of 'pdr'.
This commit is contained in:
parent
7be3e3e6b4
commit
1dd80e1cfa
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue