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

基于条件概率的错误定位方法
引用本文:黄晴雁,牟永敏. 基于条件概率的错误定位方法[J]. 科学技术与工程, 2019, 19(36): 217-224
作者姓名:黄晴雁  牟永敏
作者单位:北京信息科技大学计算机学院,北京 100192;北京信息科技大学计算机学院,北京 100192
基金项目:北京市自然科学基金重点研究专题项目(Z160002),网络文化与数字传播北京市重点实验室开放课题(ICDD2017XX)
摘    要:有效的软件调试是保证软件可靠性的关键。调试旨在发现程序中存在的错误并进行修复,其中错误定位最为烦琐,针对目前性能优异的基于程序频谱的定位方法展开研究。为了能直观地表现程序频谱与执行结果之间的联系,结合条件概率的思想对这种联系进行量化分析,并基于条件概率模型的特征提出了一种新的可疑度计算公式CPStar,该方法采用了不确定性系数Star,通过调节系数的大小提高公式的可用性,可以有效修正成功测试用例的数量对定位效果的不利影响。实验结果表明,提出的CPStar方法可以在一定程度上提高错误定位的准确性与效率,其定位效果优于其他方法。

关 键 词:软件调试  错误定位  程序频谱  条件概率  CPStar方法
收稿时间:2019-05-27
修稿时间:2019-07-04

Fault Localization Method Based on Conditional Probability
Huang Qingyan and. Fault Localization Method Based on Conditional Probability[J]. Science Technology and Engineering, 2019, 19(36): 217-224
Authors:Huang Qingyan and
Affiliation:Beijing Information Science and Technology University,
Abstract:Effective debugging can ensure the reliability of the software. The purpose of the debugging is to locate and repair errors in programs, and the process of locating is the most tedious. In this paper, the location method based on program spectrum with excellent performance was studied. To show the relationship between program spectrum and its execution results visually, this paper quantitatively analyzed the relationship based on conditional probability, and proposed a new method CPStar for suspicion calculation. Based on the uncertainty coefficient Star, this method can improve the usability of the formula by adjusting the size of the coefficient, and can effectively correct the negative impact of successful test cases on the location effect. Test results show that the proposed CPStar method can improve the accuracy and efficiency of error location to some extent, and its location effect is better than other methods.
Keywords:software debugging fault localization program spectrum conditional probability CPStar method
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《科学技术与工程》浏览原始摘要信息
点击此处可从《科学技术与工程》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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