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

组合认知复杂度的程序谱软件错误定位方法
引用本文:何海江.组合认知复杂度的程序谱软件错误定位方法[J].计算机应用研究,2021,38(11):3393-3397.
作者姓名:何海江
作者单位:长沙学院计算机工程与应用数学学院,长沙410022
基金项目:湖南省科技计划项目(2015GK3071)
摘    要:基于程序谱的软件错误定位(spectrum-based fault localization,SBFL)技术收集测试用例结果和语句覆盖信息,用以计算每条语句的可疑度值.认知复杂度是软件复杂性度量工具,其值高的代码较易出错.为提升错误定位性能,提出一种语句级认知复杂度和SBFL相组合的方法对语句排序.当多条语句可疑度值相等时,新方法优先检查认知复杂度高的语句.测试数据集有925个错误版本,包含Java、C和C++项目.实验结果证实,加入认知复杂度后,传统的SBFL技术能减少待排查语句.

关 键 词:错误定位  程序谱  语句可疑度  认知复杂度
收稿时间:2021/3/31 0:00:00
修稿时间:2021/10/12 0:00:00

Technique of spectrum-based fault localization using cognitive complexity
He haijiang.Technique of spectrum-based fault localization using cognitive complexity[J].Application Research of Computers,2021,38(11):3393-3397.
Authors:He haijiang
Affiliation:College of Computer Engineering and Applied Mathematics,Changsha University
Abstract:Spectrum-based fault localization(SBFL) technology collects test case results and statements coverage information to calculate the suspiciousness of each statement. Cognitive complexity is a software complexity metric, and the code with high value is prone to make mistakes. In order to improve the performance of fault localization, this paper proposed a method combining statement level cognitive complexity and SBFL to rank statements. When two or more statements were assigned the same suspiciousness, the method calculated cognitive complex values of every statement. The higher cognitive complexity value corresponding to statement, the more likely that it contained a bug. This test dataset has 925 wrong edition, includes Java projects, C projects and C++ projects. Experimental result demonstrates that the proposed method reduces fault localization cost that exists in SBFL approaches.
Keywords:fault localization  program spectrum  suspiciousness of statement  cognitive complexity
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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