Repository navigation
HLASM slice 5: ZECSNC's 7 scenarios through the POPS interpreter, register X74 (Part of #5859) - #6938
Conversation
… (Part of #5859) tests/tools/hlasm_interp.py interprets the lowering's subset from the Principles of Operation alone (EBCDIC storage, 32-bit registers, real condition code, EXEC CICS as events). The test compares CH branch conditions of the lowering with it, pins the instruction semantics the Base64 decoder uses, and checks ZECS002's end COMMAREA and event sequence for all 11 scenarios against the GnuCOBOL run of the lowering. One difference surfaced: CA_RC is ASCII text in the lowering, EBCDIC on z/OS. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ister X74 (Part of #5859) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6938 @ 5010e77: 1 failed check(s) == shepherd (label event) (failure) -- real |
… squash; slice 5 re-applied on it) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (26bb837) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #6938 @ 26bb837: 1 failed check(s) == shepherd (label event) (failure) -- real |
Summary
Slice 5 of #5859: ZECSNC's 7
zecs-zecsncscenarios now run through the independent POPS interpreter (tests/tools/hlasm_interp.py) and are compared event by event with the GnuCOBOL oracle run of the lowering. Register entry X74 records assumption 1 of the design doc. Result: all 7 agree (events, payload text, counters created; ABENDZNCDfor EIBCALEN 1, 4, 9; WRITE OPERATOR ROUTECODES X'0111' / NUMROUTES 2 pinned from the source, since the stub logs only the length).Checklist: partial [c:e14a97c1] -- ZECSNC cross-checked by the interpreter; a per-instruction differential under
cobcand a general assembler path remain frontier.Cross-repo / stack
Stacked on #6934 (slice 4): this branch carries its commits and touches the same three files (
hlasm_interp.py,test_hlasm_interp_5859.py,hlasm_cics_design.md). #6934 merges first; after it lands this diff shrinks to slice 5 only. No companion PR in another repo; nothing re-runs after.Class / Sibling gaps
Class: every scenario of the ZECSNC case (EIBCALEN 0, 8, 1, 4, 9; terminal-new, bad-input, duplicate-counter), all compared, none sampled. Interpreter bugs the cross-check found, both fixed: slice 4's FORMATTIME wrote into a copy of storage, and the SS length parser ignored
D(L)(MVC Z_EXP+2(2),...copied 4 bytes, START carried_Z01). Sibling gaps:terminal-bad-input's case.jsonwhynames ER_0010 but the oracle takes ER_0020; the stub's counters.cfg shows doublewords byte-swapped (COMP-5);equivalence.py run zecs-zecsnccrashes on the Java side (StopIteration,equivalence_cics.py:4300, noZECSNC.javaunder the work dir), so the oracle logs were taken from the COBOL side only; lowering stores=C'..'as ASCII (known, assumption 3).Evidence
test_hlasm_interp_5859.py: 72 passed; withtest_source_reads.py,test_generated_docs.py: 95 passed.pr_gates --fast: 9/9.--ratchets: 7 pass, 2 fail for environment reasons, not this diff (no engine change): the siblingestate-cruciblecheckout is off its v0.5.0 pin, which failsestateandfact-crosscheck.Lessons for agents
D(L)in an SS first operand (Z_EXP+2(2)) is a length, not a base register; a parser looking only for(L,B)silently uses the symbol's length attribute.equivalence.py runof an assembler-lowered case can crash on the Java side; the COBOL oracle logs under<work>/cobol/scenarios/<name>/out/are enough to pin events.🤖 Generated with Claude Code