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 translator: arithmetic-vs-scaled-item comparison differs from cobc; 'OR NOT = x' does not parse #4681
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Found while proving #4674 / #4656 (PR #4680). Each is a small, separate hole in the det translator, GnuCOBOL (-std=ibm) as the oracle.
Wrong result: IF D0 + 1 > Q3 (D0 PIC 9(3) = 7, Q3 PIC 9V999 = 3.125): cobc takes the branch as false (D0 + 0 > Q3 and D0 + ZERO > Q3 too, and < Q3 as true); the det port says true. D0 + ZERO = 7 matches, so it is the comparison of an arithmetic expression against a different-scale item (OSVS arithmetic family, cf. det runtime: truncate arithmetic intermediates as cobc's ARITHMETIC-OSVS does (#4287) #4654).
Wrong result: IF S3 NOT < 3 + B0 * - D0 (S3 PIC S9(4)V999 = -5.125, B0 PIC 9(4) COMP = 579, D0 PIC 9(3) = 7): cobc false, port true (one line, no line split involved).
Parse hole: IF A = 'B' OR NOT = 'C' (abbreviated combined relation with NOT = after OR) makes the whole PROCEDURE DIVISION fail to parse, on one line; OR NOT < 100 is fine.
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
det parse: abbreviated 'OR NOT = x' relation; pin conditions holes 1-2 (