Recover arrays that start inside a data structure #754

Manually merged
binjovi-bot merged 6 commits from lr1e into trunk 2026-11-07 17:44:47 +00:00
Owner

Recover arrays that start inside a data structure

  • An array that starts after other subfields of a data structure (34 S BASE; 27 K; 62) is one subfield with dim and, when the initial bytes repeat one element, inz; an element is ds.F10(3), not a subfield at byte BASE + K. The extent runs to the next subfield, and while the initial bytes repeat the first element.
  • Reads through that address are typed (the stack walk now proves the address of a typed load, also when two addresses wait on the stack), and the decimal positions of the elements are those of the array.
  • The long initial value of a data structure that the compiler stores in 400-byte chunks is one value.
  • A data structure whose initial bytes are all defaults is declared inz.
  • Probes lr1-db-ds-* (ds-blank-arr).
  • A last gate on the written source: every name of the generated shape in an emitted statement must be declared (a field, or a subfield of a declared structure) and every constant index of an array inside its dimension; a statement with a name that no line declares is refused.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"regenerated","emit":{"worse":[],"better":0,"newly_clean":12,"clean_delta":12,"base":428,"new":440},"twins":{"groups":671,"recovered":658,"regressions":[],"newly":14},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":943}}
# Recover arrays that start inside a data structure - An array that starts after other subfields of a data structure (`34 S BASE; 27 K; 62`) is one subfield with `dim` and, when the initial bytes repeat one element, `inz`; an element is `ds.F10(3)`, not a subfield at byte BASE + K. The extent runs to the next subfield, and while the initial bytes repeat the first element. - Reads through that address are typed (the stack walk now proves the address of a typed load, also when two addresses wait on the stack), and the decimal positions of the elements are those of the array. - The long initial value of a data structure that the compiler stores in 400-byte chunks is one value. - A data structure whose initial bytes are all defaults is declared `inz`. - Probes `lr1-db-ds-*` (ds-blank-arr). - A last gate on the written source: every name of the generated shape in an emitted statement must be declared (a field, or a subfield of a declared structure) and every constant index of an array inside its dimension; a statement with a name that no line declares is refused. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden floor 173 ceiling 0 <= dump 173/5/0","legend":"regenerated","emit":{"worse":[],"better":0,"newly_clean":12,"clean_delta":12,"base":428,"new":440},"twins":{"groups":671,"recovered":658,"regressions":[],"newly":14},"allgroups":{"regressions":[],"newly":[],"worse":[]},"full_check":{"exit":0,"seconds":943}} ```
An array addressed as 34 S BASE; 27 K; 62 is one subfield with dim and
inz; its elements are ds(i), typed and scaled as the array. The stack walk
proves the address of a typed load, the chunks of a long initial value are
one value, and a structure whose initial bytes are defaults is INZ.
Regenerate the operations legend
All checks were successful
binjovi/ci Binjovi completed the frozen plan
0d03cc7bb5
sean force-pushed lr1e from 0d03cc7bb5
All checks were successful
binjovi/ci Binjovi completed the frozen plan
to 3443ee4e7f
All checks were successful
binjovi/ci Binjovi completed the frozen plan
2026-11-07 17:35:04 +00:00
Compare
binjovi-bot manually merged commit 3443ee4e7f into trunk 2026-11-07 17:44:47 +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!754
No description provided.