Manuscript Offprint
arXiv:2610.11556SoK: Are LLMs Reliable at Source Code Recovery? A Taxonomy and Empirical Evaluation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Varun Kohli*, Lee Bing Cheng*, Nur Hazim Ghazali†, Gao Yuze*, Daryl Poon*, and Dinil Mon Divakaran*
ASTAR Institute of Advanced Intelligence and Computing, Singapore
{Kohli_Varun, Lee_Bing_Cheng, Gao_Yuze, Daryl_Poon, Dinil_Divakaran}@a-star.edu.sg
†National University of Singapore, Singapore
Abstract—Effective source recovery is critical to security applications such as malware analysis, vulnerability assessment, and legacy maintenance. Large Language Models (LLMs) are reshaping this field, shifting the paradigm away from rule-based heuristics to probabilistic and high fidelity semantic recovery of source code from assembly or classical decompiler-derived pseudo-C. However, despite rapid progress, the field suffers from fragmentation across numerous approaches as well as their non-unified evaluations, limiting objective comparisons. Further, existing works have limited coverage of embedded, IoT architectures and source languages beyond C/C++. In this work, we present the first Systematization of Knowledge (SoK) focused specifically on LLM-assisted binary-to-source recovery. We provide a granular design-centric taxonomy of LLM-assisted source recovery methods and systematic evaluations using seven key metrics along six evaluation dimensions. We evaluate state-of-the-art methods on 45,000 test samples derived from four standard and five embedded architectures, five optimization levels, and symbol stripping. We ablate the impact of design choices on recovery performance, including input representation, contextual enrichment, model scale, iteration and review roles using controlled in-house recovery pipelines and three off-the-shelf models. Finally, we test same-language and cross-language recovery capability covering four mature and two legacy languages. Our systematization and comprehensive evaluations provide key insights that guide future directions in this field.
Index Terms—Source Code Recovery, Large Language Models, Reliability, Reverse Engineering, Binary Decompilation
I. INTRODUCTION
Source code recovery is a critical building block of reverse engineering, computer security, and software maintenance. It enables security analysts to inspect and investigate programs [68], analyze malware [81], audit third-party binaries for vulnerabilities [57], plagiarism detection [73], and so on, all without access to original source code. Traditional decompilers such as Hex-Rays [3], Binary Ninja [1], Ghidra [2], and Angr [58] typically operate on a pipeline of deterministic Intermediate Representations (IR), control flow reconstruction algorithms, pattern matching and type inference heuristics. While these classical tools preserve lower-level control execution semantics, their output is marred by issues like poor readability, unnatural control constructs, lost variable names, and fragmented type structures, which ultimately hinders human analysis and recompilation [25].
The emergence of Large Language Models (LLMs) trained on massive language and code corpora has led to unprecedented capabilities in code generation, analysis, and software comprehension. Building upon this proficiency, LLMs are now increasingly being used to address the challenges in reverse engineering [40], [56], [72]. Rather than relying purely on deterministic rules, LLM-assisted source recovery models treat decompilation or pseudo-C refinement as a neural sequence-to-sequence translation task that converts low-level representations to recompileable and equivalent high-level source code. These approaches show promise in recovering idiomatic function names, expressive variable and type structures, and clean high-level abstractions directly from assembly or decompiled pseudo-C output [41], [55], [64], [65], [69], [71], [72]. Despite rapid proliferation across top security, software engineering, and AI venues, the research landscape remains highly fragmented. Even when restricting the scope to top-tier venues (see Section III-B) over the past two years, 13 distinct methodologies have been published [6], [16], [26], [31], [38], [41], [46], [61]–[64], [70], [78], alongside several pre-prints this year [21], [32], [44], [49], [59], [77].
Prior systematizations broadly explore LLM applications in reverse engineering with coarse taxonomies of LLM-based source recovery [7], [39], [48]. To the best of our knowledge, there is no existing systematization of the granular design choices of LLM-assisted source recovery methods, and no controlled ablations of such choices to measure their impact on fidelity. Further, evaluation metrics are highly fragmented, with 53 unique metrics identified across 20+ research papers in top venues on LLM-assisted source recovery from 2024–2026. Moreover, existing evaluations and benchmarks on LLM-assisted source recovery focus almost exclusively on x86-64 and C/C++ target generation [33], [65], [76], with coverage of non-C languages only by a few method papers and limited to C++ [46], [70], CUDA [62], and Dart [5]. Further, decompilation fidelity across legacy and mature languages has only been studied for pre-LLM neural decompiations [37]. There is no existing evaluation of LLM-assisted source recovery that covers embedded systems architectures (armv7m, armv8m, armv7a, armv8a, and mips23le) [66].
To bridge this gap, this paper presents the first comprehensive Systematization of Knowledge (SoK) dedicated to LLM-assisted source recovery. We formulate four core Research Questions (RQs) to evaluate state-of-the-art (SOTA) decompilation paradigms:
• RQ1: Evaluation Dimensions (Sections IV, V-A, VI-A). As the Law of Leaky Abstraction (Joel Spolsky) states, “All non-trivial abstractions, to some extent, are leaky.” Two distinct source codes may have the same functional behavior through the reduction of noise to machine language during compilation. Thus, what dimensions must be considered to evaluate the fidelity of source recovery?
• RQ2: Generalization (Section VI-A). How well does SOTA LLM-assisted source recovery generalize when evaluated against cross-architecture binaries covering standard and embedded (IoT) architectures, diverse compiler optimization flags (OO-Os), and symbol availability?
• RQ3: Pipeline Design (Sections III-B, VI-A, VI-B). What are the key building blocks and design choices of LLM-assisted methods, and their impact on source recovery?
• RQ4: Multi-Language Recovery Spectrum (Section VI-C). How effectively can LLMs recover the same language or cross-recover C from a different mature or legacy source language?
The following are the key findings from our evaluations to answer the above questions (see Section VII for details):
• Signature recovery: Function-level recompilation rates hide signature recovery problems, making re-compilability with call interfaces a better metric for reporting as well as iterative correction.
• Generalization: SOTA methods perform worse on Thumb2 (IoT) ISAs than standard ISAs. Performance drops on aggressive optimization, while symbol stripping mainly impacts readability.
• Design choices: Pseudo-C acts as a portability layer for cross-architecture recovery due to standardized output of classical decompilers. Compiler iterations and larger models improve compilability, binary-level semantics and functional recovery, while LLM roles improve readability.
• Non-C recovery: Current LLM and classical de-compiler capabilities are C-centric and heavily under-perform in non-C recovery.
Contributions: In summary, we make the following contributions through this work:
-
A systematization of LLM-assisted source recovery methods in top cybersecurity, AI, and software engineering venues, and a new taxonomy derived across five orthogonal axes, namely, model setup, control-flow, number of model roles per turn, input representations, and augmentation. The design-centric taxonomy enables a systematic evaluation of SOTA and targeted ablations.
-
A systematization of evaluation metrics used in prior studies highlights 53 metrics used across recent research on LLM-assisted source recovery across six key dimensions: two quality (compilation, readability) and four similarity (lexical, syntactic, semantic, functional). 7 metrics are selected across the 6 axes to enable a holistic, multi-axes evaluation across SOTA and ablations.
-
A comprehensive evaluation of SOTA methods on 45,000 samples derived from four standard and five embedded (IoT) architectures, five optimization levels, and unstripped or stripped symbol variants.
-
A controlled, taxonomy-driven ablation using three off-the-shelf Gemma4 (12b-it, 31b-it) [67] and Qwen3.8-27b [52] models, various base input representations and enrichment channels, and in-house source recovery pipelines including single-pass and single-roles (SP), compiler iteration (CIT), and review role (RR) to evaluate the impact of various base input representations, contextual enrichment, model scale, feedback iterations, and review turns on source recovery.
-
An evaluation of two off-the-shelf LLMs in same-language recovery and cross-language recovery (to C) from binary tasks across mature (C, C++, Go, Rust) and legacy (Fortran, Ada) languages.
II. PRELIMINARIES
To contextualize the shift from deterministic heuristics to neural source code recovery, this section outlines the fundamental mechanics of information loss during compilation and the differences between classical and neural decompilers.
A. The Lossy Nature of Compilation
Compilation is an inherently destructive, one-way transformation where a decompiler cannot recover the original source deterministically [24]. When high-level source code is translated into a machine-executable binary, the compiler strips away rich semantic abstractions such as meaningful variable names, custom data structures, class hierarchies, and idiomatic control flow constructs [20], [43], [45], [54]. Furthermore, aggressive compiler optimizations can significantly refactor the underlying program logic to maximize hardware efficiency, through, for example, loop unrolling, function inlining, and dead code elimination [8], [9], [23], [75]. Consequently, recovering the original source code is a challenging task, rooted in the many-to-one nature of the compilation process [14], [27], [50]. The practical goal of decompilation is therefore to recover a functionally equivalent and human-readable representation for a variety of use cases that include automated and manual analysis for vulnerability detection, patch diffing, malware analysis, program comprehension, and software license compliance [17], [18], [64].
B. Classical Decompilation Mechanics
Traditional decompilers (e.g., Hex-Rays, Ghidra) address binary recovery through deterministic, iterative pipelines [80].

