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
#3327 follow-up: COBOL GO TO is not a call (contract C4) -- needs a decision #3362
Part of #3265, from the #3327 contract audit (docs/calls_out_rule_contract.md, class G).
The contract follows the branch contract (#2822): an unconditional transfer (goto, GO TO, a jump) is not a call, because control does not return. cobol's rule is (?i)\\b(?:PERFORM|CALL|GO\\s+TO)\\s+..., and on the crucible GO TO produces ~3,500 of 9,614 raw captures.
Why this is a question, not just a fix: the mainframe answer keys (tests/cobol_mainframe/answer_key/) treat GO TO as a reached-by path for liveness. If COBOL reachability is ever derived from the function graph, dropping GO TO would make paragraphs reached only by GO TO look dead. Options:
Drop GO TO from calls_out and record transfers in a separate channel (e.g. a transfers_to list) for reachability.
Keep GO TO in calls_out as a documented cobol exception to C4.
Decide before #3330 (function PageRank) runs on COBOL.
Activity
Contract: state what counts as a call -- calls_out (#3327, #3265 step…
Merge origin/main into #3362; transfers never become file-graph edges
Engine: COBOL GO TO is a transfer, recorded beside calls (#3362, opti…
Answer keys: score unit extents and intra-program PERFORM / GO TO edg…