3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 18:05:21 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-06-04 15:52:38 -07:00
parent 37d2ed646d
commit bce903ae97
2 changed files with 9 additions and 4 deletions

View file

@ -276,7 +276,7 @@ struct pull_quant::imp {
if (is_exists(old_q)) {
result = m.mk_not(new_body);
result = m.mk_not(m.update_quantifier(old_q, exists_k, result));
result = m.mk_not(m.update_quantifier(old_q, forall_k, result));
if (m.proofs_enabled())
m.mk_rewrite(old_q, result);
return true;

View file

@ -181,9 +181,14 @@ namespace q {
return q_flat;
proof_ref pr(m);
expr_ref new_q(m);
pull_quant pull(m);
pull(q, new_q, pr);
SASSERT(is_well_sorted(m, new_q));
if (is_forall(q)) {
pull_quant pull(m);
pull(q, new_q, pr);
SASSERT(is_well_sorted(m, new_q));
}
else {
new_q = q;
}
q_flat = to_quantifier(new_q);
m.inc_ref(q_flat);
m.inc_ref(q);