Fig. 1: Taxonomy of LLM-assisted methods along five axes - model setup (M), control flow (C), model roles per turn (R), input representations (I), and augmentation (A).
They typically disassemble raw machine code, lift the assembly instructions into an Intermediate Representation (IR), and perform extensive data-flow and control-flow graph (CFG) analyses [4], [15], [74]. Finally, heuristic-based structural analysis and type inference are applied to emit C-like pseudo-C. While mathematically sound and highly effective at preserving low-level execution semantics, these tools are brittle. Failure could occur when encountering heavily optimized code, non-standard calling conventions, or obfuscated binaries, often producing pseudo-C cluttered with unnatural goto statements and fragmented types that inhibit human comprehension [13], [18], [75].
C. The Neural Decompiler Paradigm
The integration of Large Language Models (LLMs) frames source code recovery not as a problem of deterministic graph reduction, but as a neural translation task. By leveraging transformer architectures pre-trained on vast corpora of language, code, and assembly, neural decompilers attempt to probabilistically infer the lost semantic context. Instead of relying on hardcoded heuristics, these models ingest assembly language [31], [41], [64], or pseudo-C [64] emitted by classical decompilers, and output high-level source code. Because they evaluate the global context of the input sequence, LLMs excel at generating idiomatic function names, reconstructing complex nested logic, and emitting highly readable code [56]. However, this probabilistic nature introduces a critical vulnerability: hallucinations. Neural models may generate syntactically flawless code that subtly alters the functional behavior of the original binary, creating a tension between readability and semantic or functional determinism [33].
III. SYSTEMATIZATION
This section dives into the current literature on LLM-assisted source recovery and derive a five-axes taxonomy for this field. We gathered our literature corpus of research papers by querying DBLP over Jan 2020 to July 2026 with the keyword set (and variants) consisting of “decompilation”, “binary to source”, “assembly to source”, bytecode to source, “pseudocode to source”, “source code recovery”, and “recover* source code”. This search was restricted to A and A* CORE ranking venues across three fields: Cybersecurity (S&P, USENIX Security, CCS, NDSS, EuroS&P, ASIACCS, CSF, ESORICS, RAID, ACSAC, DSN, TIFS, TDSC, WWW), Software Engineering (ICSE, FSE/ISSTA, ASE, SANER, ICSME, ISSRE, MSR, ICPC, ESEM, TSE, TOSEM, EMSE), and AI (NeurIPS, ICML, ICLR, AAAI, IJCAI, ACL, EMNLP, NAACL, COLING, EACL, COLM, AISTATS, UAI, TACL, JMLR, TMLR). We manually added two missing works, i.e., Nova [41], due to the lack of relevant keywords in its title, and SK2Decompile [63], due to recency of publication. This approach returned 57 candidate papers, of which 52 are relevant to decompilation consisting of 35 methods and 17 surveys or evaluations. Among the 35 method papers, 31 lie specifically in the scope of source-recovery, breaking down further into 19 LLM-assisted and 12 classical (non-LLM) works on source recovery. We focus only on the LLM-assisted methods, excluding six which target Virtual-Machine (VM) bytecode such as WebAssembly [30], [56] and blockchain smart contracts [19], [34], [47], [60], since that lies outside our standard and embedded computer-architecture scope. The resultant 13 peer-reviewed in-scope methods are augmented by 5 arXiv pre-prints until July 2026 selected using the same methodology to create an exhaustive and diverse set of 18 LLM-assisted source-recovery methods included chronologically in Table I. Following the same funneling logic as above, we consider four benchmarks and empirical evaluations of LLM-assisted recovery to source code; we cover these in the next section.
A. Benchmarks and Empirical Evaluations
We first evaluate the coverage of existing surveys and evaluations of LLM-assisted source code recovery and highlight the gap in systematization.
Gao et al. [33] benchmark twelve traditional and LLM decompilers on 23,400 x86-64 functions from 130 OSS-Fuzz C projects, reporting recompilation success, a runtime coverage-equivalence rate, and a twelve-dimensional LLM-judged quality score across optimization levels 00-03 and Os. Another benchmark [65] contributes a million-scale corpus of two million binary-source function pairs mined from
https://portal.core.edu.au/conf-ranks/
While there are LLM-based research that focus on specific aspects of decompilation, e.g., variable names, types and function name prediction [55], [69], [71], [72], and works on compilers, IR and pseudo-C [11], [22], [79], we limit the scope of our work to the specific problem of “source code recovery”. The following subsections compile the surveyed benchmark and evaluation studies, and then systematize method papers on LLM-assisted source recovery.
TABLE I: LLM-assisted decompilation (source-code recovery) methods for standard/embedded computer architectures in top (A/A*) cybersecurity, AI, and software-engineering venues, 2020–2026, followed by 2026 arXiv preprints.
| Reference | Venue & Year | Model | Control | Role | Input | Augment | Architecture | Opt | Symbols | Source | Code |
|---|---|---|---|---|---|---|---|---|---|---|---|
| DeGPT [38] | NDSS 2024 | Not reported | 00-03 | stripped, unstripped | C | ✓ | |||||
| LLM4Decompile [64] | EMNLP 2024 | — | x86-64 | 00-03 | unstripped | C | ✓ | ||||
| SCCDEC [31] | EMNLP 2024 | x86-64 | 00-03 | Not reported | C | ✓ | |||||
| DecLLM [70] | ISSTA 2025 | Not reported | 00-03 | stripped, unstripped | C, C++ | ✕ | |||||
| PtxDec [62] | ASE 2025 | — | PTX | TVM sched-uler | Not reported | CUDA | ✓ | ||||
| Nova [41] | ICLR 2025 | — | x86-64 | 00-03 | stripped | C | ✓ | ||||
| PseudoFix [46] | ASE 2025 | x86-64 | 00-03 | stripped | C/C++ | ✓ | |||||
| Cao [16] | DSN 2026 | AVR | Os | stripped | C | ✕ | |||||
| FidelityGPT [78] | NDSS 2026 | x86 (32/64), ARM-32, MIPS-32 | 00-03 | Not reported | C | ✓ | |||||
| Idioms [26] | NDSS 2026 | — | x86-64 | 00-03 | stripped | C | ✓ | ||||
| Abualazm et al. [6] | SANER 2026 | — | x86-64 | AOT | Not reported | Dart | ✓ | ||||
| SK2Decompile [63] | ICLR 2026 | — | x86-64 | 00-03 | stripped | C | ✓ | ||||
| RIDecompiler [61] | ICPC 2026 | — | x86-64 | 00-03, Os | not reported | C | ✓ | ||||
| Agent4Decompile [77] | arXiv 2026 | x86-64 | 00-03 | stripped, unstripped | C | ✓ | |||||
| PCodeTrans [21] | arXiv 2026 | x86-64 | O2 | stripped, unstripped | C | ✕ | |||||
| AutoDecompiler [49] | arXiv 2026 | x86-64 | 00-03 | Not reported | C | ✕ | |||||
| Decaf [59] | arXiv 2026 | x86-64 | 00, O2 | stripped, unstripped | C | ✓ | |||||
| Gagnon et al. [32] | arXiv 2026 | x86-64 | O2 | stripped | C | ✕ |
permissively licensed C and C++ repositories, evaluating re-executability, R2I readability, and edit similarity over 00–03. Abualazm et al. [5] study fine-tuning and metric validity for Dart binaries, showing on a new benchmark that CodeBLEU and compile@k diverge from functional pass@k, and are the only work to examine cross-language transfer, from Swift to Dart. Yoda et al. [76] propose a nine-dimensional structural, behavioral, and semantic quality metric and analyze roughly nineteen thousand decompilations of 318 router programs compiled to x86-64 across 00, 02, 03, and Os.
Across these works, evaluations are conducted on x86-64 alone. None of them ablates the input representation: each fixes a single form, whether raw assembly or classical decompiler pseudo-C, rather than comparing the variety of input representations that existing methods depend on. Language coverage is almost entirely C and C++ [33], [65], [76]. Cross-language recovery examined only between Dart and Swift [5] and no evaluation of other mature languages such as Go, Rust, Cython, Java, and Python, and legacy ones such as Fortran.
B. Systematization of LLM-assisted Source Recovery Approaches in the Literature
We characterize each research work through five-axes taxonomy, as depicted in Fig. 1 and Table I:
- Model setup (M): This axis depicts how the underlying LLM is prepared: off-the-shelf ( ) [16], [21], [32], [38],
[46], [70], [77], [78], fine-tuned from a checkpoint ( ) [6], [26], [31], [49], [59], [61]-[64], or pre-trained for decompilation ( ) [41].
-
Control flow (C): This axis characterizes how the model is driven, including single-pass generation ( ) [6], [26], [31], [38], [41], [46], [59], [61]-[64], [78], iterative feedback-driven repair loop ( ) [21], [32], [49], [70], [77], or an autonomous tool-using agent ( ) [16].
-
Number of roles per turn (R): This axis depicts the functional decomposition of the LLM into various roles, for example, “code generator” and “reviewer”, per decompilation pass. Types including single role ( ) [6], [16], [26], [31], [32], [41], [49], [59], [61], [62], [64], [70], or multiple specialized roles ( ) [21], [38], [46], [63], [77], [78].
-
Input representation (I): This axis depicts the binary-derived forms included in the input to the LLM, covering forms such as hex, assembly, and low-level IR ( ) [6], [16], [31], [32], [41], [49], [61], [62], [64], classical decompiler pseudo-C ( ) [21], [26], [32], [38], [46], [49], [59], [63], [64], [70], [77], [78]), and structural enrichment such as rodata, control-flow graphs (CFG), callees, .data, and .bss ( ) [16], [21], [26], [32], [59], [61], [78].
-
Augmentation (A): The last axis depicts the inference-time mechanism divided into context provisioning through retrieval augmented generation (RAG, A₁) [32], [46], [78] and self-exemplar (A₂) [31], and verifier feedback, including compiler (A₃) [16], [21], [49], [59], [70], [77], execution (A₄) [16], [21], [49], [70], [77], and semantics (A₅) [38].
Research in 2024-2025: The field of LLM-assisted source code recovery opened with single-pass methods, wherein a single forward generation produces the recovered source. DeGPT [38] prompts an off-the-shelf GPT-3.5 with Ghidra pseudo-C passed through a fixed three-role pipeline comprising a referee that decides which of structure simplification, comment insertion, or variable renaming to apply, an advisor that proposes the edits, and an operator that accepts or rejects each edit through a Micro Snippet Semantic Calculation (MSSC) gate, adding no external data beyond that semantic check. LLM4Deccompile [64] fine-tunes DeepSeek-Coder into a decompiler series that translates in one pass under two input regimes, end-to-end from raw x86-64 assembly or refinement from Ghidra pseudo-C. SCCDEC [31] stays within single-pass control but adds self-augmentation: its tuning-free variant recompiles the model's own draft into a self-constructed (assembly, source) exemplar that is prepended before a second decompilation, and a companion fine-tuned variant further aligns the model to reach its best results. Nova [41] takes the most training-heavy route, pre-training an assembly-native model from DeepSeek-Coder with hierarchical attention and contrastive objectives and decompiling stripped x86-64 assembly in a single pass. PtxDec [62] fine-tunes Qwen2.5-Coder-7B and Qwen3-32B to translate optimized GPU PTX, normalized into a compact rolled-PTX intermediate representation, back into readable CUDA. PseudoFix [46] prompts off-the-shelf models with decompiler pseudo-C in a fixed detect-then-refactor sweep across six structural-distortion types, retrieving similar examples from an external distortion database to ground each fix. The lone departure from single-pass control was DecLLM [70], which wraps off-the-shelf GPT-3.5 and GPT-4 in an iterative repair loop that recompiles and re-runs each candidate to repair the input pseudo-C, feeding back compiler errors, ASan reports, and test- and fuzzing-detected output divergences for up to fifteen rounds, foreshadowing the direction the field would take a year later.
Research in 2026: Research in 2026 brought both a diversification of single-pass designs and a decisive shift toward iterative control. The sole fully agentic system (i.e. featuring an LLM with tool-calling capabilities), Cao [16], deploys an off-the-shelf coding agent that autonomously reads AVR firmware disassembly and its interrupt-vector table and refines its output against avr-gcc recompilation and cycle-accurate simavr behavioral traces. Single-pass generation continued but grew richer in inputs and roles: FidelityGPT [78] runs a two-role detect-then-correct pass over pseudo-C enriched with a program-dependence graph and retrieves from an annotated distortion database. Idioms [26] fine-tunes local models to generate code and its user-defined type definitions jointly, feeding decompiler pseudo-C together with neigh-

