mirror of
https://github.com/Z3Prover/z3
synced 2026-07-03 05:46:08 +00:00
Migrate iterator-based for loops to range-based for loops (#8231)
* Initial plan * Migrate iterator-based for loops to range-based for loops in 11 files Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix compilation error in aig_exporter.cpp - use correct iterator API Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Revert changes to z3++.h as requested 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
58d3c29c9c
commit
eddb75b2e7
8 changed files with 33 additions and 57 deletions
|
|
@ -2139,10 +2139,8 @@ class array_project_selects_util {
|
|||
}
|
||||
|
||||
// dealloc
|
||||
sel_map::iterator begin = m_sel_terms.begin(), end = m_sel_terms.end();
|
||||
for (sel_map::iterator it = begin; it != end; ++it) {
|
||||
dealloc(it->m_value);
|
||||
}
|
||||
for (auto& [key, value] : m_sel_terms)
|
||||
dealloc(value);
|
||||
m_sel_terms.reset();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue