Skip to content

Call graph: read det-port dispatch (perform(int,int)) as paragraph calls; keep paragraph headers through refinement #8151

Open

Description

@squid-protocol

Found by temporal-crucible's registered WIRE study (2026-11-08; registration temporal-crucible#89, results temporal-crucible#90), which tests #7532's idea of measuring translation fidelity along the translator's own map.

Result: a COBOL program's paragraph call network survives det translation. With no names, it picks a structured port's own COBOL source 33 times in 138 (24%). Chance is 0.7%; whole-program sfs fingerprints managed 3 in 124.

Two gaps stop this from covering every port:

  1. The engine can't see calls through the dispatcher. In dispatch-style ports, every PERFORM becomes perform(a, b) with paragraph numbers, routed through switch (i) { case i: return pN(); }. GitGalaxy's Java call graph records each paragraph calling perform, never each other: all 124 evaluable dispatch ports score 0. Resolving the integer literals with a small parser (in the study's scorer, tools/wire_eval.py) gives a 0.69 match against 0.09 shuffled, so the wiring is there.
    • This also hits --style structured ports that fall back to the dispatcher (GO TO, EXEC CICS HANDLE, SECTION). That's 57 of 125 evaluable programs, including every CBSA and GenApp program.
    • Fix options: resolve the det dispatch idiom in Java call extraction (perform(a, b) → the methods case a..b return), or have the translator write the paragraph call graph (it already names every paragraph) into its trace.
  2. Refinement drops the map. The B2-refined ports in docs/benchmarks/det-refine-* replace the /** PARAGRAPH. */ headers with model Javadoc, so a refined port can no longer be traced paragraph by paragraph. Keeping the header line through det_refine.py would preserve traceability.

Acceptance:

  • The call graph of a dispatch-style det port lists paragraph → paragraph edges for perform(a, b) (a test on one dispatch port, e.g. a CBSA program).
  • A refined port keeps one /** PARAGRAPH. */ header per paragraph method (a check in det_refine.py or its tests).

Part of #7532 / #7533 (item 4, cross-language blueprint fidelity).

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    scope:frontier
    on Nov 9, 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

    enhancementpriority: mediumscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions