Repository navigation
det/CICS: pointer views advance the pointer (ZECS001 pointer arithmetic) (Part of #4771) - #5706
Conversation
…BTRACT n, MOVE view TO view) (Part of #4771) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #5706 @ 98f01ff: 3 failed check(s) == ground-truth (failure) -- real == ground-truth part 1/4 (failure) -- real == ground-truth part 4/4 (failure) -- real |
… a byte view (Part of #4771) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Part of #4771 (tracked by #5042)
Checklist: partial [c:c25c63af] -- oracle-side equivalence of the pointer arithmetic (GnuCOBOL cannot prove it); ZUIDSTCK's source (CALL ZUIDSTCK is still refused by name, so ZECS001 stays not whole); ZECS001's run-time over-read of CACHE-MESSAGE past a short tail.
What changed
A pure numeric view of a POINTER (a
PIC S9(n) BINARYitem that REDEFINES the pointer, no children) now moves the pointer along its block instead of computing on handle bytes. Two idioms are lifted:ADD n TO view/SUBTRACT n FROM view(one operand, one target, no ROUNDED / SIZE ERROR) andMOVE view TO view. Everything else on a view still hits the existing "REDEFINES overlays a POINTER" refusal.Design decision: pointers stay 8-byte handles in the port; the numeric view is never read as an address, only used to advance the pointer within its block.
det/program.py:pointer_view_of, andoverlaid_pointersignores pure views.det/gen.py:view_pointer,pointer_view_statement(hooks at MOVE and ARITH).DetCics.java:copyPointer,advancePointer(refuses a move outside the block).X47.md: records the decision, the oracle caveat and the run-time refusals.test_pointer_lane_4771.py: refusal list updated, pure-view generation tests, a javac runtime test, ZECS001 corpus test.Class
Evidence
Evidence level: translated, unit-proven on the port only. Not executed-equivalent: GnuCOBOL runs
ADD n TO viewas a big-endian read of the low half of a little-endian 8-byte address, so the oracle cannot prove it. ZECS001: 559 of 561 statements translate with the forgerunTaskstub; the only pointer hole is line 1244 (CALL ZUIDSTCK).pr_gates --fast: 6/6 pass.pr_gates --ratchets: 8 pass, 0 fail, 0 skipped.det_port.py check: 22 of 139 ports unchanged; the rest differ only by the 20-lineDetCics.javaruntime addition (no generated Java changed except ZECS001).Lessons for agents
tests/cics_crucible/portsoverlay copies ofDetCics.javaare not synced to the runtime source; a new runtime method does not appear there.🤖 Generated with Claude Code