Lune

CCS2026Top-tier venue

Assessing Semantic Equivalence of Decompiled Code: Are Our Measures Adequate?

Hao Ren, Ruotong Yu, Jun Xu

Abstract

Binary decompilation is fundamental to security tasks such as reverse engineering, malware analysis, and vulnerability discovery. To assess whether decompiled code faithfully preserves the original binary's semantics, researchers rely on equivalence measures that compare program properties (function calls, return values, global variables, and local variables) between the original and decompiled code. These measures serve both as bug detectors and as a proxy for ground truth in benchmarking decompiler quality. Yet their adequacy, in terms of how many real errors they detect (effectiveness) and how reliably their flags indicate genuine discrepancies (precision), has never been systematically evaluated. We present, to our knowledge, the first such evaluation. Across four equivalence measures, five mainstream decompilers (IDA, Ghidra, Binary Ninja, angr, and RetDec), and nearly 5,000 function pairs sampled from ten open-source projects, we establish ground truth through manual binary-level analysis and trace every failure to its root cause using a structured error taxonomy. Our findings reveal that most measures achieve high precision but highly uneven effectiveness, with each measure blind to errors outside its narrow target property. Combining all measures substantially improves effectiveness, at the cost of reduced precision on some decompilers. Most critically, we show that using any individual measure as a proxy for ground truth produces deviations in the majority of cases and can even reverse decompiler rankings entirely. Our results call for caution when interpreting measure-based findings and provide a foundation for developing more robust decompilation assessment methods.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. D-Helix: A Generic Decompiler Testing Framework Using Symbolic DifferentiationMuqi Zou, Arslan Khan, Ruoyu Wu, Han Gao et al.USENIX Security 2024 · 14 citations
  2. Bin2Wrong: a Unified Fuzzing Framework for Uncovering Semantic Errors in Binary-to-C DecompilersZao Yang, Stefan NagyUSENIX ATC 2025 · 6 citations
  3. OSPREY: Recovery of Variable and Data Structure via Probabilistic Analysis for Stripped BinaryZhuo Zhang, Yapeng Ye, Wei You, Guanhong Tao et al.S&P 2021 · 78 citations
  4. DecompileBench: A Comprehensive Benchmark for Evaluating Decompilers in Real-World ScenariosZeyu Gao, Yuxin Cui, Hao Wang, Siliang Qin et al.ACL Findings 2025 · 3 citations
  5. SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to AskChengbin Pang, Ruotong Yu, Yaohui Chen, Eric Koskinen et al.S&P 2021 · 102 citations
Dusk over the sea between two cliffs drawn in fine vertical lines