Skip to content

Commit

Permalink
fix #4907
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Dec 20, 2020
1 parent dd05c68 commit 259a8ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/ast/rewriter/hoist_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ br_status hoist_rewriter::mk_or(unsigned num_args, expr * const * es, expr_ref &
}
fmls.push_back(p);
}
for (auto const& p : m_eqs) {
for (auto& p : m_eqs) {
if (m().is_value(p.first))
std::swap(p.first, p.second);
m_subst.insert(p.first, p.second);
fmls.push_back(m().mk_eq(p.first, p.second));
}
Expand Down
4 changes: 2 additions & 2 deletions src/tactic/core/solve_eqs_tactic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,15 +687,15 @@ class solve_eqs_tactic : public tactic {
th_rewriter thrw(m());
expr_ref tmp(m()), tmp2(m());

// TRACE("solve_eqs", g.display(tout););
TRACE("solve_eqs", g.display(tout););
for (unsigned idx = 0; !g.inconsistent() && idx < size; idx++) {
checkpoint();
if (g.is_decided_unsat()) break;
expr* f = g.form(idx);
proof_ref pr1(m()), pr2(m());
thrw(f, tmp, pr1);
rw(tmp, tmp2, pr2);
TRACE("solve_eqs", tout << mk_pp(f, m()) << " " << tmp << "\n" << tmp2
TRACE("solve_eqs", tout << mk_pp(f, m()) << "\n->\n" << tmp << "\n->\n" << tmp2
<< "\n" << pr1 << "\n" << pr2 << "\n" << mk_pp(g.pr(idx), m()) << "\n";);
pr1 = m().mk_transitivity(pr1, pr2);
if (!pr1) pr1 = g.pr(idx); else pr1 = m().mk_modus_ponens(g.pr(idx), pr1);
Expand Down

0 comments on commit 259a8ff

Please sign in to comment.