diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2019-12-17 13:43:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-17 13:43:44 -0800 |
commit | e9499c41f405df8b42fd9ae10004b1b91a869106 (patch) | |
tree | fa1475f43a3e61b8f6ffdcb903b65919eba28661 /src/main | |
parent | 9b2914ed9f7b14ecf535ffe9e1328d0fa042e072 (diff) |
Generate code for options with modes. (#3561)
This commit adds support for code generation of options with modes (enums). From now on option enums can be specified in the corresponding *.toml files without the need of extra code. All option enums are now in the options namespace.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/command_executor.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/command_executor.cpp b/src/main/command_executor.cpp index 241ca2b8f..5dbc50592 100644 --- a/src/main/command_executor.cpp +++ b/src/main/command_executor.cpp @@ -159,11 +159,13 @@ bool CommandExecutor::doCommandSingleton(Command* cmd) getterCommands.emplace_back(new GetProofCommand()); } - if (d_options.getDumpInstantiations() && - ((d_options.getInstFormatMode() != INST_FORMAT_MODE_SZS && - (res.asSatisfiabilityResult() == Result::SAT || - (res.isUnknown() && res.whyUnknown() == Result::INCOMPLETE))) || - res.asSatisfiabilityResult() == Result::UNSAT)) { + if (d_options.getDumpInstantiations() + && ((d_options.getInstFormatMode() != options::InstFormatMode::SZS + && (res.asSatisfiabilityResult() == Result::SAT + || (res.isUnknown() + && res.whyUnknown() == Result::INCOMPLETE))) + || res.asSatisfiabilityResult() == Result::UNSAT)) + { getterCommands.emplace_back(new GetInstantiationsCommand()); } |