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

由分类算法学习软件错误定位的关联测度
引用本文:张志宏,何海江,刘华富.由分类算法学习软件错误定位的关联测度[J].四川大学学报(自然科学版),2017,54(4):728-734.
作者姓名:张志宏  何海江  刘华富
作者单位:长沙学院,,长沙学院
基金项目:国家自然科学基金(61379117);湖南省科技计划项目(2015GK3071);湖南省教育厅科学研究项目(15B026);长沙市科技计划项目(ZD1601034);长沙学院人才引进科研项目(SF1404)
摘    要:基于谱的错误定位(SBFL)技术能找出导致程序出错的可执行代码.测试用例数目和覆盖语句次数可构造SBFL的二分型矩阵.利用该矩阵,人们提出许多的SBFL关联测度计算公式.然而,这些关联测度往往只适应部分程序集.因此,提出基于分类算法的技术,能学习到程序集特有的关联测度.训练集样本建立在成对的错误语句和正确语句上,其特征由语句对的条件概率相减而成.为证实技术的有效性,在Siemens套件、space和gzip三个基准数据集上完成实验.使用Weka的Logistic、SGD、SMO和LibLinear训练出的关联测度,性能都明显优于固定形式的SBFL测度.

关 键 词:分类算法  特征  错误定位  程序谱  关联测度  软件测试
收稿时间:2016/11/21 0:00:00
修稿时间:2017/5/8 0:00:00

Learning association measures of software fault localization with classification algorithms
ZHANG Zhi-Hong,HE Hai-Jiang and LIU Hua-Fu.Learning association measures of software fault localization with classification algorithms[J].Journal of Sichuan University (Natural Science Edition),2017,54(4):728-734.
Authors:ZHANG Zhi-Hong  HE Hai-Jiang and LIU Hua-Fu
Institution:College of Computer Engineering and Applied Mathematics, Changsha University,College of Computer Engineering and Applied Mathematics, Changsha University and College of Computer Engineering and Applied Mathematics, Changsha University
Abstract:Spectrum-based fault localization (SBFL) techniques aim at identifying the executing programs codes that correlate with failure. A dichotomy matrix for SBFL records the bivariate frequency distribution of the test case results and the program element hit numbers. Given the matrix, many SBFL association measures are proposed to compute suspiciousness scores of the program elements. Research shows that any association measure can''t be statistically better than other measures when localizing buggy program. Therefore, a technique based the classification algorithm is proposed which can automatically learn the specific measure for a program set. A sample in training dataset is constructed by employing a pair of faulty statement and non-faulty statement ones, and its features are the probability features difference of two statements. It is evaluated with three benchmark datasets: Siemens suite, space and gzip. Experimental result indicates that the learned measures with LibLinear, Logistic, SGD and SMO of Weka outperformed existing SBFL association measures.
Keywords:classification algorithm  feature  fault localization  program spectra  association measure  software testing
本文献已被 CNKI 等数据库收录!
点击此处可从《四川大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《四川大学学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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