Repository navigation
det: a pointer or BLL cell compared with NULL / ZERO lowers onto the pointer lane (Part of #5197) - #5203
Conversation
…pointer lane (Part of #5197) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…L's pointer comparison (Part of #5197) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
|
PR #5203 @ e0f2675: 1 failed check(s) == ground-truth part 1/2 (failure) -- real |
…(Part of #5197) #5197 translates a pointer = / NOT = NULL, as IBM Enterprise COBOL's pointer relation condition allows (covered by test_pointer_null_cond_5197.py). The stale case expected it refused; the still-unmodelled relation (IF P > NULL: only = and NOT =) takes its place. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
1 similar comment
|
No description provided. |
Part of #5197 (box 1 only; box 2, the end-to-end SET(cell) proof, is not in this PR).
What
A pointer or an OS/VS COBOL BLL cell compared with NULL (a cell with ZERO too) was refused:
det/expr.pyrefused NULL in any condition, anddet/bll.pyrefused any cell mention outside its idioms ("used as a number").expr.py: NULL / NULLS parses as one side of a relation (Fig("NULLPTR")); everywhere else it is still refused.gen.py:pointer = NULL/NULL = pointer(and NOT =) isCobol.compareFigurative(ptr, LOW_VALUES, CS) == 0(X47: NULL is the all-zero handle). A pointer against anything but NULL or another pointer, and> < >= <=on a pointer, is refused by name; NULL against NULL, a subscripted / table / REDEFINES-overlaid pointer too.bll.py:cell [NOT] = ZERO|ZEROS|ZEROES|NULL|NULLS(IS / EQUAL [TO], either operand order) lowers tocell [NOT] = NULL, IBM's conversion of the cell to a POINTER. A secondary cell andcell > ZEROstay refused.test_bll_cells_5119pinnedIF FRPTR = ZEROas refused: it now pins> ZERO.Class table
> <, NULL vs NULL, table / REDEFINES / subscripted pointer, secondary cellADDRESS OFvs NULL, abbreviatedOR NULLTests / gates
tests/cobol_mainframe/test_pointer_null_cond_5197.py(46) plus the 5119 and 4771 suites pass. The GnuCOBOL equivalence proof (EQUIVALENCE_E2E) was NOT run; the oracle's lowered text is tested.pr_gates --fast6/6;--ratchets8/8 (ports unchanged, no golden masters touched).Cross-repo
None. Overlap: #5196 also touches
bll.py,gen.py, X56.md andtest_bll_cells_5119.py; expect it to merge first, then merge main here.Lessons for agents
Cobol.compareFigurative(Field, LOW_VALUES, CS)already tests a pointer's NULL; no Java change needed.cond_relations/self.relation()(the OSVS plan list goes out of step otherwise).🤖 Generated with Claude Code