Fig. 2: The taxonomy of evaluation metrics for LLM-assisted source recovery.
boring functions drawn from the call graph. Abualazm et al. [6] fine-tune reasoning models to recover idiomatic Dart from the x86-64 assembly of ahead-of-time-compiled binaries. SK2Deccompile [63] splits the task across two models, each supervised-fine-tuned then reinforcement-learning-tuned, a structure-recovery phase over IDA-Pro pseudo-C followed by an identifier-naming phase. RIDecompiler [61] trains an end-to-end model with supervised fine-tuning followed by Group Relative Policy Optimization (GRPO), whose input assembly is enriched with extracted string and floating-point constants and relabeled basic blocks. Finally, Decaf [59] forgoes a loop for best-of-N search, sampling many decompilations of Ghidra pseudo-C with declared types and globals, discarding those that fail to compile, and selecting the best with a learned re-ranker. The defining trend, however, was a wave of iterative feedback methods: Agent4Deccompile [77] drives three specialized repair LLM roles covering syntax, compilation, and execution from a scripted validator over decompiler pseudo-C. Although its name suggests an agentic control-flow, the models in this work do not exercise tool-calling agentic capability, making it an iterative, multi-role approach. PCodeTrans [21] passes Hex-Rays pseudo-C plus a recovered type-dependency graph, globals, and callees through bounded compiler, sanitizer, and breakpoint-differential repair stages. AutoDeccompiler [49] fine-tunes with supervised then reinforcement learning to perform up-to-three-turn refinement of assembly- or pseudo-C-derived output against compiler, runtime, and I/O-test feedback. Finally, Gagnon et al. [32] recover source by anchor-based retrieval instead of generation, extracting strings, constants, calls, and function names to query a source corpus and having the model verify and rerank candidates while propagating confident matches through the call graph. Four of the five iterative methods are 2026 arXiv preprints, a clear pivot from one-shot generation toward compile- and execution-guided refinement.
IV. EVALUATION METRICS USED IN SOURCE RECOVERY
Evaluation metrics are a key methodological decision to ensure the quality of source recovery [48]. Intuitively, a recovered source code must be compilable and easy to read (quality), and it should mean and behavior similarly to original source code while also retaining its appearance and structure (similarity). In this regard, we suggest a holistic categorization of evaluation metrics for source recovery into the two objectives and six dimensions, as depicted in Fig. 2. The dimensions
TABLE II: Evaluation metrics across the 22 papers (18 methods and 4 evaluations). and represent the number of papers and unique metrics per category, respectively. indicate composite metrics.
| Axis | Objective | |P| | |N| | Unique Metrics |
|---|---|---|---|---|
| Compilation | Quality | 13 | 5 | Re-compilation Rate [16], [21], [31], [33], [49], [59], [61], [62], [70], [76], [77], Compile-error Distribution [33], [61], [62], Compile-error Repair Rate [16], [70], Compile@k [5], [6], Parse-only Syntax Rate [77] |
| Readability | Quality | 9 | 12 | R2I† [49], [63], [65], User Study† [38], [46], [78], LLM-judge Elo Rating† [33], [61], Halstead Complexity† [38], [46], Comment Correctness and Non-triviality [38], Cyclomatic Complexity [46], Goto Count [46], GPT-4o Readability Rating† [64], GPT-Judge Identifier Rating† [63], LOC [46], Naming Coverage Ratio [38], Nesting Depth [46] |
| Lexical | Similarity | 11 | 8 | CodeBLEU† [5], [6], [62], [65], [76], Edit Similarity [59], [64], [65], BLEU-4 [46], LOC Ratio [16], Meaningful Variable Ratio [38], METEOR [46], ROUGE-L [46], Variable Name Accuracy [26] |
| Syntactic | Similarity | 5 | 1 | CodeBLEU† [5], [6], [62], [65], [76] |
| Semantic | Similarity | 17 | 19 | CodeBLEU† [5], [6], [62], [65], [76], Dependency Equivalence [26], LLM-judge Elo Rating† [33], [61], GPT-4o Readability Rating† [64], GPT-Judge Identifier Rating† [63], CodeQL Vulnerability Detection [59], [70], Embedding Cosine Similarity [46], [65], AVR Semantic Rubric† [16], CodeScore [76], Distortion Fix Rate [78], GPT-Judge Recovery Scores† [65], MSSC Acceptance [38], Byte-wise Match Rate [59], Structure-fidelity Correctness [46], User-defined Type Accuracy [26], Variable Type Accuracy [26], Function-name Retention Rate [77], Vulnerability Pattern Preservation [77], 9-dimension Quality Score† [76] |
| Functional | Similarity | 16 | 13 | Re-executability Rate [21], [26], [31], [49], [59], [61], [63]-[65], [70], [77], Pass@k [5], [41], [61], ASan Repair Rate [21], [70], Average Fuzzing Coverage [77], Breakpoint-differential Repair Rate [21], Coverage Equivalence Rate [33], Exploit Trigger Rate [77], Fuzz-ready Rate [77], Fuzzing-detected Divergence Count [70], I/O Correctness Rate [62], Runtime Correctness Rate [62], Scheduling Consistency† [62], Trace Equivalence Rate [16] |
are defined as follows, citing papers from source-code recovery that include the dimensions in their evaluations:
-
Compilation: Depicts whether the recovered code parses, compiles, and links [5], [6], [16], [21], [31], [33], [49], [59], [61], [62], [70], [76], [77].
-
Readability: Depicts how easy the generated code is to read and is evaluated using complexity indices, naming and comment quality, human ratings, or LLM judges [33], [38], [46], [49], [61], [63]-[65], [78].
-
Lexical: Compares the generated code to the original source at the text and token level [5], [6], [16], [26], [38], [46], [59], [62], [64], [65], [76].
-
Syntactic: Compares the Abstract Syntax Tree (AST) structure to the original [5], [6], [62], [65], [76].
-
Semantic: Compares meaning of the generated and original code, established statically over code, graphs, or recompiled binaries without code execution [5], [6], [16], [26], [33], [38], [46], [59], [61]-[65], [70], [76]-[78].
-
Functional: Matches runtime behavior, established by executing the recompiled code [5], [16], [21], [26], [31], [33], [41], [49], [59], [61]-[65], [70], [77].
Compilation and Readability measure the general “quality” of the generated code, while Lexical, Syntactic, Semantic, and Functional similarity measure how “close” or “equivalent” (if derivable) the generated source code is to the original in terms of its appearance, structure, meaning, and behavior, respectively. The distinction between the two objectives is the comparison target: quality metrics are computed on the generated code alone, or against the decompiler output a method refines, whereas similarity metrics are computed against the original program. Table II compiles 53 unique evaluation metrics extracted from the 18 method and 4 evaluation papers on LLM-assisted source recovery. 11 of the 53 metrics, marked in Table II, are composites that fold several sub-dimensions into a single score or rating protocol. We count each composite as one metric, and a composite whose sub-dimensions span multiple dimensions is listed on every axis it measures rather than split into constituent scores.
-
Code Quality Metrics: Among the quality metrics, prior works on LLM-assisted source recovery use 5 unique metrics for compilation: nearly every paper measures a plain Re-Compilation Rate (RC) [16], [21], [31], [33], [49], [59], [61], [62], [70], [76], [77], and the rest of the variation is limited to best-of-k compilation as compile@k [5], [6], parse-only syntax checks [77], and the repair [16], [70] and distribution [33], [61], [62] of compile errors. Since compilation is also the cheapest signal to obtain, it doubles as the feedback channel of the iterative methods discussed above. Readability is more fragmented, with 12 metrics across 9 papers. These include the Relative Readability Index (R2I) [49], [63], [65], classical complexity indices, namely Halstead, cyclomatic complexity, nesting depth, Lines of Code (LOC), and goto count [38], [46], naming and comment measures [38], 3 LLM-judge protocols [33], [61], [63], [64], and 4 user studies [38], [46], [78] whose participant pools, questions, and rating scales all differ, which we therefore club into a single user study category.
-
Code Similarity Metrics: The identified prior works measure lexical similarity using 8 metrics, dominated by CodeBLEU's n-gram component [5], [6], [62], [65], [76], and edit similarity [59], [64], [65]. BLEU-4, METEOR, and ROUGE-L appear in a single paper [46], and a LOC ratio serves as a coarse size-fidelity metric [16]. Identifier recovery is also scored at the token level against the original identifiers, by variable name accuracy [26] and the meaningful variable ratio [38]; both are string comparisons and, unlike the meaning-level instruments below, neither is invariant to renaming. Syntactic similarity exists in this literature only as
CodeBLEU's AST-match component [5], [6], [62], [65], [76]. Semantic similarity is the broadest and least standardized axis, with 19 metrics across 17 papers. It spans metrics for static graph comparison, including dependency equivalence [26], which tests dependency-graph isomorphism as an approximation of program equivalence, and CodeBLEU's Data Flow (DF)-match, and recovery accuracy for variable types, user-defined types [26], and function names [77]. Binary-level equivalence is established by the byte-wise match of recompiled functions [59], and structure-fidelity correctness is annotated manually against the original source [46]. Learned similarity metrics include embedding cosine similarity [46], [65] and CodeScore [76], and downstream utility is evaluated with CodeQL vulnerability detection [59], [70] and vulnerability pattern preservation [77]. Judged and rubric-based composites, namely those of Cao [16] and Yoda et al. [76], the correctness half of the LLM-judge Elo criteria [33], [61], and the source-referencing GPT judges [63]–[65], cut across these semantic families. Functional similarity is evaluated in 16 of the 22 papers by executing the recompiled code: 11 of them reporting re-executability [21], [26], [31], [49], [59], [61], [63]–[65], [70], [77] and 3 reporting pass@k [5], [41], [61], while the rest test runtime behavior through trace equivalence [16], coverage equivalence [33], sanitizer-guided repair [21], [70], and fuzzing [70], [77].
V. EVALUATION METHODOLOGY
This section describes the evaluation metrics, selected SOTA methods and models, experimental design, and the dataset used in our empirical evaluations.
A. Evaluation Metrics Suite RQ1
Table II highlighted the fragmentation of evaluation metrics across research papers on LLM-assisted source recovery. None of the surveyed evaluation and method papers include an evaluation suite that captures the six dimensions along which recovered source can fail. To conduct a holistic and interpretable evaluation, we adopt one principled metric per dimension, with the exception of semantic similarity which has two metrics to cover source-derived and binary-derived semantics, resulting in a 7 metric suite described below.
Re-compilation rate (RC) and Re-execution Rate (RE) are the most prevalent compilation quality and functional similarity metrics reported in prior works. In its traditional form, RC is the ratio of generated functions that compile (standalone) to the total number of evaluation functions. Our results (Fig. 4 and 15) indicate that LLMs are better at generating compilable code than recovering the correct signature. This takeaway is typically missed by RC and muddled in RE which targets functional correctness. Thus, Re-compilation Rate with caller Interface (RCI) is a valuable metric that can be computed using a benchmark's evaluation harness. Further, RC, RCI, and RE follow a nested relationship ( ): RCI and RE are our choice for compilation quality and functional similarity metrics, respectively.
R2I [28] provides 31-readability feature composition and is increasingly being adopted as a readability metric. To standardize, we define as our readability quality metric to the relative R2I between a generated code and the pseudo-C of the original candidate as follows:
A positive means the model's generation is more readable than the decompiler pseudo-C an analyst would otherwise work with. We compare with the standardized decompiler output for a standardized relative quality measure instead of with noisy source code.
We use Edit Similarity (ES) for lexical similarity. ES measures surface fidelity by computing the normalized Levenshtein distance between two code snippets reported in the range [0, 1], with higher values indicating closer surface form. We use CodeBLEU's AST-match (AST) [53] to abstract-syntax-tree structure for syntactic similarity. AST is largely insensitive to the naming noise that dominates ES and provides a more specific measure of the relative syntactical structure of the recovered source. It is also the only syntactic similarity metric used in the surveyed literature in Section III. CodeBLEU's DF-match (DF) [53] is used for semantic similarity using source-derived DF comparison: it matches def-then-use graphs, abstracting away both naming and syntactic idiom to test whether values flow through the recovered code as they do in the original. These three metrics compare against the original source. Byte-wise match (BW) [59] instead provides semantic similarity at the binary level, recompiling the generated function with the original compiler and flags and comparing the resulting machine code byte-for-byte against the original binary (wildcarding relocation sites). BW is the strictest metric in our suite since any divergence in instruction selection fails it, even between behaviorally identical programs and a pass certifies recovery up to compiler determinism.
B. Experiments and Models
We conduct three empirical evaluations, detailed as follows: First, “SOTA Method Evaluation” (reported in Section VI-A) evaluates the impact of the following: (1) Design choices of SOTA methods following the taxonomy defined in Section III; (2) Generalization of SOTA methods over four standard (x86-64, aarch64, riscv64, x86-32) and five embedded (armv7m, armv8m, armv7a, armv8a32, mips32le) architectures, five optimization levels (00-03, 0s), and stripped and unstripped symbol variants; and (3) Spearman correlation of the metrics suite derived from the above. We select LLM4Deccompile (assembly and Ghidra) [64], SCCDEC [31], Nova [41], SK2Deccompile [63], DeGPT [38], FidelityGPT [78], and Agent4Deccompile [77] for evaluations, encompassing majority of the identified methodology axes (M, C, R, I, A) and their subcategories, subject to code availability. Only (agentic control-flow) has no representative method in our evaluation since Cao [16], which is the only identified agentic approach, has not published its code. We note again that Agent4Deccompile [77] is classified as an iterative method.
Methods that fine-tune or pre-train their own models are evaluated using their specified models, while methods that use off-the-shelf models are evaluated using HuggingFace sourced gemma4-31b-it [67] for comparison at the same intelligence capability.
Second, “Taxonomy-driven Pipeline Ablation” (reported in Section VI-B) ablates five aspects of the source recovery pipeline: (1) Base input representation (hex, assembly, IR, pseudo-C) provided to a single-role, single-pass pipeline (SP), and subsequently; (2) Enrichment channels (callee imports, .rodata, .data/.bss, CFG, and frame ABI) that aid SP with additional context; (3) LLMs of different scale in the SP pipeline; (4) Iterative control-flow with one compiler diagnostic feedback iteration (CIT); and (5) Review-role (RR) pipeline using a reviewer LLM to improve the code based on static analysis. Each pipeline uses open-weight LLMs from HuggingFace: gemma4-12b-it [67], gemma4-31b-it [67] and qwen3.8-27b [52] at bf16 quantization, 0.1 temperature, and a 8192-token generation limit and within a 32768-token context. For reference, a CIT or RR pipeline with a 31b LLM is represented as “CIT-31b” or “RR-31b”, respectively. Ablations are conducted on 50 C-code compiled on x86-64 at two optimizations (O0 and O2).
Third, “Source Language Study” (reported in Section VI-C) uses the representation selected by RQ3 to test (1) same-language recovery, where the model is told which language (among C, C++, Go, Rust, Fortran and Ada) the binary was built from and must reproduce it, and (2) cross-language recovery, where it must produce behaviorally equivalent C from a non-C-derived binary. These tasks are conducted using the SP and CIT pipelines, and gemma4-31b-it and qwen3.8-27b. C is selected as the cross-language target as it has the most mature tooling for downstream vulnerability and malware analysis.
C. Dataset
We assemble our dataset using the test_real split of Exebench [12] that originally comprises of 2,134 C-language functions, filtered down to 1,324 to ensure compilability and reference I/O case passes on the target architectures and optimizations in this study. We stratify the reduced functions by Halstead difficulty [35], [51] defined as follows:
where is the number of distinct operators in the function, is the number of distinct operands, and is the total number of operand occurrences. The ratio is therefore the average number of times an operand is reused, so that D grows with both operator variety and operand reuse, which is the notion of difficulty we want the sample to span. We then select 500 functions by rank-spacing over the distinct difficulty values, which avoids both the duplicate mass of plain rank sampling and the outlier domination of value spacing. Fig. 13 (Appendix) highlights the difficulty distribution in the filtered split and selected functions across difficulty groups, highlighting a right-skewed set with a long (but sparse) tail due to the available distribution in the original split.
| Agent4Decompile | 0.64 | 0.05 | 0.25 | 0.37 | 0.52 | 0.22 | 0.58 |
|---|---|---|---|---|---|---|---|
| FidelityGPT | 0.47 | 0.42 | 0.39 | 0.41 | 0.55 | 0.17 | 0.35 |
| SK2Decompile | 0.53 | 0.33 | 0.42 | 0.45 | 0.53 | 0.19 | 0.33 |
| LLM4Decompile (GHIDRA) | 0.42 | 0.10 | 0.40 | 0.39 | 0.53 | 0.14 | 0.26 |
| DeGPT | 0.30 | 0.31 | 0.34 | 0.36 | 0.53 | 0.10 | 0.25 |
| SCCDEC | 0.18 | -0.33 | 0.24 | 0.24 | 0.39 | 0.06 | 0.07 |
| LLM4Decompile (ASM) | 0.14 | -0.47 | 0.23 | 0.23 | 0.42 | 0.04 | 0.05 |
| Nova | 0.09 | -0.29 | 0.18 | 0.15 | 0.37 | 0.03 | 0.03 |
| RCI | ES | AST | DF | BW | RE |
Metrics
Fig. 3: SOTA methods scored on all metrics averaged across architectures, optimizations, and symbol variants

Fig. 4: RC, RCI, and RE per method.
For answering RQ2, we use 500 functions across nine architectures (86-64, aarch64, riscv64, x86-32, armv7m, armv8m, armv7a, armv8a32, mips32le), five optimization levels (00-03, 0s), and stripped and unstripped variants, resulting in 45,000 test samples. For RQ3, and RQ4, we take a 50-function subset sampled uniformly from the 500-function corpus compiled with the x86-64 gcc toolchain at 00 and 02 optimizations and stripped. The experiments for RQ4 use a set of 300 functions, comprising 50 functions each in C, C++, Go, Rust, Fortran and Ada, wherein the non-C functions are translations of the C functions done using Claude Fable-5.1 [10]. The translations were validated against the I/O test cases of the C functions to ensure functional similarity and checked by the authors.
VI. EVALUATIONS AND DISCUSSION
This section presents the empirical results of the experiments described in Section V-B and their implications. We summarize our findings in Section VII.

Fig. 5: RE of methods across standard and embedded architectures, averaged over optimizations and symbol variants.

Fig. 6: RE of methods across optimizations, averaged over architectures and symbol variants.
| Agent4Decompile | -0.01 | -0.00 | 0.00 | 0.00 | +0.01 | 0.00 | -0.01 |
|---|---|---|---|---|---|---|---|
| FidelityGPT | 0.00 | -0.04 | -0.02 | -0.01 | 0.00 | +0.01 | 0.00 |
| SK2Decompile | -0.01 | -0.02 | -0.03 | -0.02 | +0.02 | 0.00 | +0.01 |
| LLM4Decompile (GHIDRA) | -0.07 | -0.18 | -0.06 | -0.05 | +0.01 | -0.07 | -0.06 |
| DeGPT | +0.02 | -0.01 | -0.00 | -0.00 | +0.01 | +0.01 | +0.02 |
| SCCDEC | -0.12 | -0.23 | -0.06 | -0.07 | -0.06 | -0.02 | -0.04 |
| LLM4Decompile (ASM) | -0.08 | -0.20 | -0.03 | -0.03 | -0.02 | -0.01 | -0.03 |
| Nova | -0.00 | -0.06 | -0.01 | -0.01 | -0.01 | -0.00 | -0.00 |
| RCI | ES | AST | DF | BW | RE |
Metricstripped - Metricunstripped
Fig. 7: Difference between metrics in stripped and unstripped cases to highlight the impact of symbol stripping.
A. SOTA Method Evaluation RQ1-3
Fig. 3 scores the selected SOTA methods on all seven metrics (RCI, , ES, AST, DF, BW, RE), averaged over architectures, optimizations, and symbol variants. Fig. 4 highlights the comparative trend of RC, RCI and RE across SOTA approaches. Fig. 5 and 6 present their average RE across architectures and optimizations, while Fig. 7 presents RE and across stripped and unstripped cases. Tables III, IV and V in the Appendix compile comprehensive empirical results, while Fig. 14 depicts RE against Halstead groups.
- Impact of SOTA Design Choices: We first present our observations of SOTA methods linked to the taxonomy described in Fig. 1 and Table I. As depicted in Fig. 3, methods that ingest pseudo-C (DeGPT, LLM4Decompile-Ghidra, FidelityGPT, SK2Decompile, and Agent4Decompile) outperform those that use assembly across all metrics, architectures, optimizations, and symbol variants, regardless of other harness differences: averaged over their tiers, pseudo-C methods reach RCI 0.47, 0.24, ES 0.36, AST 0.40, DF 0.53, BW 0.17, and RE 0.36, against assembly-based methods. Further, methods that use off-the-shelf, general-purpose models (Agent4Decompile, FidelityGPT, DeGPT) achieve fidelity comparable to counterparts fine-tuned on pseudo-C (SK2Decompile, LLM4Decompile-Ghidra), and significantly better than those fine-tuned or pre-trained on source recovery from assembly (SCCDEC, LLM4Decompile-ASM, Nova). Interestingly, SK2Decompile is among the top half of methods when tested using Ghidra pseudo-C despite its IDA Pro pseudo-C fine-tuning.
Examining the control flow and multi-role methods, we note that iterative multi-role methods (Agent4Decompile) report the highest RCI, BW, and RE compared to all other control flows through their targeted refinement iterations using in-loop compiler and functional feedback [77]. However, Agent4Decompile's (0.05) and ES (0.25) is significantly worse than non-iterative, multi-role methods (FidelityGPT: 0.42, 0.39; SK2Decompile: 0.33, 0.42; DeGPT: 0.31, 0.34) which report the highest and ES, with similar DF and AST. LLM4Decompile-GHIDRA is the best-performing single-pass and single-role method, attributed to its pseudo-C training. Lastly, multi-role methods (Agent4Decompile, FidelityGPT, DeGPT, SK2Decompile) generally outperform single-role ones (LLM4Decompile-ASM, Nova, SCCDEC).
- Generalization Across Architectures, Optimizations, and Symbol Variants: As Fig. 5 shows, the RE of SOTA methods on embedded microcontroller architectures based on Thumb2 ISA (armv7-m, armv8m) is worse than standard (x86-64, x86-32, AArch64, RISC-V64) and higher-end embedded architectures (armv7-a, armv8-a32, MIPS32LE), highlighting a limitation of current methods and their LLMs in source recovery for IoT microcontrollers. Fig. 6 presents a monotonic drop in RE from 00--03 and similar performance between 02 and 0s. Fig. 7 highlights that symbol stripping causes a minimal drop in performance across the top methods, including Agent4Decompile, FidelityGPT, SK2Decompile and

