diff options
author | Tim King <taking@cs.nyu.edu> | 2012-12-01 00:08:38 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2012-12-01 00:08:38 +0000 |
commit | f25292c6a2f957b9dab9df2bb19892071387fd50 (patch) | |
tree | 9a217b4a5c09b0df8e6c42c7968e96ec43886918 /src/smt/smt_engine.cpp | |
parent | 7f7f7188f1f62502653da77660e333dfb8b38785 (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.cpp | 6 |
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; } |