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:
parent
ff485eb545
commit
e7d46d2566
1 changed files with 1 additions and 3 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue