Skip to content

det: pointer = pointer, cell = cell, abbreviated pointer relations (Part of #5042) - #5299

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5042-20261015T2239Z
Oct 17, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5042-20261015T2239Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5042 (CICS pointer lane siblings of #4771).

Changes

  • pointer = pointer / NOT = (all IS EQUAL spellings) translates to DetCics.samePointer -> CicsTask.samePointer: equal when the handles match or both blocks share one byte array (a record's ADDRESS OF after SET ADDRESS OF rec TO p is a second handle for p's block). GnuCOBOL's pointer compare is native.
  • bll.py: cell [NOT] = cell lowers to a pointer compare.
  • Abbreviated p = q OR r and OR NULL / NOT = NULL objects take the pointer tests (expr.py, gen.py); pointer relations consume no arithmetic plan.
  • Still refused by name: > < >= <= between pointers, ADDRESS OF as a relation operand, cell = LOW-VALUES. X56 register text updated; two now-stale refusal cases removed from test_pointer_null_cond_5197.

Gates

pr_gates --fast PASS (after a mypy fix); --ratchets PASS; register --check, cobolrt_rules --check, ruff audit OK; new tests 20 unit + 1 e2e (EQUIVALENCE_E2E, proven against GnuCOBOL, hand-traced NYYYNYNY).
det_port.py check: 103/118 ports CHANGED, runtime classes only (DetCics/CicsTask gained a method; no translated program moved). Re-proved a sample of 6 (carddemo-menu, cbsa-inqacc, zecs-zecs000, genapp-lgwebst5, mortgage-cmort, asynccc-getaddr): all PROVED. The other 97 not re-proved.
No golden bless (no parsing logic touched).

Sibling gaps (not filed)

LOAD PROGRAM SET; pointer arithmetic (REDEFINES / ADD n TO address); ADDRESS OF a subordinate item; SEND/RECEIVE MAP SET; GET CONTAINER BYTEOFFSET/GET64; READ SET with RBA/RRN/XRBA; ADDRESS OF x = NULL; cell = LOW-VALUES.

🤖 Generated with Claude Code

…OR NULL forms (Part of #5042)

IBM allows = and NOT = between two pointers. The port answers with CicsTask.samePointer (same handle, or two handles for
one block, as a record's ADDRESS OF beside the pointer it was set to); bll.py reads cell = cell the same way. Others
(> < >= <=, ADDRESS OF operand) are refused by name. X56 updated.

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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 17, 2026 01:54
return bll._translate(tmp_path, source.replace("PROGRAM-ID. PTRCMP.", f"PROGRAM-ID. {name}."))


_FIRST = "IF PTR-A = PTR-B MOVE 'Y' TO WS-OUT(1:1)"
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5299 @ ad0bd93: 1 failed check(s)

== ground-truth part 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38992837205/job/117278920768
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
FAIL tests/cobol_mainframe/test_det_nondigit_zoned.py::test_nondigit_zoned_is_the_oracles[TS-BIN]: 15.3s is over 15s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
##[error]Process completed with exit code 1.
log tail:
archive: true
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 8316
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 3c3d4b7fe7e3dde27fe1da05e7d66831d13e2b9f619672442f7fec45b545598c
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 12085674033
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 8316 bytes. Artifact ID is 12085674033
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38992837205/artifacts/12085674033
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/c678fc46-7b9c-4640-8f2b-a0f437cc1a04' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 02:01
@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 17, 2026
@squid-protocol
squid-protocol merged commit 4e64158 into main Oct 17, 2026
89 of 91 checks passed
@squid-protocol
squid-protocol deleted the churn/5042-20261015T2239Z branch October 17, 2026 02:16
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.

2 participants