← Lab /Software

Verified decompiler recovers 82.4% of CompCert AArch64 code without signatures

DeCompCert can reconstruct and validate 82.4% of eligible contexts without retained signatures

Software arXiv 13 Nov 2026 Method Prototype evidence

Published as “DeCompCert: A Verified Decompiler for CompCert-Generated AArch64”

Why it matters

Provides a formally verified decompiler that can be used to audit and instrument CompCert-built binaries with strong correctness guarantees, though practical coverage depends on the availability of accurate function signatures.

Summary

DeCompCert provides an end-to-end sound decompilation of CompCert-generated AArch64 binaries to C, with a machine-checked theorem guaranteeing that every observable behavior of the reconstructed C program is matched by the supplied assembly. When function signatures are known it reconstructs all 3,173 eligible contexts (100% completeness); without signatures it accepts 59.2% of contexts, rising to 82.4% when platform proposals and longer runs are added. The claim is backed by formal proofs for each of the nine reverse passes and an empirical evaluation on thousands of functions.

What they found 3

  1. 100% reverse-pipeline completeness when signatures are provided

    “DeCompCert reconstructs, certifies, and recompiles all 3,173 eligible contexts across sixteen application groups and both CompCert pipelines. This 100% result measures reverse-pipeline completeness.”

  2. 59.2% acceptance without retained signatures

    “DeCompCert alone accepts 59.2% of configured contexts”

  3. Coverage improves to 82.4% with platform proposals and longer runs

    “The cumulative portfolio reaches 2,606 (82.4%) with additional reconstruction improvements and longer runs.”

Caveats 5

  • When signatures are not retained, the decompiler accepts only 59.2% of contexts, indicating limited coverage without external information.
  • The inferred signatures may be internally consistent yet incorrect, as the theorem only guarantees soundness relative to the candidate typed assembly, not the original executable semantics.
  • An inferred candidate can be internally consistent and still misrepresent an interface that is unobservable in the text.
  • The theorem below is universally quantified over PAsm, so the same typed-Asm-to-C proof applies whether its signatures were retained or inferred. This quantification must not be read as a proof of the first front-end layer.
  • proving the parser is outside the scope of this work.

What’s new here 4

  • First verified, compositional decompilation of CompCert AArch64 to C using translation validation for each reverse pass.
  • Integration of Datalog-based inference to recover function signatures from assembly when they are absent.
  • Mechanized proofs in Coq (Rocq) that each reconstruction step preserves semantics and that the composition yields a forward simulation.
  • Empirical coverage measurement showing up to 82.4% of contexts can be reconstructed with additional platform proposals.