Trace the refusal sites of the call argument proof (touches rpg_eval.zig) #762

Manually merged
binjovi-bot merged 1 commit from lt3 into trunk 2026-11-08 13:27:45 +00:00
Owner

Refusal-site tokens in the call argument proof (rpg_eval.zig, rpg_frames.zig, rpg_file_call.zig, rpg_calls.zig)

The grammar and the Debug-only gate of rpg_trace.zig are unchanged
(refusal <file>.<function> sNN, code locations only, no output change;
begin(), module() and every existing token are untouched). When every
argument reader of a call declined, the statement carried the tokens of a
recovered call. New sites, numbered in return order among themselves; in a
function that already had sites the new ones continue after its last number,
so no existing token moves:

  • rpg_frames.zig: rewrite s01 (no frame at a call), s02 (no status unit),
    s03 (result temporaries used otherwise): these decide proved. Also
    dateResultUse s04, deadStore s07, callInformation s04 and s05,
    integer s03, typeOf s02 (the last value-mismatch returns).
  • rpg_eval.zig: call s10 (the call_arguments failure of an unproved
    call, the token that separates it from a proved one); builtinCall s06;
    operationText s01 to s03 (WRITE and DSPLY failures, WRITE ?);
    catalogOperation s01; timeDtzCall s01-s09, dateConvertCall s01-s07,
    editCall s01-s06 (the special call rules); the readers load s01-s04,
    tempValue s01-s02, valueText s01, dataText s01, resolveDecimals
    s01-s05; step s13-s37 (null-pointer guard before a call, load, pointer
    and parameter-tag arms, copy arm, checked copy, program call arguments).
  • rpg_calls.zig (new): recover s01-s11 (not the operation-count guard
    b.len != ops.len, a scan predicate that runs for every statement),
    closedStatusGraph s01-s03, integer s01, types s01-s02,
    oneParameter s01-s04.
  • rpg_file_call.zig (new): inspect s01-s36 (every rejected result; the
    two not_call results stay with rpg_file_ops.call s02), staticCharacter
    s01-s02.
  • rpg_programs.zig: argumentText s03, replaceCheckedCopies s01 (a
    checked copy found nowhere), nullPointer s02, name s02.
  • rpg_decimal_call.zig: text s01 (no proof, partial %DEC).
  • rpg_shape.zig: ownBoundary s01-s04.
  • rpg_statements.zig: renderStatement s02 (procedure name failure), s03
    (remaining effects after a closing marker); net growth 0 lines.

rpg_argument_copy.zig, rpg_decimal_copy.zig and rpg_decimal_convert.zig
had no unsited decline left. rpg_decimal_argument.zig does not exist; the
decimal argument readers are the last two files.

rpg_trace_test.zig lists rpg_calls and rpg_file_call and holds every new
token to the pattern, uniqueness and file-name checks.

# Refusal-site tokens in the call argument proof (rpg_eval.zig, rpg_frames.zig, rpg_file_call.zig, rpg_calls.zig) The grammar and the Debug-only gate of `rpg_trace.zig` are unchanged (`refusal <file>.<function> sNN`, code locations only, no output change; `begin()`, `module()` and every existing token are untouched). When every argument reader of a call declined, the statement carried the tokens of a recovered call. New sites, numbered in return order among themselves; in a function that already had sites the new ones continue after its last number, so no existing token moves: - `rpg_frames.zig`: `rewrite` s01 (no frame at a call), s02 (no status unit), s03 (result temporaries used otherwise): these decide `proved`. Also `dateResultUse` s04, `deadStore` s07, `callInformation` s04 and s05, `integer` s03, `typeOf` s02 (the last value-mismatch returns). - `rpg_eval.zig`: `call` s10 (the `call_arguments` failure of an unproved call, the token that separates it from a proved one); `builtinCall` s06; `operationText` s01 to s03 (WRITE and DSPLY failures, `WRITE ?`); `catalogOperation` s01; `timeDtzCall` s01-s09, `dateConvertCall` s01-s07, `editCall` s01-s06 (the special call rules); the readers `load` s01-s04, `tempValue` s01-s02, `valueText` s01, `dataText` s01, `resolveDecimals` s01-s05; `step` s13-s37 (null-pointer guard before a call, load, pointer and parameter-tag arms, copy arm, checked copy, program call arguments). - `rpg_calls.zig` (new): `recover` s01-s11 (not the operation-count guard `b.len != ops.len`, a scan predicate that runs for every statement), `closedStatusGraph` s01-s03, `integer` s01, `types` s01-s02, `oneParameter` s01-s04. - `rpg_file_call.zig` (new): `inspect` s01-s36 (every `rejected` result; the two `not_call` results stay with `rpg_file_ops.call s02`), `staticCharacter` s01-s02. - `rpg_programs.zig`: `argumentText` s03, `replaceCheckedCopies` s01 (a checked copy found nowhere), `nullPointer` s02, `name` s02. - `rpg_decimal_call.zig`: `text` s01 (no proof, partial `%DEC`). - `rpg_shape.zig`: `ownBoundary` s01-s04. - `rpg_statements.zig`: `renderStatement` s02 (procedure name failure), s03 (remaining effects after a closing marker); net growth 0 lines. `rpg_argument_copy.zig`, `rpg_decimal_copy.zig` and `rpg_decimal_convert.zig` had no unsited decline left. `rpg_decimal_argument.zig` does not exist; the decimal argument readers are the last two files. `rpg_trace_test.zig` lists `rpg_calls` and `rpg_file_call` and holds every new token to the pattern, uniqueness and file-name checks.
binjovi-bot manually merged commit e6c2a12aa7 into trunk 2026-11-08 13:27:45 +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!762
No description provided.