Skip to content

equivalence: solver-driven scenario generation to raise branch coverage #4175

Closed

Description

@squid-protocol

Idea

Our scenarios are hand-written, so whole-program branch coverage on proven cases is often low. Examples: LGACDB01 6/14, INQACC 13/25.

IBM's validation work (Kumar et al., ASE 2024, arXiv 2506.10999; Hans et al., arXiv 2504.10548) generates COBOL inputs by symbolic execution, one test per path. It reports full branch coverage on 84% of the multi-path paragraphs and 92.8% of 94,524 compiler-benchmark paragraphs. Their method mocks resources on the Java side. Ours compares against real Db2 and a CICS model end to end, so the two would complement each other.

Proposal

  • Derive candidate scenarios from path conditions over the COBOL program. We already have a branch inventory from the coverage report, and the det translator knows every condition.
  • Solve each condition for COMMAREA, dataset or table contents that reach an uncovered branch.
  • Emit those as case scenarios for review. Never auto-commit them; a person reviews each one.

This pairs with SQL fault injection (filed separately); many uncovered branches are SQLCODE paths.

Activity

  1. added
    enhancement
    legacy-modernization
    testing
    priority: low
    on Oct 3, 2026
  2. added
    scope:frontier
    era:2
    on Oct 16, 2026
  3. added
    needs:corpus
    needs:docker
    on Oct 18, 2026
  4. squid-protocol commented on Nov 3, 2026

    @squid-protocol
    OwnerAuthor

    Closing out (owner, 2026-11-02). Landed / landing:

    What the proposal asked for that is deliberately not here:

    • Solving for dataset / table contents. Inputs cover COMMAREA fields, AID and RECEIVE MAP fields, but not file records.
    • SQLCODE paths still need fault plans (Db2: melek).
    • Next precision steps, if wanted: modelling STRING results and plain PERFORM UNTIL counter bounds would turn most of the remaining C witnesses into confirmations.
  5. squid-protocol commented on Nov 3, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-03T17:41Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  6. squid-protocol commented on Nov 3, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4175-20261103T1732Z (host melek) ended without a PR. fix pushed to #7608, approved at 8ce24b3

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

    claim:melekenhancementera:2legacy-modernizationneeds:corpusneeds:dockerpriority: lowscope:frontiertesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions