3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-25 03:16:21 +00:00

Reorder null check before side effect in mam.cpp

Move the best == nullptr check before marking best_j as processed.
This avoids an unnecessary write when best is null and makes the
control flow clearer: guard the side effect with the null check.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2026-04-29 21:07:16 +00:00 committed by GitHub
parent 7c4c709708
commit eb6c4057e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1114,9 +1114,9 @@ namespace {
best_j = j;
}
}
m_mp_already_processed[best_j] = true;
if (best == nullptr)
continue;
m_mp_already_processed[best_j] = true;
app * p = best;
func_decl * lbl = p->get_decl();
unsigned short num_args = p->get_num_args();