Recover S = %TRIM(X) into a fixed-length field, and %TRIM of an edited text #612

Manually merged
binjovi-bot merged 2 commits from rpg-9-n-trim-assign-20261022 into trunk 2026-10-22 23:28:34 +00:00
Owner

Recover S = %TRIM(X) into a fixed-length field, and %TRIM of an edited text

  • rpg_trim.zig: assignUnit proves the trimmed assignment: the source
    and the two trim loops, then the copy of the N trimmed bytes at P to S
    and, when W - N is more than 0, a fill of the rest of S with blanks
    (public twin h-bifs-char statement 18, S = %trim(C), new probe: a
    battery of character built-ins). The closing label of the fill is the end
    of the statement, so the proof reads it in the instruction stream.
  • rpg_trim.zig Source.temp: the trimmed data may be a compiler
    temporary whose value the reader knows (33 T). rpg_editc.zig: when
    the edited result temporary is trimmed next, the unit writes the edited
    text to it instead of giving a value. d4-edit statement 12,
    s = %trim(%editc(p : 'J')), now reads %TRIM(%EDITC(A: 'J')); the
    expression form (i / 100) stays partial on its decimal positions.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"emit":{"worse":[],"better":3,"newly_clean":0,"clean_delta":0,"base":203,"new":203},"twins":{"groups":406,"recovered":393,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/d4-edit/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/h-bifs-char/stripped/object.savf 1","savf/SC-ILE/FLOW/qualified-subroutines-observable/archive.savf 1","savf/SC-ILE/FLOW/qualified-subroutines-stripped/archive.savf 1"],"worse":[]},"full_check":{"exit":0,"seconds":725}}
# Recover S = %TRIM(X) into a fixed-length field, and %TRIM of an edited text - `rpg_trim.zig`: `assignUnit` proves the trimmed assignment: the source and the two trim loops, then the copy of the N trimmed bytes at P to S and, when W - N is more than 0, a fill of the rest of S with blanks (public twin `h-bifs-char` statement 18, `S = %trim(C)`, new probe: a battery of character built-ins). The closing label of the fill is the end of the statement, so the proof reads it in the instruction stream. - `rpg_trim.zig` `Source.temp`: the trimmed data may be a compiler temporary whose value the reader knows (`33 T`). `rpg_editc.zig`: when the edited result temporary is trimmed next, the unit writes the edited text to it instead of giving a value. `d4-edit` statement 12, `s = %trim(%editc(p : 'J'))`, now reads `%TRIM(%EDITC(A: 'J'))`; the expression form (`i / 100`) stays partial on its decimal positions. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"emit":{"worse":[],"better":3,"newly_clean":0,"clean_delta":0,"base":203,"new":203},"twins":{"groups":406,"recovered":393,"regressions":[],"newly":0},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/d4-edit/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/h-bifs-char/stripped/object.savf 1","savf/SC-ILE/FLOW/qualified-subroutines-observable/archive.savf 1","savf/SC-ILE/FLOW/qualified-subroutines-stripped/archive.savf 1"],"worse":[]},"full_check":{"exit":0,"seconds":725}} ```
binjovi-bot manually merged commit 7e3e4cd859 into trunk 2026-10-22 23:28:34 +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!612
No description provided.