Remove deprecated add_axioms_for_is_suffix method#8916
Open
tautschnig wants to merge 1 commit intodiffblue:developfrom
Open
Remove deprecated add_axioms_for_is_suffix method#8916tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig wants to merge 1 commit intodiffblue:developfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8916 +/- ##
===========================================
- Coverage 80.46% 80.45% -0.01%
===========================================
Files 1704 1704
Lines 188665 188632 -33
Branches 73 73
===========================================
- Hits 151805 151769 -36
- 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
Removes the deprecated string_constraint_generatort::add_axioms_for_is_suffix implementation and rewires suffix/ends-with handling to use the existing is_prefix encoding with a computed offset.
Changes:
- Removed the
add_axioms_for_is_suffixdeclaration from the generator interface. - Deleted the deprecated
add_axioms_for_is_suffixdefinition (and its associated axioms/docs) from the testing/boolean-constraint implementation file. - Updated
add_axioms_for_function_applicationto encodeis_suffix/endswithviaadd_axioms_for_is_prefix(prefix, str, |str|-|prefix|).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/solvers/strings/string_constraint_generator.h |
Drops the deprecated add_axioms_for_is_suffix method from the class interface. |
src/solvers/strings/string_constraint_generator_testing.cpp |
Removes the deprecated add_axioms_for_is_suffix implementation and its documentation. |
src/solvers/strings/string_constraint_generator_main.cpp |
Replaces calls to the removed method with an is_prefix + offset encoding for suffix/ends-with dispatch. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replace the two call sites with inline calls to add_axioms_for_is_prefix using offset str.length - suffix.length, as recommended by the method's own deprecation notice. Fixes: diffblue#8020 Co-authored-by: Kiro (autonomous agent) <kiro-agent@users.noreply.github.com>
d47e40a to
4eced45
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.
Replace the two call sites with inline calls to add_axioms_for_is_prefix using offset str.length - suffix.length, as recommended by the method's own deprecation notice.
Fixes: #8020
Co-authored-by: Kiro kiro-agent@users.noreply.github.com