Remove deprecated add_axioms_from_long method#8918
Open
tautschnig wants to merge 1 commit intodiffblue:developfrom
Open
Remove deprecated add_axioms_from_long method#8918tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig wants to merge 1 commit intodiffblue:developfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #8918 +/- ##
===========================================
- Coverage 80.46% 80.46% -0.01%
===========================================
Files 1704 1704
Lines 188665 188663 -2
Branches 73 73
===========================================
- Hits 151805 151800 -5
- Misses 36860 36863 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR removes the deprecated string_constraint_generatort::add_axioms_from_long helper and keeps the ID_cprover_string_of_long_func behavior by inlining the former implementation at the dispatch call site.
Changes:
- Removed the
add_axioms_from_longdeclaration from the generator header. - Deleted the deprecated
add_axioms_from_longdefinition fromstring_constraint_generator_valueof.cpp. - Inlined the prior
add_axioms_from_longlogic insideadd_axioms_for_function_applicationforID_cprover_string_of_long_func.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/solvers/strings/string_constraint_generator.h |
Removes the deprecated method declaration from the class interface. |
src/solvers/strings/string_constraint_generator_valueof.cpp |
Deletes the deprecated method implementation. |
src/solvers/strings/string_constraint_generator_main.cpp |
Inlines the removed method’s logic at the ID_cprover_string_of_long_func dispatch site. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Inline the method body at its sole call site in add_axioms_for_function_application. The method was deprecated since 2017 in favour of add_axioms_for_string_of_int. Fixes: diffblue#8021 Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
6608040 to
127e012
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Removes the deprecated string_constraint_generatort::add_axioms_from_long method and inlines its implementation at the call site.
Fixes: #8021