mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
This commit is contained in:
parent
37d2ed646d
commit
bce903ae97
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue