Use "filename" instead of "name" in SmtEngine::setInfo() (#2361)
authorAndres Noetzli <andres.noetzli@gmail.com>
Thu, 23 Aug 2018 17:10:48 +0000 (10:10 -0700)
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>
Thu, 23 Aug 2018 17:10:48 +0000 (12:10 -0500)
src/parser/tptp/Tptp.g
src/smt/smt_engine.cpp

index 0c39bbaea8d43b789b8ea3be20e4e0aa64796d33..be155c42544f029cfbee6a660c1b09d94d3d331f 100644 (file)
@@ -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 {
index 33ca6eb3d79bbffc9f6a7883d35bb85a182d6c1b..5e7d52676002afad6d2f6ac1804be3baf1f47d33 100644 (file)
@@ -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;
   }