Repository navigation
det: ARITH(EXTEND) modelled -- an intermediate past 30 digits stops by name (Part of #4706) - #5340
Conversation
…y name (Part of #4706) The oracle compiles ARITH(EXTEND) as COMPAT; the det runtime stops by name where an add, subtract, multiply or divide would produce more than 30 digits (RT-NUM-ARITH-EXTEND-STOP), and a port without the stop is a declared difference (option_differences). Floats under EXTEND stay refused. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… ports; EXTEND is no longer refused (Part of #4706) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #5340 @ dad77b6: 2 failed check(s) == ground-truth (failure) -- real == ground-truth part 1/2 (failure) -- main |
|
PR #5340 @ dad77b6: 2 failed check(s) == ground-truth (failure) -- real == ground-truth part 1/2 (failure) -- main |
… until re-run (Part of #4706) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (9c3dd44) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
Part of #4706.
What
Next unchecked item of the option table: ARITH(EXTEND) goes from "refused by name" to "modelled, like TRUNC(OPT)".
EXTEND differs from COMPAT only for an intermediate past 30 digits (31 instead) and float precision.
COBC_OPTIONS[("ARITH","EXTEND")]compiles it with the COMPAT flags (GnuCOBOL caps neither, C2).Codec.arithExtend/Cobol.swapArithExtend;add/subtract/multiply/dividestop by name when the result passes 30 digits (rulesRT-NUM-ARITH-EXTEND-STOP,RT-CBL-ARITH-PER-PROGRAM; catalogue check passes).with_trunc(..., extend=True)swaps it on per entry and restores it; under EXTENDgen.pyroutes+ - *(expressions and ADD/SUBTRACT/MULTIPLY) throughCobol.*(wide_op) so the stop sees them. Float under EXTEND stays refused (Untranslatable).option_differences.tests/cobol_mainframe/test_arith_extend.py(oracle flags, declared difference, translator emission, JDK runtime: within 30 digits equals COMPAT, past 30 stops by name for*, MULTIPLY GIVING, chained);_java_run(arith_extend=);test_regional_optionsno longer lists EXTEND as refused.Burned-estate reach
Among the burned estates only DBB
epscsmrd.cblcarriesPROCESS ARITH(EXTEND); no committed case ports it, so no case port's service changed.det_port.py check: 120/120 ports differ only in the sharedcobolrt/Cobol.javaruntime (as for any runtime change). No burned program uses INTDATE(LILIAN), ZONEDATA, INVDATA, DISPSIGN, NSYMBOL(DBCS), FLOAT(NATIVE), SSRANGE or NUMCHECK.Plan changes
The plan was partly redundant:
arith_extend()and the float refusal already existed. Real gaps were the oracle refusal, the runtime stop, the declared difference, and a generator path that emitted rawBigDecimal.multiply(found by the first runtime test).Gates
pr_gates --fast: 6/6 pass;--ratchets: 8/8 passpytest tests/cobol_mainframe tests/cics_crucible: 5621 passed, 3 failed before the fixes in this PR (EXTEND refusal test, evidence/provenance currency); those three files re-run green after.EQUIVALENCE_E2E); re-proving the 120 estate ports (runtime-only change; scheduled job).Sibling gaps (no burned program needs them)
INTDATE(LILIAN), ZONEDATA/INVDATA, DISPSIGN(SEP), NSYMBOL(DBCS), FLOAT(NATIVE), SSRANGE/NUMCHECK checks (owner decisions), ARITH(EXTEND) floats, intrinsic-mode (
intr)+ - *under EXTEND.Lessons for agents
tests/cics_crucible/ports/*/overlay/cobolrtcopies of ports that carry one; copy only your own hunks if the overlay lags main (PCIMMA did: a wholesale copy broke its re-proof).crucible_port_provenance.py reprovewithout--casesrewrites every provenance.json; pass--cases.BigDecimal.add/multiplyin many places; a runtime guard onCobol.*alone sees none of them.🤖 Generated with Claude Code