rpg_array_element.zig, rpg_eval.zig, rpg_decimal_call.zig, rpg_facts.zig, rpg_eval_builtins.zig, rpg_source.zig: an array that is a subfield of a data structure, %DEC and %DECH of a subfield, typed numbers at byte 0 #770

Manually merged
binjovi-bot merged 8 commits from lr1g into trunk 2026-11-09 00:24:13 +00:00
Owner

Recover a numeric array that is a subfield of a data structure, read and stored at a variable index

  • The array element unit now accepts a structure whose size is no multiple of the element width (a text field of 40 bytes and 10 packed elements of 3: 70 bytes); it refused it as a whole-symbol array (lr1-ld-ds-hex: "unresolved").
  • The unit's fact now names the array's first byte and dimension. The structure is declared with the array as a subfield with dim (and the INZ its bytes show) at byte 0 or after other subfields, and the statements print A_00253_F0(i) for a read and for a store. The subfield takes the type of the access, not that of the character stores of the initialization.
  • A structure with no proved subfield is refused as a declaration, not written.
  • Probes lr1-af-* (array first), lr1-ld-ds-hex.
  • A qualified structure (its array addressed 33 S; 27 K; 62) stays qualified: the unit names the form in its fact, and lr1-num-pk-ds is now dcl-ds rec qualified; a packed(7:2) dim(5); b packed(7:2) dim(5); with rec.a(1), rec.a(i).
  • %DEC, %INT and %DECH of a character subfield at byte B of a structure (34 S B; 113 6 1; 27 LEN; ... 99 DEC) are recovered, and the subfield is a character field of LEN bytes (lr1-lv-ds-char-dec: x = %dec(c: 30: 5)).
  • A numeric array that starts at its largest or smallest value is inz(*hival) or inz(*loval) (also the FILL X'F9' image of a zoned array), not a literal of nines.
  • A declaration of a field may take up to twelve lines (a long character text continues with +); the image of a whole array stays refused.
  • %DECH (the last constant of the decimal call is 1, half-adjust) is recovered like %DEC, standalone and of a subfield (lr1-lv-char-dech, lr1-lv2-ds-dech-noinz).
  • The image of arrays laid end to end that no statement divides (lr1-ld-ds-array-mixed: 50 zoned bytes of F1F2F3F4F5 and 50 packed bytes of 123456789F) is a character field for each run of one pattern, inz(*allx'pattern'), instead of one long hexadecimal literal that the declaration refused.
  • Negative result of the held-out family _QRNX_GET_DECIMAL_NUM / "line longer than 100 bytes": a character subfield at byte B read by %DEC, %INT, %DECH, a long INZ of twelve lines, *HIVAL arrays, an array at byte 0 and the runs of a pattern all leave the family unchanged on the held-out programs; their symbol is none of these public shapes.
  • A number that a statement loads at byte 0 of a structure (lr1-lv-ds-nine-p, lr1-lv-ds-two-p30: 29 S 0 T packed) is a typed subfield F0, not a character image G0 that the statement then added as a name (RNF7416); the initialization stores the same bytes as characters, and the load is the type. A decimal INZ is spelled as the source has it (1.5, not 1.50000) when the literals of the module say so.
# Recover a numeric array that is a subfield of a data structure, read and stored at a variable index - The array element unit now accepts a structure whose size is no multiple of the element width (a text field of 40 bytes and 10 packed elements of 3: 70 bytes); it refused it as a whole-symbol array (`lr1-ld-ds-hex`: "unresolved"). - The unit's fact now names the array's first byte and dimension. The structure is declared with the array as a subfield with `dim` (and the INZ its bytes show) at byte 0 or after other subfields, and the statements print `A_00253_F0(i)` for a read and for a store. The subfield takes the type of the access, not that of the character stores of the initialization. - A structure with no proved subfield is refused as a declaration, not written. - Probes `lr1-af-*` (array first), `lr1-ld-ds-hex`. - A qualified structure (its array addressed `33 S; 27 K; 62`) stays qualified: the unit names the form in its fact, and `lr1-num-pk-ds` is now `dcl-ds rec qualified; a packed(7:2) dim(5); b packed(7:2) dim(5);` with `rec.a(1)`, `rec.a(i)`. - `%DEC`, `%INT` and `%DECH` of a character subfield at byte B of a structure (`34 S B; 113 6 1; 27 LEN; ... 99 DEC`) are recovered, and the subfield is a character field of LEN bytes (`lr1-lv-ds-char-dec`: `x = %dec(c: 30: 5)`). - A numeric array that starts at its largest or smallest value is `inz(*hival)` or `inz(*loval)` (also the `FILL X'F9'` image of a zoned array), not a literal of nines. - A declaration of a field may take up to twelve lines (a long character text continues with `+`); the image of a whole array stays refused. - `%DECH` (the last constant of the decimal call is 1, half-adjust) is recovered like `%DEC`, standalone and of a subfield (`lr1-lv-char-dech`, `lr1-lv2-ds-dech-noinz`). - The image of arrays laid end to end that no statement divides (`lr1-ld-ds-array-mixed`: 50 zoned bytes of `F1F2F3F4F5` and 50 packed bytes of `123456789F`) is a character field for each run of one pattern, `inz(*allx'pattern')`, instead of one long hexadecimal literal that the declaration refused. - Negative result of the held-out family `_QRNX_GET_DECIMAL_NUM` / "line longer than 100 bytes": a character subfield at byte B read by `%DEC`, `%INT`, `%DECH`, a long INZ of twelve lines, `*HIVAL` arrays, an array at byte 0 and the runs of a pattern all leave the family unchanged on the held-out programs; their symbol is none of these public shapes. - A number that a statement loads at byte 0 of a structure (`lr1-lv-ds-nine-p`, `lr1-lv-ds-two-p30`: `29 S 0 T` packed) is a typed subfield `F0`, not a character image `G0` that the statement then added as a name (RNF7416); the initialization stores the same bytes as characters, and the load is the type. A decimal INZ is spelled as the source has it (`1.5`, not `1.50000`) when the literals of the module say so.
sean changed title from rpg_array_element.zig, rpg_decimal_call.zig, rpg_facts.zig, rpg_eval_builtins.zig, rpg_source.zig: an array that is a subfield of a data structure, %DEC and %DECH of a subfield, typed numbers at byte 0 to rpg_array_element.zig, rpg_eval.zig, rpg_decimal_call.zig, rpg_facts.zig, rpg_eval_builtins.zig, rpg_source.zig: an array that is a subfield of a data structure, %DEC and %DECH of a subfield, typed numbers at byte 0 2026-11-08 18:18:08 +00:00
sean force-pushed lr1g from 1509ebd14a
All checks were successful
binjovi/ci Binjovi completed the frozen plan
to c0fe600445
All checks were successful
binjovi/ci Binjovi completed the frozen plan
2026-11-08 23:57:30 +00:00
Compare
sean force-pushed lr1g from c0fe600445
All checks were successful
binjovi/ci Binjovi completed the frozen plan
to 0daba11a38
All checks were successful
binjovi/ci Binjovi completed the frozen plan
2026-11-09 00:14:55 +00:00
Compare
binjovi-bot manually merged commit 0daba11a38 into trunk 2026-11-09 00:24:13 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!770
No description provided.