Skip to content

det runtime: a floating-point zero divisor still throws ArithmeticException (Hfp.divide) #4675

Closed

Description

@squid-protocol

Problem

A floating-point (COMP-1 / COMP-2) DIVIDE or COMPUTE with a zero divisor still stops the det port with ArithmeticException (Hfp.divide). #4655 modelled the decimal path (libcob's NaN: receivers unchanged, size error raised) but not the HFP path, and floating-point statements refuse ON SIZE ERROR by name.

Proposal

Measure what the oracle (GnuCOBOL 3.1.2 -std=ibm) does for a COMP-1 / COMP-2 zero divisor, with and without ON SIZE ERROR, and either model it in Hfp.divide / the float store path or refuse it by name in the register (oracle_assumptions C6 / C14). IBM leaves the result undefined without ON SIZE ERROR (C14).

Part of #4270. Follow-up of #4655.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    legacy-modernization
    priority: low
    on Oct 8, 2026
  2. added
    scope:sweep
    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

    buglegacy-modernizationpriority: lowscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions