From: Andres Noetzli Date: Thu, 23 Aug 2018 17:10:48 +0000 (-0700) Subject: Use "filename" instead of "name" in SmtEngine::setInfo() (#2361) X-Git-Tag: cvc5-1.0.0~4735 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f522d1e63e581cadeb987987ba3e3b0bd88f2e08;p=cvc5.git Use "filename" instead of "name" in SmtEngine::setInfo() (#2361) --- diff --git a/src/parser/tptp/Tptp.g b/src/parser/tptp/Tptp.g index 0c39bbaea..be155c425 100644 --- a/src/parser/tptp/Tptp.g +++ b/src/parser/tptp/Tptp.g @@ -249,7 +249,7 @@ parseCommand returns [CVC4::Command* cmd = NULL] if(filename.substr(filename.length() - 2) == ".p") { filename = filename.substr(0, filename.length() - 2); } - seq->addCommand(new SetInfoCommand("name", SExpr(filename))); + seq->addCommand(new SetInfoCommand("filename", SExpr(filename))); if(PARSER_STATE->hasConjecture()) { seq->addCommand(new QueryCommand(MK_CONST(bool(false)))); } else { diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 33ca6eb3d..5e7d52676 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -2308,15 +2308,14 @@ void SmtEngine::setInfo(const std::string& key, const CVC4::SExpr& value) } // Check for standard info keys (SMT-LIB v1, SMT-LIB v2, ...) - if (key == "source" - || key == "category" - || key == "difficulty" - || key == "notes" - || key == "license") + if (key == "source" || key == "category" || key == "difficulty" + || key == "notes" || key == "name" || key == "license") { // ignore these return; - } else if(key == "name") { + } + else if (key == "filename") + { d_filename = value.getValue(); return; }