summaryrefslogtreecommitdiff
path: root/src/theory/smt_engine_subsolver.cpp
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2020-07-15 16:42:00 -0700
committerGitHub <noreply@github.com>2020-07-15 18:42:00 -0500
commit3b87ce3ab67fd463a733ad11402e32f94eb1017e (patch)
treef58e422e35ca61ca61045f09643d61d2e500a77c /src/theory/smt_engine_subsolver.cpp
parentf1351ca7462d3d601e0dec78b71f54e0c7ee381f (diff)
Use Nodes for SmtEngine assertions (#4752)
This commit changes SmtEngine::assertFormula() to use Nodes rather than Exprs and changes AssertionList to be Node-based. This is work towards removing the Expr layer.
Diffstat (limited to 'src/theory/smt_engine_subsolver.cpp')
-rw-r--r--src/theory/smt_engine_subsolver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/smt_engine_subsolver.cpp b/src/theory/smt_engine_subsolver.cpp
index 863d1ab86..41526c30d 100644
--- a/src/theory/smt_engine_subsolver.cpp
+++ b/src/theory/smt_engine_subsolver.cpp
@@ -70,7 +70,7 @@ Result checkWithSubsolver(std::unique_ptr<SmtEngine>& smte,
return r;
}
initializeSubsolver(smte, needsTimeout, timeout);
- smte->assertFormula(query.toExpr());
+ smte->assertFormula(query);
return smte->checkSat();
}
@@ -106,7 +106,7 @@ Result checkWithSubsolver(Node query,
}
std::unique_ptr<SmtEngine> smte;
initializeSubsolver(smte, needsTimeout, timeout);
- smte->assertFormula(query.toExpr());
+ smte->assertFormula(query);
r = smte->checkSat();
if (r.asSatisfiabilityResult().isSat() == Result::SAT)
{
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback