mirror of https://github.com/YosysHQ/abc.git
Limiting runtime limit checks in 'pdr'.
This commit is contained in:
parent
77cef7ca10
commit
cec6bd645e
|
|
@ -1576,7 +1576,7 @@ static lbool sat_solver_search(sat_solver* s, ABC_INT64_T nof_conflicts)
|
|||
int next;
|
||||
|
||||
// Reached bound on number of conflicts:
|
||||
if ((nof_conflicts >= 0 && conflictC >= nof_conflicts) || (s->nRuntimeLimit && Abc_Clock() > s->nRuntimeLimit)){
|
||||
if ((nof_conflicts >= 0 && conflictC >= nof_conflicts) || (s->nRuntimeLimit && (s->stats.conflicts & 63) == 0 && Abc_Clock() > s->nRuntimeLimit)){
|
||||
s->progress_estimate = sat_solver_progress(s);
|
||||
sat_solver_canceluntil(s,s->root_level);
|
||||
veci_delete(&learnt_clause);
|
||||
|
|
|
|||
|
|
@ -1037,7 +1037,7 @@ static lbool solver2_search(sat_solver2* s, ABC_INT64_T nof_conflicts)
|
|||
// NO CONFLICT
|
||||
int next;
|
||||
|
||||
if ((nof_conflicts >= 0 && conflictC >= nof_conflicts) || (s->nRuntimeLimit && Abc_Clock() > s->nRuntimeLimit)){
|
||||
if ((nof_conflicts >= 0 && conflictC >= nof_conflicts) || (s->nRuntimeLimit && (s->stats.conflicts & 63) == 0 && Abc_Clock() > s->nRuntimeLimit)){
|
||||
// Reached bound on number of conflicts:
|
||||
s->progress_estimate = solver2_progress(s);
|
||||
solver2_canceluntil(s,s->root_level);
|
||||
|
|
|
|||
Loading…
Reference in New Issue