mirror of
https://github.com/Z3Prover/z3
synced 2026-02-14 21:01:49 +00:00
Replace manual pair unpacking with structured bindings (#8197)
* Initial plan * Apply structured bindings to enode_bool_pair usage Replace manual unpacking of pairs with C++17 structured bindings in: - src/ast/euf/euf_egraph.cpp - src/smt/smt_internalizer.cpp - src/smt/smt_context.cpp (2 locations) This improves code readability and reduces boilerplate code. 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
e7f9a31b25
commit
1bf463d77a
3 changed files with 7 additions and 11 deletions
|
|
@ -1028,11 +1028,9 @@ namespace smt {
|
|||
}
|
||||
else {
|
||||
if (cgc_enabled) {
|
||||
enode_bool_pair pair = m_cg_table.insert(e);
|
||||
enode * e_prime = pair.first;
|
||||
auto [e_prime, used_commutativity] = m_cg_table.insert(e);
|
||||
if (e != e_prime) {
|
||||
e->m_cg = e_prime;
|
||||
bool used_commutativity = pair.second;
|
||||
push_new_congruence(e, e_prime, used_commutativity);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue