diff options
Diffstat (limited to 'src/main/main.cpp')
-rw-r--r-- | src/main/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index 758d10af8..29d720b90 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -64,9 +64,8 @@ int main(int argc, char* argv[]) { #ifdef CVC4_COMPETITION_MODE *opts.getOut() << "unknown" << endl; #endif - if(opts.getOutputLanguage() == output::LANG_SMTLIB_V2_0 || - opts.getOutputLanguage() == output::LANG_SMTLIB_V2_5 || - opts.getOutputLanguage() == output::LANG_SMTLIB_V2_6) { + if (language::isOutputLang_smt2(opts.getOutputLanguage())) + { *opts.getOut() << "(error \"" << e << "\")" << endl; } else { *opts.getErr() << "CVC4 Error:" << endl << e << endl; |