Skip to content

Benchmark fairness overhaul + interactive report - #3

Merged
mahaloz merged 1 commit into
mainfrom
fairness-stripped-binaries-and-report
Jun 30, 2026
Merged

mahaloz merged 1 commit into
mainfrom
fairness-stripped-binaries-and-report

Conversation

@mahaloz

@mahaloz mahaloz commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Decompiler-facing fairness:

  • Decompilers now get a fully STRIPPED binary (no DWARF, no symbols); evaluation uses the unstripped DWARF copy. The source-function filter matches by DWARF low_pc (address) and results are re-labeled by address->name, so decompilers get no unwarranted help (esp. type_match no longer echoing DWARF types). (scripts/run_benchmark.py, decompilers/raw/common.py, scripts/decompile_one.py)
  • byte_match v2: gcc-diagnostic-driven compilability fixup + operand normalization; abstains when the recompile toolchain is absent (ARM/PE on x86). (metrics/fixup.py, metrics/byte_match.py)
  • GED: strip inlined system headers from preprocessed .i before Joern (it was timing out on header bloat, not failing), and match each binary against the UNION of the project's source CFGs. (utils/cfg.py, pipeline/evaluate.py)

Decompilers:

  • binja emits pseudo-C (was raw HLIL); angr Phoenix structurer backend.

Report (rendering/html.py, scoring/*):

  • swebench-style sortable leaderboard, Metrics, side-by-side Compare, Hardest, Historical, sidebar dataset selector.
  • One denominator per decompiler (= functions decompiled) via per-(function, decompiler) decompiled/errored tracking -> Errors column; "normalize failures" toggle; decompiler version on hover.
  • New Dataset page: software-type categories, projects, total LOC, and Joern source/output parse-failure pipeline health. (scripts/compute_dataset_info.py)

Targets / infra:

  • cps debug builds (betaflight/chibios/cleanflight); slim cross/mingw Dockerfile.compile; resilient drivers: reeval_bytematch, reeval_ged, rebuild_function_data (--add-only/--ged), overnight_run + finalize/rerender.
  • Tests: byte_match fixup, report extras, source extract.

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

Decompiler-facing fairness:
- Decompilers now get a fully STRIPPED binary (no DWARF, no symbols); evaluation
  uses the unstripped DWARF copy. The source-function filter matches by DWARF
  low_pc (address) and results are re-labeled by address->name, so decompilers get
  no unwarranted help (esp. type_match no longer echoing DWARF types).
  (scripts/run_benchmark.py, decompilers/raw/common.py, scripts/decompile_one.py)
- byte_match v2: gcc-diagnostic-driven compilability fixup + operand
  normalization; abstains when the recompile toolchain is absent (ARM/PE on x86).
  (metrics/fixup.py, metrics/byte_match.py)
- GED: strip inlined system headers from preprocessed .i before Joern (it was
  timing out on header bloat, not failing), and match each binary against the
  UNION of the project's source CFGs. (utils/cfg.py, pipeline/evaluate.py)

Decompilers:
- binja emits pseudo-C (was raw HLIL); angr Phoenix structurer backend.

Report (rendering/html.py, scoring/*):
- swebench-style sortable leaderboard, Metrics, side-by-side Compare, Hardest,
  Historical, sidebar dataset selector.
- One denominator per decompiler (= functions decompiled) via per-(function,
  decompiler) decompiled/errored tracking -> Errors column; "normalize failures"
  toggle; decompiler version on hover.
- New Dataset page: software-type categories, projects, total LOC, and Joern
  source/output parse-failure pipeline health. (scripts/compute_dataset_info.py)

Targets / infra:
- cps debug builds (betaflight/chibios/cleanflight); slim cross/mingw
  Dockerfile.compile; resilient drivers: reeval_bytematch, reeval_ged,
  rebuild_function_data (--add-only/--ged), overnight_run + finalize/rerender.
- Tests: byte_match fixup, report extras, source extract.

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