Skip to content

Commit

Permalink
Do not set dag-thresh to 0 when printing unsat cores (cvc5#11549)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol authored Jan 21, 2025
1 parent 0eb61b1 commit 314f57f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/proof/unsat_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ UnsatCore::const_iterator UnsatCore::end() const {

void UnsatCore::toStream(std::ostream& out) const {
options::ioutils::Scope scope(out);
options::ioutils::applyDagThresh(out, 0);
Printer::getPrinter(out)->toStream(out, *this);
}

Expand Down
1 change: 1 addition & 0 deletions test/regress/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1322,6 +1322,7 @@ set(regress_0_tests
regress0/printer/print_unsat_core_lemmas.smt2
regress0/printer/symbol_starting_w_digit.smt2
regress0/printer/tuples_and_records.cvc.smt2
regress0/printer/unsat-core-dagify.smt2
regress0/proj-issue307-get-value-re.smt2
regress0/proj-issue645-abs-value-subs.smt2
regress0/proj-issue750-real-to-int-safe.smt2
Expand Down
10 changes: 10 additions & 0 deletions test/regress/cli/regress0/printer/unsat-core-dagify.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
; COMMAND-LINE: --print-cores-full --produce-unsat-cores
; EXPECT: unsat
; EXPECT: (
; EXPECT: (let ((_let_1 (> x 0))) (and _let_1 (not _let_1)))
; EXPECT: )
(set-logic ALL)
(declare-fun x () Int)
(assert (and (> x 0) (not (> x 0))))
(check-sat)
(get-unsat-core)

0 comments on commit 314f57f

Please sign in to comment.