Skip to content

v0.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 15:23
· 158 commits to main since this release
06604f0

Fission v0.6.0

99 pull requests merged since v0.5.0.

Installing

# Homebrew (macOS, Linux)
brew install fission-systems/tap/fission-cli

# Install script (macOS, Linux): installs into ~/.local and checks the SHA-256
curl -fsSL https://raw.githubusercontent.com/fission-systems/Fission/main/install.sh | sh

Linux packages install under /usr (glibc 2.35 or newer: Debian 12,
Ubuntu 22.04, Fedora 36, openSUSE Tumbleweed and later):

# Debian, Ubuntu (arm64: fission-cli_arm64.deb)
curl -fsSLO https://github.com/fission-systems/Fission/releases/download/v0.6.0/fission-cli_amd64.deb
sudo apt install ./fission-cli_amd64.deb

# Fedora (arm64: fission-cli.aarch64.rpm; openSUSE: zypper install <url>)
sudo dnf install https://github.com/fission-systems/Fission/releases/download/v0.6.0/fission-cli.x86_64.rpm
Distribution Package
Debian, Ubuntu (x86-64) fission-cli_amd64.deb
Debian, Ubuntu (arm64) fission-cli_arm64.deb
Fedora, openSUSE Tumbleweed (x86-64) fission-cli.x86_64.rpm
Fedora, openSUSE Tumbleweed (arm64) fission-cli.aarch64.rpm
Arch Linux (AUR fission-cli-bin) fission-cli-bin.PKGBUILD

Cargo builds from source. The processor specifications and signatures come
from this release:

cargo install --locked --git https://github.com/fission-systems/Fission --tag v0.6.0 fission-cli
mkdir -p ~/.cargo/share/fission
curl -fsSL https://github.com/fission-systems/Fission/releases/download/v0.6.0/fission-resources.tar.gz \
  | tar -xz -C ~/.cargo/share/fission

Archives are attached to the release for six targets:

Platform Archive
Linux x86-64 fission-x86_64-unknown-linux-gnu.tar.gz
Linux arm64 fission-aarch64-unknown-linux-gnu.tar.gz
Android arm64 (Termux) fission-aarch64-linux-android.tar.gz
macOS Apple silicon fission-aarch64-apple-darwin.tar.gz
macOS Intel fission-x86_64-apple-darwin.tar.gz
Windows x64 fission-x86_64-pc-windows-msvc.zip

Unpack one anywhere and run bin/fission_cli; it finds share/fission/ next
to itself. SHA256SUMS covers every asset.

