summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGereon Kremer <nafur42@gmail.com>2021-08-30 14:23:29 -0700
committerGitHub <noreply@github.com>2021-08-30 21:23:29 +0000
commit4cc62dd571cf313edb524a9e1fb72cd6bbe1c3f1 (patch)
tree41e81e4c83f7860312c129dd41044ca9e5248626 /src/main
parent007e93702d91c02954180cd601741aa19bf2a127 (diff)
Refactor filename handling (#7088)
This PR simplifies how we store the current input file name and handle setting and getting it. It is now an option, that can also be set and get via setInfo() and getInfo().
Diffstat (limited to 'src/main')
-rw-r--r--src/main/driver_unified.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp
index 005de6a34..2c6413503 100644
--- a/src/main/driver_unified.cpp
+++ b/src/main/driver_unified.cpp
@@ -205,7 +205,7 @@ int runCvc5(int argc, char* argv[], std::unique_ptr<api::Solver>& solver)
int returnValue = 0;
{
// notify SmtEngine that we are starting to parse
- pExecutor->getSmtEngine()->notifyStartParsing(filenameStr);
+ pExecutor->getSmtEngine()->setInfo("filename", filenameStr);
// Parse and execute commands until we are done
std::unique_ptr<Command> cmd;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback