Skip to content

det port: a zero divisor inside a larger COMP-1/COMP-2 expression is refused at run time #4687

Closed

Description

@squid-protocol

Found by the #4675 work (PR #4686). Hfp.divideNested stops the run (ArithmeticException) when a division that is not the statement's whole value has a zero divisor. The oracle (cobc 3.1.2 -std=ibm) runs cob_decimal_align on the NaN there: (F/FZ) * 3 leaves the receiver, (F/FZ) * C, FM * (F/FZ) store 0, 2 - (F/FZ) stores 2, (F/FZ) + 1 leaves it. Model it (replay the OSVS alignment plan for float statements) or keep the named stop and register it. Part of #4270.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    legacy-modernization
    priority: low
    on Oct 8, 2026
  2. added
    scope:sweep
    era:2
    on Oct 16, 2026
  3. squid-protocol commented on Oct 17, 2026

    @squid-protocol
    OwnerAuthor

    Closed by #5330: the issue offered two routes (replay the OSVS alignment plan, or keep the named stop and register it). The replay was built and measured against the oracle (matched 23 of 25 shapes, and the oracle truncates integer intermediates IBM does not), so the named stop is kept and registered in C14.md with a codegen test pinning it. Remaining float-expression gaps are listed as sibling gaps in the PR.

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:2legacy-modernizationpriority: lowscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions