diff options
Diffstat (limited to 'src/parser/smt2/smt2.h')
-rw-r--r-- | src/parser/smt2/smt2.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/parser/smt2/smt2.h b/src/parser/smt2/smt2.h index 290bbc975..8c23c8657 100644 --- a/src/parser/smt2/smt2.h +++ b/src/parser/smt2/smt2.h @@ -23,6 +23,7 @@ #include "parser/smt1/smt1.h" #include "theory/logic_info.h" #include "util/abstract_value.h" +#include "parser/smt2/smt2_input.h" #include <string> #include <sstream> @@ -82,6 +83,10 @@ public: bool logicIsSet(); + void reset(); + + void resetAssertions(); + /** * Sets the logic for the current benchmark. Declares any logic and * theory symbols. @@ -95,6 +100,17 @@ public: */ const LogicInfo& getLogic() const { return d_logic; } + bool v2_0() const { + return getInput()->getLanguage() == language::input::LANG_SMTLIB_V2_0; + } + bool v2_5() const { + return getInput()->getLanguage() == language::input::LANG_SMTLIB_V2_5; + } + + void setLanguage(InputLanguage lang) { + ((Smt2Input*) getInput())->setLanguage(lang); + } + void setInfo(const std::string& flag, const SExpr& sexpr); void setOption(const std::string& flag, const SExpr& sexpr); |