Repository navigation
register: a zero divisor inside a float expression stays a named stop (Part of #4687) - #5330
Merged
Merged
Conversation
…; the oracle aligns float integer intermediates (Part of #4687) Replaying the OSVS plan was tried against the oracle and rejected: the oracle truncates the integer intermediates of any float expression with 2+ operations (C + C + C is 3, F * C * C is 0 where z/OS gives 9 and 63), so a replay would copy an oracle artifact. C14 records the measurement; a codegen test pins the stop. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 17, 2026 11:22
squid-protocol
enabled auto-merge (squash)
October 17, 2026 11:25
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 #4687, #4270.
What changed
The issue offered two routes: replay the OSVS alignment plan for float statements, or keep the named stop and register it. I built the replay and ran it against the oracle (25-shape matrix, COMP-1 and COMP-2), then took the second route.
Why the replay was rejected. The oracle aligns every intermediate of a float expression with two or more operations, and a float receiver counts as one with places, so it truncates integers too:
G = C + C + CG = F * C * CG = C + F / FZ + CG = C + C + F / FZA replay confined to the NaN matched 23 of 25 shapes and missed the rest. One that copied the plan would reproduce an oracle artifact IBM does not have. The reference is IBM, and z/OS leaves a zero divide undefined, so the stop is the honest answer.
docs/language_status/register/C14.md: records the measurement and the decision.tests/cobol_mainframe/test_det_size_error.py: a Docker-free codegen test pins the stop (whole-value division isHfp.divide, nested isHfp.divideNested, no division is plain HFP).No translator, runtime or golden change.
Gates
pr_gates.py --fast6/6,cobolrt_rules.py --checkconsistent, the test file passes. Not run:det_port.py checkandcrucible_check.py(no engine or runtime file changed).Sibling gaps
Cross-repo
None.
🤖 Generated with Claude Code