]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Bugfix. Simplifying minisat not setting a return code as expected. Copied from my...
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Mon, 11 Jan 2010 15:39:52 +0000 (15:39 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Mon, 11 Jan 2010 15:39:52 +0000 (15:39 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@552 e59a4935-1847-0410-ae03-e826735625c1

src/sat/simp/SimpSolver.C

index 03b19907d495d7d7f09295cf6156383b4c4eaef8..4a3cf10ff790178aacc5db1c9526d253dd5abccb 100644 (file)
@@ -110,6 +110,13 @@ bool SimpSolver::solve(const vec<Lit>& assumps, bool do_simp, bool turn_off_simp
         for (int i = 0; i < extra_frozen.size(); i++)
             setFrozen(extra_frozen[i], false);
 
+    // STP MODIFICATION..
+    // If eliminate(bool) finds that the formula is unsatisfiable. ok may not be set.
+    // We use okay() to check if the function was satisfiable.
+    if (!result)
+               ok=false;
+    // STP MODIFICATION..
+
     return result;
 }