首页 | 本学科首页   官方微博 | 高级检索  
     

基于演化模式克隆代码Bugs倾向性分析
引用本文:葛广帅,闫 盛,刘东升,张丽萍.基于演化模式克隆代码Bugs倾向性分析[J].计算机工程与应用,2018,54(13):59-66.
作者姓名:葛广帅  闫 盛  刘东升  张丽萍
作者单位:内蒙古师范大学 计算机与信息工程学院,呼和浩特 010022
摘    要:针对当前克隆代码管理不科学,没有侧重点,提出基于演化模式克隆代码Bugs倾向性分析方法。首先使用自主研发工具CloneCodeTracker跟踪克隆演化,然后结合克隆代码Bugs修复数据分视角讨论不同演化模式下克隆代码Bugs倾向性。经过对12款软件近2万个版本实验,结果表明:克隆群视角下复杂演化模式Bugs倾向性最高,合并演化模式Bugs倾向性较高;克隆片段视角下去除演化模式Bug倾向性明显高于其他演化模式;克隆代码内容视角下一致变化演化模式与不一致变化模式Bugs倾向性差别不明显。这些结论可以为克隆重构、克隆管理提供建议,例如,选择复杂演化模式,合并演化模式,去除演化模式的克隆代码优先重构。

关 键 词:克隆代码  Bugs倾向性  演化模式  克隆管理  

Comparative study on Bugs-proneness of different evolution pattern of clone code
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.
Authors:GE Guangshuai  YAN Sheng  LIU Dongsheng  ZHANG Liping
Affiliation:College of Computer and Information Engineering, Inner Mongolia Normal University, Hohhot 010022, China
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.
Keywords:clone code  Bugs-proneness  evolution pattern  clone management  
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号