3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-03 13:56:08 +00:00

code simplification

This commit is contained in:
Nikolaj Bjorner 2025-02-18 19:07:58 -08:00
parent a143ed3bff
commit a5e5a35755
6 changed files with 34 additions and 38 deletions

View file

@ -63,7 +63,7 @@ struct mbp_array_tg::impl {
bool is_var(expr *t) { return is_uninterp_const(t) && has_var(t); }
bool is_wr_on_rhs(expr *e) {
return is_app(e) && is_partial_eq(to_app(e)) &&
return is_partial_eq(e) &&
is_wr_on_rhs(to_app(e)->get_arg(0), to_app(e)->get_arg(1));
}
@ -325,7 +325,7 @@ struct mbp_array_tg::impl {
}
nt = term;
is_neg = m.is_not(term, nt);
if (is_app(nt) && is_partial_eq(to_app(nt))) {
if (is_partial_eq(nt)) {
peq p(to_app(nt), m);
if (m_use_mdl && is_arr_write(p.lhs())) {
mark_seen(nt);