3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-02 15:26:17 +00:00

Refactor expr_stat to use structured bindings for traversal pairs (#8441)

* Initial plan

* Refactor expr_stat.cpp to use C++17 structured bindings

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Fix structured binding inside DEBUG_CODE macro in smt_justification.cpp

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>
Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Copilot 2026-01-31 17:14:02 -08:00 committed by GitHub
parent ff485eb545
commit e7d46d2566
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,9 +27,7 @@ void get_expr_stat(expr * n, expr_stat & r) {
buffer<pair> todo;
todo.push_back(pair(n, 0));
while (!todo.empty()) {
pair & p = todo.back();
n = p.first;
unsigned depth = p.second;
auto [n, depth] = todo.back();
unsigned j;
todo.pop_back();
r.m_sym_count++;