Fig. 8: Metric correlation across 45,000 source generations.
DeGPT, while impacting the most for other methods. Summary: Overall, Agent4Decompile is the best performing method in terms of RCI, BW and RE across architectures and optimizations, showing a 41% RE on Thumb2 architectures, a 43% improvement compared to the next best method, i.e. SK2Decompile. It has comparable AST and DF with FidelityGPT and SK2Decompile, compared to which its limitation lies in readability and lexical similarity.
- Metric Correlation: Fig. 8 presents the Spearman correlation [36] between the 7 metrics evaluated from all 45,000 cases (500 functions × 9 architectures × 5 optimizations × 2 symbols). Each metric was picked based on its coverage of different failure modes in terms of quality and similarity, as described in Section IV. The correlation figure shows that the selected metrics carry largely non-overlapping information. RE and RCI share the highest correlation (0.78) due to nesting, since RE can only be computed when a function compiles. However, they carry different information by definition.
B. Taxonomy-driven Pipeline Ablation RQ3
We now report the results of evaluations based on targeted and controlled, taxonomy-driven ablation using our SP, CIT, and RR pipelines and three off-the-shelf LLMs.
- Input Representation: Table VI in Appendix presents the full set of results for O0/O2 across 7 metrics derived from the three model scales. Fig. 9a depicts the ablation of hex, asm, Ghidra p-code and Ghidra pseudo-C using the SP-31b pipeline on 100 samples covering 50 functions compiled on x86 with O0 and O2 optimizations with stripped symbols. Evidently, pseudo-C achieves the best relative performance across all metrics. gemma4-12b-it and qwen3.8-27b show the same relative pattern, as seen in Table VI (Appendix). Further, Fig. 9b presents the impact of various enrichment channels, including callee imports, .rodata, .data/.bss, CFG, frame ABI and all (combined enrichment). Frame ABI and cfg are available for all samples, but show limited or negative improvement in RCI and RE, respectively. Callees and .rodata are available in 12% and 20% of the samples, respectively and show over 20% improvement. Over-

(a) Base input representations.

(b) Contextual enrichment.
Fig. 9: Input representation ablations using SP-31b.

Fig. 10: Impact of model scale in single-pass, iteration with compiler feedback, and additional LLM roles for code review.
all, the result is inconclusive due to minimal improvement or limited availability of enrichment channels. We select pseudo-C as the base representation for further analysis.
- Model Scale, Iterations, and Review Roles: Fig. 10 presents the per-metric results of four source recovery harnesses, namely, SP-12b, SP-31b, CIT-31b, and RR-31b. CIT-31b and RR-31b reuse the generated source C and the Ghidra pseudo-C derived from the original binary for a second pass: CIT-31b includes compiler feedback to improve the genera-

(a) RCI

(b) RE
Fig. 11: RCI and RE of same- and cross-language recovery using SP-31b and CIT-31b pipelines.
tion, while RR-31b is only provided with instructions for static analysis without compiler feedback.
We observe 14.3%, 64%, and 37% improvement in RCI, BW, and RE when switching SP-12b to SP-31b, showing that among recent general-purpose models, bigger LLMs achieve better performance. A change from SP-12b to SP-27b (qwen3.8-27b) shows a similar pattern and is reported in the Appendix. Further, we observe improvements of 32% RCI, 5% AST, 8.7% BW, and 25.5% RE when switching SP-31b to CIT-31b, indicating the impact of targeted, high-quality functional feedback provided by the compiler diagnostics in helping the LLM fix its previous generation. However, CIT-31b incurs a degradation of 18.3% and 3.8% ES due to defensive code frames added into new generations for compilability. This also explains the poor readability and ES observed in Agent4Decompile compared to FidelityGPT and SK2Decompile. Moreover, 25.5% RE and 8.7% BW gains through pure compiler feedback highlights the functional and semantic similarity hidden behind compilation errors. Finally, the reviewer role in RR-31b improves by 13.8% and RE by 8.5% over SP-31b, with a 3.6-4.6% reduction in every other

(a) Failure stages across same- and cross- language recovery using CIT-31b pipelines.

