diff options
Diffstat (limited to 'src/prop/theory_proxy.cpp')
-rw-r--r-- | src/prop/theory_proxy.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/prop/theory_proxy.cpp b/src/prop/theory_proxy.cpp index a6908ff52..c9f19b42e 100644 --- a/src/prop/theory_proxy.cpp +++ b/src/prop/theory_proxy.cpp @@ -79,15 +79,12 @@ void TheoryProxy::enqueueTheoryLiteral(const SatLiteral& l) { d_queue.push(literalNode); } -SatLiteral TheoryProxy::getNextDecisionRequest(bool &stopSearch) { +SatLiteral TheoryProxy::getNextTheoryDecisionRequest() { TNode n = d_theoryEngine->getNextDecisionRequest(); - if(not n.isNull()) { - return d_cnfStream->getLiteral(n); - } + return n.isNull() ? undefSatLiteral : d_cnfStream->getLiteral(n); +} - // If theory doesn't give us a deicsion ask the decision engine. It - // may return in undefSatLiteral in which case the sat solver uses - // whatever default heuristic it has. +SatLiteral TheoryProxy::getNextDecisionEngineRequest(bool &stopSearch) { Assert(d_decisionEngine != NULL); Assert(stopSearch != true); SatLiteral ret = d_decisionEngine->getNext(stopSearch); |