paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Code Cloning in Solidity Smart Contracts: Prevalence, Evolution, and Impact on Development

Solidity 智能合约中的代码克隆:普遍性、演化及对开发的影响
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 2/10 · 该论文是智能合约代码克隆的实证研究,属于软件工程/程序分析邻近领域,但未涉及用户关注的核心方向:ML/Agentic 程序的静态分析、LLM 改进静态分析/形式化验证、浮点程序分析或贝叶斯程序分析。其主题和结论与用户研究画像交集很小。引用 1 inbox
Ran Mo, Haopeng Song, Wei Ding, Chaochao Wu
crossref: 2026-09-12

AI 速览

一句话:通过大规模实证分析揭示 Solidity 智能合约代码克隆高度普遍、部分共同演化且很少参与缺陷修复。

近年来 Solidity 智能合约发展迅速,但尚缺乏对其代码克隆性质与影响的系统分析。本文对 26,294 个智能合约、97,877 个函数进行实证评估,考察代码克隆的普遍性、演化、缺陷倾向,并识别克隆出现的原因。结果显示,代码克隆在智能合约中高度普遍;平均 32.01% 的克隆会共同演化,说明需要谨慎管理以避免一致性问题。与传统软件开发不同,智能合约中的代码克隆很少涉及缺陷修复。最后,作者识别出影响克隆出现的三个主要因素,为开发者理解与管理 Solidity 智能合约中的代码克隆提供实证依据。

问题
现有工作缺乏对 Solidity 智能合约代码克隆的普遍性、演化及其对维护和缺陷修复影响的系统分析。
方法
对 26,294 个 Solidity 智能合约(97,877 个函数)进行大规模实证分析,度量克隆普遍性、共同演化、与缺陷修复的关系,并归纳影响克隆出现的因素。
评估
基于大规模真实合约数据集的定量评估,发现克隆高度普遍、平均 32.01% 共同演化、很少参与缺陷修复,并识别出三个主要影响因素。
原文摘要(Abstract)

In recent years, the development of Solidity smart contracts has been increasing rapidly in popularity. Code cloning is a common coding practice, and many prior studies have revealed that code clones could negatively impact software maintenance and quality. However, there is little work systematically analyzing the nature and impacts of code clones in solidity smart contracts. To bridge this gap, we investigate the prevalence, evolution, and bug-proneness of code clones in solidity smart contracts, and further identify the possible reasons for these clones' occurrences. With our evaluation of 26,294 smart contracts with 97,877 functions, we have found that code clones are highly prevalent in smart contracts. Additionally, on average, 32.01% of clones co-evolve, indicating the need for careful management to avoid consistency issues. Surprisingly, unlike in traditional software development, code clones in smart contracts are rarely involved in bug fixes. Finally, we identify three main factors that affect the occurrences of clones. We believe our study can provide valuable insights for developers to understand and manage code clones in solidity smart contracts.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8784,
  title = {Code Cloning in Solidity Smart Contracts: Prevalence, Evolution, and Impact on Development},
  author = {Ran Mo and Haopeng Song and Wei Ding and Chaochao Wu},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00123}
}