Skip to content

Remove deprecated add_axioms_from_long method#8918

Open
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:fix-8021-add_axioms_from_long
Open

Remove deprecated add_axioms_from_long method#8918
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:fix-8021-add_axioms_from_long

Conversation

@tautschnig
Copy link
Copy Markdown
Collaborator

Removes the deprecated string_constraint_generatort::add_axioms_from_long method and inlines its implementation at the call site.

Fixes: #8021

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@tautschnig tautschnig self-assigned this Mar 28, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.46%. Comparing base (6df204e) to head (127e012).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tautschnig tautschnig marked this pull request as ready for review March 31, 2026 12:46
@tautschnig tautschnig requested a review from martin-cs as a code owner March 31, 2026 12:46
Copilot AI review requested due to automatic review settings March 31, 2026 12:46
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_long declaration from the generator header.
  • Deleted the deprecated add_axioms_from_long definition from string_constraint_generator_valueof.cpp.
  • Inlined the prior add_axioms_from_long logic inside add_axioms_for_function_application for ID_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.

Comment thread src/solvers/strings/string_constraint_generator_main.cpp Outdated
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>
@tautschnig tautschnig force-pushed the fix-8021-add_axioms_from_long branch from 6608040 to 127e012 Compare March 31, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

src/solvers/strings/string_constraint_generator_valueof.cpp - pair<exprt, string_constraints> string_constraint_generatort::add_axioms_from_long

3 participants