Skip to content

[AUTOMATED] feat(p6): fold a single-use call result past the merge phalanx (foldcallretphi) - #654

Merged
mahaloz merged 18 commits into
mainfrom
feat/foldcallret
Sep 17, 2026
Merged

mahaloz merged 18 commits into
mainfrom
feat/foldcallret

Conversation

@mahaloz

@mahaloz mahaloz commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

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:

#include <stdio.h>
__attribute__((noinline)) int work(FILE *f) { return fgetc(f) >= 0; }
int main(int argc, char **argv)
{
    int ok = 1;
    for (int i = 1; i < argc; i++)
        ok &= work(stdin);
    return ok;
}
$ gcc -O2 -o /tmp/r repro.c && kuna decompile /tmp/r main
unsigned int main(int a0)
{
  unsigned int v1; // eax
  int v2; // ebx
  unsigned int v3; // r12d
  ...
    do {
      v2 += 1;
      v1 = work(stdin);
      v3 &= v1;
    } while (a0 != v2);

foldcallret is on by default and accepts v1: one use, same block, nothing in
between that touches memory. Drop the stdin argument for a constant and the
same code folds. Coreutils fmt -O2 has the same pair twice in main
(v3 = sub_3700(stdin,v7); v1 = 1; v12 &= v3;).

The fix

  • foldcallret only relaxes ActionMarkExplicit's call arm. ActionMarkImplied
    re-tests the candidate in check_implied_cover, whose Merge::inflate_test
    arm refuses when an operand has another live version of the same
    HighVariable over the candidate's cover. Here that version is the
    CPUI_INDIRECT the call itself hangs on stdin — 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.
  • New option foldcallretphi discounts that one case: the refusal is ignored
    only 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.
  • The fold moves where the call is evaluated, so the discount re-derives the
    statement the expression really lands in — foldcallret guards only up to the
    single 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 it v2 = helper(g); k = 42; ok = v1 & v2; folds
    into ok = v1 & helper(g); and evaluates the call after the write to k that
    it reads — and the same goes for a frame slot whose address escaped into the
    call, which print raw shows promoted exactly like a global. (Reachable
    through default-on foldcallret with no discount at all when the call takes no
    global operand: [AUTOMATED] foldcallret sinks a call past a global write the callee reads #657, fixed separately.)
  • Two further declines keep it narrow: an operand high inside a 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.
  • Ships off. Both parity corpora are clean with the default flipped and the
    speed delta is nil, but removing a declaration renumbers the remaining vN
    locals and --assert type vN addresses a variable by that name, so a
    tests/cli run retypes a different slot. The flip belongs in its own change.

The tests

tests/stages/kuna-foldcallretphi.xml, three passes over one bytechunk: off
spills, 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-all off vs on over 24 binaries — x86-64 and ARM
Cortex-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 the k = 42
counterexample above when fed to it. fmt decompile-all, min of 21 interleaved
pairs: 4.200 s in both arms.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MAeimyWm5oSewpeCgAwY29

@mahaloz mahaloz added the full-ci Run the full cargo workspace suite on this PR before merge (internal PRs skip it by default) label Sep 17, 2026
@mahaloz
mahaloz force-pushed the feat/foldcallret branch 2 times, most recently from 738f5aa to 4de357d Compare September 17, 2026 03:57
mahaloz and others added 18 commits September 17, 2026 06:39
…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
…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
…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
… 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
@mahaloz
mahaloz merged commit fc7c7a2 into main Sep 17, 2026
9 checks passed
@mahaloz
mahaloz deleted the feat/foldcallret branch September 17, 2026 07:20
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Run the full cargo workspace suite on this PR before merge (internal PRs skip it by default)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant