fix a race problem. due to interrupt mechanism minisat returned true instead of undef.
authorKshitij Bansal <kshitij@cs.nyu.edu>
Wed, 14 Nov 2012 00:29:50 +0000 (00:29 +0000)
committerKshitij Bansal <kshitij@cs.nyu.edu>
Wed, 14 Nov 2012 00:29:50 +0000 (00:29 +0000)
src/prop/minisat/core/Solver.cc

index b5d524c31a6d34ebb77720251773433af3e2679c..ba36ac8797605c2abb7a893226bc570ee3c57e2d 100644 (file)
@@ -1250,6 +1250,9 @@ lbool Solver::solve_()
         curr_restarts++;
     }
 
+    if(!withinBudget())
+        status = l_Undef;
+
     if (verbosity >= 1)
         printf("===============================================================================\n");