You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
det runtime: numeric-edited item compared with a numeric literal numerically; GnuCOBOL compares it as text #4665
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
A relation condition between a numeric-edited item and a numeric literal gives a different answer on the det port than on the oracle. GnuCOBOL (cobc -x -std=ibm -fsign=EBCDIC) compares the edited item as alphanumeric text; the det runtime de-edits it and compares numbers.
Evidence (origin/main 6d49963, no DECIMAL-POINT IS COMMA involved)
GnuCOBOL prints LE / LE; the det port (test_det_programs._java_run, bytes mode) prints GT / GT. Found while writing the #4462 DPCOMMA end-to-end program (the comparison was left out of it).
Impact on a real estate
A program that tests an edited report field against a number takes the other branch after translation, with no hole or refusal saying so.
Acceptance criteria
Decide the rule from IBM Enterprise COBOL's comparison rules (numeric-edited operands vs numeric literals / items) and GnuCOBOL's behaviour; record any difference in oracle_assumptions.md.
The det runtime / generator follows it, or refuses the comparison by name.
A test_det_programs end-to-end program pins it against GnuCOBOL.
Found during: #4462 (DECIMAL-POINT IS COMMA slice)
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
Merge origin/main into fix/4665-edited-compare: one literal-as-text path
det: a numeric-edited item compared with a number is a text comparison (