Skip to content

Commit

Permalink
fix #1766
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Jul 29, 2018
1 parent 5380b01 commit 64e570f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 43 deletions.
44 changes: 2 additions & 42 deletions src/smt/theory_arith_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -2943,58 +2943,18 @@ namespace smt {
context & ctx = get_context();
if (dump_lemmas()) {
TRACE("arith", ante.display(tout) << " --> "; ctx.display_detailed_literal(tout, l); tout << "\n";);
unsigned id = ctx.display_lemma_as_smt_problem(ante.lits().size(), ante.lits().c_ptr(),
ctx.display_lemma_as_smt_problem(ante.lits().size(), ante.lits().c_ptr(),
ante.eqs().size(), ante.eqs().c_ptr(), l);

#if 1
if (id == 394) {
enable_trace("sign_row_conflict");
enable_trace("nl_arith_bug");
enable_trace("nl_evaluate");
enable_trace("propagate_bounds");
enable_trace("propagate_bounds_bug");
enable_trace("arith_conflict");
enable_trace("non_linear");
enable_trace("non_linear_bug");
}
SASSERT(id != 395);
if (id == 396) {
disable_trace("nl_arith_bug");
disable_trace("propagate_bounds");
disable_trace("arith_conflict");
disable_trace("non_linear");
disable_trace("non_linear_bug");
}
#endif
}
}

template<typename Ext>
void theory_arith<Ext>::dump_lemmas(literal l, derived_bound const& ante) {
context & ctx = get_context();
if (dump_lemmas()) {
unsigned id = ctx.display_lemma_as_smt_problem(ante.lits().size(), ante.lits().c_ptr(),
ctx.display_lemma_as_smt_problem(ante.lits().size(), ante.lits().c_ptr(),
ante.eqs().size(), ante.eqs().c_ptr(), l);
#if 1
if (id == 394) {
enable_trace("nl_arith_bug");
enable_trace("nl_evaluate");
enable_trace("propagate_bounds");
enable_trace("arith_conflict");
enable_trace("propagate_bounds_bug");
enable_trace("non_linear");
enable_trace("non_linear_bug");
}
SASSERT(id != 395);
if (id == 396) {
enable_trace("sign_row_conflict");
disable_trace("nl_arith_bug");
disable_trace("propagate_bounds");
disable_trace("arith_conflict");
disable_trace("non_linear");
disable_trace("non_linear_bug");
}
#endif
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/smt/theory_bv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ namespace smt {
theory_var v = n->get_th_var(get_id());
if (v == null_theory_var) {
v = mk_var(n);
}
if (m_bits[v].empty()) {
mk_bits(v);
}
return v;
Expand Down
3 changes: 2 additions & 1 deletion src/smt/theory_seq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5163,7 +5163,8 @@ void theory_seq::assign_eh(bool_var v, bool is_true) {
}
else if (m_util.str.is_contains(e, e1, e2)) {
expr_ref_vector disj(m);
if (m_seq_rewrite.reduce_contains(e1, e2, disj)) {
// disabled pending regression on issue 1196
if (false && m_seq_rewrite.reduce_contains(e1, e2, disj)) {
literal_vector lits;
literal lit = mk_literal(e);
lits.push_back(~lit);
Expand Down

0 comments on commit 64e570f

Please sign in to comment.