summaryrefslogtreecommitdiff
path: root/src/parser/antlr_input.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-05-02 20:25:09 -0500
committerAndres Noetzli <andres.noetzli@gmail.com>2018-05-02 18:25:09 -0700
commit716ce9168d846ea991f8404a78aeb1ccccfbce14 (patch)
tree5a617909b7d82ed2265693461f4f9f0a4c811f56 /src/parser/antlr_input.cpp
parentd3f4ac852146c41341e485d9035f3631993e3fa5 (diff)
Initial support for string standard in smt lib 2.6 (#1848)
Diffstat (limited to 'src/parser/antlr_input.cpp')
-rw-r--r--src/parser/antlr_input.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/parser/antlr_input.cpp b/src/parser/antlr_input.cpp
index a4bab5a8d..1e5d62ef8 100644
--- a/src/parser/antlr_input.cpp
+++ b/src/parser/antlr_input.cpp
@@ -254,12 +254,6 @@ AntlrInput* AntlrInput::newInput(InputLanguage lang, AntlrInputStream& inputStre
input = new Smt1Input(inputStream);
break;
- case LANG_SMTLIB_V2_0:
- case LANG_SMTLIB_V2_5:
- case LANG_SMTLIB_V2_6:
- input = new Smt2Input(inputStream, lang);
- break;
-
case LANG_SYGUS:
input = new SygusInput(inputStream);
break;
@@ -269,9 +263,17 @@ AntlrInput* AntlrInput::newInput(InputLanguage lang, AntlrInputStream& inputStre
break;
default:
- std::stringstream ss;
- ss << "internal error: unhandled language " << lang << " in AntlrInput::newInput";
- throw InputStreamException(ss.str());
+ if (language::isInputLang_smt2(lang))
+ {
+ input = new Smt2Input(inputStream, lang);
+ }
+ else
+ {
+ std::stringstream ss;
+ ss << "internal error: unhandled language " << lang
+ << " in AntlrInput::newInput";
+ throw InputStreamException(ss.str());
+ }
}
return input;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback