// 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());
}
regress0/declare-funs.smt2
regress0/define-fun-model.smt2
regress0/distinct.smtv1.smt2
+ regress0/simple-dump-model.smt2
regress0/expect/scrub.01.smtv1.smt2
regress0/expect/scrub.03.smt2
regress0/expect/scrub.06.cvc
--- /dev/null
+; COMMAND-LINE: --dump-models
+; EXPECT: sat
+; EXPECT: (model
+; EXPECT: (define-fun x () Int 1)
+; EXPECT: (define-fun y () Int 1)
+; EXPECT: )
+(set-logic QF_LIA)
+(set-info :status sat)
+(declare-fun x () Int)
+(declare-fun y () Int)
+(assert (and (<= x y) (> x 0)))
+(assert (= y 1))
+(check-sat)