Skip to content

Commit 9b88aaf

Browse files
committed
determine parameter evaluation order
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent 05ba67f commit 9b88aaf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/ast/normal_forms/nnf.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ class skolemizer {
149149
r = m_subst(body, substitution);
150150
p = nullptr;
151151
if (m_proofs_enabled) {
152-
if (q->get_kind() == forall_k)
153-
p = m.mk_skolemization(mk_not(m, q), mk_not(m, r));
152+
if (q->get_kind() == forall_k) {
153+
auto a = mk_not(m, q);
154+
p = m.mk_skolemization(a , mk_not(m, r));
155+
}
154156
else
155157
p = m.mk_skolemization(q, r);
156158
}
@@ -609,8 +611,10 @@ struct nnf::imp {
609611
expr * not_rhs = rs[3];
610612

611613
app * r;
612-
if (is_eq(t) == fr.m_pol)
613-
r = m.mk_and(m.mk_or(not_lhs, rhs), m.mk_or(lhs, not_rhs));
614+
if (is_eq(t) == fr.m_pol) {
615+
auto a = m.mk_or(not_lhs, rhs);
616+
r = m.mk_and(a, m.mk_or(lhs, not_rhs));
617+
}
614618
else
615619
r = m.mk_and(m.mk_or(lhs, rhs), m.mk_or(not_lhs, not_rhs));
616620
m_result_stack.shrink(fr.m_spos);

0 commit comments

Comments
 (0)