summaryrefslogtreecommitdiff
path: root/src/smt/smt_engine.cpp
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-12-01 00:08:38 +0000
committerTim King <taking@cs.nyu.edu>2012-12-01 00:08:38 +0000
commitf25292c6a2f957b9dab9df2bb19892071387fd50 (patch)
tree9a217b4a5c09b0df8e6c42c7968e96ec43886918 /src/smt/smt_engine.cpp
parent7f7f7188f1f62502653da77660e333dfb8b38785 (diff)
Adding SmtEngine::setLogic(const char* logic) so that smt.setLogic("QF_LRA"); works.
Diffstat (limited to 'src/smt/smt_engine.cpp')
-rw-r--r--src/smt/smt_engine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index b5ed59912..0f755aa01 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -735,6 +735,12 @@ void SmtEngine::setLogic(const std::string& s) throw(ModalException) {
setLogic(LogicInfo(s));
}
+void SmtEngine::setLogic(const char* logic) throw(ModalException){
+ SmtScope smts(this);
+
+ setLogic(LogicInfo(string(logic)));
+}
+
LogicInfo SmtEngine::getLogicInfo() const {
return d_logic;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback