diff options
author | Gereon Kremer <nafur42@gmail.com> | 2021-06-09 19:15:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 17:15:30 +0000 |
commit | cd34574f476827c11e1f0d9a33141a04b5175696 (patch) | |
tree | a1adab1b8613e3418e462681f5705ba290fe2af3 /src/main | |
parent | e9d650f668bf044b2baad5328d80e64522454c50 (diff) |
Push complex check inside GetInstantiationsCommand (#6715)
This PR pushes a rather complex check from the CommandExecutor inside the GetInstantiationsCommand.
The aim is to only use the instFormatMode option in the library (command.cpp) but not the main driver (command_executor.cpp).
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/command_executor.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main/command_executor.cpp b/src/main/command_executor.cpp index 5759ec856..6bdc1abc9 100644 --- a/src/main/command_executor.cpp +++ b/src/main/command_executor.cpp @@ -173,13 +173,7 @@ bool CommandExecutor::doCommandSingleton(Command* cmd) } if (options::getDumpInstantiations(d_options) - && ((options::getInstFormatMode(d_options) - != options::InstFormatMode::SZS - && (res.isSat() - || (res.isSatUnknown() - && res.getUnknownExplanation() - == api::Result::INCOMPLETE))) - || isResultUnsat)) + && GetInstantiationsCommand::isEnabled(d_solver.get(), res)) { getterCommands.emplace_back(new GetInstantiationsCommand()); } |