summaryrefslogtreecommitdiffstats
path: root/src/sat/bsat/satSolver2.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-05-27 12:07:26 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-05-27 12:07:26 -0700
commit446cfcf8a6f4f15df46a973737a5280dea43cb14 (patch)
treec0adbe9a38b27cafbbde041573081e8f1997dd48 /src/sat/bsat/satSolver2.c
parentc27556c5692f41d2ac4fb7c1705c574c0337b684 (diff)
downloadabc-446cfcf8a6f4f15df46a973737a5280dea43cb14.tar.gz
abc-446cfcf8a6f4f15df46a973737a5280dea43cb14.tar.bz2
abc-446cfcf8a6f4f15df46a973737a5280dea43cb14.zip
Changing how often timeout is checked in the SAT solver and several application packages.
Diffstat (limited to 'src/sat/bsat/satSolver2.c')
-rw-r--r--src/sat/bsat/satSolver2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sat/bsat/satSolver2.c b/src/sat/bsat/satSolver2.c
index a3dad126..12d74c0d 100644
--- a/src/sat/bsat/satSolver2.c
+++ b/src/sat/bsat/satSolver2.c
@@ -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){
+ if ((nof_conflicts >= 0 && conflictC >= nof_conflicts) || (s->nRuntimeLimit && clock() > s->nRuntimeLimit)){
// Reached bound on number of conflicts:
s->progress_estimate = solver2_progress(s);
solver2_canceluntil(s,s->root_level);