Refactor dyn_ack.cpp to use structured bindings for app_pair/app_triple #8359
+51
−40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactor dyn_ack.cpp to use structured bindings - COMPLETE ✅
Changes
File modified:
src/smt/dyn_ack.cpp.first,.second,.thirdmember access with structured bindingsa1,a2,a3(and suffixed versionsa1_1,a2_2, etc.)Functions refactored:
app_pair_lt::operator()- Comparison operator for app pairsdyn_ack_manager::gc()- Garbage collection for pairsdyn_ack_manager::del_clause_eh()- Clause deletion handlerapp_triple_lt::operator()- Comparison operator for app triplesdyn_ack_manager::gc_triples()- Garbage collection for triplesdyn_ack_manager::check_invariant()- Debug invariant checkerdyn_ack_manager::reset_app_pairs()- Cleanup for pairsdyn_ack_manager::reset_app_triples()- Cleanup for triplesOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.