Skip to content

Move rounding_mode_identifier() to configt - #6555

Merged
tautschnig merged 1 commit into
diffblue:developfrom
tautschnig:rounding-mode-symbol
Nov 5, 2026
Merged

tautschnig merged 1 commit into
diffblue:developfrom
tautschnig:rounding-mode-symbol

Conversation

@tautschnig

Copy link
Copy Markdown
Collaborator

This removes a goto-programs dependency from linking/, which is all
about symbol tables, not goto programs.

Depends on #6554 for all CI checks to pass.

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

@codecov

codecov Bot commented Dec 31, 2021 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.94%. Comparing base (d35cbee) to head (7988864).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #6555   +/-   ##
========================================
  Coverage    80.94%   80.94%           
========================================
  Files         1720     1720           
  Lines       190658   190660    +2     
  Branches        73       73           
========================================
+ Hits        154323   154331    +8     
+ Misses       36335    36329    -6     

☔ View full report in Codecov by Harness.
📢 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 force-pushed the rounding-mode-symbol branch from a06a215 to b421359 Compare February 5, 2022 21:40
@tautschnig tautschnig changed the title Move rounding_mode_identifier() to configt [depends-on: #6554] Move rounding_mode_identifier() to configt Feb 5, 2022
@tautschnig
tautschnig marked this pull request as ready for review February 5, 2022 21:40
@tautschnig
tautschnig force-pushed the rounding-mode-symbol branch from b421359 to 933ec9f Compare February 7, 2022 21:30
@tautschnig
tautschnig force-pushed the rounding-mode-symbol branch 4 times, most recently from 8b2ec0d to 910a6df Compare November 21, 2022 12:52
@tautschnig
tautschnig force-pushed the rounding-mode-symbol branch from 910a6df to e5e443d Compare December 7, 2022 13:42
@peterschrammel peterschrammel removed their assignment Feb 7, 2023
@tautschnig tautschnig self-assigned this May 31, 2023
@tautschnig
tautschnig force-pushed the rounding-mode-symbol branch from 6f66e5f to 3f175a0 Compare June 1, 2023 18:30
@tautschnig
tautschnig requested a review from TGWDB as a code owner June 1, 2023 18:30
@tautschnig tautschnig removed their assignment Jun 1, 2023
@tautschnig
tautschnig force-pushed the rounding-mode-symbol branch from 3f175a0 to f30da5c Compare January 22, 2024 15:08
@tautschnig
tautschnig force-pushed the rounding-mode-symbol branch from f30da5c to 7e712c2 Compare May 8, 2024 11:22
@tautschnig
tautschnig force-pushed the rounding-mode-symbol branch 2 times, most recently from e2543f8 to 96dfda9 Compare July 29, 2025 18:32
Copilot AI review requested due to automatic review settings March 9, 2026 10:19
@tautschnig
tautschnig force-pushed the rounding-mode-symbol branch from 96dfda9 to 3a416f5 Compare March 9, 2026 10:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Moves rounding_mode_identifier() out of goto-programs/ and into util/config to remove an unnecessary goto-programs dependency from linking/, keeping linking focused on symbol-table concerns.

Changes:

  • Add configt::rounding_mode_identifier() and update call sites to use config.rounding_mode_identifier().
  • Remove the helper declaration/definition from goto-programs/adjust_float_expressions.{h,cpp}.
  • Drop goto-programs from src/linking/module_dependencies.txt and adjust related includes.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/util/config.h Adds new configt API for rounding mode symbol identifier.
src/util/config.cpp Implements configt::rounding_mode_identifier().
src/statement-list/statement_list_entry_point.cpp Switches rounding-mode symbol creation to use config.
src/linking/remove_internal_symbols.cpp Switches “special symbol” handling to use config, enabling dependency removal.
src/linking/module_dependencies.txt Removes goto-programs dependency from linking.
src/goto-programs/adjust_float_expressions.h Removes rounding-mode identifier helper declaration.
src/goto-programs/adjust_float_expressions.cpp Removes helper implementation; uses config instead.
src/goto-instrument/full_slicer.cpp Replaces helper usage with config and updates includes.
src/cpp/cpp_internal_additions.cpp Uses config for rounding-mode symbol name.
src/ansi-c/ansi_c_internal_additions.cpp Uses config for rounding-mode symbol name.
src/analyses/constant_propagator.cpp Uses config for rounding-mode symbol and adds include.
jbmc/src/java_bytecode/java_entry_point.cpp Uses config for rounding-mode symbol name.
jbmc/src/java_bytecode/java_bytecode_internal_additions.cpp Uses config for rounding-mode symbol name and updates includes.

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

Comment thread src/util/config.h Resolved
Comment thread src/linking/remove_internal_symbols.cpp Resolved
Comment thread src/linking/remove_internal_symbols.cpp Resolved
This removes a goto-programs dependency from linking/remove_internal_symbols,
which is all about symbol tables, not goto programs. (linking/ as a whole
still depends on goto-programs, as static_lifetime_init operates on a
goto_modelt.)

The method is declared static since it returns a compile-time constant
and does not depend on any configt instance state. This follows the
existing pattern of static methods like this_architecture() and
this_operating_system() in configt, and avoids coupling call sites to
the global config object.

Co-authored-by: Kiro <[email protected]>
@tautschnig
tautschnig force-pushed the rounding-mode-symbol branch from ec9c2ad to 7988864 Compare November 5, 2026 20:27
@tautschnig
tautschnig merged commit 6f561bb into diffblue:develop Nov 5, 2026
39 of 43 checks passed
@tautschnig
tautschnig deleted the rounding-mode-symbol branch November 5, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants