摘要
如果软件源程序中的一个代码段和同一程序中的另一个代码段在结构或语义上类似,这些代码段就成了代码克隆。概述代码克隆存在的各种形式,分析代码克隆产生的原因,并在概括了代码克隆检测的一般过程以后进一步阐述两类代码克隆检测方法:基于语义抽象树的检测方法和基于Token序列的检测方法。
If a code segment is similar structurally or semantically to another code segment in a source program of software, these tow code segments are called code clones. This paper describes the various forms of code clones and analyzes the factors that lead to code clones. After a brief depiction of the general framework of detecting code clones, it discusses two types of clone detection techniques : abstract syntax treebased methods, and token-based methods.
出处
《计算机应用与软件》
CSCD
北大核心
2008年第9期147-149,159,共4页
Computer Applications and Software
关键词
代码克隆
软件维护
软件理解
语义抽象树
后缀树
频繁项集挖掘
Code clone Software maintenance Program understanding Abstract syntax tree Suffix-tree Frequent item set mining