summaryrefslogtreecommitdiff
path: root/src/smt
diff options
context:
space:
mode:
Diffstat (limited to 'src/smt')
-rw-r--r--src/smt/smt_engine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 7ea22ce8f..f8667fb71 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -285,17 +285,21 @@ SmtEngine::~SmtEngine() {
}
void SmtEngine::setLogic(const std::string& s) throw(ModalException) {
+ NodeManagerScope nms(d_nodeManager);
+
if(d_logic != "") {
throw ModalException("logic already set");
}
+
if(Dump.isOn("benchmark")) {
Dump("benchmark") << SetBenchmarkLogicCommand(s) << endl;
}
+
d_logic = s;
d_theoryEngine->setLogic(s);
// If in arrays, set the UF handler to arrays
- if (s == "QF_AX") {
+ if(s == "QF_AX") {
theory::Theory::setUninterpretedSortOwner(theory::THEORY_ARRAY);
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback