Recover varying character program arguments #824

Manually merged
binjovi-bot merged 4 commits from rpg-varying-command-calls into trunk 2026-11-20 19:21:13 +00:00
Owner

Recover varying character program arguments

  • Recover a varying character argument copied and padded to a fixed-width program parameter, including its checked length and a later independently verified reuse of the copy buffer.
  • Preserve the measured optional program-call descriptor and otherwise unused numeric constants without inferring an unobserved parameter type.
  • Recover repeated literal program calls whose copy reuses an existing address setup.

Gate

== a. development emits (dev-hash)
p1 same
p2 same
p3 same
p4 same
p5 same
== b. L10-test direction
L10-test unchanged
== c. committed twins (emit-bytes-diff)
emit text differs:
diff -r -x emit.ndjson -x *.receipt.json /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/base-emit/1045-P81B6D162S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/head-emit/1045-P81B6D162S.rpgle
5a6
>   *n char(1) const options(*nopass);
19d19
< 
diff -r -x emit.ndjson -x *.receipt.json /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/base-emit/1049-P15AE9F83S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/head-emit/1049-P15AE9F83S.rpgle
5a6
>   *n char(1) const options(*nopass);
41d41
< 
diff -r -x emit.ndjson -x *.receipt.json /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/base-emit/1051-P01249755S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/head-emit/1051-P01249755S.rpgle
5a6
>   *n char(1) const options(*nopass);
92d92
< 
diff -r -x emit.ndjson -x *.receipt.json /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/base-emit/1052-P01249755S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/head-emit/1052-P01249755S.rpgle
5a6
>   *n char(1) const options(*nopass);
92d92
< 
forms projection differs:
98c98
< {"twin":"savf/SC-ILE/EXPERIMENTS/command-prototype-optional/stripped","object":"P1362C11ES","status":"done","statements":4,"emitted":4,"failures":0,"lines":13,"form_counts":{"copied_character_argument_v1":1,"copied_packed_literal_argument_v1":1,"cycle_body_routine_v1":1,"cycle_end_v1":1,"cycle_return_transfer_v1":1,"emit_assign_field_v1":1,"emit_call_program_v1":1,"emit_ctl_opt_v1":1,"emit_dcl_pr_v1":1,"emit_dcl_s_v1":1,"emit_end_pr_v1":1,"emit_free_v1":1,"emit_inlr_v1":1,"emit_pr_parameter_literal_v1":2,"emit_return_v1":1,"emit_summary_v1":1,"layout_blank_v1":1,"static_initialization_v1":1},"text_sha256":"2563950b6e0c708c3bc6791a95c8ec38e52fe5c4d7b11d918d96979b4788b5a3"}
---
== d. captures (capture-emit-diff)
l10-barrettotte-ibmi-lib-repo-2 base=[4,2,2] head=[4,4,0] CHANGED fail-lines=0
command-call-variable base=[4,3,1] head=[4,4,0] CHANGED fail-lines=0
command-prototype-optional base=[4,4,0] head=[4,4,0] CHANGED fail-lines=0
command-call-repeated base=[5,4,1] head=[5,5,0] CHANGED fail-lines=0
command-varying-reuse base=[5,3,2] head=[5,5,0] CHANGED fail-lines=0
... 57 lines omitted; the full table is in gate.log ...
l10-scout2b/l10-barrettotte-ibmi-lib-repo/l10-barrettotte-ibmi-lib-repo-2 base=different head=match
l10-scout2b/l10-danlong005-openrpg/l10-danlong005-openrpg-1 base=match head=match
l10-scout2b/l10-danlong005-openrpg/l10-danlong005-openrpg-2 base=match head=match
l10-scout2b/l10-danlong005-openrpg/l10-danlong005-openrpg-4 base=match head=match
l10-scout2b/l10-danlong005-openrpg/l10-danlong005-openrpg-5 base=match head=match
packed-field-qualification-20261119/packed-field-rounded base=match head=match
packed-public-proof-20261119/packed-range-above    base=different head=different
packed-public-proof-20261119/packed-range-below    base=match head=match
packed-public-proof-20261119/packed-range-both     base=match head=match
packed-public-proof-20261119/packed-round-factor-half base=different head=different
packed-public-proof-20261119/packed-round-factor-truncate base=different head=different
packed-scale-proof-20261119/scaled-round-extra-place base=different head=different
packed-scale-proof-20261119/scaled-round-field-half base=different head=different
packed-scale-proof-20261119/scaled-round-field-truncate base=different head=different
packed-scale-proof-20261119/scaled-round-literal-half base=match head=match
padded-part-simple-public-20261119/padded-first-simple base=match head=match
padded-part-simple-public-20261119/padded-whole-simple base=match head=match
retained-text-proof-20261119/retained-text-absent  base=match head=match
retained-text-proof-20261119/retained-text-unused  base=match head=match
retained-text-proof-20261119/retained-text-used    base=match head=match
size-before-call-next-two-20261120/size-before-call-ambiguous base=different head=different
size-before-call-next-two-20261120/size-before-call-literal base=different head=different
size-before-call-next-two-20261120/size-before-call-size base=match head=match
trim-affix-public-20261120/trim-affix-prefix       base=match head=match
trim-affix-wide-clean-public-20261120/trim-affix-wide-clean base=match head=match
trim-affix-width-public-20261120/trim-affix-short  base=match head=match
trim-first-layout-display52-next-two-20261120/trim-layout-first-wide base=match head=match
trim-first-layout-display52-next-two-20261120/trim-layout-last-wide base=match head=match
varying-parts-v2-public-20261119/vtrim-prefix-part base=match head=match
command-calls-next-19-20261120/command-call-variable base=different head=match
command-calls-next-19-20261120/command-call-literal base=match head=match
command-call-prototype-next-19-20261120/command-prototype-optional base=different head=different
command-call-prototype-next-19-20261120/command-prototype-mutable base=match head=match
repeated-command-calls-next-19-20261120/command-call-repeated base=different head=different
command-varying-reuse-next-19-20261120/command-varying-reuse base=different head=different
command-optional-controls-next-19-20261120/command-optional-one base=different head=match
command-optional-controls-next-19-20261120/command-optional-two base=different head=different
command-optional-controls-next-19-20261120/command-optional-passed base=different head=different
gate: PASS

Native evidence

  • The public command program now recovers four of four statements; its rebuilt object is a strict match, increasing the candidate scoreboard from 18 to 19 of 43 verified programs across 13 repositories.
  • A single omitted optional-parameter control also matches. A control with multiple omitted optional parameters still differs; a passed-parameter control retains the released source when an extra declaration would displace a statement.
  • The focused argument-copy suite passes 400 tests in the pinned Build image. The release gate above includes the broader corpus, source-agreement, and native comparisons.
# Recover varying character program arguments - Recover a varying character argument copied and padded to a fixed-width program parameter, including its checked length and a later independently verified reuse of the copy buffer. - Preserve the measured optional program-call descriptor and otherwise unused numeric constants without inferring an unobserved parameter type. - Recover repeated literal program calls whose copy reuses an existing address setup. ## Gate ``` == a. development emits (dev-hash) p1 same p2 same p3 same p4 same p5 same == b. L10-test direction L10-test unchanged == c. committed twins (emit-bytes-diff) emit text differs: diff -r -x emit.ndjson -x *.receipt.json /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/base-emit/1045-P81B6D162S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/head-emit/1045-P81B6D162S.rpgle 5a6 > *n char(1) const options(*nopass); 19d19 < diff -r -x emit.ndjson -x *.receipt.json /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/base-emit/1049-P15AE9F83S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/head-emit/1049-P15AE9F83S.rpgle 5a6 > *n char(1) const options(*nopass); 41d41 < diff -r -x emit.ndjson -x *.receipt.json /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/base-emit/1051-P01249755S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/head-emit/1051-P01249755S.rpgle 5a6 > *n char(1) const options(*nopass); 92d92 < diff -r -x emit.ndjson -x *.receipt.json /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/base-emit/1052-P01249755S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.7AzxQr/head-emit/1052-P01249755S.rpgle 5a6 > *n char(1) const options(*nopass); 92d92 < forms projection differs: 98c98 < {"twin":"savf/SC-ILE/EXPERIMENTS/command-prototype-optional/stripped","object":"P1362C11ES","status":"done","statements":4,"emitted":4,"failures":0,"lines":13,"form_counts":{"copied_character_argument_v1":1,"copied_packed_literal_argument_v1":1,"cycle_body_routine_v1":1,"cycle_end_v1":1,"cycle_return_transfer_v1":1,"emit_assign_field_v1":1,"emit_call_program_v1":1,"emit_ctl_opt_v1":1,"emit_dcl_pr_v1":1,"emit_dcl_s_v1":1,"emit_end_pr_v1":1,"emit_free_v1":1,"emit_inlr_v1":1,"emit_pr_parameter_literal_v1":2,"emit_return_v1":1,"emit_summary_v1":1,"layout_blank_v1":1,"static_initialization_v1":1},"text_sha256":"2563950b6e0c708c3bc6791a95c8ec38e52fe5c4d7b11d918d96979b4788b5a3"} --- == d. captures (capture-emit-diff) l10-barrettotte-ibmi-lib-repo-2 base=[4,2,2] head=[4,4,0] CHANGED fail-lines=0 command-call-variable base=[4,3,1] head=[4,4,0] CHANGED fail-lines=0 command-prototype-optional base=[4,4,0] head=[4,4,0] CHANGED fail-lines=0 command-call-repeated base=[5,4,1] head=[5,5,0] CHANGED fail-lines=0 command-varying-reuse base=[5,3,2] head=[5,5,0] CHANGED fail-lines=0 ... 57 lines omitted; the full table is in gate.log ... l10-scout2b/l10-barrettotte-ibmi-lib-repo/l10-barrettotte-ibmi-lib-repo-2 base=different head=match l10-scout2b/l10-danlong005-openrpg/l10-danlong005-openrpg-1 base=match head=match l10-scout2b/l10-danlong005-openrpg/l10-danlong005-openrpg-2 base=match head=match l10-scout2b/l10-danlong005-openrpg/l10-danlong005-openrpg-4 base=match head=match l10-scout2b/l10-danlong005-openrpg/l10-danlong005-openrpg-5 base=match head=match packed-field-qualification-20261119/packed-field-rounded base=match head=match packed-public-proof-20261119/packed-range-above base=different head=different packed-public-proof-20261119/packed-range-below base=match head=match packed-public-proof-20261119/packed-range-both base=match head=match packed-public-proof-20261119/packed-round-factor-half base=different head=different packed-public-proof-20261119/packed-round-factor-truncate base=different head=different packed-scale-proof-20261119/scaled-round-extra-place base=different head=different packed-scale-proof-20261119/scaled-round-field-half base=different head=different packed-scale-proof-20261119/scaled-round-field-truncate base=different head=different packed-scale-proof-20261119/scaled-round-literal-half base=match head=match padded-part-simple-public-20261119/padded-first-simple base=match head=match padded-part-simple-public-20261119/padded-whole-simple base=match head=match retained-text-proof-20261119/retained-text-absent base=match head=match retained-text-proof-20261119/retained-text-unused base=match head=match retained-text-proof-20261119/retained-text-used base=match head=match size-before-call-next-two-20261120/size-before-call-ambiguous base=different head=different size-before-call-next-two-20261120/size-before-call-literal base=different head=different size-before-call-next-two-20261120/size-before-call-size base=match head=match trim-affix-public-20261120/trim-affix-prefix base=match head=match trim-affix-wide-clean-public-20261120/trim-affix-wide-clean base=match head=match trim-affix-width-public-20261120/trim-affix-short base=match head=match trim-first-layout-display52-next-two-20261120/trim-layout-first-wide base=match head=match trim-first-layout-display52-next-two-20261120/trim-layout-last-wide base=match head=match varying-parts-v2-public-20261119/vtrim-prefix-part base=match head=match command-calls-next-19-20261120/command-call-variable base=different head=match command-calls-next-19-20261120/command-call-literal base=match head=match command-call-prototype-next-19-20261120/command-prototype-optional base=different head=different command-call-prototype-next-19-20261120/command-prototype-mutable base=match head=match repeated-command-calls-next-19-20261120/command-call-repeated base=different head=different command-varying-reuse-next-19-20261120/command-varying-reuse base=different head=different command-optional-controls-next-19-20261120/command-optional-one base=different head=match command-optional-controls-next-19-20261120/command-optional-two base=different head=different command-optional-controls-next-19-20261120/command-optional-passed base=different head=different gate: PASS ``` ## Native evidence - The public command program now recovers four of four statements; its rebuilt object is a strict match, increasing the candidate scoreboard from 18 to 19 of 43 verified programs across 13 repositories. - A single omitted optional-parameter control also matches. A control with multiple omitted optional parameters still differs; a passed-parameter control retains the released source when an extra declaration would displace a statement. - The focused argument-copy suite passes 400 tests in the pinned Build image. The release gate above includes the broader corpus, source-agreement, and native comparisons.
binjovi-bot manually merged commit 760f7aa1e9 into trunk 2026-11-20 19:21: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!824
No description provided.