(b) Comparison of RE in same-CIT-31b and cross-CIT-31b from pseudo-C (circle) and asm (triangle).
Fig. 12: Failure stages and same/cross comparison across languages.
metric. Table VII in the Appendix depicts optimization-wise metrics for the four tested pipelines.
C. Source Language Study RQ4
Fig. 11 presents the RCI and RE of same- and cross-language recovery using SP-31b and CIT-31b pipelines for C, C++, Go, Rust, Fortran, and Ada. Same-language recovery exposes a performance gap when viewed through the metrics of compilability and functional similarity. With the exception of Ada (16% RCI), non-C languages recompile at rates comparable to or better than C (C++ 94%, Fortran 85%, Rust 68%), yet their RE collapses to 1-13% compared to 47% for C. A single compiler iteration widens this split: CIT-31b drives RCI up to 94–100% C++, Go, Rust, and Fortran (94-100%) while RE improves from 7% 16% for Go and only by 1% for Rust. The failure-stage decomposition in Fig. 12a shows that 80–88% of C++ and Rust cases compile but cannot be called by the evaluation harness due to incorrect signatures. Fortran instead runs and diverges (82% I/O divergence) and Ada does not benefit from compilation repair.
Cross-language cases present an interesting observation. Single-pass RCI is far lower (4–36%) because the model must strip the source language's runtime scaffolding from the pseudo-C. That being the case, successful compilations overwhelmingly pass the I/O tests. Further, iteration repairs leads to nearly functional gains for Fortran (17%→29%), C++ (14%→27%), and Ada (8%→13%). Go and Rust see poor performance since their binaries embed goroutine scheduling, bounds-check panics, and garbage-collection machinery that the LLM is unable to translate into plain C. Fig. 12b shows that recovering a non-C binary into C beats recovering it into its own source language for four of the five languages (Fortran 29% vs. 11%, C++ 27% vs. 12%, Ada 13% vs. 1%, Rust 10% vs. 1%). Finally, all cases remain below the C→C ceiling (59% RE with iteration). To empirically validate the hypothesis that a performance drop occurs due to C-centric lifting by Ghidra, we evaluate the cross-language CIT-31b pipelines to ingest asm. Evidently, as seen in Fig. 10 and 12b, pseudo-C adds 10.4% RCI and 63.9% RE for recovery of C source from C-derived assembly, but loses 8.4% RCI and gains only 16.2% RE for non-C languages. However, the improvement in cross-language RE for non-C to C over asm is still a motivation to use classical decompiler pseudo-C for source recovery. The full results of evaluations for 00/02 across 7 metrics derived from gemma4-31b-it and qwen3.8-27b are presented in Table VIII in the Appendix.
VII. KEY FINDINGS AND OPEN PROBLEMS
We consolidate our research findings based on our research questions and share open problems where applicable:
-
Value of the metrics (RQ1): While Agent4Deccompile leads the SOTA methods in terms of recompilability, functional similarity and byte-level semantics, FidelityGPT and SK2Deccompile outperform in terms of readability and lexical similarity. This observation highlights the necessity of our multi-dimensional evaluation.
-
Signature recovery failure (RQ1-4): Comparison of RC vs RCI across our evaluations shows that while the SOTA (and recent LLMs in general) are highly capable at generating compilable code, they fail more often in generating the correct signature, which can be mitigated with harness-aware compiler feedback iterations.
-
Pseudo-C as a cross-architecture portability layer (RQ3): Across the architectures, methods that ingest pseudo-C showcase higher fidelity compared to those that ingest assembly. Apparently, the uniformity of Ghidra's output absorbs the architectural shift that x86-64-assembly-trained models are sensitive to.
-
Performance drops for Thumb2 ISA (RQ2): Even the best performing methods show worse performance on Thumb2 architectures such as armv7-m and armv8-m, compared to standard and non-Thumb2 embedded architectures. Since Thumb2 dominates deployed IoT firmware [66] where source recovery is an important aspect of maintenance and upgrade of legacy firmware and vulnerability detection [42], the fidelity of LLM-assisted methods in embedded systems is an open direction.
-
Drop with optimization (RQ2): RE declines monotonically from 00–03, and remains comparable for Os and O2 since they share the same core functionality except code alignment and size-padding optimization [33].
-
Off-the-shelf models and scale (RQ3): Larger LLMs achieve higher overall fidelity, and methods that use general-purpose, off-the-shelf LLMs match the performance of those fine-tuned on pseudo-C. As a future work, clear benefits of fine-tuned models may arise for non-C.
-
Control flow and multi-role benefits (RQ3): Iteration improves RCI, BW, and RE over single-pass while sacrificing readability due to the scaffolding introduced to fix compilation errors. Multiple roles improve readability and lexical similarity, with marginal differences in compilability, semantic, and functional similarity.
-
Predominance of C (RQ4): The fidelity of source recovery is worse on non-C-derived binaries. Cross-recovery to C, however, is better than recovering the original source. Ghidra pseudo-C offers limited gain over assembly compared to same-language recovery to C. These observations point towards cross-language decompilers, training and augmentation as open directions.
VIII. Threats to Validity
ExeBench is a public benchmark and predates the training cutoffs of every model used in our work, and may be present in their pre-training dataset [29]. However, our focus is on the comparative performance between methods. We also note that recovery quality is sensitive to prompt wording, input formatting, and decoding settings [29]. SOTA methods are compared using their specified prompts, while ablations fix one prompt per task. We did not search over paraphrases, and different phrasings would likely move absolute scores. That being said, we publish all prompts along with source code. Lastly, we assume the availability and derivability of the function call interface due to the general availability of repository-level context in codebases. However, compiler interactions under the assumption of no repository-level context will show limited improvement in RCI.
IX. CONCLUSION
This work presented the first SoK dedicated to LLM-assisted source code recovery. We created a novel design taxonomy and organized the published methods along five axes. We also consolidated the fragmented metric landscape in this topic into six key dimensions for a holistic evaluation. We evaluated representative SOTA methods on 45,000 samples built from 500 functions, 9 standard and embedded architectures, 5 optimization levels, and 2 symbol variants. Further, we ran a controlled, taxonomy-driven ablation of input representation, contextual enrichment, model scale, iterative feedback, and review roles, deriving key insights on impactful design choices. We also measured same- and cross-language (to C) recovery across mature and legacy source languages. Open problems for future work include the general fidelity, signature failures, and coverage of non-C and Thumb2-ISA.
ETHICAL CONSIDERATIONS
We make the following considerations: (1) While source recovery aids malware analysis, firmware vulnerability assessment, and legacy maintenance, it may also be used for IP theft and license circumvention. Our work measures and bounds the limitations of source recovery, and proposes no new method for the same. However, our evaluation harness may be used by people with malicious intent, and therefore, we urge readers to use our code ethically. (2) All our evaluations were conducted using permissively licensed C (Exebench). (3) All SOTA method evaluations were conducted using their original publicly sourced code from their respective authors. All deviations have been documented in the Appendix and our results were conducted on a unified evaluation set to ensure fair comparison.
LLM USAGE CONSIDERATIONS
LLMs were used for editorial purposes in this manuscript, and all outputs were inspected by the authors to ensure accuracy and originality. We used Anthropic's Claude Opus-5 and Fable-5.1, to assist with writing the code. The cross-language translations were done using Claude Fable-5.1, validated against the I/O test of the original C function for functional symmetry, and spot checked by the authors. All numerical results and figures were produced by our own pipeline, generated directly from the raw experimental outputs and checked against the underlying data. The authors have reviewed all AI-assisted code, and take full responsibility for the accuracy, originality, and integrity of this work. Further, LLMs play an integral role in our experiments since they are the focus of our evaluations and thus unavoidable to use. However, we carefully considered the extent of experiments required to support our claims: the SOTA evaluations study used a larger evaluation set for fair comparison across published methods; downstream ablations (RQ3/4) used only a subset (50 functions per language on one architecture and two optimizations) to derive their findings. Thus, our LLM usage has been under the overarching consideration of accountability, correctness, transparency, and responsibility.
OPEN SCIENCE
We release the complete artifact behind this work: the evaluation harness, study configurations, dataset, LLM generations, scored per-cell records, and the code that generates the tables and figures used in this paper. Details are available via the README.md file in the provided repository: https://anonymous.4open.science/r/decompbench-65CB/
-
Code: We provide the complete evaluation harness, including cross-compilation across nine architectures and five optimization levels, disassembly, Ghidra lifting, integrations for the eight evaluated recovery methods, and implementations of the seven evaluation metrics. Upstream methods are used verbatim with provenance, licenses, and with minimal changes to fit our study. The study runners (scripts/inputrepr/, scripts/langstudy/, scripts/control_flow/), the corpus sampler (halstead_complexity/), the Docker stack (docker_setup/), and the test suite are also provided. We provide one entry-point script per research question to run the models and reproduce the corresponding results: run_rq2.sh, run_rq3.sh, run_rq4.sh. GPU resources are required to run the scripts as it serves the models used in the study. The inputs for RQ1 are obtained from the results of RQ2.
-
Dataset: The source of the sampled 500 functions dataset is Exebench's test_real split. The functions are available in the repository for direct use with the harness. We provide a mapping to locate the original functions from the original split: sampled_500_sound_by_difficulty.json.
For RQ1 and RQ2, we use the 500 functions sampled dataset. The same functions are used for both research questions. For each method, we compile these functions into 45,000 binary samples using fixed toolchain versions to ensure reproducibility. For RQ3 and RQ4, we use a shared set of 50 functions derived from the samples 500, together with a 300-function multilingual dataset created by translating each of the 50 C functions into C++, Go, Rust, Fortran, and Ada using Claude Fable-5.1. The language translation process follows the specifications defined in scripts/langstudy/contracts/. Re-execution is evaluated using the input/output test suites generated using Exebench's testcase generation tool, located at decompbench/eval/generated_io.
-
Configs: The configurations used for each research question are provided in the repository: arch_safe_exebench_test_real_500.yaml (RQ1/RQ2), rq-input-representations.yaml (RQ3), rq-language-study.yaml (RQ4), rq-control-flow.yaml (the iteration and review arms), and study_functions_50.yaml, which RQ3 and RQ4 both use.
-
Results: The model generation results are stored under the results directory for RQ1 and RQ2, and rq3_ladder, rq4_language, control_flow for RQ3/RQ4. We provide CSVs from our experiments to regenerate the tables and figures. To regenerate the results from the beginning, use the run_rq scripts.
-
Figures and tables: scripts/figures/make_all_figures.sh rebuilds 16 figures and 6 tables from the released CSVs and the output is deterministic. The tables are written under the filenames the manuscript inputs.
REFERENCES
[1] Binary ninja. https://binary.ninja/. Accessed: Aug. 2026.
[2] Ghidra software reverse engineering framework. https://www.nsa.gov/ghidra. Accessed: Aug. 2026.
[3] Hex-rays decompiler. https://hex-rays.com/decompiler/. Accessed: Aug. 2026.
[4] SLEIGH: A Language for Rapid Processor Specification. https://ghidra.re/ghidra_docs/languages/html/sleigh.html. Accessed: Sep. 2026.
[5] Raafat Abualazm, Ayman AboElhassan, and Amr G Wassal. Evaluating fine-tuning and metrics for neural decompilation of dart aot binaries. arXiv preprint arXiv:2607.06125, 2026.
[6] Raafat Abualazm and Ayman Abo Elhassan. Llms as idiomatic decompilers: Recovering high-level code from x86-64 assembly for dart. In 2026 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER), pages 417–421. IEEE, 2026.
[7] Omar Abusabha and Sungjae Hwang. The evolution of binary decompilation in the modern era: A taxonomy, literature review, and future perspectives. arXiv preprint arXiv:2608.24955, 2026.
[8] Omar Abusabha, Jiyong Uhm, Tamer Abuhmed, and Hyungjoon Koo. A deep dive into function inlining and its security implications for ml-based binary analysis. In NDSS, 2026.
[9] Alfred V Aho, Monica S Lam, Ravi Sethi, and Jeffrey D Ullman. Compilers: Principles, techniques, and tools. 2nd. Estados Unidos, 2006.
[10] Anthropic. Claude fable 5.1 and claude mythos 5.1. https://www.anthropic.com/claude-fable-and-mythos-5-1, 2026. LLM, accessed 15-September-2026.
[11] Jordi Armengol-Estapé, Rodrigo C. O. Rocha, Jackson Woodruff, Pasquale Minervini, and Michael O'Boyle. Forklift: An extensible neural lifter. In First Conference on Language Modeling, 2024. URL: https://openreview.net/forum?id=LWfDcI6txJ.
[12] Jordi Armengol-Estapé, Jackson Woodruff, Alexander Brauckmann, José Wesley de Souza Magalhaes, and Michael FP O'Boyle. Exebench: an ml-scale dataset of executable c functions. In Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming, pages 50–59, 2022.
[13] Zion Leonahenahe Basque, Ati Priya Bajaj, Wil Gibbs, Jude O'Kain, Derron Miao, Tiffany Bao, Adam Doupé, Yan Shoshitaishvili, and Ruoyu Wang. Ahoy SAILR! there is no need to DREAM of c: A Compiler-Aware structuring algorithm for binary decompilation. In 33rd USENIX Security Symposium (USENIX Security 24), pages 361–378, Philadelphia, PA, August 2024. USENIX Association. URL: https://www.usenix.org/conference/usenixsecurity24/presentation/basque.
[14] Jay Bosamiya, Maverick Woo, and Bryan Parno. {TRex}: Practical type reconstruction for binary code. In 34th USENIX Security Symposium, pages 6897–6915, 2025.
[15] David Brumley, JongHyup Lee, Edward J. Schwartz, and Maverick Woo. Native x86 decompilation using Semantics-Preserving structural analysis and iterative Control-Flow structuring. In 22nd USENIX Security Symposium (USENIX Security 13), pages 353–368, Washington, D.C., August 2013. USENIX Association. URL: https://www.usenix.org/conference/usenixsecurity13/technical-sessions/presentation/schwartz.
[16] Charles Cao. Behavior-guided decompilation of avr firmware with autonomous llm agents: Paper type: Practical experience report. In 2026 56th Annual IEEE International Conference on Dependable Systems and Networks (DSN), pages 695–703. IEEE, 2026.
[17] Ying Cao, Ruigang Liang, Kai Chen, and Peiwei Hu. Boosting neural networks to decompile optimized binaries. In Proceedings of the 38th Annual Computer Security Applications Conference, ACSAC '22, page 508–518, New York, NY, USA, 2022. Association for Computing Machinery. doi:10.1145/3564625.3567998.
[18] Ying Cao, Runze Zhang, Ruigang Liang, and Kai Chen. Evaluating the effectiveness of decompilers. In Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis, ISSTA 2024, page 491–502, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3650212.3652144.
[19] Eason Chen, Xinyi Tang, Zimo Xiao, Chuangji Li, Shizhuo Li, Tingguan Wu, Siyun Wang, and Kostas Kryptos Chalkias. Suigpt mad: Move ai decompiler to improve transparency and auditability on non-open-source blockchain smart contract. In Proceedings of the ACM on Web Conference 2025, pages 1567–1576, 2025.
[20] Qibin Chen, Jeremy Lacomis, Edward J. Schwartz, Claire Le Goues, Graham Neubig, and Bogdan Vasilescu. Augmenting decompiler output with learned variable names and types. In 31st USENIX Security Symposium (USENIX Security 22), pages 4327–4343, Boston, MA, August 2022. USENIX Association. URL: https://www.usenix.org/conference/usenixsecurity22/presentation/chen-qibin.
[21] Yuxin Cui, Zeyu Gao, Shuxian He, Siliang Qin, and Chao Zhang. Pcode-trans: Translate decompiled pseudocode to compilable and executable equivalent. arXiv preprint arXiv:2603.14855, 2026.
[22] Chris Cummins, Volker Seeker, Dejan Grubisic, Baptiste Roziere, Jonas Gehring, Gabriel Synnaeve, and Hugh Leather. Llm compiler: Foundation language models for compiler optimization. In Proceedings of the
34th ACM SIGPLAN International Conference on Compiler Construction, CC '25, page 141–153, New York, NY, USA, 2025. Association for Computing Machinery. doi:10.1145/3708493.3712691.
[23] Jack W. Davidson and Sanjay Jinturkar. Aggressive loop unrolling in a retargetable, optimizing compiler. In Tibor Gyimóthy, editor, Compiler Construction, pages 59–73, Berlin, Heidelberg, 1996. Springer Berlin Heidelberg.
[24] Luke Dramko, Claire Le Goues, and Edward J. Schwartz. Fast, fine-grained equivalence checking for neural decompilers. ACM Trans. Softw. Eng. Methodol., 35(7), June 2026. doi:10.1145/3772368.
[25] Luke Dramko, Jeremy Lacomis, Edward J Schwartz, Bogdan Vasilescu, and Claire Le Goues. A taxonomy of c decompiler fidelity issues. In 33rd USENIX Security Symposium, pages 379–396, 2024.
[26] Luke Dramko, Claire Le Goues, and Edward J Schwartz. Idioms: A simple and effective framework for turbo-charging local neural decompilation with well-defined types. In NDSS, 2026.
[27] Daniel Engel, Freek Verbeek, and Binoy Ravindran. On the Decidability of Disassembling Binaries. In Theoretical Aspects of Software Engineering: 18th International Symposium, TASE, page 127–145, 2024. doi:10.1007/978-3-031-64626-3_8.
[28] Haeun Eom, Dohee Kim, Sori Lim, Hyungjoon Koo, and Sungjae Hwang. R2i: A relative readability metric for decompiled code. Proceedings of the ACM on Software Engineering, 1(FSE):383–405, 2024.
[29] Jonathan Evertz, Niklas Risse, Nicolai Neuer, Andreas Müller, Philipp Normann, Gaetano Sapia, Srishti Gupta, David Pape, Soumya Shaw, Devansh Srivastav, Christian Wressnegger, Erwin Quiring, Thorsten Eisenhofer, Daniel Arp, and Lea Schönherr. Chasing shadows: Pitfalls in llm security research. In Network and Distributed System Security Symposium (NDSS), 2026.
[30] Weike Fang, Zhejiang Zhou, Junzhou He, and Weihang Wang. Stacksight: Unveiling webassembly through large language models and neurosymbolic chain-of-thought decompilation. In Proceedings of the 41st International Conference on Machine Learning, ICML'24. JMLR.org, 2024.
[31] Yunlong Feng, Dechuan Teng, Yang Xu, Honglin Mu, Xiao Xu, Libo Qin, Qingfu Zhu, and Wanxiang Che. Self-constructed context decompilation with fined-grained alignment enhancement. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 6603–6614, 2024.
[32] Charles Edward Gagnon, Steven HH Ding, Philippe Charland, and Benjamin Fung. Practical source code recovery from binary functions using anchor-based retrieval and llm reasoning. arXiv preprint arXiv:2607.09452, 2026.
[33] Zeyu Gao, Yuxin Cui, Hao Wang, Siliang Qin, Yuanda Wang, Zhang Bolun, and Chao Zhang. DecompileBench: A comprehensive benchmark for evaluating decompilers in real-world scenarios. In Findings of the Association for Computational Linguistics: ACL 2025, pages 23250–23267, 2025.
[34] Jens-Rene Giesen, Christian Scholz, and Lucas Davi. Poster: Code harvether: Corpus-driven decompilation of ethereum smart contracts. In Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security, pages 4752–4754, 2025.
[35] Maurice H Halstead. Elements of Software Science (Operating and programming systems series). Elsevier Science Inc., 1977.
[36] Jan Hauke and Tomasz Kossowski. Comparison of values of pearson's and spearman's correlation coefficients on the same sets of data. Quaestiones geographicae, 30(2):87–93, 2011.
[37] Iman Hosseini and Brendan Dolan-Gavitt. Beyond the c: Retargetable decompilation using neural machine translation. ArXiv, abs/2212.08950, 2022. URL: https://api.semanticscholar.org/CorpusID:252354177.
[38] Peiwei Hu, Ruigang Liang, and Kai Chen. Degpt: Optimizing decompiler output with llm. In NDSS, 2024.
[39] Xinyu Hu, Zhiwei Fu, Shaocong Xie, Steven HH Ding, and Philippe Charland. SoK: Potentials and Challenges of Large Language Models for Reverse Engineering. arXiv preprint arXiv:2509.21821, 2025.
[40] Linxi Jiang, Xin Jin, and Zhiqiang Lin. Beyond classification: Inferring function names in stripped binaries via domain adapted llms. In NDSS, 2025.
[41] Nan Jiang, Chengxiao Wang, Kevin Liu, Xiangzhe Xu, Lin Tan, Xiangyu Zhang, and Petr Babkin. Nova: Generative language models for assembly code with hierarchical attention and contrastive learning. In International Conference on Learning Representations, volume 2025, pages 95905–95926, 2025.
[42] Aditya Katpara and Sriram Sankaran. Firmware reverse engineering: A comprehensive review and directions. Electronics, 15(17):3830, 2026.
[43] Omer Katz, Noam Rinetzky, and Eran Yahav. Statistical reconstruction of class hierarchies in binaries. In Proceedings of the Twenty-Third International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS '18, page 363–376, New York, NY, USA, 2018. Association for Computing Machinery. doi:10.1145/3173162.3173202.
[44] Varun Kohli, N Raghava, Biplab Sikdar, and Dinil Mon Divakaran. Chisel-ing back source code with ai-enabled iterative recovery. arXiv preprint arXiv:2608.27981, 2026.
[45] JongHyup Lee, Thanassis Avgerinos, and David Brumley. TIE: Principled reverse engineering of types in binary programs. In NDSS, 2011.
[46] Gangyang Li, Xiuwei Shang, Shaoyin Cheng, Junqi Zhang, Li Hu, Xu Zhu, Weiming Zhang, and Nenghai Yu. Pseudofix: Refactoring distorted structures in decompiled c pseudocode. In 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE), pages 841–853. IEEE, 2025.
[47] Zeqin Liao, Yuhong Nan, Zixu Gao, Henglong Liang, Sicheng Hao, Peifan Ren, and Zibin Zheng. Augmenting smart contract decompiler output through fine-grained dependency analysis and llm-facilitated semantic recovery. IEEE Transactions on Software Engineering, 2025.
[48] Chang Liu, Edward Raff, and Kristopher Micinski. When llm decompilers recompile more and preserve less. arXiv preprint arXiv:2609.05370, 2026.
[49] Peipei Liu, Jian Sun, Mingzhe Xing, Yicheng Zeng, Zhaoteng Yan, Lixiao Zhang, Li Chen, and Dan Li. Binary decompilation llm with feedback-driven multi-turn refinement. arXiv preprint arXiv:2606.16162, 2026.
[50] Xiaozhu Meng and Barton P. Miller. Binary code is not easy. In Proceedings of the 25th International Symposium on Software Testing and Analysis, ISSTA 2016, page 24–35, 2016. doi:10.1145/2931037.2931047.
[51] Tomás Pelayo-Benedet, Kevin Borgolte, and Ricardo J. Rodríguez. Does Representation Matter? Evaluating IRs for LLM-based Binary Decompilation. In Sébastien Bardin and Christophe Hauser, editors, Proceedings of the 9th Workshop on Binary Analysis Research (BAR), volume 9. Internet Society (ISOC). doi:10.14722/bar.2026.23077.
[52] Qwen Team. Qwen3.8-Max: A new bar for coding and cowork, August 2026. URL: https://qwen.ai/blog?id=qwen3.8.
[53] Shuo Ren, Daya Guo, Shuai Lu, Long Zhou, Shujie Liu, Duyu Tang, Neel Sundaresan, Ming Zhou, Ambrosio Blanco, and Shuai Ma. Codebleu: a method for automatic evaluation of code synthesis. CoRR, abs/2009.10297, 2020. URL: https://arxiv.org/abs/2009.10297, arXiv:2009.10297.
[54] Zihan Sha, Hui Shu, Hao Wang, Zeyu Gao, Yang Lan, and Chao Zhang. Hyres: Recovering data structures in binaries via semantic enhanced hybrid reasoning. ACM Trans. Softw. Eng. Methodol., 35(3), February 2026. doi:10.1145/3736719.
[55] Zihan Sha, Hao Wang, Zeyu Gao, Hui Shu, Bolun Zhang, Ziqing Wang, and Chao Zhang. llasm: Naming Functions in Binaries by Fusing Encoder-only and Decoder-only LLMs. ACM Trans. Softw. Eng. Methodol., 34(4), April 2025. URL: https://doi.org/10.1145/3702988.
[56] Xinyu She, Yanjie Zhao, and Haoyu Wang. Wadec: Decompiling webassembly using large language model. In Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering, ASE '24, page 481–492, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3691620.3695020.
[57] Yan Shoshitaishvili, Ruoyu Wang, Christophe Hauser, Christopher Kruegel, and Giovanni Vigna. Firmalice - Automatic Detection of Authentication Bypass Vulnerabilities in Binary Firmware. In Proceedings of the 2015 Network and Distributed System Security Symposium, 2015.
[58] Yan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens, Mario Polino, Audrey Dutcher, John Grosen, Siji Feng, Christophe Hauser, Christopher Kruegel, and Giovanni Vigna. SoK: (State of) The Art of War: Offensive Techniques in Binary Analysis. In IEEE Symposium on Security and Privacy, 2016.
[59] Alexander Shypula, Osbert Bastani, and Edward Schwartz. Decaf: Improving neural decompilation with automatic feedback and search. arXiv preprint arXiv:2605.11501, 2026.
[60] Xing Su, Hanzhong Liang, Hao Wu, Ben Niu, Fengyuan Xu, and Sheng Zhong. Disco: Towards decompiling evm bytecode to source code using large language models. Proceedings of the ACM on Software Engineering, 2(FSE):2311–2334, 2025.
[61] Yuchi Su, Weina Niu, Jiacheng Gong, Ran Yan, Song Li, Xin Liu, and Xiaosong Zhang. Rldecompiler: Enhancing llm-based decompilation via reinforcement learning with a multi-faceted reward function. In Proceedings of the 2026 34th IEEE/ACM International Conference on Program Comprehension, ICPC '26, page 159–170, New York, NY, USA, 2026. Association for Computing Machinery. doi:10.1145/3794763.3794807.
[62] Xinyu Sun, Fugen Tang, Yu Zhang, Han Shen, Chengru Song, and Di Zhang. Enhancing llm to decompile optimized ptx to readable cuda for tensor programs. In 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE), pages 2235–2247. IEEE, 2025.
[63] Hanzhuo Tan, Weihao Li, Xiaolong Tian, Siyi Wang, Jiaming Liu, Jing Li, and Yuqun Zhang. SK2decompile: LLM-based two-phase binary decompilation from skeleton to skin. In The Fourteenth International Conference on Learning Representations, 2026. URL: https://openreview.net/forum?id=jSQPqdoidy.
[64] Hanzhuo Tan, Qi Luo, Jing Li, and Yuqun Zhang. Llm4decompile: Decompiling binary code with large language models. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 3473–3487, 2024.
[65] Hanzhuo Tan, Xiaolong Tian, Hanrui Qi, Jiaming Liu, Siyi Wang, GAO Zuchen, Qi Luo, Jing Li, and Yuqun Zhang. Decompile-Bench: Million-Scale Binary-Source Function Pairs for Real-World Binary Decompilation. In The Thirty-ninth Annual Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2026. URL: https://openreview.net/forum?id=vZ7fJntf0a.
[66] Xi Tan, Zheyuan Ma, Sandro Pinto, Le Guan, Ning Zhang, Jun Xu, Zhiqiang Lin, Hongxin Hu, and Ziming Zhao. SoK: Where's the "up"?! a comprehensive (bottom-up) study on the security of arm Cortex-M systems. In 18th USENIX WOOT Conference on Offensive Technologies (WOOT 24), pages 149–169, Philadelphia, PA, August 2024. USENIX Association. URL: https://www.usenix.org/conference/woot24/presentation/tan.
[67] Gemma Team. Gemma 4 technical report, 2026. URL: https://arxiv.org/abs/2607.02770, arXiv:2607.02770.
[68] Daniel Votipka, Seth Rabin, Kristopher Micinski, Jeffrey S. Foster, and Michelle L. Mazurek. An observational investigation of reverse Engineers' processes. In 29th USENIX Security Symposium, pages 1875–1892, August 2020. URL: https://www.usenix.org/conference/usenixsecurity20/presentation/votipka-observational.
[69] Yanzhong Wang, Ruigang Liang, Yilin Li, Peiwei Hu, Kai Chen, and Bolun Zhang. TypeForge: Synthesizing and Selecting Best-Fit Composite Data Types for Stripped Binaries. In IEEE Symposium on Security and Privacy (S&P), 2025. doi:10.1109/SP61157.2025.00193.
[70] Wai Kin Wong, Daoyuan Wu, Huaijin Wang, Zongjie Li, Zhibo Liu, Shuai Wang, Qiyi Tang, Sen Nie, and Shi Wu. Decllm: Llm-augmented recompilable decompilation for enabling programmatic use of decompiled code. Proceedings of the ACM on Software Engineering, 2(ISSTA):1841–1864, 2025.
[71] Xiangzhe Xu and Zhuo Zhang and Zian Su and Ziyang Huang and Shiwei Feng and Yapeng Ye and Nan Jiang and Danning Xie and Siyuan Cheng and Lin Tan and Xiangyu Zhang. Unleashing the power of generative model in recovering variable names from stripped binary. In Proceedings of the 32nd Network and Distributed System Security Symposium (NDSS). Internet Society, 2025. doi:10.14722/ndss.2025.23276.
[72] Danning Xie, Zhuo Zhang, Nan Jiang, Xiangzhe Xu, Lin Tan, and Xiangyu Zhang. ReSym: Harnessing LLMs to Recover Variable and Data Structure Symbols from Stripped Binaries. CCS '24, page 4554–4568, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3658644.3670340.
[73] Xiaojun Xu, Chang Liu, Qian Feng, Heng Yin, Le Song, and Dawn Song. Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection. In Proc. ACM SIGSAC Conference on Computer and Communications Security, CCS '17, page 363–376, 2017. doi:10.1145/3133956.3134018.
[74] Khaled Yakdan, Sebastian Eschweiler, Elmar Gerhards-Padilla, and Matthew Smith. No more gotos: Decompilation using pattern-independent control-flow structuring and semantic-preserving transformations. In Network and Distributed System Security Symposium, 2015. URL: https://api.semanticscholar.org/CorpusID:1178101.
[75] Zao Yang and Stefan Nagy. Bin2Wrong: a unified fuzzing framework for uncovering semantic errors in Binary-to-C decompilers. In 2025

