DeCompCert: A Verified Decompiler for CompCert-Generated AArch64
Swarn Priya, Basavesh Ammanaghatta Shivakumar, Thomas Gilray, Kristopher Micinski
Key points
From the paper's conclusion- We evaluate DeCompCert on approximately 2.16 million lines of C.
Abstract
DeCompCert is a Rocq-verified decompiler for AArch64 assembly generated by CompCert. It reconstructs CompCert C through nine reverse passes, combining deductively verified transformations with translation validation. Untrusted OCaml and Datalog analyses propose candidate reconstructions, while verified validators accept only candidates that satisfy the required semantic correspondence. The composed correctness theorem guarantees that every defined, safe behavior of an accepted C reconstruction is matched by the input CompCert assembly; under a safety assumption, the two programs are observationally equivalent. We evaluate DeCompCert on approximately 2.16 million lines of C. With exact function and call signatures, it reconstructs and recompiles all 3,173 eligible contexts under both unoptimized and optimized CompCert pipelines. Without retained signatures, its cumulative inference portfolio validates 2,606 of 3,164 contexts (82.4%), while the platform-plus-IDA configuration validates 2,407 contexts (76.1%). Native execution and output-quality experiments further evaluate the generated C and characterize the remaining limitations in signature recovery and source resemblance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- SmartDecompiler-R1: Enhancing Faithful and Explainable Smart Contract Bytecode Decompilation with Reinforcement LearningProceedings of the ACM on Software Engineering · 2026
- CHISEL-ing Back Source Code with AI-enabled Iterative RecoveryarXiv · 2026
- A Systematic Survey of Decompilation: Mapping Classical and Machine-Learning ApproachesarXiv · 2026
- ASAP: Assembly-Source Aligned Pseudocode Refinement For Binary DecompilationarXiv · 2026
- Revisiting Re-executability: Coverage-Guided Symbolic Feedback to Improve DecompilationarXiv · 2026
- Decompiling for Constant-Time AnalysisProceedings of the ACM on Programming Languages · 2026