Repository navigation
det: pointer = pointer, cell = cell, abbreviated pointer relations (Part of #5042) - #5299
Conversation
…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]>
|
No description provided. |
| 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)" |
|
PR #5299 @ ad0bd93: 1 failed check(s) == ground-truth part 2/2 (failure) -- real |
Part of #5042 (CICS pointer lane siblings of #4771).
Changes
pointer = pointer/NOT =(all IS EQUAL spellings) translates toDetCics.samePointer->CicsTask.samePointer: equal when the handles match or both blocks share one byte array (a record'sADDRESS OFafterSET ADDRESS OF rec TO pis a second handle for p's block). GnuCOBOL's pointer compare is native.bll.py:cell [NOT] = celllowers to a pointer compare.p = q OR randOR NULL/NOT = NULLobjects take the pointer tests (expr.py, gen.py); pointer relations consume no arithmetic plan.> < >= <=between pointers,ADDRESS OFas 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