Fig. 13: Halstead complexity distribution in the original Exebench and sampled split.
USENIX Annual Technical Conference (USENIX ATC 25), pages 1161–1179, Boston, MA, July 2025. USENIX Association. URL: https://www.usenix.org/conference/atc25/presentation/yang-zao.
[76] Minami Yoda, Jialong Li, Yasuyuki Tahara, Yuichi Sei, and Yutaka Matsuno. Statistical analysis of executability and program equivalence in decompilation for iot vulnerability detection, 2026. URL: https://arxiv.org/abs/2608.06960, arXiv:2608.06960.
[77] Yifan Zhang, Xiaohan Wang, Yueke Zhang, Yu Huang, and Kevin Leach. Constraint-guided multi-agent decompilation for executable binary recovery. arXiv preprint arXiv:2604.23940, 2026.
[78] Zhiping Zhou, Xiaohong Li, Ruitao Feng, Yao Zhang, Yuekang Li, Wenbu Feng, Yunqian Wang, and Yuqing Li. Fidelitygpt: Correcting decompilation distortions with retrieval augmented generation. arXiv preprint arXiv:2510.19615, 2025.
[79] Xiaoao Zhu, Jie Ren, Zhiqiang Li, Jie Zheng, Zhanyong Tang, and Zheng Wang. Lifting optimized binaries to canonical compiler IR via structure-aware retrieval and iterative verification. In Maria Liakata, Viviane P. Moreira, Jiajun Zhang, and David Jurgens, editors, Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 11498–11516, San Diego, California, United States, July 2026. Association for Computational Linguistics. URL: https://aclanthology.org/2026.acl-long.527/, doi:10.18653/v1/2026.acl-long.527.
[80] Muqi Zou, Arslan Khan, Ruoyu Wu, Han Gao, Antonio Bianchi, and Dave (Jing) Tian. D-Helix: A generic decompiler testing framework using symbolic differentiation. In 33rd USENIX Security Symposium (USENIX Security 24), pages 397–414, Philadelphia, PA, August 2024. USENIX Association. URL: https://www.usenix.org/conference/usenixsecurity24/presentation/zou.
[81] Lukás Đurfina, Jakub Kroustek, and Petr Zemek. PsybOt malware: A step-by-step decompilation case study. In 20th Working Conference on Reverse Engineering (WCRE), pages 449–456, 2013.
APPENDIX
This appendix comprises the supplementary figures and tables for our readers' reference. Fig. 13 and 14 depict the distribution of Halstead difficulty in the dataset and method-wise performance across difficulty bins, respectively. Fig. 15 and 16 depict the nested relationship between RC, RCI, and RE across base input representation and cross-language recovery ablations. Tables III, IV, and V contain the exhaustive results for SOTA methods across architectures, optimizations, and symbol variants. Tables VI and VII present the fine-grained results for the taxonomy-driven pipeline ablations. Lastly, Table VIII presents the results for same- and cross-language recovery.

Fig. 14: Method-wise performance against halstead groups.

Fig. 15: RC, RCI, and RE for base representation ablations.

