summaryrefslogtreecommitdiff
path: root/src/smt/smt_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/smt/smt_engine.cpp')
-rw-r--r--src/smt/smt_engine.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 2aaf43569..306843c81 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -2057,7 +2057,7 @@ void SmtEngine::setInfo(const std::string& key, const CVC4::SExpr& value)
value.getValue() == "2.0" ) {
// supported SMT-LIB version
if(!options::outputLanguage.wasSetByUser() &&
- options::outputLanguage() == language::output::LANG_SMTLIB_V2_5) {
+ ( options::outputLanguage() == language::output::LANG_SMTLIB_V2_5 || options::outputLanguage() == language::output::LANG_SMTLIB_V2_6 )) {
options::outputLanguage.set(language::output::LANG_SMTLIB_V2_0);
*options::out() << language::SetLanguage(language::output::LANG_SMTLIB_V2_0);
}
@@ -2071,6 +2071,15 @@ void SmtEngine::setInfo(const std::string& key, const CVC4::SExpr& value)
*options::out() << language::SetLanguage(language::output::LANG_SMTLIB_V2_5);
}
return;
+ } else if( (value.isRational() && value.getRationalValue() == Rational(13, 5)) ||
+ value.getValue() == "2.6" ) {
+ // supported SMT-LIB version
+ if(!options::outputLanguage.wasSetByUser() &&
+ options::outputLanguage() == language::output::LANG_SMTLIB_V2_0) {
+ options::outputLanguage.set(language::output::LANG_SMTLIB_V2_6);
+ *options::out() << language::SetLanguage(language::output::LANG_SMTLIB_V2_6);
+ }
+ return;
}
Warning() << "Warning: unsupported smt-lib-version: " << value << endl;
throw UnrecognizedOptionException();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback