diff options
Diffstat (limited to 'src/main/command_executor.cpp')
-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 323f24492..c5ed54925 100644 --- a/src/main/command_executor.cpp +++ b/src/main/command_executor.cpp @@ -148,13 +148,15 @@ bool CommandExecutor::doCommandSingleton(Command* cmd) // dump the model/proof/unsat core if option is set if (status) { std::vector<std::unique_ptr<Command> > getterCommands; - if (d_options.getProduceModels() && d_options.getDumpModels() && - (res.asSatisfiabilityResult() == Result::SAT || - (res.isUnknown() && res.whyUnknown() == Result::INCOMPLETE))) { + if (d_options.getDumpModels() + && (res.asSatisfiabilityResult() == Result::SAT + || (res.isUnknown() && res.whyUnknown() == Result::INCOMPLETE))) + { getterCommands.emplace_back(new GetModelCommand()); } - if (d_options.getProof() && d_options.getDumpProofs() && - res.asSatisfiabilityResult() == Result::UNSAT) { + if (d_options.getDumpProofs() + && res.asSatisfiabilityResult() == Result::UNSAT) + { getterCommands.emplace_back(new GetProofCommand()); } |