SCDBench: A Benchmark for LLM-Based Smart Contract Decompilers
SCDBench introduces a benchmark of 600 Solidity contracts for evaluating SI-based smart contract decompilers, with tests for format, compilation, ABI recovery and semantic consistency. In evaluations, the best-performing model perfectly decompiled 42 of 600 contracts, while same-model compilation repair improved performance.
AI-generated summary based on the headline and feed excerpt.
arXiv cs.AI reports SCDBench, a benchmark for testing SI systems that reconstruct Solidity source code from smart contract bytecode. Its dataset pairs 600 real-world contracts with bytecode, original source code and replayable semantic checkpoints. The evaluation proceeds through four stages: output completeness, compilability, recovery of the Application Binary Interface, and semantic consistency checked through differential replay.
The researchers tested Claude Opus 4.7, GPT-5.3-Codex and GLM-5, including GLM-5 variants with and without extended reasoning. They report that models often generated structured code that compiled, but matching the original contract’s semantics remained difficult: the strongest result was a perfect decompilation of 42 contracts. Same-model compilation repair substantially improved results at modest additional cost. Why it matters: a benchmark that checks behavior as well as compilability can help distinguish plausible-looking code from faithful smart contract reconstructions.
Written by SINN with AI assistance from arXiv cs.AI's reporting.
Originally reported by arXiv cs.AI
Read the full story at arXiv cs.AI