]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
changed the undefined return value from MINISAT to True. Saves 30% on all regressions
authorvijay_ganesh <vijay_ganesh@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 28 Oct 2009 00:14:38 +0000 (00:14 +0000)
committervijay_ganesh <vijay_ganesh@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 28 Oct 2009 00:14:38 +0000 (00:14 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@347 e59a4935-1847-0410-ae03-e826735625c1

src/to-sat/ToSAT.cpp

index 60b4f34dc6c80d1fde490628ece4eb10c8c5abe9..82bdd5c20c4f6482d7d7aa929f38a47455be2454 100644 (file)
@@ -132,19 +132,18 @@ namespace BEEV
   } //end of toSATandSolve()
 
   // Looks up truth value of ASTNode SYMBOL in MINISAT satisfying
-  // assignment.  Returns ASTTrue if true, ASTFalse if false or
-  // undefined.
+  // assignment.
   ASTNode ToSAT::SymbolTruthValue(MINISAT::Solver &newS, ASTNode form)
   {
     MINISAT::Var satvar = _ASTNode_to_SATVar_Map[form];
-    if (newS.model[satvar] == MINISAT::l_True)
+    if (newS.model[satvar] == MINISAT::l_False)
       {
-        return ASTTrue;
+        return ASTFalse;
       }
     else
       {
-        // False or undefined.
-        return ASTFalse;
+        // True or undefined.
+        return ASTTrue;
       }
   }