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:
parent
7c4c709708
commit
eb6c4057e7
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue