Skip to content

det port vs oracle: float expressions the oracle evaluates differently (MOVE COMP-1 to edited truncates; some compound float COMPUTEs) #4688

Closed

Description

@squid-protocol

Seen by the #4675 fuzz (PR #4686), unrelated to size errors, all in the C6 'oracle is not IBM' territory; not checked against IBM. (1) MOVE G TO E with G COMP-1 = 1.875 and E PIC -(5)9.99: cobc shows 1.87, the port 1.88. (2) COMPUTE R1 = ((FA / 2) * (0.5 + F4)) (FA COMP-1 5, F4 COMP-2 4, R1 PIC S9(7)V99): cobc stores 0.00, the port 11.25 (IBM's HFP answer). (3) ADD FZ2 TO R4 with R4 PIC S9(7)V99 COMP-3 = 0.68 and a COMP-2 zero operand: the port converts 0.68 to HFP and stores 0.67 (inexact in hex float); cobc keeps 0.68. Decide per case whether the port should follow IBM (document in C6) or the oracle. 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. added a commit that references this issue on Oct 17, 2026
  4. squid-protocol commented on Oct 17, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met by #5329: all three cases decided for IBM (hand-computed vectors + translation tests in test_det_hfp.py, documented in C6). Float ** (EPSMPMT, frontier) and NUMVAL-F remain tracked as sibling gaps.

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