You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
COBOL engine: a sequence-numbered blank line extends the previous unit's extent (cols 1-6 not blanked for slicing, same root as #4300) #4332
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
In a fixed-format member with sequence numbers, a line that is empty except for its cols 1-6 sequence number (ISPF keeps the number on a blank line) is not blank in the stream Mode A slices. _slice_by_labels ends a unit at block.strip(), so a trailing "blank" numbered line counts as content. The unit's extent (start_line + loc - 1) then runs over it, up to the line before the next header. A truly blank line or a comment line is trimmed.
Same root as #4300: cols 1-6 are not blanked in the stream the slicer sees.
Evidence
Minimal reproducer, main 25f9233. MAIN-PARA is recorded as lines 4-7 and SUB-PARA as lines 8-10. Expected 4-6 and 8-9 (the last code line before the next header):
Unit LOC and extents are inflated on nearly every numbered legacy member: blank separator lines between paragraphs are the norm. That inflates LOC-based metrics and density, and breaks extent-based joins (an owning_unit(line) lookup on a blank line assigns it to the paragraph above, which is harmless, but span checks against an answer key fail everywhere).
Acceptance criteria
A fixed-format line whose cols 7-72 are blank is blank in the slicing stream, whatever cols 1-6 and 73-80 hold.
Reproducer: MAIN-PARA 4-6, SUB-PARA 8-9.
estate-crucible H-0012 passes.
Related: #4300 (sequence area read as an operand, same root), #4301 / #4315 (unit extents), #4317.
Fixed on main as a side effect of #4334 (#4300): blanking a numbered sequence area means a line that holds only a sequence number is no longer code, so it can't extend the previous unit. Verified by estate-crucible v0.2.0 horror H-0012, which passes on main 6738204c (scorecard in #4337). Closing as completed by #4334.
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
squid-protocol commentedon Oct 4, 2026
Fixed on main as a side effect of #4334 (#4300): blanking a numbered sequence area means a line that holds only a sequence number is no longer code, so it can't extend the previous unit. Verified by estate-crucible v0.2.0 horror H-0012, which passes on main
6738204c(scorecard in #4337). Closing as completed by #4334.