mirror of
https://github.com/Z3Prover/z3
synced 2026-02-20 07:24:40 +00:00
Modernize C++ patterns: range-based for loops and nullptr (#8167)
* Initial plan * Replace NULL with nullptr in test files Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Convert iterator loops to range-based for loops (part 1) Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Convert iterator loops to range-based for loops (part 2) Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix compilation errors in iterator loop conversions Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
f08f97b555
commit
aaec2e032e
16 changed files with 84 additions and 140 deletions
|
|
@ -41,8 +41,8 @@ expr_ref bind_variables::operator()(expr* fml, bool is_forall) {
|
|||
m_cache.reset();
|
||||
m_names.reset();
|
||||
m_bound.reset();
|
||||
for (var2bound::iterator it = m_var2bound.begin(); it != m_var2bound.end(); ++it) {
|
||||
it->m_value = 0;
|
||||
for (auto& kv : m_var2bound) {
|
||||
kv.m_value = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue