Repository navigation
PL/I: a unit with no labelled END stops before its sequence-only tail - #9232
squid-protocol wants to merge 8 commits into
Conversation
…tail A PL/I procedure closed by a bare `END;` (or run into the next header) took the lines that hold only a columns 73-80 sequence number, so its end line ran past its last statement: 16 of the 25 mis-ended DSF procedures in the answer-key ledger. The unit now ends at its last line with content, using the engine's own sequence-field blanking. Trailing comments stay with the unit (separate question; the key ends a unit at its last code line). Golden masters re-blessed through golden-lock + crucible_check --update: only two DSF PL/I files (R0010422, R0010424) and their directory-group totals move, in both legs. The ledger entries this clears are re-measured after #9216 lands. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
…ed; header comments left) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
…merged engine) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
…equence-tail fix) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
|
CI shepherd: the head of this PR (544e6ba) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
|
CI shepherd: |
What
A PL/I procedure closed by a bare
END;, or run into the next header, took the lines that hold only a columns 73-80 sequence number, so its end line ran past its last statement. The unit now ends at its last line with content, using the engine's ownblank_sequence_fields. Trailing comments stay with the unit.Why it matters
Found by the DSF answer-key review (#9216): the key ends a unit at its last code line and the engine did not. The engine's end lines feed unit extents, line counts and the function-level metrics, so a wrong end shifts all of them for every sequence-numbered PL/I member (the norm for code pulled from a PDS).
Effect
golden-lock.sh+crucible_check.py --update --yes. Only two DSF PL/I files (R0010422,R0010424) and their directory-group totals move, in both legs; the check run before the bless showed exactly those 34 differences and nothing else.test_pli_unit_end_sequence_tail_4300.py(bare END, labelled END, trailing comment kept, no-sequence source unchanged, last unit of a file).Checks
ground_truth_ledger.py checkclean;tests/cobol_mainframeplus the PL/I engine tests: 11,305 passed.Fixes the engine half of #4300 for PL/I.
🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem