diff options
author | Gereon Kremer <nafur42@gmail.com> | 2021-08-25 17:19:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 00:19:41 +0000 |
commit | 71f025753f734ddade5da333dfe2d144fbc13221 (patch) | |
tree | 271e0a03b5612652d5fdb040fa2d7f43e8644aea /src/parser/parser.cpp | |
parent | 78d29da02099762374adeb694ed96c496c7e1ffc (diff) |
Consolidate language types (#7065)
This PR combines the two enums InputLanguage and OutputLanguage into a single Language type. It makes sure that AST is not used as input language using a predicate whenever the option is set.
Diffstat (limited to 'src/parser/parser.cpp')
-rw-r--r-- | src/parser/parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp index eab982013..bd0f56b2d 100644 --- a/src/parser/parser.cpp +++ b/src/parser/parser.cpp @@ -899,8 +899,7 @@ std::wstring Parser::processAdHocStringEsc(const std::string& s) api::Term Parser::mkStringConstant(const std::string& s) { - if (language::isInputLang_smt2_6( - d_solver->getOptions().base.inputLanguage)) + if (language::isLangSmt2(d_solver->getOptions().base.inputLanguage)) { return d_solver->mkString(s, true); } |