Repository navigation
det runtime: COMP-5 can be held big-endian as z/OS does, behind a switch (Part of #5865, #7646) - #7671
Conversation
…tch; the oracle difference is a byte reversal (Part of #5865, #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… their rules (Part of #5865, #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #7671 @ fbf5dc8: 1 failed check(s) == ground-truth part 2/2 (failure) -- real |
…e COMP-5 probe compiles and runs as UTF-8 (Part of #5865, #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Part of #5865, #7646. Slice 1 of 2: the runtime's z/OS big-endian COMP-5 byte image, with the oracle difference declared and pinned. Continues #7659 (merged).
What changed
Cobol.swapZosComp5(boolean)/Codec.littleEndian(Field): with the switch on, every COMP-5 item is two's-complement big-endian over its 2, 4 or 8 bytes, as z/OS holds it. Off (the default) keeps GnuCOBOL's little-endian image, so no generated port, golden or ledger moves. Only byte order changes: capacity, truncation and value are the same either way.test_det_programs.py:test_comp5_zos_byte_order_is_big_endian_and_the_default_is_the_oracles(port, both orders, S9(4) / S9(9) / S9(17), values 258, -2, 32767, 305419896, -1, 72623859790382856, IBM's layout written by hand) andtest_comp5_zos_byte_order_difference_is_the_oracles_byte_reversal(GnuCOBOL,EQUIVALENCE_E2E=1, bytes read through a REDEFINES one at a time into a big-endian COMP item).Facts checked: the oracle's order measured on GnuCOBOL 3.1.2 (2026-11-04, test passes under
EQUIVALENCE_E2E=1); the SQLCA (DetSql.putInt,sql.pySQLCODE) andDsntiacread COMP-5 little-endian, so they must stay on the default when the switch is wired; layout.py:635 and program.py:1218 write / read the COMP-5 VALUE image little-endian.Evidence levels: translated: unchanged (no port moved, switch off by default); executed-equivalent: byte order only, synthetic values, port vs reversal of the oracle, 6 cases x 2 orders (+ 6 oracle runs); residual risk: none for burned programs (no burned program observes COMP-5 bytes, #4271
det_port.py check).Class / Sibling gaps
Class: a COMP-1 / COMP-2 / COMP-5 item whose bytes are observed through a group or REDEFINES overlap (census: 2 programs, #5865 rank 4). Members: COMP-5 byte order (runtime done here; translator wiring missing), COMP-1 / COMP-2 HFP bytes (runtime already stores HFP, translator refuses, oracle bytes are IEEE: missing), refusal wording (done, #7659).
Sibling gaps: COMP-5 inside file / sort records and BY REFERENCE / COMMAREA passes (stay refused, different mechanism, C7); the SQLCA and LE runtime little-endian reads (need a per-program guard when the switch is wired).
Remaining slices
det/gen.py,det/layout.py_put_value,det/program.pylifted-VALUE order,det/sql.py): lift the COMP-5 refusals only under a declared case difference; refuse SQL / LE programs in that mode; test.tests/tools/equivalence_common.py): a casedeclared_differencesentry and the reversal comparator; evidence report line.🤖 Generated with Claude Code