diff options
Diffstat (limited to 'src/decision/justification_heuristic.cpp')
-rw-r--r-- | src/decision/justification_heuristic.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/decision/justification_heuristic.cpp b/src/decision/justification_heuristic.cpp index e86b03258..62bd71f6a 100644 --- a/src/decision/justification_heuristic.cpp +++ b/src/decision/justification_heuristic.cpp @@ -92,10 +92,17 @@ bool JustificationHeuristic::findSplitterRec(Node node, SatValue desiredVal, Sat if (checkJustified(node)) return false; SatValue litVal = tryGetSatValue(node); + +#ifdef CVC4_ASSERTIONS bool litPresent = false; +#endif + if(d_decisionEngine->hasSatLiteral(node) ) { SatLiteral lit = d_decisionEngine->getSatLiteral(node); + +#ifdef CVC4_ASSERTIONS litPresent = true; +#endif SatVariable v = lit.getSatVariable(); // if (lit.isFalse() || lit.isTrue()) return false; @@ -107,7 +114,6 @@ bool JustificationHeuristic::findSplitterRec(Node node, SatValue desiredVal, Sat Trace("decision") << "no sat literal for this node" << std::endl; } - /* You'd better know what you want */ Assert(desiredVal != SAT_VALUE_UNKNOWN, "expected known value"); |