Recompilation Is Not Enough: Test-Guided Decompiled-C Repair

Yuhan Huang, Puzhuo Liu, Jianlei Chi
9/7/2026
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

Decompiled C often becomes recompilable only after repair, but recompilation alone does not establish test-observed behavior. A recompiled command-line binary can still parse options incorrectly, print different bytes, or return a different exit status.

Show full abstract

We present a few-step workflow for repairing decompiled C using compiler feedback and related official tests. Compiler and linker diagnostics first guide build repair. Once the repaired C recompiles into a binary, smoke checks and related official tests expose behavioral discrepancies for semantic repair. In a preliminary static-enriched evaluation on 104 Coreutils 9.5 binaries with available decompiler exports and deterministic exact-output smoke comparisons, 91 binaries (87.5%) recompile and pass the test gate; 9 do not recompile within the repair budget, and 4 recompile but still fail the test gate. The result suggests that test-gate feedback can make LLM-assisted repair of decompiled C more auditable than compile-only recovery.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2026recompilation,
  title  = {Recompilation Is Not Enough: Test-Guided Decompiled-C Repair},
  author = {Yuhan Huang and Puzhuo Liu and Jianlei Chi},
  year   = {2026},
  eprint = {2609.07201},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.07201v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.07201.svg)](https://codeofpaper.com/paper/2609.07201)

Discussion