Repository navigation
gap_prevalence: key the census numeric STRING sender row as a source defect (Part of #7523) - #7746
Merged
Merged
Conversation
…defect, owner #7523 (Part of #7523) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
Part of #7523 (narrowed scope: STRING with a numeric sender that has a P or a decimal place; the code-page literal part is #7526).
What this does
The det translator already refuses this sender by name (
Gen.string_sender, register C11): Enterprise COBOL 6.4 Language Reference, STRING, requires a numeric sender to be "an integer without the symbol 'P'", so a P or decimal-place numeric sender is a compile error on z/OS. The census still listed the row asnot modelled / unowned, so a program refused only for it never counted as accounted. This slice keys the row as a named source defect owned by #7523 ingap_prevalence.OWNERS(same shape as #7661 for undeclared items), and regenerates the census summary and page. No engine behaviour changes, no proof loosened; modelling it would mean accepting a program IBM rejects.Class / Sibling gaps
Class: STRING / UNSTRING / MOVE operands that IBM rejects at compile time but GnuCOBOL accepts (register C11), which the det port refuses by name instead of modelling cobc. Handled and covered: numeric sender or DELIMITED BY with a P or decimal place (
test_det_nondigit_zoned.py, probed here for9V99,99PP,9V99 COMP-3,99V9 OCCURS); numeric literal sender (#7735), whose row is keyed by the same owner entry and test; UNSTRING numeric operands (unstring_operands). Sibling gaps: the STRING literal beyond the single-byte code page (register D4) is #7526, which no burned program needs (0 burned programs use it). Unverified, not changed here: whether a COMP / COMP-3 integer STRING sender (probe: translates, no hole) is also a compile error in IBM's USAGE DISPLAY rule; I did not have the Language Reference text to confirm, so it stays as is. No burned program needs any of these (burned programs affected: 0).Facts checked:
string_senderraises forPIC 9V99,99PP,9V99 COMP-3,99V9 OCCURS 2andS(1); integer COMP, COMP-3, COMP-5, signed and numeric-edited senders translate.gap_prevalence.py --writechanges only the owner cell of that row (census_summary.json one line, the page two rows).tests/tools/test_gap_prevalence.py: 114 passed.Remaining slices
None for this issue's narrowed scope. Whether the census trial accounts a source-defect owner as translated-or-defect is #7709's measurement.
Hand-written files:
tests/tools/gap_prevalence.py,tests/tools/test_gap_prevalence.py. Regenerated:docs/language_status/gap_prevalence.md,tests/fixtures/gap_prevalence/census_summary.json.🤖 Generated with Claude Code