基于语句类型优先级的故障定位方法实证分析
CSTR:
作者:
作者单位:

国防科技创新研究院

作者简介:

通讯作者:

中图分类号:

基金项目:


An Empirical Study on Types of Statements for Statement-Level Defect Prediction
Author:
Affiliation:

National Defense Science and Technology Innovation Research Institute

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    准确的故障定位对软件调试至关重要。现有方法多依赖测试用例的动态执行信息或源代码的静态特征,但语句类型与故障率之间的定量关系尚未明确。本文通过定量分析发现,语句类型对故障率有显著影响。因此,本文提出一种基于语句类型优先级的混合故障定位方法,该方法首先利用现有故障定位技术计算软件故障概率,然后基于每种语句类型的相对错误率(本文实证研究结果)为每个可疑语句重新计算故障概率和分配优先级。实验表明,该方法显著提升了现有故障定位方法的性能,与基于频谱的故障定位和基于变异的故障定位方法相比,Top-1故障召回率分别提高43.5%和36.8%。这一发现为语句级细粒度故障定位提供了新的研究方向和实践价值。

    Abstract:

    Accurate fault localization is crucial for software debugging.Existing methods predominantly rely on dynamic execution information from test cases or static features of source code; however,the quantitative relationship between statement types and fault proneness has not been clearly established.Through quantitative analysis,this study reveals that statement types significantly influence fault rates.Consequently,a hybrid fault localization method is proposed,based on statement type priority.This approach first leverages existing fault localization techniques to compute the initial suspicion score for each statement.It then recalculates the fault probability and reorders the priorities of these suspicious statements based on the relative fault rate of each statement type,which is derived from our empirical study.Experimental results demonstrate that our method significantly enhances the performance of existing fault localization techniques.Compared with the approaches of Spectrum-Based Fault Localization and mutation-Based Fault Localization,the approach proposed can improve the Top-1 fault recall rate by 43.5% and 36.8%,respectively.These findings open up a new research direction and offer practical value for fine-grained,statement-level fault localization.

    参考文献
    相似文献
    引证文献
引用本文
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2025-01-02
  • 最后修改日期:2025-03-31
  • 录用日期:
  • 在线发布日期: 2026-01-12
  • 出版日期:
文章二维码