Skip to content

Remove deprecated add_axioms_for_concat_code_point method#8924

Open
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:fix-8014-add_axioms_for_concat_code_point
Open

Remove deprecated add_axioms_for_concat_code_point method#8924
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:fix-8014-add_axioms_for_concat_code_point

Conversation

@tautschnig
Copy link
Copy Markdown
Collaborator

@tautschnig tautschnig commented Mar 28, 2026

Inline the body of the deprecated add_axioms_for_concat_code_point method at its sole call site in add_axioms_for_function_application. This removes the method declaration from the header and the separate method definition while preserving the functionality needed by JBMC's StringBuilder.appendCodePoint and StringBuffer.appendCodePoint.

Fixes: #8014

Co-authored-by: Kiro kiro-agent@users.noreply.github.com

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a 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).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a 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
Inline the body of the deprecated add_axioms_for_concat_code_point
method at its sole call site in add_axioms_for_function_application.
This removes the method declaration from the header and the separate
method definition while preserving the functionality needed by JBMC's
StringBuilder.appendCodePoint and StringBuffer.appendCodePoint.

Fixes: diffblue#8014

Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
@tautschnig tautschnig force-pushed the fix-8014-add_axioms_for_concat_code_point branch from 3f50573 to c3d113d Compare March 31, 2026 11:24
@tautschnig tautschnig marked this pull request as ready for review March 31, 2026 11:26
Copilot AI review requested due to automatic review settings March 31, 2026 11:26
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_for_concat_code_point helper by inlining its implementation at its only call site inside add_axioms_for_function_application, preserving behavior used by JBMC’s StringBuilder.appendCodePoint / StringBuffer.appendCodePoint handling (Fixes #8014).

Changes:

  • Removed the deprecated add_axioms_for_concat_code_point declaration from the generator header.
  • Inlined the former implementation directly into the ID_cprover_string_concat_code_point_func dispatch branch.
  • Deleted the obsolete definition from string_concatenation_builtin_function.cpp.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/solvers/strings/string_constraint_generator.h Drops the deprecated method declaration from the public API surface of the generator class.
src/solvers/strings/string_constraint_generator_main.cpp Inlines the concat-code-point axiom generation logic into the function-application dispatcher.
src/solvers/strings/string_concatenation_builtin_function.cpp Removes the deprecated method definition that is no longer referenced.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

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

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8924      +/-   ##
===========================================
- Coverage    80.46%   80.45%   -0.01%     
===========================================
  Files         1704     1704              
  Lines       188665   188665              
  Branches        73       73              
===========================================
- Hits        151805   151799       -6     
- Misses       36860    36866       +6     

☔ 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.

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_concatenation_builtin_function.cpp - string_constraint_generatort::add_axioms_for_concat_code_point

3 participants