summaryrefslogtreecommitdiff
path: root/src/smt/smt_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/smt/smt_engine.cpp')
-rw-r--r--src/smt/smt_engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 272bfe04e..6b7ca8d2f 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -1743,7 +1743,7 @@ bool SmtEngine::addToAssignment(const Expr& e) throw(AssertionException) {
( d_definedFunctions->find(n.getOperator()) !=
d_definedFunctions->end() ) &&
n.getNumChildren() == 0 ) ||
- n.getMetaKind() == kind::metakind::VARIABLE ), e,
+ n.isVar() ), e,
"expected variable or defined-function application "
"in addToAssignment(),\ngot %s", e.toString().c_str() );
if(!options::produceAssignments()) {
@@ -1809,7 +1809,7 @@ CVC4::SExpr SmtEngine::getAssignment() throw(ModalException, AssertionException)
Assert((*i).getNumChildren() == 0);
v.push_back((*i).getOperator().toString());
} else {
- Assert((*i).getMetaKind() == kind::metakind::VARIABLE);
+ Assert((*i).isVar());
v.push_back((*i).toString());
}
v.push_back(resultNode.toString());
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback