Skip to content

det: the zero test of a numeric view of a POINTER is the pointer's NULL test (X47, Part of #6876) - #7188

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6876-20261030T1835Z
Oct 30, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6876-20261030T1835Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

det: the zero test of a numeric view of a POINTER is the pointer's NULL test (X47, Part of #6876)

Checklist: done [c:36bb664b]

CAGMZ's IF WS-PTR2-N = 0 (a PIC S9(8) COMP REDEFINES of a POINTER) was the last hole of the item. Gen.view_zero_relation / rel_view_zero lower view = 0|ZERO|ZEROS|ZEROES (either side, NOT = through the parser's Not) to the pointer's NULL test (a handle's zero is NULL), and the relation is excluded from the arithmetic plan like the other pointer relations. CICS lane only: in batch, BUMP-TIOT = 0 stays a hole (test_tiot_walk_5856).

Class / Sibling gaps

Class: a numeric REDEFINES view of a POINTER used in a relation. Measured with cics_case_ports.py --forge on current main: CAADDR, CAADSB, CAEBCA, CAEBSB and CAGMPT were already 0 holes (X59 and earlier slices); CAGMZ was the only hole (40/41); now 43/43.
Handled here: = / NOT = with 0, ZERO, ZEROS, ZEROES, either side. Still refused by name (tests): > 0, = 5, view vs view, = SPACES.
Sibling gaps (no burned-estate program needs any of them): view = view equality (could map to samePointer); a zero test of a view in the batch lane (needs a stated NULL for the z/OS control blocks); non-S9(n) COMP views.
Finding, not fixed: the cobol-stub alloc cell of ca-getmain-pointer fails with a SIGSEGV in CAGMPT line 64 (stub side only; CAGMPT is untouched, 0 holes before and after). Needs its own slice.

Evidence

  • cics_case_ports.py ca-getmain-pointer: CAGMPT 46/46, CAGMZ 43/43, 0 holes. Crucible java-ported: alloc and zero-length pass; cobol-stub: zero-length pass, alloc fails (see above).
  • det_port.py check: 182/182 ports unchanged. pr_gates --fast 9/9, --ratchets 9 pass; audit_check.py clear.
  • Oracle assumption: view zero iff pointer NULL rests on X47 row G (task storage in the low 2 GiB); stated in X47.md.

🤖 Generated with Claude Code

…LL test (X47, Part of #6876)

CAGMZ's IF WS-PTR2-N = 0 translates; any other comparison of the view stays refused by name.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 19:06
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 19:15
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant