mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
fix variable tracking bug in explanations with literals
This commit is contained in:
parent
eb1ea9482e
commit
e4ef1717e3
2 changed files with 4 additions and 3 deletions
|
@ -83,10 +83,11 @@ namespace euf {
|
|||
expr_ref_vector eqs(m);
|
||||
unsigned nv = s().num_vars();
|
||||
auto add_lit = [&](enode_pair const& eq) {
|
||||
unsigned v = nv;
|
||||
++nv;
|
||||
eqs.push_back(m.mk_eq(eq.first->get_expr(), eq.second->get_expr()));
|
||||
set_tmp_bool_var(nv, eqs.back());
|
||||
return literal(nv, false);
|
||||
set_tmp_bool_var(v, eqs.back());
|
||||
return literal(v, false);
|
||||
};
|
||||
|
||||
for (auto lit : euf::th_explain::lits(jst))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue