Leftover from when unsat cores mode was tied to proof mode.
Fixes cvc5/cvc5-projects#462.
Node node = trn.getNode();
Debug("prop::lemmas") << "assertLemma(" << node << ")" << std::endl;
bool negated = trn.getKind() == TrustNodeKind::CONFLICT;
- Assert(!isProofEnabled() || trn.getGenerator() != nullptr
- || options().smt.unsatCores);
+ // should have a proof generator if the theory engine is proof producing
+ Assert(!d_env.isTheoryProofProducing() || trn.getGenerator() != nullptr);
assertInternal(trn.getNode(), negated, removable, false, trn.getGenerator());
}
regress0/proofs/proj-issue326-nl-bounds-check.smt2
regress0/proofs/proj-issue342-eager-checking-no-proof-checking.smt2
regress0/proofs/proj-issue430-coverings-double-negation.smt2
+ regress0/proofs/proj-issue462-sat-proof-option.smt2
regress0/proofs/qgu-fuzz-1-bool-sat.smt2
regress0/proofs/qgu-fuzz-2-bool-chainres-checking.smt2
regress0/proofs/qgu-fuzz-3-chainres-checking.smt2
--- /dev/null
+; COMMAND-LINE: --strings-exp
+; EXPECT: sat
+(set-logic ALL)
+(set-info :status sat)
+(set-option :global-declarations true)
+(set-option :proof-mode sat-proof)
+(declare-const _x3 Int)
+(assert (>= (str.to_code (str.from_code _x3)) _x3))
+(check-sat)