计算机工程与应用2018,Vol.54Issue(13):59-66,8.DOI:10.3778/j.issn.1002-8331.1705-0374
基于演化模式克隆代码Bugs倾向性分析
Comparative study on Bugs-proneness of different evolution pattern of clone code
摘要
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.关键词
克隆代码/Bugs倾向性/演化模式/克隆管理Key words
clone code/Bugs-proneness/evolution pattern/clone management分类
信息技术与安全科学引用本文复制引用
葛广帅,闫盛,刘东升,张丽萍..基于演化模式克隆代码Bugs倾向性分析[J].计算机工程与应用,2018,54(13):59-66,8.基金项目
国家自然科学基金(No.61462071,No.61363017). (No.61462071,No.61363017)