mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
This commit is contained in:
parent
37d2ed646d
commit
bce903ae97
|
@ -276,7 +276,7 @@ struct pull_quant::imp {
|
||||||
|
|
||||||
if (is_exists(old_q)) {
|
if (is_exists(old_q)) {
|
||||||
result = m.mk_not(new_body);
|
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())
|
if (m.proofs_enabled())
|
||||||
m.mk_rewrite(old_q, result);
|
m.mk_rewrite(old_q, result);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -181,9 +181,14 @@ namespace q {
|
||||||
return q_flat;
|
return q_flat;
|
||||||
proof_ref pr(m);
|
proof_ref pr(m);
|
||||||
expr_ref new_q(m);
|
expr_ref new_q(m);
|
||||||
pull_quant pull(m);
|
if (is_forall(q)) {
|
||||||
pull(q, new_q, pr);
|
pull_quant pull(m);
|
||||||
SASSERT(is_well_sorted(m, new_q));
|
pull(q, new_q, pr);
|
||||||
|
SASSERT(is_well_sorted(m, new_q));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
new_q = q;
|
||||||
|
}
|
||||||
q_flat = to_quantifier(new_q);
|
q_flat = to_quantifier(new_q);
|
||||||
m.inc_ref(q_flat);
|
m.inc_ref(q_flat);
|
||||||
m.inc_ref(q);
|
m.inc_ref(q);
|
||||||
|
|
Loading…
Reference in a new issue