3
0
Fork 0
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:
Nikolaj Bjorner 2022-09-01 23:26:31 -07:00
parent eb1ea9482e
commit e4ef1717e3
2 changed files with 4 additions and 3 deletions

View file

@ -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))