Skip to content

decbench v2: declib-free backends, multi-version, caching, datasets, … - #1

Merged
mahaloz merged 1 commit into
mainfrom
decbench-v2
Jun 25, 2026
Merged

mahaloz merged 1 commit into
mainfrom
decbench-v2

Conversation

@mahaloz

@mahaloz mahaloz commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

…terminal report

A major extensibility/re-runability pass plus the pending 26-target sailr expansion. Foundation-first (shared contracts), then four parallel agents on disjoint file sets (web / data / raw-decompilers / dockerized), then integrated.

Decompilers

  • Raw, declib-free backends (decompilers/raw/): canonical angr/ghidra/ida/binja drive native APIs directly; declib backends kept as *-declib. Shared ELF/addr bookkeeping in raw/common.py. angr/ghidra/ida verified decompiling here.
  • Multiple versions per decompiler: name@version specs (decompilers/spec.py + registry); [email protected] vs [email protected] run as distinct columns. Per-version settings in ~/.config/decbench/decompilers.toml.
  • Dockerized backends (decompilers/dockerized.py): reko, retdec, r2dec (+ docker/*.Dockerfile). r2dec runs natively via radare2; the root Dockerfile now installs radare2 + the r2dec plugin so it works fully in-container.

Caching & datasets

  • Content-addressed metric cache (caching.py): each metric keys on its determining inputs; re-seen (decompiled, source) pairs skip recompute.
  • Binary dataset store (dataset.py) + decbench dataset save/list/materialize: re-run the benchmark without recompiling (run --skip-compile).
  • Large-function subset (scoring/subset.py) + decbench subset: upper tail of the size bell curve, no binary copying.

Report

  • rendering/html.py reskinned to a terminal aesthetic (mahaloz.re-inspired), preserving all interactivity, plus two new views (scoring/report_extras.py): Hardest Functions (worst scores + code) and Historical (pure-SVG line charts across decompiler versions). FunctionData schema v2 (size/hardest/history).

Docs & plugins

  • docs/ADDING_A_DECOMPILER.md: the Decompiler plugin contract end to end.
  • scripts/run_small.py: fast multi-version end-to-end validation.

Also lands the 26 sailr-eval targets (projects/sailr/*.toml) and resilient run drivers (scripts/) from the prior expansion. Tests: 93 passed, 2 skipped (+ caching/dataset/subset and dockerized-backend suites).

Claude-Session: https://claude.ai/code/session_01RzUkv7A5mKLPFrJDn5BRPA

…terminal report

A major extensibility/re-runability pass plus the pending 26-target sailr
expansion. Foundation-first (shared contracts), then four parallel agents on
disjoint file sets (web / data / raw-decompilers / dockerized), then integrated.

Decompilers
- Raw, declib-free backends (decompilers/raw/): canonical angr/ghidra/ida/binja
  drive native APIs directly; declib backends kept as *-declib. Shared ELF/addr
  bookkeeping in raw/common.py. angr/ghidra/ida verified decompiling here.
- Multiple versions per decompiler: name@version specs (decompilers/spec.py +
  registry); [email protected] vs [email protected] run as distinct columns. Per-version
  settings in ~/.config/decbench/decompilers.toml.
- Dockerized backends (decompilers/dockerized.py): reko, retdec, r2dec
  (+ docker/*.Dockerfile). r2dec runs natively via radare2; the root Dockerfile
  now installs radare2 + the r2dec plugin so it works fully in-container.

Caching & datasets
- Content-addressed metric cache (caching.py): each metric keys on its
  determining inputs; re-seen (decompiled, source) pairs skip recompute.
- Binary dataset store (dataset.py) + `decbench dataset save/list/materialize`:
  re-run the benchmark without recompiling (run --skip-compile).
- Large-function subset (scoring/subset.py) + `decbench subset`: upper tail of
  the size bell curve, no binary copying.

Report
- rendering/html.py reskinned to a terminal aesthetic (mahaloz.re-inspired),
  preserving all interactivity, plus two new views (scoring/report_extras.py):
  Hardest Functions (worst scores + code) and Historical (pure-SVG line charts
  across decompiler versions). FunctionData schema v2 (size/hardest/history).

Docs & plugins
- docs/ADDING_A_DECOMPILER.md: the Decompiler plugin contract end to end.
- scripts/run_small.py: fast multi-version end-to-end validation.

Also lands the 26 sailr-eval targets (projects/sailr/*.toml) and resilient run
drivers (scripts/) from the prior expansion. Tests: 93 passed, 2 skipped
(+ caching/dataset/subset and dockerized-backend suites).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01RzUkv7A5mKLPFrJDn5BRPA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant