Repository navigation
det: a sibling program's ADDRESS OF item = NULL tests an OMITTED USING item (Part of #5106) - #5608
Merged
Merged
Conversation
…G item (Part of #5106) IBM sets the address of an OMITTED parameter to NULL, so `IF ADDRESS OF item NOT = NULL` is the one reference an OMITTED item allows (DBB EPSCSMRX tests all eight). The sibling's entry records which items the caller passed (`present`); the test reads it. Only the test and the branch it guards may name an OMITTED item; any other reference stays refused by name. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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 19, 2026 11:07
squid-protocol
enabled auto-merge (squash)
October 19, 2026 11:14
Contributor
squid-protocol
added a commit
that referenced
this pull request
Oct 21, 2026
…to its owner (Part of #5106) (#5845) A CALL to a sibling program of the same source resolves to a service of its own (#5586..#5608). When the sibling's own translation is refused (EPSCSMRI national text, EPSCSMRO OS/VS SERVICE LABEL), the CALL now reads `X: no service of its own, its translation is refused: <reason>` instead of the generic "sibling" text, so the support matrix maps it to the entry that owns the reason. multi-program-call keeps only the contract refusals. Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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 #5106 (related #4404, #4447).
What
A CALL to a sibling program may now leave a USING item OMITTED when the callee tests it with
IF ADDRESS OF item NOT = NULL. IBM sets the address of an OMITTED item to NULL, so that test is the only legal reference to it.det/expr.py: newAddrOfnode;ADDRESS OF ref [IS] [NOT] = NULLparses toRel(op, AddrOf, NULL). A non-match restores the cursor, so the oldADDRESS OFrefusal is unchanged.det/gen.py:rel_address_nullturns the test into apresent[k]check. It refuses by name (condition: ADDRESS OF) for any other operator, or an item that is not a sibling USING item.det/program.py:_names_itemlets an OMITTED item be named only inside a THEN branch guarded by that test. Any other reference stays refused (undefined on IBM, S0C4). Thepresentarray is emitted only when something tests an address.Effect on DBB epscsmrd:
CALL EPSCSMRXnow resolves toEpscsmrxServicewith 0 holes, and the caller goes from 23 to 22 holes.Class
Reference to an OMITTED sibling USING item. Same-mechanism siblings fixed: the guarded
NOT = NULLform. Nothing was loosened: unguarded references are refused (tested).Gates
pr_gates --fast6/6;--ratchets8/8.audit_check.py: the dead-key and ast-accuracy audits are OK. Mypy lists 16 findings, all in files this PR does not touch (detector, galaxyscope, the guardrail and uow_forge modules, and det/stmt.py), so they come from the local mypy environment. CI mypy is the check.Sibling gaps
SERVICE LABEL.called_holes.<>nor a one-line IF/ELSE, so those forms are untested.Remaining slices
Docs for #4447/#4404; an end-to-end equivalence case for the sibling call.
Lessons for agents
<>or one-line IF/ELSE: write test bodies one statement per line and useNOT =.🤖 Generated with Claude Code