From: Kshitij Bansal Date: Sun, 12 Oct 2014 00:15:32 +0000 (-0400) Subject: fix statistic in decision engine X-Git-Tag: cvc5-1.0.0~6550^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c95713d981b513d00f9f665288c574ddc31eaf89;p=cvc5.git fix statistic in decision engine --- diff --git a/src/decision/justification_heuristic.cpp b/src/decision/justification_heuristic.cpp index 891d89cc5..c9a6b7e1b 100644 --- a/src/decision/justification_heuristic.cpp +++ b/src/decision/justification_heuristic.cpp @@ -108,6 +108,7 @@ CVC4::prop::SatLiteral JustificationHeuristic::getNextThresh(bool &stopSearch, D if(litDecision != undefSatLiteral) { setPrvsIndex(i); Trace("decision") << "jh: splitting on " << litDecision << std::endl; + ++d_helfulness; return litDecision; } } @@ -197,9 +198,7 @@ SatLiteral JustificationHeuristic::findSplitter(TNode node, SatValue desiredVal) { d_curDecision = undefSatLiteral; - if(findSplitterRec(node, desiredVal)) { - ++d_helfulness; - } + findSplitterRec(node, desiredVal); return d_curDecision; }