Fig. 16: RC, RCI, and RE for cross-CIQ-31b across languages.
TABLE III: All seven metrics per architecture, averaged over optimization levels and symbol tiers.
| Input | Standard targets | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pipeline | x86-64 | x86-32 | AArch64 | RISC-V64 | ||||||||||||||||||||||||
| RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | |||||||||||
| LLM4Decompile (ASM) | 0.41 | -0.13 | 0.41 | 0.38 | 0.54 | 0.15 | 0.22 | 0.01 | -0.54 | 0.23 | 0.21 | 0.39 | 0.01 | 0.00 | 0.11 | -0.62 | 0.23 | 0.43 | 0.02 | 0.04 | 0.17 | -0.49 | 0.22 | 0.23 | 0.39 | 0.04 | 0.05 | |
| AssemblyNova | 0.46 | 0.16 | 0.41 | 0.39 | 0.51 | 0.14 | 0.22 | 0.02 | -0.07 | 0.24 | 0.18 | 0.38 | 0.01 | 0.01 | 0.06 | -0.35 | 0.16 | 0.14 | 0.38 | 0.01 | 0.02 | 0.08 | -0.39 | 0.15 | 0.13 | 0.34 | 0.02 | 0.02 |
| SCCDEC | 0.46 | 0.11 | 0.43 | 0.42 | 0.54 | 0.22 | 0.26 | 0.03 | -0.35 | 0.24 | 0.23 | 0.38 | 0.02 | 0.02 | 0.16 | -0.36 | 0.25 | 0.25 | 0.40 | 0.04 | 0.06 | 0.21 | -0.41 | 0.21 | 0.24 | 0.36 | 0.06 | 0.07 |
| LLM4Decompile (GHIDRA) | 0.51 | 0.13 | 0.43 | 0.42 | 0.54 | 0.20 | 0.32 | 0.52 | 0.14 | 0.42 | 0.41 | 0.55 | 0.17 | 0.33 | 0.43 | 0.06 | 0.41 | 0.41 | 0.54 | 0.17 | 0.29 | 0.21 | 0.16 | 0.42 | 0.42 | 0.48 | 0.06 | 0.13 |
| SK2Decompile | 0.62 | 0.33 | 0.45 | 0.46 | 0.55 | 0.24 | 0.39 | 0.64 | 0.32 | 0.45 | 0.47 | 0.54 | 0.23 | 0.42 | 0.53 | 0.33 | 0.44 | 0.46 | 0.54 | 0.21 | 0.36 | 0.30 | 0.35 | 0.44 | 0.46 | 0.48 | 0.11 | 0.19 |
| Pseudo-CDeGPT | 0.38 | 0.29 | 0.36 | 0.38 | 0.53 | 0.13 | 0.31 | 0.41 | 0.30 | 0.36 | 0.38 | 0.53 | 0.11 | 0.34 | 0.32 | 0.29 | 0.34 | 0.37 | 0.53 | 0.12 | 0.28 | 0.22 | 0.32 | 0.36 | 0.38 | 0.48 | 0.09 | 0.19 |
| FidelityGPT | 0.53 | 0.40 | 0.41 | 0.42 | 0.55 | 0.20 | 0.39 | 0.57 | 0.40 | 0.41 | 0.42 | 0.56 | 0.19 | 0.43 | 0.49 | 0.42 | 0.40 | 0.43 | 0.56 | 0.20 | 0.36 | 0.41 | 0.42 | 0.39 | 0.41 | 0.50 | 0.14 | 0.32 |
| Agent4Decompile | 0.72 | 0.07 | 0.26 | 0.38 | 0.53 | 0.25 | 0.64 | 0.75 | 0.05 | 0.26 | 0.39 | 0.53 | 0.22 | 0.68 | 0.69 | 0.06 | 0.26 | 0.38 | 0.52 | 0.21 | 0.63 | 0.68 | 0.10 | 0.26 | 0.38 | 0.49 | 0.23 | 0.61 |
| Embedded targets (1/2) | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ARMv7-A | ARMv8-A32 | ARMv7-M | ||||||||||||||||||||
| Input | Pipeline | RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | |||
| AssemblyNovaSCCDEC | LLM4Decompile (ASM) | 0.13 | -0.45 | 0.21 | 0.22 | 0.40 | 0.03 | 0.03 | 0.14 | -0.46 | 0.21 | 0.22 | 0.40 | 0.03 | 0.03 | 0.07 | -0.51 | 0.18 | 0.18 | 0.40 | 0.01 | 0.02 |
| SCCDEC | 0.02 | -0.35 | 0.14 | 0.11 | 0.35 | 0.01 | 0.00 | 0.02 | -0.34 | 0.14 | 0.12 | 0.35 | 0.01 | 0.00 | 0.02 | -0.43 | 0.11 | 0.09 | 0.35 | 0.01 | 0.00 | |
| LLM4Decompile (GHIDRA) | 0.18 | -0.38 | 0.21 | 0.23 | 0.37 | 0.05 | 0.06 | 0.18 | -0.38 | 0.22 | 0.23 | 0.37 | 0.04 | 0.06 | 0.12 | -0.42 | 0.18 | 0.19 | 0.35 | 0.03 | 0.04 | |
| Pseudo-CDeGPTFidelityGPTAgent4Decompile | SK2Decompile | 0.47 | 0.11 | 0.41 | 0.40 | 0.54 | 0.16 | 0.29 | 0.47 | 0.11 | 0.41 | 0.40 | 0.53 | 0.16 | 0.28 | 0.34 | 0.03 | 0.34 | 0.34 | 0.51 | 0.10 | 0.21 |
| DeGPT | 0.57 | 0.33 | 0.42 | 0.45 | 0.53 | 0.21 | 0.35 | 0.59 | 0.33 | 0.43 | 0.45 | 0.53 | 0.21 | 0.35 | 0.48 | 0.34 | 0.38 | 0.41 | 0.52 | 0.17 | 0.29 | |
| FidelityGPT | 0.31 | 0.32 | 0.35 | 0.37 | 0.53 | 0.10 | 0.27 | 0.33 | 0.33 | 0.35 | 0.37 | 0.53 | 0.09 | 0.28 | 0.15 | 0.34 | 0.30 | 0.32 | 0.54 | 0.06 | 0.13 | |
| Agent4Decompile | 0.49 | 0.42 | 0.40 | 0.42 | 0.55 | 0.18 | 0.36 | 0.50 | 0.42 | 0.40 | 0.42 | 0.55 | 0.18 | 0.37 | 0.34 | 0.43 | 0.36 | 0.38 | 0.55 | 0.14 | 0.25 | |
| 0.66 | 0.04 | 0.26 | 0.38 | 0.51 | 0.21 | 0.61 | 0.67 | 0.04 | 0.26 | 0.37 | 0.52 | 0.21 | 0.61 | 0.44 | 0.03 | 0.23 | 0.34 | 0.52 | 0.21 | 0.40 | ||
| Embedded targets (2/2) | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ARMv8-M | MIPS32LE | ||||||||||||||
| Input | Pipeline | RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | ||
| AssemblyNovaSCCDEC | LLM4Decompile (ASM) | 0.09 | -0.45 | 0.18 | 0.17 | 0.40 | 0.01 | 0.02 | 0.11 | -0.62 | 0.18 | 0.20 | 0.39 | 0.02 | 0.03 |
| SCCDEC | 0.02 | -0.46 | 0.11 | 0.09 | 0.34 | 0.01 | 0.00 | 0.10 | -0.41 | 0.14 | 0.13 | 0.32 | 0.03 | 0.03 | |
| 0.14 | -0.36 | 0.19 | 0.19 | 0.35 | 0.03 | 0.05 | 0.17 | -0.44 | 0.19 | 0.21 | 0.35 | 0.03 | 0.05 | ||
| Pseudo-CDeGPTFidelityGPTAgent4Decompile | LLM4Decompile (GHIDRA) | 0.35 | 0.04 | 0.34 | 0.34 | 0.52 | 0.10 | 0.22 | 0.46 | 0.09 | 0.40 | 0.40 | 0.53 | 0.16 | 0.30 |
| SK2Decompile | 0.47 | 0.33 | 0.37 | 0.41 | 0.52 | 0.15 | 0.28 | 0.56 | 0.32 | 0.42 | 0.45 | 0.53 | 0.22 | 0.37 | |
| DeGPT | 0.15 | 0.34 | 0.30 | 0.32 | 0.54 | 0.05 | 0.13 | 0.39 | 0.29 | 0.35 | 0.38 | 0.53 | 0.13 | 0.33 | |
| FidelityGPT | 0.34 | 0.43 | 0.36 | 0.38 | 0.55 | 0.14 | 0.25 | 0.53 | 0.41 | 0.40 | 0.41 | 0.55 | 0.21 | 0.41 | |
| Agent4Decompile | 0.44 | 0.02 | 0.23 | 0.34 | 0.51 | 0.21 | 0.41 | 0.72 | 0.04 | 0.26 | 0.38 | 0.52 | 0.26 | 0.66 | |
TABLE IV: All seven metrics per optimization level, averaged over nine architectures and both symbol tiers.
| Input | Pipeline | O0 | O1 | O2 | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | ||||||||||
| LLM4Decompile (ASM) | 0.16 | -0.52 | 0.22 | 0.21 | 0.41 | 0.04 | 0.07 | 0.14 | -0.45 | 0.24 | 0.25 | 0.43 | 0.04 | 0.05 | 0.13 | -0.49 | 0.22 | 0.23 | 0.41 | 0.03 | 0.04 |
| AssemblyNova | 0.07 | -0.48 | 0.11 | 0.10 | 0.33 | 0.02 | 0.04 | 0.10 | -0.26 | 0.19 | 0.17 | 0.39 | 0.03 | 0.03 | 0.08 | -0.25 | 0.19 | 0.16 | 0.38 | 0.03 | 0.03 |
| SCCDEC | 0.20 | -0.44 | 0.22 | 0.23 | 0.37 | 0.05 | 0.09 | 0.19 | -0.30 | 0.25 | 0.26 | 0.40 | 0.07 | 0.08 | 0.17 | -0.33 | 0.23 | 0.24 | 0.38 | 0.06 | 0.07 |
| LLM4Decompile (GHIDRA) | 0.47 | 0.17 | 0.44 | 0.43 | 0.56 | 0.11 | 0.32 | 0.42 | 0.11 | 0.41 | 0.40 | 0.53 | 0.17 | 0.26 | 0.40 | 0.07 | 0.39 | 0.38 | 0.52 | 0.14 | 0.24 |
| SK2Decompile | 0.57 | 0.38 | 0.49 | 0.50 | 0.58 | 0.13 | 0.42 | 0.54 | 0.33 | 0.43 | 0.45 | 0.53 | 0.23 | 0.33 | 0.52 | 0.32 | 0.41 | 0.43 | 0.51 | 0.20 | 0.30 |
| Pseudo-CDeGPT | 0.33 | 0.32 | 0.37 | 0.37 | 0.55 | 0.05 | 0.30 | 0.31 | 0.32 | 0.34 | 0.37 | 0.52 | 0.11 | 0.26 | 0.29 | 0.33 | 0.33 | 0.36 | 0.52 | 0.10 | 0.23 |
| FidelityGPT | 0.51 | 0.47 | 0.45 | 0.44 | 0.60 | 0.11 | 0.42 | 0.48 | 0.41 | 0.39 | 0.41 | 0.55 | 0.20 | 0.36 | 0.45 | 0.40 | 0.37 | 0.40 | 0.53 | 0.18 | 0.32 |
| Agent4Decompile | 0.69 | 0.13 | 0.29 | 0.39 | 0.55 | 0.10 | 0.64 | 0.65 | 0.04 | 0.25 | 0.37 | 0.52 | 0.28 | 0.59 | 0.62 | 0.02 | 0.24 | 0.36 | 0.51 | 0.24 | 0.56 |
| Input | Pipeline | O3 | O4 | O5 | |||||||||||
| RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AssemblyNovaSCCDEC | LLM4Decompile (ASM) | 0.13 | -0.50 | 0.21 | 0.22 | 0.41 | 0.03 | 0.04 | 0.14 | -0.42 | 0.24 | 0.23 | 0.42 | 0.04 | 0.04 |
| SCCDEC | 0.09 | -0.23 | 0.19 | 0.16 | 0.37 | 0.02 | 0.03 | 0.10 | -0.24 | 0.20 | 0.18 | 0.37 | 0.03 | 0.03 | |
| LLM4Decompile (GHIDRA) | 0.40 | 0.06 | 0.36 | 0.37 | 0.50 | 0.14 | 0.25 | 0.40 | 0.08 | 0.39 | 0.39 | 0.53 | 0.15 | 0.24 | |
| SK2Decompile | 0.51 | 0.31 | 0.38 | 0.41 | 0.50 | 0.20 | 0.30 | 0.51 | 0.31 | 0.42 | 0.44 | 0.52 | 0.21 | 0.32 | |
| Pseudo-C | DeGPT | 0.26 | 0.29 | 0.33 | 0.36 | 0.52 | 0.11 | 0.22 | 0.29 | 0.30 | 0.34 | 0.36 | 0.52 | 0.11 | 0.25 |
| FidelityGPT | 0.44 | 0.39 | 0.35 | 0.38 | 0.52 | 0.18 | 0.32 | 0.45 | 0.41 | 0.39 | 0.41 | 0.54 | 0.20 | 0.33 | |
| Agent4Decompile | 0.60 | 0.02 | 0.24 | 0.36 | 0.51 | 0.25 | 0.54 | 0.64 | 0.04 | 0.25 | 0.37 | 0.51 | 0.25 | 0.58 | |
TABLE V: All seven metrics per symbol tier, averaged over the nine architectures and the five optimization levels.
| Input | Pipeline | Unstripped | Stripped | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | ||||
| Assembly | LLM4Decompile (ASM) | 0.18 | -0.38 | 0.24 | 0.24 | 0.42 | 0.04 | 0.06 | 0.10 | -0.57 | 0.21 | 0.21 | 0.41 | 0.03 | 0.04 |
| Nova | 0.09 | -0.26 | 0.18 | 0.16 | 0.37 | 0.03 | 0.03 | 0.09 | -0.32 | 0.17 | 0.15 | 0.36 | 0.03 | 0.03 | |
| SCCDEC | 0.24 | -0.22 | 0.27 | 0.28 | 0.42 | 0.07 | 0.09 | 0.13 | -0.45 | 0.20 | 0.21 | 0.36 | 0.05 | 0.05 | |
| Pseudo-C | LLM4Decompile (GHIDRA) | 0.45 | 0.19 | 0.43 | 0.42 | 0.52 | 0.18 | 0.29 | 0.38 | 0.01 | 0.37 | 0.37 | 0.53 | 0.11 | 0.23 |
| SK2Decompile | 0.53 | 0.34 | 0.44 | 0.45 | 0.52 | 0.19 | 0.33 | 0.52 | 0.32 | 0.41 | 0.44 | 0.54 | 0.19 | 0.34 | |
| DeGPT | 0.29 | 0.32 | 0.34 | 0.36 | 0.52 | 0.09 | 0.24 | 0.31 | 0.31 | 0.34 | 0.36 | 0.53 | 0.10 | 0.26 | |
| FidelityGPT | 0.47 | 0.44 | 0.40 | 0.41 | 0.55 | 0.17 | 0.35 | 0.47 | 0.40 | 0.38 | 0.40 | 0.55 | 0.18 | 0.35 | |
| Agent4Decompile | 0.65 | 0.05 | 0.25 | 0.37 | 0.51 | 0.22 | 0.59 | 0.63 | 0.05 | 0.25 | 0.37 | 0.52 | 0.22 | 0.58 | |
TABLE VI: Input-representation ladder and enrichment channels, showing all seven metrics per optimization level.
| Arm | Pipeline | O0 | O2 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | ||||
| Hex | SP-12b | 0.12 | -0.01 | 0.14 | 0.21 | 0.39 | 0.00 | 0.00 | 0.08 | 0.43 | 0.15 | 0.15 | 0.33 | 0.00 | 0.00 |
| SP-31b | 0.32 | -0.02 | 0.27 | 0.44 | 0.52 | 0.02 | 0.06 | 0.10 | 0.16 | 0.20 | 0.28 | 0.45 | 0.06 | 0.06 | |
| SP-27b | 0.24 | 0.08 | 0.21 | 0.25 | 0.48 | 0.02 | 0.04 | 0.32 | 0.28 | 0.20 | 0.21 | 0.40 | 0.04 | 0.04 | |
| Assembly | SP-12b | 0.42 | 0.05 | 0.30 | 0.38 | 0.52 | 0.06 | 0.10 | 0.24 | 0.15 | 0.23 | 0.27 | 0.52 | 0.08 | 0.08 |
| SP-31b | 0.60 | 0.22 | 0.42 | 0.49 | 0.58 | 0.22 | 0.34 | 0.34 | 0.23 | 0.28 | 0.36 | 0.52 | 0.14 | 0.16 | |
| SP-27b | 0.56 | 0.29 | 0.42 | 0.45 | 0.55 | 0.18 | 0.34 | 0.34 | 0.28 | 0.33 | 0.35 | 0.50 | 0.10 | 0.08 | |
| P-code | SP-12b | 0.24 | -0.01 | 0.25 | 0.32 | 0.50 | 0.00 | 0.04 | 0.26 | 0.03 | 0.23 | 0.28 | 0.49 | 0.00 | 0.02 |
| SP-31b | 0.38 | 0.22 | 0.31 | 0.39 | 0.53 | 0.02 | 0.08 | 0.32 | 0.12 | 0.27 | 0.36 | 0.53 | 0.02 | 0.08 | |
| SP-27b | 0.28 | 0.35 | 0.33 | 0.35 | 0.51 | 0.02 | 0.06 | 0.36 | 0.31 | 0.31 | 0.34 | 0.52 | 0.04 | 0.04 | |
| Pseudo-C | SP-12b | 0.50 | 0.47 | 0.44 | 0.51 | 0.60 | 0.08 | 0.44 | 0.48 | 0.35 | 0.37 | 0.45 | 0.57 | 0.20 | 0.30 |
| SP-31b | 0.58 | 0.47 | 0.45 | 0.49 | 0.61 | 0.14 | 0.50 | 0.54 | 0.32 | 0.37 | 0.45 | 0.57 | 0.32 | 0.44 | |
| SP-27b | 0.62 | 0.46 | 0.48 | 0.49 | 0.59 | 0.04 | 0.44 | 0.58 | 0.46 | 0.39 | 0.48 | 0.59 | 0.28 | 0.42 | |
| +CFG | SP-31b | 0.56 | 0.41 | 0.44 | 0.51 | 0.60 | 0.12 | 0.46 | 0.48 | 0.28 | 0.37 | 0.47 | 0.57 | 0.30 | 0.40 |
| SP-27b | 0.64 | 0.50 | 0.46 | 0.48 | 0.59 | 0.04 | 0.50 | 0.58 | 0.43 | 0.38 | 0.45 | 0.56 | 0.16 | 0.34 | |
| +Frame/ABI | SP-31b | 0.60 | 0.47 | 0.44 | 0.49 | 0.61 | 0.14 | 0.52 | 0.54 | 0.37 | 0.35 | 0.44 | 0.59 | 0.32 | 0.44 |
| SP-27b | 0.62 | 0.48 | 0.49 | 0.50 | 0.61 | 0.04 | 0.48 | 0.62 | 0.44 | 0.42 | 0.48 | 0.61 | 0.22 | 0.38 | |
| +ROData | SP-31b | 0.30 | 0.36 | 0.41 | 0.51 | 0.35 | 0.00 | 0.00 | 0.40 | 0.28 | 0.37 | 0.56 | 0.43 | 0.00 | 0.00 |
| SP-27b | 0.30 | 0.41 | 0.41 | 0.52 | 0.44 | 0.00 | 0.00 | 0.30 | 0.24 | 0.35 | 0.50 | 0.44 | 0.00 | 0.00 | |
| +Callees | SP-31b | 0.83 | 0.41 | 0.32 | 0.40 | 0.53 | 0.00 | 0.50 | 0.67 | 0.28 | 0.28 | 0.39 | 0.44 | 0.00 | 0.50 |
| SP-27b | 0.83 | 0.64 | 0.45 | 0.49 | 0.55 | 0.00 | 0.50 | 0.67 | 0.41 | 0.34 | 0.40 | 0.43 | 0.00 | 0.17 | |
| +Data/BSS | SP-31b | 0.00 | 0.65 | 0.23 | 0.43 | 0.45 | 0.00 | 0.00 | 0.00 | 0.36 | 0.24 | 0.19 | 0.18 | 0.00 | 0.00 |
| SP-27b | 1.00 | 0.09 | 0.36 | 0.59 | 0.82 | 0.00 | 1.00 | 0.00 | -0.60 | 0.26 | 0.22 | 0.18 | 0.00 | 0.00 | |
| +All | SP-31b | 0.64 | 0.40 | 0.44 | 0.48 | 0.60 | 0.12 | 0.54 | 0.62 | 0.31 | 0.36 | 0.45 | 0.58 | 0.32 | 0.48 |
| SP-27b | 0.66 | 0.48 | 0.48 | 0.49 | 0.62 | 0.06 | 0.46 | 0.68 | 0.41 | 0.41 | 0.47 | 0.59 | 0.18 | 0.38 | |
TABLE VII: Impact of model scale, compiler iteration, and review role on the pseudo-C arm.
| Pipeline | O0 | O2 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | |||
| SP-12b | 0.50 | 0.47 | 0.44 | 0.51 | 0.60 | 0.08 | 0.44 | 0.48 | 0.35 | 0.37 | 0.45 | 0.57 | 0.20 | 0.30 |
| SP-31b | 0.58 | 0.47 | 0.45 | 0.49 | 0.61 | 0.14 | 0.50 | 0.54 | 0.32 | 0.37 | 0.45 | 0.57 | 0.32 | 0.44 |
| CIT-31b | 0.76 | 0.39 | 0.43 | 0.52 | 0.60 | 0.18 | 0.62 | 0.72 | 0.26 | 0.36 | 0.47 | 0.57 | 0.32 | 0.56 |
| RR-31b | 0.56 | 0.52 | 0.43 | 0.47 | 0.60 | 0.12 | 0.54 | 0.52 | 0.37 | 0.35 | 0.43 | 0.57 | 0.32 | 0.48 |
TABLE VIII: Same- and cross-language recovery across input representations and iteration, per source language. ‘–’ marks structurally unmeasurable cells.
| Lang. | Arm | O0 | O2 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RCI | ES | AST | DF | BW | RE | RCI | ES | AST | DF | BW | RE | ||||
| C | Same-SP-31b | 0.58 | 0.47 | 0.44 | 0.49 | 0.60 | 0.14 | 0.52 | 0.54 | 0.31 | 0.37 | 0.46 | 0.57 | 0.28 | 0.42 |
| Same-SP-27b | 0.60 | 0.52 | 0.48 | 0.50 | 0.60 | 0.06 | 0.46 | 0.62 | 0.46 | 0.39 | 0.46 | 0.59 | 0.24 | 0.38 | |
| Same-asm-SP-31b | 0.54 | 0.17 | 0.41 | 0.46 | 0.59 | 0.14 | 0.30 | 0.34 | 0.19 | 0.27 | 0.35 | 0.54 | 0.16 | 0.16 | |
| Same-asm-CIT-31b | 0.68 | 0.16 | 0.42 | 0.48 | 0.58 | 0.14 | 0.38 | 0.66 | 0.14 | 0.31 | 0.41 | 0.56 | 0.18 | 0.34 | |
| C++ | Same-SP-31b | 0.98 | - | 0.30 | 0.27 | 0.43 | - | 0.16 | 0.90 | - | 0.25 | 0.26 | 0.43 | - | 0.06 |
| Same-SP-27b | 0.88 | - | 0.33 | 0.28 | 0.43 | - | 0.10 | 0.80 | - | 0.30 | 0.30 | 0.43 | - | 0.16 | |
| Same-CIT-31b | 1.00 | - | 0.30 | 0.27 | 0.43 | - | 0.16 | 1.00 | - | 0.26 | 0.26 | 0.42 | - | 0.08 | |
| Cross-SP-31b | 0.24 | 0.51 | 0.33 | 0.38 | 0.51 | 0.02 | 0.18 | 0.24 | 0.41 | 0.29 | 0.35 | 0.50 | 0.08 | 0.10 | |
| Cross-SP-27b | 0.22 | 0.58 | 0.33 | 0.35 | 0.49 | 0.00 | 0.12 | 0.38 | 0.49 | 0.35 | 0.42 | 0.51 | 0.10 | 0.12 | |
| Cross-CIT-31b | 0.40 | 0.42 | 0.31 | 0.38 | 0.50 | 0.04 | 0.28 | 0.58 | 0.25 | 0.28 | 0.41 | 0.44 | 0.12 | 0.26 | |
| Same-asm-SP-31b | 0.86 | - | 0.39 | 0.42 | 0.54 | - | 0.14 | 0.90 | - | 0.21 | 0.20 | 0.41 | - | 0.06 | |
| Same-asm-CIT-31b | 0.96 | - | 0.39 | 0.42 | 0.54 | - | 0.14 | 0.98 | - | 0.21 | 0.20 | 0.41 | - | 0.06 | |
| Cross-asm-SP-31b | 0.28 | 0.24 | 0.32 | 0.37 | 0.51 | 0.04 | 0.22 | 0.16 | 0.32 | 0.25 | 0.30 | 0.48 | 0.04 | 0.04 | |
| Cross-asm-CIT-31b | 0.52 | 0.24 | 0.33 | 0.39 | 0.50 | 0.04 | 0.30 | 0.44 | 0.21 | 0.26 | 0.33 | 0.48 | 0.06 | 0.16 | |
| Rust | Same-SP-31b | 0.58 | - | 0.29 | 0.36 | 0.45 | - | 0.02 | 0.78 | - | 0.24 | 0.32 | 0.45 | - | 0.00 |
| Same-SP-27b | 0.64 | - | 0.22 | 0.29 | 0.45 | - | 0.00 | 0.58 | - | 0.20 | 0.27 | 0.43 | - | 0.00 | |
| Same-CIT-31b | 0.94 | - | 0.29 | 0.35 | 0.46 | - | 0.02 | 0.96 | - | 0.24 | 0.32 | 0.45 | - | 0.00 | |
| Cross-SP-31b | 0.04 | 0.54 | 0.20 | 0.42 | 0.52 | 0.00 | 0.04 | 0.04 | 0.44 | 0.18 | 0.41 | 0.48 | 0.04 | 0.04 | |
| Cross-SP-27b | 0.02 | 0.58 | 0.19 | 0.42 | 0.52 | 0.00 | 0.02 | 0.02 | 0.56 | 0.19 | 0.42 | 0.51 | 0.04 | 0.02 | |
| Cross-CIT-31b | 0.10 | 0.30 | 0.17 | 0.44 | 0.48 | 0.02 | 0.10 | 0.10 | 0.31 | 0.17 | 0.43 | 0.46 | 0.04 | 0.10 | |
| Same-asm-SP-31b | 0.70 | - | 0.26 | 0.27 | 0.47 | - | 0.00 | 0.84 | - | 0.22 | 0.22 | 0.43 | - | 0.00 | |
| Same-asm-CIT-31b | 0.90 | - | 0.25 | 0.26 | 0.47 | - | 0.00 | 0.96 | - | 0.22 | 0.22 | 0.44 | - | 0.00 | |
| Cross-asm-SP-31b | 0.04 | 0.43 | 0.19 | 0.37 | 0.57 | 0.00 | 0.02 | 0.04 | 0.46 | 0.18 | 0.34 | 0.52 | 0.04 | 0.02 | |
| Cross-asm-CIT-31b | 0.12 | 0.34 | 0.19 | 0.40 | 0.56 | 0.02 | 0.08 | 0.12 | 0.38 | 0.20 | 0.39 | 0.53 | 0.04 | 0.08 | |
| Go | Same-SP-31b | 0.58 | - | 0.32 | 0.48 | 0.40 | - | 0.14 | 0.30 | - | 0.26 | 0.44 | 0.41 | - | 0.00 |
| Same-SP-27b | 0.10 | - | 0.24 | 0.33 | 0.45 | - | 0.00 | 0.12 | - | 0.22 | 0.38 | 0.44 | - | 0.00 | |
| Same-CIT-31b | 0.94 | - | 0.32 | 0.48 | 0.41 | - | 0.22 | 0.96 | - | 0.26 | 0.44 | 0.41 | - | 0.10 | |
| Cross-SP-31b | 0.10 | 0.53 | 0.24 | 0.42 | 0.49 | 0.00 | 0.10 | 0.04 | 0.60 | 0.22 | 0.37 | 0.45 | 0.00 | 0.04 | |
| Cross-SP-27b | 0.08 | 0.52 | 0.25 | 0.44 | 0.47 | 0.00 | 0.00 | 0.04 | 0.49 | 0.21 | 0.36 | 0.43 | 0.04 | 0.04 | |
| Cross-CIT-31b | 0.14 | 0.53 | 0.21 | 0.40 | 0.50 | 0.00 | 0.10 | 0.04 | 0.58 | 0.20 | 0.37 | 0.42 | 0.00 | 0.04 | |
| Same-asm-SP-31b | 0.58 | - | 0.27 | 0.37 | 0.49 | - | 0.02 | 0.72 | - | 0.22 | 0.33 | 0.44 | - | 0.04 | |
| Same-asm-CIT-31b | 0.92 | - | 0.28 | 0.38 | 0.49 | - | 0.04 | 0.96 | - | 0.22 | 0.34 | 0.46 | - | 0.04 | |
| Cross-asm-SP-31b | 0.06 | 0.46 | 0.25 | 0.44 | 0.48 | 0.00 | 0.04 | 0.08 | 0.55 | 0.24 | 0.35 | 0.45 | 0.02 | 0.02 | |
| Cross-asm-CIT-31b | 0.12 | 0.44 | 0.23 | 0.48 | 0.48 | 0.00 | 0.10 | 0.14 | 0.55 | 0.24 | 0.39 | 0.45 | 0.00 | 0.04 | |
| Fortran | Same-SP-31b | 0.90 | - | 0.28 | - | - | - | 0.14 | 0.80 | - | 0.27 | - | - | - | 0.04 |
| Same-SP-27b | 0.84 | - | 0.32 | - | - | - | 0.16 | 0.86 | - | 0.30 | - | - | - | 0.10 | |
| Same-CIT-31b | 0.96 | - | 0.29 | - | - | - | 0.14 | 0.92 | - | 0.27 | - | - | - | 0.08 | |
| Cross-SP-31b | 0.36 | 0.48 | 0.36 | 0.43 | 0.46 | 0.06 | 0.18 | 0.36 | 0.35 | 0.27 | 0.38 | 0.50 | 0.06 | 0.16 | |
| Cross-SP-27b | 0.34 | 0.47 | 0.38 | 0.41 | 0.51 | 0.06 | 0.16 | 0.36 | 0.36 | 0.29 | 0.40 | 0.49 | 0.10 | 0.20 | |
| Cross-CIT-31b | 0.62 | 0.33 | 0.36 | 0.46 | 0.48 | 0.08 | 0.30 | 0.58 | 0.27 | 0.28 | 0.38 | 0.47 | 0.08 | 0.28 | |
| Same-asm-SP-31b | 0.82 | - | 0.31 | - | - | - | 0.20 | 0.62 | - | 0.24 | - | - | - | 0.16 | |
| Same-asm-CIT-31b | 0.94 | - | 0.31 | - | - | - | 0.24 | 0.76 | - | 0.25 | - | - | - | 0.16 | |
| Cross-asm-SP-31b | 0.50 | 0.20 | 0.35 | 0.35 | 0.51 | 0.10 | 0.22 | 0.34 | 0.25 | 0.24 | 0.33 | 0.48 | 0.10 | 0.14 | |
| Cross-asm-CIT-31b | 0.64 | 0.18 | 0.37 | 0.41 | 0.51 | 0.12 | 0.28 | 0.64 | 0.18 | 0.26 | 0.40 | 0.50 | 0.10 | 0.20 | |
| Ada | Same-SP-31b | 0.16 | - | 0.16 | - | - | - | 0.00 | 0.16 | - | 0.15 | - | - | - | 0.02 |
| Same-SP-27b | 0.22 | - | 0.13 | - | - | - | 0.00 | 0.20 | - | 0.13 | - | - | - | 0.00 | |
| Same-CIT-31b | 0.20 | - | 0.17 | - | - | - | 0.00 | 0.18 | - | 0.15 | - | - | - | 0.02 | |
| Cross-SP-31b | 0.22 | 0.43 | 0.30 | 0.32 | 0.43 | 0.02 | 0.10 | 0.20 | 0.33 | 0.26 | 0.31 | 0.43 | 0.06 | 0.06 | |
| Cross-SP-27b | 0.26 | 0.42 | 0.29 | 0.30 | 0.41 | 0.02 | 0.10 | 0.28 | 0.33 | 0.31 | 0.32 | 0.40 | 0.04 | 0.08 | |
| Cross-CIT-31b | 0.36 | 0.38 | 0.27 | 0.34 | 0.43 | 0.04 | 0.14 | 0.36 | 0.22 | 0.27 | 0.35 | 0.45 | 0.10 | 0.12 | |
| Same-asm-SP-31b | 0.08 | - | 0.14 | - | - | - | 0.00 | 0.16 | - | 0.12 | - | - | - | 0.00 | |
| Same-asm-CIT-31b | 0.14 | - | 0.15 | - | - | - | 0.00 | 0.22 | - | 0.13 | - | - | - | 0.02 | |
| Cross-asm-SP-31b | 0.30 | 0.14 | 0.26 | 0.27 | 0.48 | 0.02 | 0.08 | 0.16 | 0.17 | 0.22 | 0.24 | 0.46 | 0.04 | 0.04 | |
| Cross-asm-CIT-31b | 0.42 | 0.14 | 0.27 | 0.28 | 0.49 | 0.02 | 0.12 | 0.42 | 0.11 | 0.23 | 0.28 | 0.45 | 0.06 | 0.12 | |