From d401cfa6793a76758917fece545103377f3814ca Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 5 Oct 2005 08:01:00 -0700 Subject: Version abc51005 --- src/sat/asat/solver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sat/asat/solver.c') diff --git a/src/sat/asat/solver.c b/src/sat/asat/solver.c index d248b115..3927fac3 100644 --- a/src/sat/asat/solver.c +++ b/src/sat/asat/solver.c @@ -1099,7 +1099,7 @@ bool solver_solve(solver* s, lit* begin, lit* end, int nSeconds) nof_conflicts *= 1.5; nof_learnts *= 1.1; // if the runtime limit is exceeded, quit the restart loop - if ( clock() - timeStart >= nSeconds * CLOCKS_PER_SEC ) + if ( (nSeconds >= 0) && (clock() - timeStart >= nSeconds * CLOCKS_PER_SEC) ) break; } if (s->verbosity >= 1) -- cgit v1.2.3