| 注册
首页|期刊导航|计算机应用研究|克隆代码分析方法研究

克隆代码分析方法研究

王克朝 朱宸光 王甜甜 苏小红

计算机应用研究2017,Vol.34Issue(3):748-751,4.
计算机应用研究2017,Vol.34Issue(3):748-751,4.DOI:10.3969/j.issn.1001-3695.2017.03.025

克隆代码分析方法研究

Research on code clone analysis approach

王克朝 1朱宸光 2王甜甜 3苏小红2

作者信息

  • 1. 哈尔滨学院软件学院,哈尔滨150086
  • 2. 哈尔滨工业大学计算机科学与技术学院,哈尔滨150001
  • 3. 哈尔滨工业大学软件学院,哈尔滨150001
  • 折叠

摘要

Abstract

Most existing clone detection tools only output the detection results in the form of clone sets,lacking clone analysis.To solve this problem,this paper proposed a key clone recognition approach.The approach could analysis the clones which decreased the quality of software.Firstly,this approach defined a unified clone representation form to support the analysis of various clone detection tools.Then,the approach analysed the source code and clone detection results to detect identifier renaming inconsistent clones,which were potential bugs.Next,the approach detected the clones diffusing in various functional different files,which might decrease the maintainability of software.Finally,the approach visually analysed the detection results.The proposed analysis tool analyzed the open source code httpd,which detected 1 identifier renaming inconsistent clone,and 44 clones diffusing in various functional different files.The experimental results show that it can facilitate the analysis and maintenance of code clones.

关键词

克隆代码/克隆代码分析/克隆代码维护/缺陷检测

Key words

code clones/clone analysis/clone maintenance/bug detection

分类

信息技术与安全科学

引用本文复制引用

王克朝,朱宸光,王甜甜,苏小红..克隆代码分析方法研究[J].计算机应用研究,2017,34(3):748-751,4.

基金项目

哈尔滨科技创新人才研究专项资金资助项目(2016RAQXJ013,2014RFQXJ062) (2016RAQXJ013,2014RFQXJ062)

国家自然科学基金资助项目(61202092,61173021) (61202092,61173021)

高等学校博士学科点专项科研基金资助项目(20112302120052) (20112302120052)

黑龙江省普通高校青年学术骨干资助项目(1254G037) (1254G037)

黑龙江省自然科学基金资助项目(F201127) (F201127)

计算机应用研究

OA北大核心CSCDCSTPCD

1001-3695

访问量3
|
下载量0
段落导航相关论文