Repository navigation
det: a numeric REDEFINES view of a POINTER is a hole, not arithmetic on a handle (Part of #4771) - #5301
Conversation
…on a handle (Part of #4771) ZECS001 adds to and moves a PIC S9(8) COMP item that REDEFINES a POINTER. The lane stores an 8-byte block handle there, so the translation silently did integer arithmetic on a handle. Statements naming such a view are now refused by name (INITIALIZE of the whole group still moves as bytes). Offset aliasing needs a windowed Storage and is recorded in register X47 as not lifted. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #5301 @ 9242fda: 2 failed check(s) == ground-truth (failure) -- real == ground-truth part 1/2 (failure) -- real |
…w is a hole (Part of #4771) test_set_pointer_to_null_translates moves ALL 'K' to a PIC X(8) item that REDEFINES a POINTER; the pointer_views refusal turned that into holes. Only a view with a numeric item (or a numeric field under a group view) computes on handle bytes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (9d39ec9) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
Summary
PIC S9(8) COMPitem that REDEFINES a POINTER; the lane holds an 8-byte block handle there, so the translation did integer arithmetic on a handle without saying so. Statements naming such a view are now refused by name; INITIALIZE of the whole group still moves as bytes.ADDRESS OFa WORKING-STORAGE item are not lifted.Field/Storage,Storage.bytesread at ~129 sites; needs a windowedStorageand a 4- vs 8-byte pointer decision).Evidence
ZECS001 translates 543/561 (was 548, the 5 newly refused are the overlay ADD/MOVEs at lines 1111, 1115, 1147, 1400, 1519).
det_port.py check: 118/118 ports unchanged.pr_gates --fast6/6,--ratchets8/8; pointer-lane tests 15 pass. Golden masters untouched. Not run: full test suite;field_testing.jsonnot updated.Sibling gaps
Offset aliasing and
ADDRESS OF ZF-DATA(ZECS001, zECS);CALL ZUIDSTCKrefused permanently; ZC##FILE template for ZECS000/003 belongs to #4767.🤖 Generated with Claude Code