Repository navigation
[AUTOMATED] feat(p6): fold a single-use call result past the merge phalanx (foldcallretphi) - #654
Merged
Merged
Conversation
mahaloz
force-pushed
the
feat/foldcallret
branch
2 times, most recently
from
September 17, 2026 03:57
738f5aa to
4de357d
Compare
…oldcallret ceiling Env-gated eprintln in base_explicit / check_implied_cover / Merge::inflate_test used to root-cause why an order-safe single-use call output still gets a declaration. Reverted in the next commit; kept in history so the census in docs/features/foldcallretphi/analysis.md is reproducible. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…alanx (foldcallretphi) Reverts the throwaway instrumentation and ships the fix it found: a call output that foldcallret proved order-safe was still forced explicit by check_implied_cover's Merge::inflate_test arm, because the operand version it collides with is the CPUI_INDIRECT the call itself attaches to a global it reads as an argument. New option foldcallretphi (on|off, default off) discounts exactly that self-inflicted collision. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
Records the root cause (check_implied_cover's inflate arm rejecting on the call's own INDIRECT effect), the six-binary corpus sweep with every hunk classified, the refuted num_instances()>1 hypothesis, and the default-on evidence the flip PR will need. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…callorder.py Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…essive preset `aggressive_carries_every_default_off_option` requires every default-off on|off option to be in AGGRESSIVE_OVERRIDES or listed with a reason. Its evaluation is done; what holds it out of the preset is that folding a call renumbers the `vN` locals that `--assert type vN` addresses by name. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…he bundle Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…dcallretphi Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…phi) `call_output_foldable` guards the span between the call and its single use, but that use is the call's textual home only when the use op is itself a statement. When the use op's own output is implied, the expression keeps travelling and is printed wherever that implied value is finally consumed -- which can be a later block behind a branch -- and the `inflate_test` rejection this option discounts was the only thing holding the call in place. betaflight_STM32F405.elf sub_8051ac4 @0x8051ac4 emitted `sub_80515b4(dat_200181a4)` after an `if (dat_200019cc & 1)` that the binary evaluates at 0x8051b0e, after the call at 0x8051b00. The discount now re-derives the real print point by following the implied chain and re-runs the span guard over the whole distance the call would travel; a print point outside the call's own block, or one with a call/load/store/callother between, declines. Also corrects the four places that described the default-off hold as purely `--assert` ergonomics and "not for a safety reason". Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…derive the counts The sweep behind this option was six x86-64 -O2 binaries and a metric that only compared call-to-call order, so a call reordered against a memory read was invisible to it. It now covers 22 binaries -- x86-64 and ARM Cortex-M at O0, O2 and O2-noinline, 29,587 functions -- with two more metrics: evalorder.py compares the whole ordered stream of calls and memory touches, and foldmove.py reports, for each folded call, which statements stood between the deleted spill and the statement it landed in. 705 folds: 696 land on the very next statement, 8 on the one after, and no fold crosses a call, a memory access or a control-flow boundary. No function gains or loses a call. Rebased onto origin/main, so the counts are re-derived on a freshly built tree: 211 settables, tiers (68, 81, 62), stage corpus 300, catalog fixture recaptured and the stages baseline re-recorded. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…the counts main gained `libctypes` while this branch was in review, so the hard-coded counts move again: 212 settables, tiers (68, 81, 63), catalog rows 211, stage corpus 301. The catalog fixture is recaptured and the stages baseline re-recorded on the rebased tree. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…oldcallretphi Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
… global The discount's span guard tested opcodes only -- CALL/LOAD/STORE/CALLOTHER -- but heritage promotes a write to a fixed global address into a plain CPUI_COPY, so `v2 = helper(g); k = 42; ok = v1 & v2;` folded into `ok = v1 & helper(g);` and evaluated the call after the write to `k` that it reads. `op_writes_global_storage` declines any op between the call and the print point whose output varnode is persistent; the guard runs over the whole travel distance, which contains the call-to-use span, so every fold this option adds is covered. The print point's own operands are now tested for reads of the call's INDIRECT effects as well, not just the single use op's -- when the implied chain is longer than one hop those are two different ops. The same hole is reachable through default-on `foldcallret` alone (GH-657) and is fixed separately; the prose in the module, `docs/spec/06`, `phases.toml` and the bundle now says so instead of claiming the opcode set is sufficient. Stage test: `target2` in the bytechunk is the counterexample, and assertions #4/#5 pin that it stays spilled with the option on. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…rt the metric's coverage The sweep now carries tar (O2 and O0), the binary the round-3 review used, and runs with the global-write barrier in: 32,282 functions, 1,008 changed, 574 declarations and 1,146 statements gone. foldmove.py reports its own coverage instead of implying it has full coverage. It refuses to classify a fold whose call text is not unique in the function -- the shape that made it pick a landing 8 and 74 statements away in two tar functions and report 65 false hazards -- and prints the accounting: 1,270 located, 718 mapped (711 land on the next statement, 7 on the one after, 0 hazards), 552 in three named buckets. evalorder.py needs no mapping and covers all 1,008 changed functions; its 49 diffs were read by hand. Both metrics flag the global-write counterexample when fed to it, so the sweep is calibrated against the defect class rather than against nothing. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…n ablation for foldcallretphi The stage test gained two assertions (a global write in the span keeps the call spilled with the option on), so the corpus is 1043. Re-ran the default-on ablation with the barrier in: 675/675 PARITY OK, 1043/1043 PARITY OK. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…n too The first version of the barrier only declined a write to a global, on the argument that an escaped frame slot stays a p-code STORE. It does not: `print raw` on a function that passes `&loc` to a callee and then writes `loc` shows the write promoted exactly like a global -- `s0xffffffffffffffe0:4 = #0x2a:4`, a CPUI_COPY, with the call carrying its own INDIRECT over that slot. So `op_writes_tied_storage` tests `is_persist() || is_addr_tied()`, and a frame slot the callee could not have reached declines too. The stage test, the fmt witnesses and all four counterexamples from the review are unchanged by the widening; the catalog fixture and docs/options.md are recaptured for the prose edits. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
…i barrier bought Re-swept the 24 binaries with it: every metric reports the same numbers to the digit (1,270 folds located, 718 mapped, 0 hazards, 9 event-set and 40 event-order diffs), so it costs no folds, and five binaries change in one shape each -- a local assignment that had moved across a strlen call goes back to its off-arm position. A write to a local is not an event for either metric, so those six reorders were in no hazard count. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
Every gate re-run on the final build: 675/675 and 1043/1043 PARITY OK, check-spec lenient + strict, 178/178 tests/cli, catalog and counters clean, and the workspace suite green (416 binaries, 7101 passed, 0 failed). The default-on ablation was re-run with the full write barrier in and is still 0 of 675. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
Comment only. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
force-pushed
the
feat/foldcallret
branch
from
September 17, 2026 06:57
44f8185 to
8ce2455
Compare
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
Moving #654's order-safety machinery into kuna_callretfold.rs kept the barrier half of its span guard but narrowed the INDIRECT half to the landing op. That let `foldcallretphi` fold two calls it used to decline: ssh O2 sub_4fd30 printed sub_3fa80 after a copy of an escaped stack slot the binary reloads at 0x4fe98, and tar O0 sub_67494 three tolower folds into a store whose base the call INDIRECTs. landing_span_reads_call_effect asks the question over the whole span from the call up to and including the landing statement, as #654 did. With it the phi-delta set matches origin/main exactly again: 68 functions on ssh O2, 120 on tar O0 (69/121 without). Default output is byte-identical either way -- the clause is only reached from conflict_is_self_call_effect. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
…references of a pointer parameter (structsynth) A new P5 action (`p5_types/kuna_structsynth.rs`) collects the constant-offset loads and stores made through a pointer parameter, prunes them to a layout a C compiler reproduces byte for byte, and type-locks the parameter to the synthesized `struct_N *`. Behind `--option structsynth off|param`. Rebased onto origin/main (foldcallretphi #654, ptrfromuse #659, libctypes default-on #658); counters re-derived on the rebased tree. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
…ge the callee may read `foldcallret`'s order-safety predicate tested opcodes only, so a heritage- promoted write to a global (a CPUI_COPY into a persistent varnode) was not a barrier and the call sank past it. Extend `op_is_barrier` with the tied-storage test #654 already used for the discounted fold, and clear the span all the way to the statement the folded expression is actually printed in. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
Moving #654's order-safety machinery into kuna_callretfold.rs kept the barrier half of its span guard but narrowed the INDIRECT half to the landing op. That let `foldcallretphi` fold two calls it used to decline: ssh O2 sub_4fd30 printed sub_3fa80 after a copy of an escaped stack slot the binary reloads at 0x4fe98, and tar O0 sub_67494 three tolower folds into a store whose base the call INDIRECTs. landing_span_reads_call_effect asks the question over the whole span from the call up to and including the landing statement, as #654 did. With it the phi-delta set matches origin/main exactly again: 68 functions on ssh O2, 120 on tar O0 (69/121 without). Default output is byte-identical either way -- the clause is only reached from conflict_is_self_call_effect. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
…ge the callee may read `foldcallret`'s order-safety predicate tested opcodes only, so a heritage- promoted write to a global (a CPUI_COPY into a persistent varnode) was not a barrier and the call sank past it. Extend `op_is_barrier` with the tied-storage test #654 already used for the discounted fold, and clear the span all the way to the statement the folded expression is actually printed in. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
Moving #654's order-safety machinery into kuna_callretfold.rs kept the barrier half of its span guard but narrowed the INDIRECT half to the landing op. That let `foldcallretphi` fold two calls it used to decline: ssh O2 sub_4fd30 printed sub_3fa80 after a copy of an escaped stack slot the binary reloads at 0x4fe98, and tar O0 sub_67494 three tolower folds into a store whose base the call INDIRECTs. landing_span_reads_call_effect asks the question over the whole span from the call up to and including the landing statement, as #654 did. With it the phi-delta set matches origin/main exactly again: 68 functions on ssh O2, 120 on tar O0 (69/121 without). Default output is byte-identical either way -- the clause is only reached from conflict_is_self_call_effect. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
…references of a pointer parameter (structsynth) A new P5 action (`p5_types/kuna_structsynth.rs`) collects the constant-offset loads and stores made through a pointer parameter, prunes them to a layout a C compiler reproduces byte for byte, and type-locks the parameter to the synthesized `struct_N *`. Behind `--option structsynth off|param`. Rebased onto origin/main (foldcallretphi #654, ptrfromuse #659, libctypes default-on #658); counters re-derived on the rebased tree. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
…ge the callee may read `foldcallret`'s order-safety predicate tested opcodes only, so a heritage- promoted write to a global (a CPUI_COPY into a persistent varnode) was not a barrier and the call sank past it. Extend `op_is_barrier` with the tied-storage test #654 already used for the discounted fold, and clear the span all the way to the statement the folded expression is actually printed in. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
Moving #654's order-safety machinery into kuna_callretfold.rs kept the barrier half of its span guard but narrowed the INDIRECT half to the landing op. That let `foldcallretphi` fold two calls it used to decline: ssh O2 sub_4fd30 printed sub_3fa80 after a copy of an escaped stack slot the binary reloads at 0x4fe98, and tar O0 sub_67494 three tolower folds into a store whose base the call INDIRECTs. landing_span_reads_call_effect asks the question over the whole span from the call up to and including the landing statement, as #654 did. With it the phi-delta set matches origin/main exactly again: 68 functions on ssh O2, 120 on tar O0 (69/121 without). Default output is byte-identical either way -- the clause is only reached from conflict_is_self_call_effect. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
…references of a pointer parameter (structsynth) A new P5 action (`p5_types/kuna_structsynth.rs`) collects the constant-offset loads and stores made through a pointer parameter, prunes them to a layout a C compiler reproduces byte for byte, and type-locks the parameter to the synthesized `struct_N *`. Behind `--option structsynth off|param`. Rebased onto origin/main (foldcallretphi #654, ptrfromuse #659, libctypes default-on #658); counters re-derived on the rebased tree. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
…ge the callee may read `foldcallret`'s order-safety predicate tested opcodes only, so a heritage- promoted write to a global (a CPUI_COPY into a persistent varnode) was not a barrier and the call sank past it. Extend `op_is_barrier` with the tied-storage test #654 already used for the discounted fold, and clear the span all the way to the statement the folded expression is actually printed in. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
Moving #654's order-safety machinery into kuna_callretfold.rs kept the barrier half of its span guard but narrowed the INDIRECT half to the landing op. That let `foldcallretphi` fold two calls it used to decline: ssh O2 sub_4fd30 printed sub_3fa80 after a copy of an escaped stack slot the binary reloads at 0x4fe98, and tar O0 sub_67494 three tolower folds into a store whose base the call INDIRECTs. landing_span_reads_call_effect asks the question over the whole span from the call up to and including the landing statement, as #654 did. With it the phi-delta set matches origin/main exactly again: 68 functions on ssh O2, 120 on tar O0 (69/121 without). Default output is byte-identical either way -- the clause is only reached from conflict_is_self_call_effect. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
mahaloz
added a commit
that referenced
this pull request
Sep 17, 2026
…references of a pointer parameter (structsynth) A new P5 action (`p5_types/kuna_structsynth.rs`) collects the constant-offset loads and stores made through a pointer parameter, prunes them to a layout a C compiler reproduces byte for byte, and type-locks the parameter to the synthesized `struct_N *`. Behind `--option structsynth off|param`. Rebased onto origin/main (foldcallretphi #654, ptrfromuse #659, libctypes default-on #658); counters re-derived on the rebased tree. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem
A call result that is read exactly once, right after the call, still gets its own
local as soon as the call takes a global as an argument. Seven lines of C:
foldcallretis on by default and acceptsv1: one use, same block, nothing inbetween that touches memory. Drop the
stdinargument for a constant and thesame code folds. Coreutils
fmt-O2 has the same pair twice inmain(
v3 = sub_3700(stdin,v7); v1 = 1; v12 &= v3;).The fix
foldcallretonly relaxesActionMarkExplicit's call arm.ActionMarkImpliedre-tests the candidate in
check_implied_cover, whoseMerge::inflate_testarm refuses when an operand has another live version of the same
HighVariableover the candidate's cover. Here that version is theCPUI_INDIRECTthe call itself hangs onstdin— a call may write any global— so the call blocks its own fold. Ghidra never sees this: it marks every call
output explicit one pass earlier.
foldcallretphidiscounts that one case: the refusal is ignoredonly when every colliding version is an INDIRECT effect of this call. The
fold then reads the operand and performs that write at the same point, which is
what the spilled form does.
statement the expression really lands in —
foldcallretguards only up to thesingle use, and if that use's own output is implied the expression keeps
travelling, possibly behind a branch — and re-clears that whole distance: same
block, no call/load/store/callother, and no write to address-tied storage. That
last one is not an opcode: heritage promotes a write to a fixed address into a
plain
CPUI_COPY, so without itv2 = helper(g); k = 42; ok = v1 & v2;foldsinto
ok = v1 & helper(g);and evaluates the call after the write tokthatit reads — and the same goes for a frame slot whose address escaped into the
call, which
print rawshows promoted exactly like a global. (Reachablethrough default-on
foldcallretwith no discount at all when the call takes noglobal operand: [AUTOMATED] foldcallret sinks a call past a global write the callee reads #657, fixed separately.)
VariableGroup(that loop is about overlapping storage, not versions), and an op reading one
of the call's INDIRECT effects — checked on the single use and on the landing
statement, which are different ops once the implied chain is longer than a hop.
speed delta is nil, but removing a declaration renumbers the remaining
vNlocals and
--assert type vNaddresses a variable by that name, so atests/clirun retypes a different slot. The flip belongs in its own change.The tests
tests/stages/kuna-foldcallretphi.xml, three passes over one bytechunk: offspills, on folds, and a second function whose span carries a global write stays
spilled with the option on — that assertion fails on a build without the new
barrier.
Corpus sweep,
decompile-alloff vs on over 24 binaries — x86-64 and ARMCortex-M at O0, O2 and O2-noinline, 32,282 functions. 1,008 change, 1,270 call
spills fold, 574 declarations go. No function gains or loses a call anywhere, and
the 49 whose call/memory event stream reorders were read by hand. The distance
metric maps 718 of the 1,270 uniquely: 711 land on the very next statement, 7 on
the one after, none crosses a call, a memory access or a control-flow boundary;
the 552 it refuses to guess at are reported by bucket in
docs/features/foldcallretphi/, and both metrics flag thek = 42counterexample above when fed to it.
fmtdecompile-all, min of 21 interleavedpairs: 4.200 s in both arms.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29