mirror of
https://github.com/Z3Prover/z3
synced 2026-02-07 17:47:58 +00:00
Refactor optimization and model to use C++17 structured bindings for pairs (#8426)
* Initial plan * Refactor pairs to use C++17 structured bindings in opt and model components 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
0b1d30e86f
commit
1ec30620ef
2 changed files with 5 additions and 3 deletions
|
|
@ -22,7 +22,8 @@ Revision History:
|
|||
model_core::~model_core() {
|
||||
for (auto & kv : m_interp) {
|
||||
m.dec_ref(kv.m_key);
|
||||
m.dec_ref(kv.m_value.second);
|
||||
auto [idx, e] = kv.m_value;
|
||||
m.dec_ref(e);
|
||||
}
|
||||
|
||||
for (auto & kv : m_finterp) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue