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 {
}
// 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;
}