Repository navigation
Fact cross-check: the engine's units channel leaves out the main line (Fixes #7374) - #7377
Merged
Merged
Conversation
…Fixes #7374) #7172 made the COBOL main line a non-synthetic function_data unit named (procedure division). engine_adapter put it in `units` too, though the key and the translator name only paragraphs and sections there: 19 NEW engine-only units disagreements. The same change gave the engine the main-line extent, so the 19 ledgered unit_extents disagreements (and the engine-main-line-no-extent cause) no longer reproduce. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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.
Fixes #7374. Fact Cross-check went red on main after #7172 (main line became a
function_dataunit).Cause
engine_adapter.pyput the main line(procedure division)in theunitschannel. The key and the translator keep it inunit_extentsonly: 19 NEW engine-onlyunitsdisagreements.unit_extentsdisagreements no longer reproduce (GONE). Their causeengine-main-line-no-extent(COBOL engine: statements between PROCEDURE DIVISION and the first paragraph belong to no unit, so the program's main-line PERFORM/CALL edges are never recorded #4302) is dropped with them.Changes
engine_unit_names()intests/tools/referees/engine_adapter.py: paragraph and section names only.test_engine_units_channel_leaves_the_main_line_to_unit_extents.fact_crosscheck.py update(24 lines removed, none added).Class / siblings
Class: the main-line unit leaking into a channel that names only paragraphs and sections. Siblings checked:
cobol_answer_key.engine_unit_extents(should include it, correct),cobol_answer_key.py:7342(extents only),estate_crucible.score_units(already handles it). No gaps.Verification
fact_crosscheck.py check: no NEW, no GONE.test_fact_crosscheck.py: 37 passed.audit_check.py: all clear.🤖 Generated with Claude Code