summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-08-23 10:10:48 -0700
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-08-23 12:10:48 -0500
commitf522d1e63e581cadeb987987ba3e3b0bd88f2e08 (patch)
tree4b6e5ba6cbc79f712cb60b6eb66cbba6b8f4edcb
parentac7db6796f2255678d3b2e2e87940211f162223e (diff)
Use "filename" instead of "name" in SmtEngine::setInfo() (#2361)
-rw-r--r--src/parser/tptp/Tptp.g2
-rw-r--r--src/smt/smt_engine.cpp11
2 files changed, 6 insertions, 7 deletions
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;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback