Repository navigation
Move rounding_mode_identifier() to configt - #6555
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
tautschnig
force-pushed
the
rounding-mode-symbol
branch
from
February 5, 2022 21:40
a06a215 to
b421359
Compare
tautschnig
marked this pull request as ready for review
February 5, 2022 21:40
tautschnig
requested review from
chris-ryder,
kroening,
martin-cs,
peterschrammel,
pkesseli and
romainbrenguier
as code owners
February 5, 2022 21:40
chris-ryder
approved these changes
Feb 6, 2022
tautschnig
force-pushed
the
rounding-mode-symbol
branch
from
February 7, 2022 21:30
b421359 to
933ec9f
Compare
tautschnig
force-pushed
the
rounding-mode-symbol
branch
4 times, most recently
from
November 21, 2022 12:52
8b2ec0d to
910a6df
Compare
tautschnig
force-pushed
the
rounding-mode-symbol
branch
from
December 7, 2022 13:42
910a6df to
e5e443d
Compare
peterschrammel
approved these changes
Feb 7, 2023
tautschnig
force-pushed
the
rounding-mode-symbol
branch
from
February 23, 2023 09:58
e5e443d to
6f66e5f
Compare
tautschnig
force-pushed
the
rounding-mode-symbol
branch
from
June 1, 2023 18:30
6f66e5f to
3f175a0
Compare
TGWDB
approved these changes
Jun 5, 2023
tautschnig
force-pushed
the
rounding-mode-symbol
branch
from
January 22, 2024 15:08
3f175a0 to
f30da5c
Compare
tautschnig
force-pushed
the
rounding-mode-symbol
branch
from
May 8, 2024 11:22
f30da5c to
7e712c2
Compare
tautschnig
force-pushed
the
rounding-mode-symbol
branch
2 times, most recently
from
July 29, 2025 18:32
e2543f8 to
96dfda9
Compare
tautschnig
force-pushed
the
rounding-mode-symbol
branch
from
March 9, 2026 10:19
96dfda9 to
3a416f5
Compare
There was a problem hiding this comment.
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 useconfig.rounding_mode_identifier(). - Remove the helper declaration/definition from
goto-programs/adjust_float_expressions.{h,cpp}. - Drop
goto-programsfromsrc/linking/module_dependencies.txtand 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.
tautschnig
force-pushed
the
rounding-mode-symbol
branch
from
March 9, 2026 11:16
3a416f5 to
ec9c2ad
Compare
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
force-pushed
the
rounding-mode-symbol
branch
from
November 5, 2026 20:27
ec9c2ad to
7988864
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.
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.