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

基于软件历史仓库和抽象语法树的相似缺陷识别方法
引用本文:刘秀梅,赵克勤,王传斌.基于软件历史仓库和抽象语法树的相似缺陷识别方法[J].系统工程与电子技术,2009,31(10):2399-2408.
作者姓名:刘秀梅  赵克勤  王传斌
作者单位:1. 哈尔滨工业大学计算机科学与技术学院, 黑龙江 哈尔滨 150001;2. 哈尔滨华德学院计算机科学与技术系, 黑龙江 哈尔滨 150001
基金项目:连云港师范高等专科学校校级课题 
摘    要:软件开发过程中,软件开发人员常常通过搜索软件历史仓库(historical software repository, HSR),再经复制/粘贴以实现软件复用。HSR中会保存被复用的代码的缺陷及修复信息,辅助处理相似缺陷。基于此,提出一种基于HSR挖掘的相似缺陷识别方法。首先,基于变更日志的分析,从HSR中提取出已知缺陷的模块,建立bug模块库。然后,采用基于抽象语法树(abstract syntax tree, AST)的相似代码检测方法,识别待测试软件与bug模块库中相似的代码,并借助HSR中保存的相应缺陷及修复信息,完成待测试软件中可能包含潜在缺陷的模块的识别。同时,为提高相似代码的识别精度,优化基于AST的代码特征度量。在18个C程序、164对克隆代码上进行实验,结果表明所提方法能够识别出全部相似代码且性能优于已有工具。在人工构建的bug模块库上验证了代码相似性对相似缺陷识别的作用。最后,在8个真实的大型C项目上进行验证,平均缺陷召回率达到94%,表明挖掘HSR可以有效地为跨项目传播的相似代码提供缺陷理解支持。

关 键 词:软件复用  软件历史仓库  克隆代码  相似缺陷  抽象语法树  
收稿时间:2008-08-12

New multiple attribute decision-making model with triangular fuzzy numbers based on connection numbers
LIU Xiu-mei,ZHAO Ke-qin,WANG Chuan-bin.New multiple attribute decision-making model with triangular fuzzy numbers based on connection numbers[J].System Engineering and Electronics,2009,31(10):2399-2408.
Authors:LIU Xiu-mei  ZHAO Ke-qin  WANG Chuan-bin
Institution:1. School of Computer Science and Technology, Harbin Institute of Technology, Harbin 150001, China;2. Department of Computer Science and Technology, Harbin Huade University, Harbin 150001, China
Abstract:To study the fuzzy multiple attribute decision-making problem that the attribute weights and the attribute values are both indicated in the forms of triangular fuzzy numbers,a method to solve fuzzy multi-attribute decision-making problem denoted by triangular fuzzy numbers based on connection number is presented.By applying the uncertainty systems theory in the set-pair-analysis,the median,and the interval of values prescribed by supremum and infimum of the triangular fuzzy numbers,the triangular fuzzy numbers are transformed into connection numbers,and the program of making is given.The median and the supremum and infimum of the triangular fuzzy numbers are used in the model,it is more objective.A practical example indicates the method is simple and credible.
Keywords:software reuse  historical software repository (HSR)  clone code  similar bug  abstract syntax tree (AST)  
本文献已被 万方数据 等数据库收录!
点击此处可从《系统工程与电子技术》浏览原始摘要信息
点击此处可从《系统工程与电子技术》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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