Correctness Fixes

  • fix(midend-normalize): keep the numeric domain of divide/shift/compare operands through return narrowing (#1339)
  • fix(decompiler,cli): bound timed-out decompiler workers and propagate cooperative cancellation (#1157) (#1407)
  • fix(pcode): size register params by proven width evidence, not the narrowest read (#1424) (#1429)
  • fix(normalize): preserve sub-word unsigned zero-extension across mask cleanup and cast stripping (#1426) (#1430)
  • fix(pcode-ir): correct unsound nonzero-mask IntAnd elimination (#1439)
  • fix(pcode-ir): saturate right-shift constant folds and preserve IntSRight sign bits (#1446, #1447) (#1450)
  • fix(pcode): lower shift/div ops with their p-code signedness (split from #1429) (#1464)
  • fix(emulator): distinguish block-entry coverage from retired instructions and code revisions (#1268) (#1477)
  • fix(native-diff): EXTRACTPS stores 32 bits; MTE tag differences tracked (#1355) (#1478)
  • fix(analysis-db): validate incremental fact invalidation including negative dependencies (#1284) (#1480)
  • fix(static): SCC-condensation scheduled VSA with deterministic work accounting (#1246) (#1482)
  • fix(emulator): explicit guest process identity and bounded lifecycle contracts (#1261) (#1483)
  • fix(structuring): bound the guarded-tail rewrite's continuation copies (#1406) (#1485)
  • fix(normalize): resolve soundness bugs in condexe, byte_sum_index, and licm (#907) (#1488)
  • fix(security): harden snapshot and project artifact deserialization (#1174) (#1489)
  • fix(pcode-ir): stop block-local CSE reusing expressions across instruction-local branch targets (#1493)
  • fix(cli): harden host file safety, no-clobber patching, and terminal output escaping (#1175) (#1495)
  • fix(pcode-ir): read shift/subpiece counts at declared width and guard >8-byte masks (#1472) (#1498)
  • fix(pcode): recover common loop-carried register carrier at guarded loop exits (#1476) (#1511)
  • fix(vsa): CircleRange meet and shr_const keep every member (#1517)
  • fix(normalize,pcode): keep shift/div computed operands scalar across pointer inference (#1492) (#1518)
  • fix(emulator): initialize reused Windows TLS slots across live threads and clear last error in TlsGetValue (#1515) (#1519)
  • fix(normalize): enforce target pointer width and aggregate load width guards in type constraint propagation (#1505) (#1520)
  • fix(pcode-ir): preserve direct RAM-space writes in DCE (#1501) (#1521)
  • fix(dynamic): support wide vector registers and atomic validation in set_registers (#1510) (#1525)
  • fix(render): verify target ABI alignment and union views in aggregate typedef emission (#1507) (#1526)
  • fix(loader): require explicit NUL or zero-fill boundary for section string literals (#1499) (#1527)
  • fix(pcode): a declared int must not flip an unsigned switch guard to signed (#1545)
  • fix(loader): keep PE forwarded exports and load non-Windows ReadyToRun images (#1557)
  • fix(emulator): preserve symbolic shadow and taint parity on wide COPY/CAST (#1512) (#1559)
  • fix(dir,emulator): halt non-returning stray execution and keep verify JIT cache hot (#1550) (#1565)
  • fix(loader): a PLT stub for a symbol the object defines is a thunk, not an import (#1566)
  • fix(sleigh): propagate subtable context and recursive globalset commits across Thumb-2 IT blocks (#1532) (#1567)
  • fix(builder): read flag-compare inputs from before a destructive sub (#1568)
  • fix(structuring): fix cond_goto_inversion, short-circuit prefix live-outs, and virtual switch labels (#904) (#1572)
  • fix(loader): name JVM class, DEX and WebAssembly files instead of misreading them (#1575)
  • emulator: interpreter reports memory accesses named by a varnode (#1606)

Performance

  • ci(speed): no wall-clock limit under valgrind; run cachegrind runs 4 at a time (#1529)
  • chore(deps): remove the metrics crate (no recorder, every call a no-op) (#1538)
  • perf(structuring): cache TraceDag's per-step lookups (-5.9% instructions, identical output) (#1547)
  • perf(builder): index each varnode's first redefinition per block (multiosc -5.6% instructions, identical output) (#1574)
  • emulator: make the interpreter fast enough to replace the JIT (#1605)

New Capabilities

  • feat(plugin): enforce explicit trust tiers, capability grants, and isolated external workers (#1338)
  • feat(normalize): add canonical memory-object identity and provenance-aware alias analysis (#1222) (#1471)
  • feat(cli): add effective capability catalog and v1 payload schemas (#1200) (#1486)
  • feat(sleigh): measure where raw p-code cannot carry an instruction's meaning (#1530)
  • feat(loader): enumerate ar archives and load a member with --member (#1542)
  • feat(cli): verify reports the assurance band, run denominators and symbolic options (#1551)
  • feat: packed-binary detection and static UPX unpacking (ELF/PE) (#1553)
  • feat(render): output-language parameter and language-neutral walk (#1569)
  • feat(render): Go output language (#1585)
  • feat(render): Rust output language (#1586)

Testing & Infrastructure

  • fix(install): transactional CLI and resource upgrades with rollback-safe installation (#1337)
  • ci(release): accept every workspace member manifest as a release file (#1463)
  • release: draft the Android archive into the install table (#1465)
  • ci(mutants): pin install-action to a SHA that exists (#1452) (#1473)
  • ci(freshbench): fetch sources once per architecture and wait out Hugging Face 429s (#1475)
  • ci(freshbench): deterministic queue-cancel test; a failed sources leg skips only its architecture (#1487)
  • ci(freshbench): cache scores and the scorer build, start the longest shards first (#1491)
  • test(normalize): check the signed-wins rule in both statement orders (#1497)
  • test(midend): add model-based property tests for CFG contraction and parallel-copy scheduling (#1252) (#1528)
  • ci: fission_cli verify gate, cached z3, one shared Linux CLI, split nextest core lane (#1541)
  • ci(release): .deb, .rpm and AUR PKGBUILD from the release archives (#1554)
  • feat(repipe): RE-friction loop, phase 1 (harness, targets, round 1) (#1555)
  • ci(base-vs-head): report-only fission_cli verify delta between base and head (#1558)
  • fix(ci): preflight mirrors the nextest step's PARTITION (merge queue red since #1541) (#1560)
  • ci(release): cargo binstall metadata and a Nix flake, with install smokes (#1562)
  • ci(release): Scoop/winget manifests and a GHCR container image, smoked in the rehearsal (#1563)
  • ci: make the speed gate measure the same work every run (and load each SLEIGH frontend once) (#1564)

Documentation

  • docs: rewrite README for first-time readers, add ko/ja/zh-CN translations (#1479)
  • docs: add a recorded fission_cli demo GIF to the READMEs (#1504)
  • docs: plan the external dependency reduction (#1506)
  • docs: CLI surface audit (crate capabilities vs fission_cli) (#1533)
  • docs: keep documented commands and fission_cli --help in sync (#1546)
  • docs(loader): measured support matrix before and after the coverage PRs (#1580)

Other

  • structuring: opt-in SAILR driver (fourth candidate) (#1099)
  • midend: extend IR validators into cross-pass invariant checking (#1335)
  • emulator(vector): enforce SIMD register-view and upper-bit write contracts (#1336)
  • dir(qa): add metamorphic decompilation suite for binary and IR variants (#1427)
  • chore(deps): replace criterion with an in-house bench harness (#1531)
  • chore(deps): replace ctrlc with an in-house Ctrl+C flag (#1534)
  • chore(deps): replace libloading with an in-house dylib module (#1535)
  • chore(deps): add fission-util; replace sha2, dirs and lru (#1536)
  • chore(deps): replace insta with an inline expected string (#1537)
  • normalize: do not inline a temp into a statement that redefines it (#1540)
  • chore(deps): drop once_cell, log and crossbeam-channel; prune unused manifest entries (#1543)
  • chore(deps): replace tracing-appender and tracing-error in fission-core (#1544)
  • chore(deps): replace toml with an in-house TOML 1.0 reader (#1548)
  • chore(deps): replace quick-xml with an in-house XML pull reader (#1552)
  • types: definition-scoped binding type evidence with explicit conflicts (#1503) (#1581)
  • render: print recovered aggregates as struct sN / undefinedN instead of fission_aggN (#1582)
  • chore(deps): replace tempfile with fission_util::tempdir (#1584)
  • normalize: a compare does not retype an operand narrower than the other (#1587)
  • chore: tidy the repository root (.railwayignore, .dockerignore, vendor symlink, .gitignore) (#1602)

Needs a label (no managed label and no conventional title prefix): #1099, #1335, #1336, #1427, #1531, #1534, #1535, #1536, #1537, #1540, #1543, #1544, #1548, #1552, #1581, #1582, #1584, #1587, #1602.

Measured evidence

Quoted verbatim from each PR's Benchmark, Measurement or Correctness Evidence section. Each number was measured by that PR, under its own load; nothing here is added up or compared across PRs. Benchmark scores measure similarity to the source, not correctness (ADR 0019).

From #1339 (Correctness Evidence):

Two builds of this head: the fix (`head`), and the same tree with the `reads_operand_domain` arm disabled (`nofix`). Both decompiled the CI's fixed FreshBench M1 sample (11 units, 3,252 functions) with `fission_cli decomp`, static only. **16 functions changed.** Three more differed only because one side hit the 30 s render timeout on a loaded machine; rerun alone, two were identical to `nofix` and the third is in the 16.
- **Unsigned divide restored.** `gcc-O0/syoyo__tinydng/test_dng_v3` `0x452525` compiles to `div ECX` (unsigned):

  - local_20->field_4 = (int)(local_4 + (int)(...) - 1) / local_4;
  + local_20->field_4 = (uint)((unsigned long long)(uint)(local_4 + (int)(...) - 1) / (unsigned long long)(uint)local_4);
  `i686-gcc-O1/.../test_dng_v3` `0x8080618` is the same (`div dword ptr [ESP]`, `div EBP`): `-2 / (int)(iVar1010 - 1)` → `4294967294 / (uint)(iVar1010 - 1)`.
- **64-bit equality against `0xffffffff`.** `gcc-O0/.../test_v3_psd` `0x428a10` compiles to `mov EAX,0xffffffff; cmp qword ptr [RBP-0x38],RAX`, which compares with `0x00000000ffffffff`. The variable is `unsigned long long local_38`:

  - if (local_38 == -1) {          // compares with 2^64-1: wrong
  + if (local_38 == 4294967295) {
- **64-bit compare kept.** `gcc-O0/HANCORE-linux__OmaQ/omaq_test` `0x414306` does `cdqe; lea RDX,[RAX+1]; cmp RDX,RAX; jnc`, a sign-extended add and an unsigned 64-bit compare:

  - if ((uint)(local_4 + 1) < (unsigned long long)*slot_8) {               // zero-extends: wrong for negative local_4
  + if ((unsigned long long)(local_4 + 1) < (unsigned long long)*slot_8) {
- **Undefined shift removed.** In `clang-O2/mbuesch__razer` (4 functions), `(int)xVar21 >> 32` becomes `(uint)((unsigned long long)xVar21 >> 32)`.
The remaining changed functions fall into the same four groups: unsigned divide/remainder (tinydng, 6 more) and 64-bit compares (tinydng, 3).
**A regression found and fixed in this round.** Before the nested-constant change, 8 ARM/AArch64 functions printed `!x || x < 0` / `x == 0 || !(x >= 0)` where they had printed `x <= 0` / `x > 0`. The meaning was the same but harder to read; the CI flagged one of them (`troglobit__mg/armv7-gcc-O2/src__mg/notabmode`, GED 12 → 13). The cause: a constant nested under a modular operator inside a compare operand kept its unsigned type. The two compare operands then stopped being structurally equal, and the flag-condition fold no longer combined them. With constants retyped at any depth, none of the 8 changes any more.

From #1339 (Benchmark Impact):

CI base-vs-head on `15432eb1c` (fixed M1 sample, report-only): running when this was written. Read it from the check; the local `nofix` vs `head` diff above on the same sample expects 16 changed functions.
Earlier run on `41dde5a8b`, before the nested-constant change: 21 rows changed, distance +1 (1 farther: `mg notabmode` 12 → 13), perfect ±0. Total Ir +1.71% (threshold 3%). `monkey-mandril.so` showed +16.9% and `sov` +4.7%. That was not reproduced locally (macOS, instructions retired, `--all --limit 15`, one thread, warm cache, minimum of 3):
- `monkey-mandril.so`: `nofix` 18.42e9, `head` 18.36e9.
- `sov`: 14.5e9–20.3e9 for the *same* binary and CLI, so its per-binary number is noise.
A full M1 run was not done for this PR; the numbers above are the CI sample. The original draft's DecBench full-dataset sweep (852 functions changed, changed-row distance +36, perfect 48 → 48) predates FreshBench becoming the benchmark and the nested-constant change.

From #1429 (Measured):

| function | main | `5dfd62c59` (first head) | now |
|---|---|---|---|
| `guarded_sum` | `int param_1` | `long long param_1` | `int param_1` |
| `pick_local` | `uint, int, int` | `uint, long long, long long` | `uint, int, int` |
CI base-vs-head output diff (11-unit sample, report-only) and the per-finding table are in the PR comments. No full-M1 FreshBench sweep was run and no similarity or readability claim is made.

From #1439 (Correctness Evidence):

  1. `x:4 & y:4` (two unknown 32-bit registers, `mask1 = mask2 = 0xFFFF_FFFF`): previously rewritten to `COPY(x:4)` because `(mask1 & !mask2) == 0`; at `x = 0x1234_5678, y = 0`, produced `0x1234_5678` instead of `0`.
  2. `0xFF:4 & y:4` (`mask1 = 0xFF, mask2 = 0xFFFF_FFFF`): previously rewritten to `COPY(0xFF:4)`; at `y = 0`, produced `0xFF` instead of `0`.
  3. `(v:16 << 64) & y:16` (128-bit SIMD `IntAnd` whose low 64 bits are zero): previously folded to `COPY(0:16)` because `and_mask == 0` ran before the `size > 8` check.
  4. `wide_y:16 & (-1:16)`: previously rewritten to `COPY(wide_y:16)` by `dead_bit::try_dead_bit_elimination` before reaching `try_and_mask`.
  5. `0x00FF_FFFF:3 & y:3` (3-byte full-width constant mask): previously missed `COPY(y:3)` simplification because `DefUseTracker::compute_nz_masks` initialized `size = 3` untracked varnodes to `u64::MAX` instead of `0x00FF_FFFF`.

From #1439 (Benchmark Impact):

`SEMANTIC_VERIFICATION_PENDING`: Full FreshBench M1 sweep (`freshbench sweep run`) was not executed locally in the headless maintenance container (no local Rust toolchain). Fast Gate CI (`CI Summary` job `141229280145`, `Tests (Linux) / test (core)` job `141226978951`, `Tests (Linux) / test (extras)` job `141226978943`, `Lint & Format / lint` job `141226978934`, `decomp-corpus / Binary fixtures (ubuntu-latest)` job `141226978953`, `CLI Smoke (Linux · PE sample) / Smoke` job `141226978956`, and `Native fixture replay and Python port` job `141226978792`) all passed (`CI_VERIFIED`) on [`50ae75cc5a2b801086c05ff4252edbe00962f213`](https://github.com/fission-systems/Fission/commit/50ae75cc5a2b801086c05ff4252edbe00962f213). Kept in draft status until full FreshBench M1 measurement and independent review sign-off.

From #1450 (Correctness Evidence):

  1. `IntRight(1:8, 64:4)`: previously `1u64.wrapping_shr(64) == 1`; now saturates to `0:8`.
  2. `IntSRight(-2:4, 64:4)`: previously folded to `0:4` by `try_shift_bitops` (in `try_optimize_with_tracker`) or wrapped to `-2:4` (`0xFFFF_FFFE`) by `optimize_sright_shift` (in `try_optimize`); now folds to `0xFFFF_FFFF:4` (`-1:4`) across both paths.
  3. `IntRight(0x80:1, 0x1_0000_0000:8)`: previously `as u32` truncated the shift count to `0` and returned `0x80:1`; now saturates to `0:1`.
  4. `IntSRight(x:4, 32:4)` and `IntSRight(x:1, 8:1)` on unknown `x`: previously folded to `COPY(0)` by `try_shift_bitops` even though `x < 0` yields `-1`; now preserved as `IntSRight`.
  5. `IntSRight(x:1 & 0x7F, 7:1)`: sign bit is guaranteed `0`, so `try_shift_bitops` still folds to `COPY(0:1)`.

From #1450 (Benchmark Impact):

`SEMANTIC_VERIFICATION_PENDING`: Full FreshBench M1 sweep (`freshbench sweep run`) was not executed locally in the headless maintenance container (no local Rust toolchain). Fast Gate CI (`Lint & Format / lint` job `141228025425`, `decomp-corpus / Binary fixtures (ubuntu-latest)` job `141228025495`, `CLI Smoke (Linux · PE sample) / Smoke` job `141228025481`, `Native fixture replay and Python port` job `141228025183`, `Pass-Gate Lint (anti-overfitting)` job `141228025262`, and `Security Check / security` job `141228025404`) all passed (`CI_VERIFIED`) on [`f916b7b804bfa5b55cc59d03f00ac97690417b68`](https://github.com/fission-systems/Fission/commit/f916b7b804bfa5b55cc59d03f00ac97690417b68). Kept in draft status until full FreshBench M1 measurement and independent review sign-off.

From #1464 (Measured):

- In-repo fixtures (`crates/*/testdata`, 83 binaries, main vs this head): `ground_truth_fixture` `-O1`/`-O0` identical to main; 115 of 13,542 function instances changed signature (many are the same static libc functions repeated across fixtures). Sampled diffs are lane fixes, e.g. `return rax >> 31` → `return (uint)rax >> 31` for a 32-bit `shr eax, 31`.
- Speed (3 interleaved runs each, `decomp --all` user seconds, main → head): `a64_and3.elf` 13.18 → 13.32, `x64_and3.elf` 51.94 → 51.63, `aarch64_control_flow.elf` 18.62 → 18.69 (≤ +1.1%). The CI sample's `sov` binary is not available to me, so the +7% it showed on an earlier head is not reproduced or explained; the extra work in this change is one type lookup per coerced operand.
- **CI base-vs-head, `aeadbdbe6`** (run 46647180241; base main `89dc22d7e`, 11-unit sample, 3,252 rows): **91 rows changed, 0 gained or lost an output; perfect, with-control-flow, Joern perfect and types perfect all +0/−0; distance +0, 0 rows closer or farther.** Types perfect per arch (head): aarch64 31.0%, armv7 15.2%, i686 9.2%, x86_64 20.7%, all 18.6%. Total instructions 105.94 G → 97.23 G (−8.22%, driven by `grainex` −22.7%, which swings ±35% on the same commit); `sov` **+1.54%** here (it read +7.20% on the previous head `e8d959a71`); decompile CPU −0.6% (ledger run vs this runner). So the sample shows 91 output changes with no score movement; nothing here is a similarity or readability claim.
- **`sov` cost.** I could not run `sov` locally (the corpus is not downloaded), so the earlier +7.20% is not explained, only not reproduced: it is +1.54% on this head, and the local runs above are within +1.1%. The part of the change that costs anything is one extra type lookup per coerced operand; since `aeadbdbe6` that lookup is skipped for computed operands.

From #1482 (Measured Transfer Counts & Memory):

- **Acyclic 12,000 blocks**: `first_visits=12000, repeat=0, edges=11999, mem_bytes=3753352` (`legacy` aborted at 10,000-visit cap).
- **Acyclic 20,000 blocks**: `first_visits=20000, repeat=0, edges=19999, mem_bytes=6446792`.
- **Diamond chains**: 40-diamond `scc_visits=121` vs `legacy_visits=201`; 1,000-diamond (3,001 blocks): `visits=3001, repeat=0, edges=4000, mem_bytes=986505`.
- **Cyclic benchmarks**: nested loop `scc=8 (first=4, repeat=4)` vs `legacy=10`; irreducible 2-entry SCC `scc=8 (first=5, repeat=3)` vs `legacy=13`.
- **Real binary corpus (`std::env::current_exe()`, 100 lifted functions)**: `both_converged=100`, `reachable_blocks=1485`, `sccs=878`, `cyclic_sccs=57`, `scc_first_visits=1485`, `scc_repeat=906`, `scc_total=2391` vs `legacy_visits=3268` (-26.8%), `scc_edges=3653` vs `legacy_edges=4645` (-21.4%), `scc_mem_bytes_sum=1228005`; 100% `block_states` agreement on all 100 converged functions.

From #1485 (Measured (macOS, release-equivalent profiling profile, decomp --all, /usr/bin/time -l, no execution of corpus binaries)):

Before = `main` at `657e75db9`, after = this branch, same pinned FreshBench revision as the workflow.

| binary | peak RSS before | peak RSS after | functions changed |
|---|---|---|---|
| CDP8 `NewRelease__modify` | 6.47 GiB (8.15 in a second run; 5.03 in a third) | 2.62 GiB (2.71) | 1 of 751 (`0x43f56c`) |
| fceumm | 3.09 | 3.11 | 0 of 5,045 |
| simavr | 2.35 | 2.27 | 0 of 535 |
| libsrt stest | 1.32 | 1.35 | 0 of 1,457 |
| ion-c | 2.42 | 2.43 | 0 of 1,079 |
| libxlsxwriter | 2.37 | 2.37 | 0 of 1,307 |
| tinydng | 1.63 | 1.65 | 0 of 438 |
| TinyPKI | 0.93 | 0.95 | 0 of 719 |
The CDP8 "before" varies run to run (macOS RSS under compression); the 8.9 GiB on `0x43f56c` alone is the high end. Output: of 11,331 function outputs across the eight binaries, exactly one differs: `0x43f56c`, which was `timed_out` (78,299-char assembly fallback) and now decompiles (167,990 chars). The other 10,580 outputs are byte-identical.
Not measured: the Linux CI peak (macOS RSS is not comparable to Linux), and the full M1 sweep. This is a resource bound, not a quality claim; the changed function went from a timeout fallback to a decompile, and I make no claim about its readability. A `workflow_dispatch` of `memory-ceiling.yml` on this branch is the Linux check; result is in a comment below.

From #1493 (Correctness Evidence):

**Oracle.** The tests execute each block before and after CSE on a small concrete interpreter and compare every location written. The interpreter resolves branch targets on its own (relative: index + delta; code address: first op at that address) and shares no code with `block_cfg` or the pass, so the helper the fix relies on is not also the judge. Coverage: the forward reproducer, the backward loop, the real `memmem` block below, a precision check (repeats on one side of a merge point are still merged, including in a skipped tail whose target is the next block), and 2,000 generated blocks with forward skips and counted loops.
**Real site, hand-checked.** `memmem` in glibc 2.39 for ARMv7 Thumb-2 (Ubuntu `libc6-armhf-cross` 2.39-0ubuntu8cross1, `libc.so.6` sha256 `77692fcc…5e7c`). `llvm-objdump -d --triple=thumbv7`, used as a decoder independent of the SLEIGH specs:

6dbba: 4296   cmp   r6, r2
6dbbc: bf38   it    lo
6dbbe: 2100   movlo r1, #0x0
6dbc0: b161   cbz   r1, 0x6dbdc

6dbba  tmpZR = (r6 - r2) == 0            ; cmp
6dbbe  CBRANCH 0x6dbc0, !lo              ; skip the move unless lo
6dbbe  r1 = 0
6dbbe  tmpZR = r1 == 0                   ; scratch flag every data-processing insn writes
6dbc0  u = r1 == 0                       ; cbz's test   <== unfixed: u = COPY tmpZR
6dbc0  CBRANCH 0x6dbdc, u
When `lo` is false the move is skipped and `tmpZR` still holds the `cmp`'s `r6 == r2`. By the ARM IT-block and `CBZ` semantics the branch must be taken iff `r1 == 0`; the rewritten p-code takes it iff `r6 == r2`. With `r6 == r2` and `r1 != 0` it goes the wrong way. This exact block is now a test (`cse_does_not_reuse_a_flag_test_a_conditional_instruction_may_skip`).

| Corpus (glibc 2.39 unless noted) | Binaries | Functions | Functions with an instruction-local target | Forward / backward targets | Sites the unfixed pass rewrote across a target | Unjustified |
|---|---|---|---|---|---|---|
| ARMv7 Thumb-2: libc, libm, ld, libresolv | 4 | 4,141 | 1,757 | 7,033 / 6 | 403 | 347, in 147 functions |
| AArch64: libc, libm, ld, libresolv | 4 | 4,459 | 1,310 | 5,085 / 14 | 0 | 0 |

(11 more lines in #1493)

From #1493 (Benchmark Impact):

n/a for default `fission_cli`: this change does not alter its default (in-process) output, and FreshBench was not run for that reason. It can alter output under `FISSION_DECOMP_SUBPROCESS_ISOLATION=1`, which routes through `fission_nir_worker`. CI base-vs-head: 3252/3252 rows identical.
- Release `fission_cli` built from base sources and from this branch: identical, sha256 `87607524…81a3`. `fission_nir_worker` differs (`1acf4e52…` → `e9fa5737…`), as expected.

slice pre-check: not run
full M1 run:     not run (measured binary byte-identical before/after)

From #1517 (Benchmark Impact):

FreshBench was not run. Reasons: the change cannot alter decompiler output (`meet` has no caller; the single `shr_const` caller never passes an input on which old and new differ, checked exhaustively at 4 and 8 bits and by reading `cast_unsigned`), and the environment this was prepared in has neither the `freshbench` binary nor the M1 corpus. If a reviewer wants the output-hash `sweep diff` as confirmation, the expectation is zero changed functions.
CI's `base-vs-head` job on `f4e5e0f` (fixed FreshBench M1 sample, 27 binaries, not the full corpus) agrees:

Outputs: 3252 of 3252 rows identical, 0 changed (0 gained an output, 0 lost theirs).
No output changed: the scores are the same.
This is the CI sample, not a full M1 run, and is reported as consistency evidence only.

From #1557 (Measured (same inputs before and after)):

All 1,013 PE files of the coverage-sweep corpus (Wine prefix, MinGW, the .NET 8 runtime, Homebrew, rustup, Go test data, other tools' fixtures). Oracle: `llvm-readobj --coff-exports`, compared by address for code exports and by count for forwarders (names are not comparable: Fission demangles C++ export names).

| | before (`origin/main` 34a3d31e8) | after |
|---|---|---|
| PE files that load | 923 / 1,013 | 1,012 / 1,013 |
| forwarded exports listed | 0 / 9,938 (missing in 101 files) | 9,938 / 9,938 |
| code exports missing (by address) | 36 / 87,757 | 36 / 87,757 |
All 89 newly loading files are the .NET 8 runtime's ReadyToRun assemblies (Machine `0xFD1D`); each loads as x86-64, e.g. `System.Private.CoreLib.dll` with 37,553 functions from its `.pdata`. All 9,938 forwarders come with a `module.symbol` target. The one PE still refused is an IA-64 image (no SLEIGH processor). The 36 unmatched code exports are unchanged and outside this change.

From #1566 (Measured (same inputs before and after)):

Every ELF `ET_EXEC`/`ET_DYN` file that loads in the coverage-sweep corpus: 1,857 files (Debian `gcc:16.2.0-trixie` `/usr`, musl-cross, Homebrew, Decbench builds, other tools' fixtures). Oracle: `llvm-readobj --dyn-relocations` for the `JUMP_SLOT`s and `llvm-nm -D --defined-only` for what the file defines, both on mangled names (Fission demangles C++ names in its own style, so names are not compared; counts are).
281 files have 40,328 `JUMP_SLOT`s whose symbol the file itself defines: x86-64 36,163 in 251 files, AArch64 3,230 in 19, ARM 935 in 11.

| x86-64 (the architectures whose PLT stubs the loader decodes) | before (`origin/main` 34a3d31e8) | after |
|---|---|---|
| PLT stubs for a self-defined symbol listed as imports | all | 1,455 of 36,163 slots (in 27 files) |
| stubs relinked as `plt_thunk` -> definition | 0 | 34,708 |
| files where more stubs were relinked than the file has self-defined slots (a wrong link) | | 0 |
PLT import stubs overall: 130,615 -> 95,907; import entries (`info -I`, which also counts `.dynsym` undefined externals) 239,411 -> 204,703. The 1,455 left are names with more than one definition, which are deliberately not linked: the sanitizer runtimes' interceptor aliases (`libtsan` 320, `libasan` 280) and versioned aliases in `libstdc++` and a few C++ libraries.
Out of scope, found here: the loader decodes PLT stubs on x86/x86-64 only, so the 4,165 self-defined slots on AArch64 and ARM have no stub entry at all, before or after.

From #1575 (Measured (same inputs before and after)):

The coverage-sweep corpus (10,630 unique files).

| | before (`origin/main` 34a3d31e8) | after |
|---|---|---|
| `.class` files refused as "Not a Mach-O binary" | 11 / 11 | 0 / 11 (all 11 are `UnsupportedLoaderFamily(JavaLoader)`) |
| WebAssembly modules refused as "unknown binary format" | 5 / 5 | 0 / 5 (all 5, four modules and one component, are `UnsupportedLoaderFamily(WebAssemblyLoader)`) |
| universal Mach-O files that load | 1,171 / 1,201 | 1,171 / 1,201 (unchanged) |
The 30 universal files that do not load are static libraries, whose slices are `ar` archives; `--member` (#1542, already on `main`) handles them and this branch predates it.

From #1605 (Measurement):

Run with `FISSION_EMU_INTERP=1` against the JIT, same quick-release binary, 2 reps each, interleaved. Instruction spread is ≤0.6% on the large fixtures. The host is aarch64 macOS and was shared with other load.

| Workload | Interpreter / JIT, user CPU | Retired instructions | Verify records |
|---|---:|---:|---|
| `verify --tier ground-truth`, all 17 verify-gate fixtures | **1.18x** (186.9 s → 220.8 s) | 1.30x | identical, 126/126 functions |
| worst fixture (`ground_truth_fixture_o0.elf`) | 1.55x | 1.52x | identical |
| `verify --all` (default tier), `ground_truth_fixture.elf` | 1.20x | 1.30x | identical |
| `sandbox`, `call`, `quotient` (8 short runs) | 0.41x–1.0x | 0.36x–1.0x | identical outputs except JIT block counters |
The full report and the removal decision come with the follow-up PR, in `docs/validation/2026-12-02-emulator-jit-vs-interpreter.md`.

From #1542 (Measured (same inputs before and after)):

Corpus: 10,630 unique files (by SHA-1) found on this machine and in three Docker images, extracted without running anything: Homebrew, rustup toolchains, Go, Debian `gcc:16.2.0-trixie` `/usr`, a Wine prefix with MinGW libraries, the .NET 8 runtime, and test fixtures from other tools. 3,789 of them are `ar` archives (3,759 plain archives plus 30 universal static libraries), 35.6% of the corpus and every one of the 3,789 `info` failures in this class on `origin/main` (34a3d31e8).

| | before | after |
|---|---|---|
| `info <archive> --json` succeeds | 0 / 3,789 | 3,788 / 3,789 |
| object members loaded with `--member` (first, middle, last object member per archive) | n/a | 8,532 / 8,532 |
The one remaining failure is `go/internal/gcimporter/testdata/versions/test_go1.11_999b.a`, which `llvm-ar t` also rejects as truncated/malformed.
Members enumerated: 374,055 objects (COFF x86-64 and i386, Mach-O arm64/x86-64, ELF x86-64/AArch64/ARM/RISC-V), 1,476 COFF short imports, 3,053 others (2,222 WebAssembly objects in wasm32 `.rlib`s, 770 Rust metadata, 14 Go objects, 11 LLVM bitcode, 36 unrecognised). Loaded members by architecture: arm64 3,604, x86-64 3,492, x86 1,392, arm 39, riscv 5. 1,534 of the 4,219 COFF member loads have no functions: MinGW import-library members that hold only `.idata$` sections.

From #1553 (Measurement):

| fixture | functions (orig / packed) | identical pseudocode |
|---|---|---|
| ELF x86-64, ×4 methods | 65 / 65 | 65 / 65 |
| ELF i386, ×4 methods | 71 / 71 | 71 / 71 |
| PE32, ×4 methods | 26 / 26 | 24 / 26 (26 / 26 after kernel32 name-case normalisation) |
| PE32+, ×4 methods | 52 / 52 | 49 / 52 (52 / 52 after kernel32 name-case normalisation) |
The only PE difference is the spelling of the import symbol: `KERNEL32.dll!X` becomes `KERNEL32.DLL!X`. UPX merges kernel32 into its own stub's import entry, so the original casing is not in the packed file (`upx -d` gives the same result). DLL names are case-insensitive.
With `--no-unpack`, the packed files expose only the stub: 1–8 functions, none of them shared with the original.

From #1585 (Measured):

`decomp --all --json` on 10 binaries from the repository's test data (x86-64, i686 PE, AArch64, Thumb), quick-release build of this branch plus the Rust backend. Every function is compiled on its own against stubs for its `//fission:extern` lines; nothing decompiled is executed.

| 1,414 functions | |
|---|---|
| `gofmt` parses | 1,414 (100%) |
| `go build` | **1,247 (88.2%)**; 1,247 of 1,267 (98.4%) excluding 128-bit integers |
| `go vet` | 1,232 |
| call sites, same multiset as C | 1,414 (5,407 = 5,407 call sites) |
| call order as in C | 1,414 |
| store count as in C | 1,414 |
| lowered to the state machine | 76 (310 of the C functions contain a `goto`) |
- **Build failures (167)**:
  - 147 functions use a 128-bit integer. Go has none, so those types are left as the undefined names `fission_uint128`/`fission_int128` rather than silently narrowed.
  - Of the rest: an over-wide constant length in a slice conversion (7), a function value used as an integer (2), and one-off cases.
- **C output is unchanged**: `code` is byte-identical to main on 1,417 of 1,417 functions. Five rows timed out under load in the main run; re-run alone with `--timeout-ms 0`, all five are identical.

From #1586 (Measured):

Same 10 test-data binaries and build as #1585. Every function is checked on its own with `rustc --crate-type lib --emit=metadata`, since the output declares its own externs. Nothing decompiled is executed.

| 1,414 functions | |
|---|---|
| `rustc --emit=metadata` | **1,396 (98.7%)** |
| call sites, same multiset as C | 1,414 (5,407 = 5,407 call sites) |
| call order as in C | 1,414 |
| store count as in C | 1,414 |
| lowered to the state machine | 122 (310 of the C functions contain a `goto`) |
- **Remaining compiler errors (18)**:
  - unary `!` on a float or `[u8; 16]` value (7);
  - E0745, address of a temporary (4);
  - E0061, argument count where the tree calls one function at several arities (4);
  - E0308, mismatched types (3).
- C output is byte-identical to main on 1,417 of 1,417 functions (see #1585).

From #1541 (Measured (GitHub-hosted runners)):

Before: 80 successful `ci.yml` runs, 2026-12-01/02. After: this PR's runs.

| | before | after |
|---|---|---|
| decomp-corpus fixtures job | 6.3 min avg (fat-LTO build 332 s median) | 14–25 s (+ shared build) |
| loader fixtures, Linux job | 6.8 min avg | 12–18 s |
| shared release-cli build | – | 3.0 min (warm sccache) / 5.3–6.5 min cold |
| verify gate | none | 2.8 min |
| Same lane mix (CI lane + all pre-merge lanes): CI Summary after creation | #1491 runs: 10.2, 17.4, 17.5, 18.2 min | 11.1, **8.5** min (green runs) |
| Same lane mix: runner-min excl. base-vs-head | 66–84 | 71, **49** |

From #1099 (Measurement):

**DecBench sample set.** 250 functions, same release binary, only `FISSION_SAILR` flipped (`decbench_sample_set_gate.py check`, `FISSION_BENCHMARK_NO_CACHE=1`).

| | SAILR off | SAILR on |
|---|---:|---:|
| GED perfect | 68 / 233 | **65 / 233** |
| GED total distance | 7,406 | 7,394 |
| type perfect | 17 / 222 | 17 / 222 |
Seven rows changed: `print_list` 113 -> 68, `get_organization_crt_set` 5 -> 10, `i2cWait` 2 -> 8, `shadow main` 36 -> 37, and three perfect rows lost (`searchfiles`, `console_read`, libopencm3 `main`).
- The existing path keeps the source's single loop head, `while (1) { x = *p++; if (!x) break; ... }`.
- The shared `WhileDo` lowering (`rotate_while_test_to_preheader_latch` in `collapse_driver.rs`) moves the test into a preheader and a latch: `x = *p++; for (zf = x == 0; x; zf = ...) { ... }`. That is a different CFG, and a flag variable leaks into the `for` header.
**FreshBench probe.** 120 functions with gotos, SAILR on vs off:
- SAILR offers a candidate for 101 of the 114 it is asked about.
- On 40 sampled rejections it has fewer gotos in 38 (514 -> 185 in total), but NodeEstimate rejects it: a `goto` costs fewer estimated Joern nodes than the structured form.
- 4 were admitted.

From #1581 (Measurements):

FreshBench M1 slice: `gcc-O0`, `gcc-O2`, `clang-O0`, `clang-O2`, `i686-gcc-O2`, `aarch64-gcc-O2`. That is 1,067 stripped binaries and 35,659 functions; base is main `9220529f`.
- 33,635 functions are identical and 0 changed.
- 224 were skipped because a 20 s per-function timeout hit one side; the machine was under heavy load.
- CPU on one binary, single-threaded, two runs each: 3.92 / 3.80 s before and 4.00 / 3.76 s after, which is within noise.
**The evidence it exports**, over the 616,679 variables the decompiled body assigns:

| agreement | variables |
|---|---:|
| exact | 547,391 |
| conflict | 39,578 (6.4%): width 17,149, pointer_integer 16,480, class 5,949 |
| mixed_signedness | 20,251 |
| null_or_integer | 6,535 |
| no_evidence | 2,080 |
| mixed_pointee | 844 |
- A `double`-holding x87 slot is declared `long double` in one place and assigned an `int` temp in another.
These are real defects in the printed output, which an agent can now see. One false alarm, `for (i = 0; ...; i++)` with a 32-bit zero and a 64-bit increment, was fixed before measuring: zero now joins any width.

From #1582 (Measurement):

All local, macOS, `quick-release` builds of base `9220529f2` and head `555973ffe`. The binaries were only decompiled, never executed.
**`fission_agg` count.** 80 FreshBench M1 x86-64 stripped binaries: one per project x {gcc, clang} x {O0, O2}, 52,457 functions.

| | functions containing it | uses in function bodies | of which recovered-field struct | size-only | whole-object copy |
|---|---:|---:|---:|---:|---:|
| base | 11,288 (21.5%) | 68,087 | 39,411 | 20,724 | 7,952 |
| head | 0 | 0 | - | - | - |
On head, `struct sN` appears 39,927 times in the bodies of those functions.
**Text changes beyond the rename.** On the 43,315 functions that both sides decompiled without falling back, 10,905 changed text. After mapping `fission_aggN` and `struct sN`/`undefinedN` to one token, 25 still differed. All 25 were the redundant cast described above (`((fission_agg24 *)local_8)->field_10` becomes `local_8->field_10`), measured on the head before the parenthesis fix.
**FreshBench scores** (the fixed M1 sample of `scripts/ci/output_diff.py`: 11 units, 3,252 rows, scorer pinned at 31f3358):

Outputs: 2619 of 3252 rows identical, 633 changed (0 gained an output, 0 lost theirs).
perfect +0, perfect with control flow +0, Joern perfect +0, types perfect +0
Distance (sum of GED where both scored): +0; 0 rows closer, 0 farther.
base totals: perfect 582 (17.9%), types perfect 18.6%, distance 68984 over 2093 scored rows (head identical)
I expected types to stay flat. The scorer classifies a type it does not know as `unknown`; it reads `struct X` as a struct and `undefined16` as a 16-byte integer. The changed declarations here are mostly `stack_frame`, SSE temporaries and pointers, which are not DWARF-scored locals or which classify as `ptr` either way. This PR is a readability and faithfulness change, not a score change.
**Speed.** Not measured cleanly. The local sweep reported head decompile CPU +15% (and +27.6% on an earlier run). The machine was at load 110-150 throughout, and the sweep decompiles head first and base second. Instructions retired on one binary (clang-O0 `libpicsim.so`, run twice each, alternating) were base 1.143T / 1.383T and head 1.151T / 1.316T. That is within the base-vs-base spread. The new work is one O(n) type walk per function at render time. Please read CI's speed comparison as the evidence.
Out of 80 binaries, one (`fceumm_libretro.so`) first showed ~4,300 `worker_unavailable` fallbacks on head. Rerun alone it gives 4,352 ok / 30 internal errors, against base's 4,354 / 28. The cause was the live-worker quota exhausted while 6 CLIs ran in parallel next to other sessions' Fission runs. It is unrelated to this change.

From #1587 (Correctness evidence):

`fission_cli verify <tinydng gcc-O0> --addr 0x452525 --tier ground-truth --runs 10`, with main `117d924bf` as base and this PR as head:

| | SAILR off | SAILR on |
|---|---|---|
| base | Equivalent (checked 9) | **Diverged, run 9** ("byte at 0x53 is 0x41 in the tree, machine stored 0x00") |
| head | Equivalent (checked 9) | **Equivalent (checked 9)** |
SAILR-on text: `char xVar269; … if (local_4 < xVar269)` becomes `uchar xVar269; …`. The second compare in the same loop (`+172`) goes from `char` to `uchar` as well.

Quality (full FreshBench sweep)

Not measured for this release. No full FreshBench M1 sweep compared v0.5.0 with this candidate. Each PR's CI base-vs-head run on the fixed sample is the per-change evidence. Those numbers are in the PR bodies linked above.

GED (structure) measures how close the output's control flow is to the source's. It does not measure correctness (ADR 0019).

Known limitations

Open issues labelled release:blocker, or bug and status:confirmed, when these notes were drafted:

  • x86-64 lift: ADD/SUB/CMP/INC/DEC/NEG and the other arithmetic instructions never set AF (#1048)
  • x86-64 lift: CVTSD2SI/CVTSS2SI/CVTPS2DQ/CVTPD2DQ round ties away from zero instead of to even (MXCSR.RC) (#1049)
  • x86-64 lift: CVT*/CVTT* return a wrapped value instead of the integer indefinite for NaN and out-of-range inputs (#1050)
  • x86-64 lift: SHR/SHRD with a masked count of 0 change OF (#1051)
  • x86-64 lift: PUSHF/PUSHFQ store reserved RFLAGS bit 1 as 0 (#1052)
  • x86-64 lift: XADD m8, r8 stores through the address register after overwriting it (#1053)
  • AArch64 lift: FCVT* do not saturate out-of-range/NaN inputs and convert unsigned forms as signed (#1056)
  • x86-64 decode: opcode 0x90 ignores REX.B (f3 41 90 is xchg r8d, eax) and 'xchg eax, eax' clears RAX[63:32] (#1059)
  • x86-64 lift: XCHG m32, r32 leaves bits 63:32 of the register (#1060)
  • x86-64 decode: a repeated 0x66 prefix cancels the operand-size override (#1061)
  • AArch64 lift: SUQADD/SQDMLAL do not saturate and SQRDMULH/SRSRA drop the rounding constant (#1068)
  • AArch64 lift: FMADD/FMSUB/FNMADD/FNMSUB/FMLA/FMLS round twice instead of once (not fused) (#1072)
  • x86-64 lift: VEX VCVT* and MMX CVT*PI still round wrong and miss the integer indefinite (#1396)
  • AArch64 lift: ADDG/SUBG/LDG keep the MTE allocation tag; the CPU recomputes or clears it (#1474)
  • pcode-ir(block_cfg): duplicate block target keys truncate 64-bit addresses and alias distinct CFG nodes (#1500)
  • render: size-only fission_aggN identities conflate unrelated aggregate types within a function and leak synthetic names into C (#1502)
  • type-constraint: same-offset field evidence is overwritten by traversal order and incompatible aggregate constraints silently unify (#1508)
  • ttd: seek reports success and Stepped even when execution stops before the requested instruction count (#1509)
  • emulator(concolic): sibling states restore RAM but leak heap cursor and OS-side execution state across forks (#1513)
  • emulator(linux): rt_sigaction and rt_sigprocmask turn unreadable guest pointers into zero-valued successful state changes (#1514)
  • dynamic(linux): debugger silently suppresses guest delivery of reported signals on resume and detach (#1516)

Compare with v0.5.0