Skip to content

Generator: emit no entry points or handlers that have no COBOL behaviour behind them #4342

Closed

Description

@squid-protocol

Problem

The COBOL-to-Java generator emits methods that correspond to nothing the COBOL program does. A port then ships Java that can never be proven against the COBOL (proof_reach, #4255), and an evidence record (#4048) can only call it ported_unproven or left_as_generated forever. Seen while trying to prove the 20 ports #4316 flagged (#4325, #4326):

  • A batch entry point on a CICS-only program: crucible ca-link-lengths/CALINK executeCalink only throws UnsupportedOperationException. CALINK is transaction CA01 and has no batch form.
  • A log-only entry point: CardDemo dateutil executeCsutldtc calls handleCall with blank items and only logs the result, so there is no output to compare.
  • A handler for a statement that never receives control: CardDemo cardview onAbendL871 was generated from HANDLE ABEND CANCEL. That statement cancels an earlier HANDLE ABEND and never itself receives control. The cancel is already ported inline and proven (scenario pf3-xctl-fails-abend-routine, Prove 6 CardDemo ports' unproven methods: entry runs, an abend scenario, intcalc key-order fix #4326).
  • A dispatcher that differs from the proven path: CardDemo acctview dispatchCdemoToProgramL349 differs from the generated dispatcher only in toUpperCase() without Locale.ROOT. runTask does its XCTL through task.xctl, so the shipped dispatcher and the proven path diverge.

Why it matters

Every future port inherits the same unprovable surface. Reverting these methods by hand fixes today's ports, not the generator.

Acceptance criteria

  • The generator emits a batch executeX only for programs with a batch entry; a HANDLE ... CANCEL gets no handler method; a log-only entry is not generated, or is generated so that its output is comparable.
  • A dispatcher, where one is generated, is the path the proof drives (e.g. the XCTL goes through it), using Locale.ROOT.
  • The affected ports are regenerated and re-proven by the tools. Their evidence records lose those methods, and no evidence.json is hand-edited.
  • Regression tests in the generator's suite for each shape.

Related: #4255, #4048, #4316, #4325, #4326, and the façade issue filed alongside this one.

Activity

  1. added
    bug
    legacy-modernization
    priority: high
    on Oct 4, 2026
  2. added
    scope:core
    era:4
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugera:4legacy-modernizationpriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions