Recover external program calls, structure arguments and based integer stores #822

Manually merged
binjovi-bot merged 13 commits from rpg-public-matches into trunk 2026-11-20 13:52:35 +00:00
Owner

Recover external program calls, structure arguments and based integer stores

  • Recover distinct, simultaneously live argument copies and the static counter in their owning procedure. Whole-structure initializers use storage addresses, the retained byte image and source literals.
  • Recover the trim of a first character subfield when independent stores measure the entire static structure. Preserve the computed buffer length at its call and the target of a retained, uncalled external program.
  • Recover integer stores through a proved based structure at the offsets and widths recorded by the object, and counted loops with two-byte indexes.

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.fmx2Ce/base-emit/152-PB1D59BB9S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.fmx2Ce/head-emit/152-PB1D59BB9S.rpgle
2a3,14
> dcl-pr SEND extpgm('QMHSNDPM');
>   *n char(7) const;
>   *n char(20) const;
>   *n char(512);
>   *n int(10) const;
>   *n char(10) const;
>   *n char(10) const;
>   *n int(10) const;
>   *n char(4);
>   *n char(8);
> end-pr;
> dcl-s A_00253 char(8) inz(x'0000000800000000');
23,34d34
< 
< 
< 
< 
< 
forms projection differs:
110,111c110,111
< {"twin":"savf/SC-ILE/EXPERIMENTS/decimal-fault-report/stripped","object":"PB1D59BB9S","status":"done","statements":27,"emitted":19,"failures":8,"lines":63,"form_counts":{"array_element_v1":1,"cycle_body_routine_v1":1,"cycle_end_v1":1,"cycle_return_transfer_v1":1,"direct_branch_v1":3,"emit_assign_field_v1":1,"emit_assign_part_v1":10,"emit_ctl_opt_v1":1,"emit_dcl_s_v1":10,"emit_endfor_v1":2,"emit_endmon_v1":1,"emit_for_v1":2,"emit_free_v1":1,"emit_inlr_v1":1,"emit_monitor_v1":1,"emit_on_error_v1":1,"emit_summary_v1":1,"fail_statement_v1":8,"layout_blank_v1":23,"static_initialization_v1":1},"text_sha256":"0dd9514ebb4fbb789f4756665c376e9f07baa274b4a5bc227e76c8b4a89e5eba"}
< {"twin":"savf/SC-ILE/EXPERIMENTS/decimal-sign-report/stripped","object":"P563554D8S","status":"done","statements":37,"emitted":29,"failures":8,"lines":73,"form_counts":{"array_element_v1":1,"cycle_body_routine_v1":1,"cycle_end_v1":1,"cycle_return_transfer_v1":1,"direct_branch_v1":3,"emit_assign_field_v1":1,"emit_assign_part_v1":20,"emit_ctl_opt_v1":1,"emit_dcl_s_v1":10,"emit_endfor_v1":2,"emit_endmon_v1":1,"emit_for_v1":2,"emit_free_v1":1,"emit_inlr_v1":1,"emit_monitor_v1":1,"emit_on_error_v1":1,"emit_summary_v1":1,"fail_statement_v1":8,"layout_blank_v1":23,"static_initialization_v1":1},"text_sha256":"372c066372e315eaeb8bdb843295a32ff9405851045eab08fd3124afeb28d1c5"}
== d. captures (capture-emit-diff)
async-store-adjacent base=[11,7,6] head=[11,9,4] CHANGED fail-lines=4
async-store-narrow base=[11,6,6] head=[11,9,4] CHANGED fail-lines=4
async-store-shifted base=[11,7,6] head=[11,9,4] CHANGED fail-lines=4
static-store-adjacent base=[9,7,3] head=[9,9,1] CHANGED fail-lines=1
static-store-narrow base=[9,6,4] head=[9,9,1] CHANGED fail-lines=1
... 82 lines omitted; the full table is in gate.log ...
l10-scout2/l10-arora23saurabh-ibm-bob-ibmi-benchmar/l10-arora23saurabh-ibm-bob-ibmi-benchmar-1 base=match head=match
l10-scout2/l10-bluemoonjp-scratchpad-ibmi-learning/l10-bluemoonjp-scratchpad-ibmi-learning-1 base=different head=match
l10-scout2/l10-danlong005-imoq/l10-danlong005-imoq-1 base=match head=match
l10-scout2/l10-mauroghiglia-foms-ibmi/l10-mauroghiglia-foms-ibmi-1 base=match head=match
l10-scout2/l10-sagartyagi121-newlibrary/l10-sagartyagi121-newlibrary-1 base=match head=match
l10-scout2/l10-sitemule-ileastic/l10-sitemule-ileastic-1 base=match head=match
l10-scout2/l10-sitemule-noxdb/l10-sitemule-noxdb-1 base=match head=match
l10-scout2/l10-sitemule-noxdb/l10-sitemule-noxdb-2 base=match head=match
l10-scout2/l10-web-marketing-group-rpgle-webhooks/l10-web-marketing-group-rpgle-webhooks-1 base=different head=match
l10-scout2b/l10-barrettotte-ibmi-lib-repo/l10-barrettotte-ibmi-lib-repo-1 base=match 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=different head=match
trim-affix-public-20261120/trim-affix-prefix       base=different head=match
trim-affix-wide-clean-public-20261120/trim-affix-wide-clean base=different head=match
trim-affix-width-public-20261120/trim-affix-short  base=different head=match
trim-first-layout-display52-next-two-20261120/trim-layout-first-wide base=different head=match
trim-first-layout-display52-next-two-20261120/trim-layout-last-wide base=different head=match
varying-parts-v2-public-20261119/vtrim-prefix-part base=different head=match
gate: PASS
# Recover external program calls, structure arguments and based integer stores - Recover distinct, simultaneously live argument copies and the static counter in their owning procedure. Whole-structure initializers use storage addresses, the retained byte image and source literals. - Recover the trim of a first character subfield when independent stores measure the entire static structure. Preserve the computed buffer length at its call and the target of a retained, uncalled external program. - Recover integer stores through a proved based structure at the offsets and widths recorded by the object, and counted loops with two-byte indexes. ## 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.fmx2Ce/base-emit/152-PB1D59BB9S.rpgle /Users/someara/data/sourcerer-loop/runs/emitbytes.fmx2Ce/head-emit/152-PB1D59BB9S.rpgle 2a3,14 > dcl-pr SEND extpgm('QMHSNDPM'); > *n char(7) const; > *n char(20) const; > *n char(512); > *n int(10) const; > *n char(10) const; > *n char(10) const; > *n int(10) const; > *n char(4); > *n char(8); > end-pr; > dcl-s A_00253 char(8) inz(x'0000000800000000'); 23,34d34 < < < < < forms projection differs: 110,111c110,111 < {"twin":"savf/SC-ILE/EXPERIMENTS/decimal-fault-report/stripped","object":"PB1D59BB9S","status":"done","statements":27,"emitted":19,"failures":8,"lines":63,"form_counts":{"array_element_v1":1,"cycle_body_routine_v1":1,"cycle_end_v1":1,"cycle_return_transfer_v1":1,"direct_branch_v1":3,"emit_assign_field_v1":1,"emit_assign_part_v1":10,"emit_ctl_opt_v1":1,"emit_dcl_s_v1":10,"emit_endfor_v1":2,"emit_endmon_v1":1,"emit_for_v1":2,"emit_free_v1":1,"emit_inlr_v1":1,"emit_monitor_v1":1,"emit_on_error_v1":1,"emit_summary_v1":1,"fail_statement_v1":8,"layout_blank_v1":23,"static_initialization_v1":1},"text_sha256":"0dd9514ebb4fbb789f4756665c376e9f07baa274b4a5bc227e76c8b4a89e5eba"} < {"twin":"savf/SC-ILE/EXPERIMENTS/decimal-sign-report/stripped","object":"P563554D8S","status":"done","statements":37,"emitted":29,"failures":8,"lines":73,"form_counts":{"array_element_v1":1,"cycle_body_routine_v1":1,"cycle_end_v1":1,"cycle_return_transfer_v1":1,"direct_branch_v1":3,"emit_assign_field_v1":1,"emit_assign_part_v1":20,"emit_ctl_opt_v1":1,"emit_dcl_s_v1":10,"emit_endfor_v1":2,"emit_endmon_v1":1,"emit_for_v1":2,"emit_free_v1":1,"emit_inlr_v1":1,"emit_monitor_v1":1,"emit_on_error_v1":1,"emit_summary_v1":1,"fail_statement_v1":8,"layout_blank_v1":23,"static_initialization_v1":1},"text_sha256":"372c066372e315eaeb8bdb843295a32ff9405851045eab08fd3124afeb28d1c5"} == d. captures (capture-emit-diff) async-store-adjacent base=[11,7,6] head=[11,9,4] CHANGED fail-lines=4 async-store-narrow base=[11,6,6] head=[11,9,4] CHANGED fail-lines=4 async-store-shifted base=[11,7,6] head=[11,9,4] CHANGED fail-lines=4 static-store-adjacent base=[9,7,3] head=[9,9,1] CHANGED fail-lines=1 static-store-narrow base=[9,6,4] head=[9,9,1] CHANGED fail-lines=1 ... 82 lines omitted; the full table is in gate.log ... l10-scout2/l10-arora23saurabh-ibm-bob-ibmi-benchmar/l10-arora23saurabh-ibm-bob-ibmi-benchmar-1 base=match head=match l10-scout2/l10-bluemoonjp-scratchpad-ibmi-learning/l10-bluemoonjp-scratchpad-ibmi-learning-1 base=different head=match l10-scout2/l10-danlong005-imoq/l10-danlong005-imoq-1 base=match head=match l10-scout2/l10-mauroghiglia-foms-ibmi/l10-mauroghiglia-foms-ibmi-1 base=match head=match l10-scout2/l10-sagartyagi121-newlibrary/l10-sagartyagi121-newlibrary-1 base=match head=match l10-scout2/l10-sitemule-ileastic/l10-sitemule-ileastic-1 base=match head=match l10-scout2/l10-sitemule-noxdb/l10-sitemule-noxdb-1 base=match head=match l10-scout2/l10-sitemule-noxdb/l10-sitemule-noxdb-2 base=match head=match l10-scout2/l10-web-marketing-group-rpgle-webhooks/l10-web-marketing-group-rpgle-webhooks-1 base=different head=match l10-scout2b/l10-barrettotte-ibmi-lib-repo/l10-barrettotte-ibmi-lib-repo-1 base=match 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=different head=match trim-affix-public-20261120/trim-affix-prefix base=different head=match trim-affix-wide-clean-public-20261120/trim-affix-wide-clean base=different head=match trim-affix-width-public-20261120/trim-affix-short base=different head=match trim-first-layout-display52-next-two-20261120/trim-layout-first-wide base=different head=match trim-first-layout-display52-next-two-20261120/trim-layout-last-wide base=different head=match varying-parts-v2-public-20261119/vtrim-prefix-part base=different head=match gate: PASS ```
sean added 13 commits 2026-11-20 13:38:14 +00:00
binjovi-bot manually merged commit d57b9ae5b0 into trunk 2026-11-20 13:52:35 +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!822
No description provided.