Recover packed range checks and half-adjusted arithmetic #819
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-packed-operand-evidence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Recover packed range checks and half-adjusted arithmetic
The emitter uses a packed parameter's proved precision and scale to recover
decimal bounds in compound comparisons. When a multiply and divide end in a
half-adjusted store, the two discarded places and the destination scale can
identify the operands and the precision of
%DECH. Conflicting or ambiguousliteral scales keep the ordinary diagnostic.
A complete free-form listing with original statement numbers can also retain
one unused name-shaped character literal in a
dcl-c. The declaration usesa blank line before the first statement. A binding directory and an unused
constant can produce the same stripped object, so the declaration preserves
the literal without assigning it a binding role.
Verification
The DB2 for i example emits all 14 statements and recompiles to a strict IBM i object match. Across 43 public programs this branch independently moves verified matches from 12 to 13 and independent upstream repositories from eight to nine. All 42 other emitted listings and DDS sets are byte-identical to v0.1.534.
The pinned build-image suite passed. The native gate recorded 14 cases on each binary.
e197f73a5etof4083ba96ef4083ba96eaff8b4c4e2