mirror of
https://github.com/Z3Prover/z3
synced 2026-02-02 15:26:17 +00:00
Use structured bindings for stack entries in theory_datatype (#8442)
* Initial plan * Refactor theory_datatype to use C++17 structured bindings Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix structured binding syntax error 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
e7d46d2566
commit
89e2ceffd0
1 changed files with 1 additions and 2 deletions
|
|
@ -975,8 +975,7 @@ namespace smt {
|
|||
|
||||
// DFS traversal from `n`. Look at top element and explore it.
|
||||
while (!res && !m_stack.empty()) {
|
||||
stack_op op = m_stack.back().first;
|
||||
enode * app = m_stack.back().second;
|
||||
auto [op, app] = m_stack.back();
|
||||
m_stack.pop_back();
|
||||
|
||||
if (oc_cycle_free(app))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue