From 3183ca6685f6b0dcca538efb72e6840a56479b60 Mon Sep 17 00:00:00 2001 From: Gereon Kremer Date: Fri, 27 Aug 2021 11:23:15 -0700 Subject: Handle languages as strings in driver (#7074) This PR moves the first chunk of code in the driver to use the proper options API for the language options. It is now handled as a string. --- src/parser/smt2/smt2.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/parser/smt2/smt2.h') diff --git a/src/parser/smt2/smt2.h b/src/parser/smt2/smt2.h index 50b4a4efc..c3f93708d 100644 --- a/src/parser/smt2/smt2.h +++ b/src/parser/smt2/smt2.h @@ -230,12 +230,10 @@ class Smt2 : public Parser */ bool v2_6(bool exact = false) const { - return language::isLangSmt2(getLanguage()); + return d_solver->getOption("input-language") == "LANG_SMTLIB_V2_6"; } /** Are we using a sygus language? */ bool sygus() const; - /** Are we using the sygus version 2.0 format? */ - bool sygus_v2() const; /** * Returns true if the language that we are parsing (SMT-LIB version >=2.5 -- cgit v1.2.3