From: vijay_ganesh Date: Wed, 28 Oct 2009 00:14:38 +0000 (+0000) Subject: changed the undefined return value from MINISAT to True. Saves 30% on all regressions X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=2489cbe9480230f49ca2985f2559452203a4d774;p=francis%2Fstp.git changed the undefined return value from MINISAT to True. Saves 30% on all regressions git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@347 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/to-sat/ToSAT.cpp b/src/to-sat/ToSAT.cpp index 60b4f34..82bdd5c 100644 --- a/src/to-sat/ToSAT.cpp +++ b/src/to-sat/ToSAT.cpp @@ -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; } }