mirror of
https://github.com/Z3Prover/z3
synced 2026-05-30 21:57:46 +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;
|
best_j = j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_mp_already_processed[best_j] = true;
|
|
||||||
if (best == nullptr)
|
if (best == nullptr)
|
||||||
continue;
|
continue;
|
||||||
|
m_mp_already_processed[best_j] = true;
|
||||||
app * p = best;
|
app * p = best;
|
||||||
func_decl * lbl = p->get_decl();
|
func_decl * lbl = p->get_decl();
|
||||||
unsigned short num_args = p->get_num_args();
|
unsigned short num_args = p->get_num_args();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue