Computer Engineering and Applications ›› 2018, Vol. 54 ›› Issue (13): 59-66.DOI: 10.3778/j.issn.1002-8331.1705-0374
Previous Articles Next Articles
GE Guangshuai, YAN Sheng, LIU Dongsheng, ZHANG Liping
Online:
Published:
葛广帅,闫 盛,刘东升,张丽萍
Abstract: The present clone management is unscientific and lacks emphasis of study, so a method for analyzing clone code Bugs bias based on evolutionary model is proposed. Firstly, the independent development tool CloneCodeTracker is used to conduct clone evolution trace. It makes statistics of fixed clone code Bugs according to code modify logs, and discusses Bugs proneness of clone code in different evolution mode from various perspective. The experiment is made on nearly 20 thousand versions of 12 different softwares. The results show that under the perspective of clone group, complex evolution mode represents stronger Bugs proneness, and Bugs proneness of merge evolution model is higher than other model. However, in view of clone fragments, higher Bugs proneness is expressed in remove evolution model than those in other evolution mode. And under the perspective of clone code itself, Bugs proneness remains stable between consistence and inconsistence evolution mode. These conclusions will provide support for clone refactor and management, such as, clone code of complex evolution model, merge evolution model, and remove evolution model has high priority of refactoring.
Key words: clone code, Bugs-proneness, evolution pattern, clone management
摘要: 针对当前克隆代码管理不科学,没有侧重点,提出基于演化模式克隆代码Bugs倾向性分析方法。首先使用自主研发工具CloneCodeTracker跟踪克隆演化,然后结合克隆代码Bugs修复数据分视角讨论不同演化模式下克隆代码Bugs倾向性。经过对12款软件近2万个版本实验,结果表明:克隆群视角下复杂演化模式Bugs倾向性最高,合并演化模式Bugs倾向性较高;克隆片段视角下去除演化模式Bug倾向性明显高于其他演化模式;克隆代码内容视角下一致变化演化模式与不一致变化模式Bugs倾向性差别不明显。这些结论可以为克隆重构、克隆管理提供建议,例如,选择复杂演化模式,合并演化模式,去除演化模式的克隆代码优先重构。
关键词: 克隆代码, Bugs倾向性, 演化模式, 克隆管理
GE Guangshuai, YAN Sheng, LIU Dongsheng, ZHANG Liping. Comparative study on Bugs-proneness of different evolution pattern of clone code[J]. Computer Engineering and Applications, 2018, 54(13): 59-66.
葛广帅,闫 盛,刘东升,张丽萍. 基于演化模式克隆代码Bugs倾向性分析[J]. 计算机工程与应用, 2018, 54(13): 59-66.
0 / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://cea.ceaj.org/EN/10.3778/j.issn.1002-8331.1705-0374
http://cea.ceaj.org/EN/Y2018/V54/I13/59