arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.11526cs.SE
收藏

基于变量的改进型决策树故障定位

Variable-Based Fault Localization via Enhanced Decision Tree

Jiajun Jiang, Yumeng Wang, Junjie Chen, Delin Lv, Mengjiao Liu

摘要:

故障定位是一个长期存在的研究课题,其目的是定位缺陷修复的根本原因。虽然在过去的几十年里已经提出了许多方法,大多数现有的研究工作在粗粒度的语句或方法的水平非常有限的见解如何修复错误(粒度问题),但很少有研究针对细粒度的故障定位。本文针对粒度问题,提出了一种新的更细粒度的变级别故障定位技术。具体而言,我们设计了一个程序依赖增强的决策树模型,以提高识别故障相关的变量,通过区分失败和通过测试用例的变量值的基础上。为了评估我们的方法的有效性,我们在一个名为VARDT的工具中实现了它,并对Defects 4J基准进行了广泛的研究。结果表明,VARDT优于国家的最先进的故障定位方法,至少有247.8%的改善方面的错误位于Top-1,平均改善330.5%。此外,为了研究我们的细粒度故障定位结果是否可以进一步提高下游APR技术的有效性,我们将VARDT应用于补丁滤波,其中VARDT通过过滤26.0%以上的不正确补丁而优于最先进的PATCH-SIM。实验结果证明了该方法的有效性,同时也为改进程序自动修复技术提供了一种新的思路。

英文摘要:

Fault localization, aiming at localizing the root cause of the bug under repair, has been a longstanding research topic. Although many approaches have been proposed in the last decades, most of the existing studies work at coarse-grained statement or method levels with very limited insights about how to repair the bug (granularity problem), but few studies target the finer-grained fault localization. In this paper, we target the granularity problem and propose a novel finer-grained variable-level fault localization technique. Specifically, we design a program-dependency-enhanced decision tree model to boost the identification of fault-relevant variables via discriminating failed and passed test cases based on the variable values. To evaluate the effectiveness of our approach, we have implemented it in a tool called VARDT and conducted an extensive study over the Defects4J benchmark. The results show that VARDT outperforms the state-of-the-art fault localization approaches with at least 247.8% improvements in terms of bugs located at Top-1, and the average improvements are 330.5%. Besides, to investigate whether our finer-grained fault localization result can further improve the effectiveness of downstream APR techniques, we have adapted VARDT to the application of patch filtering, where VARDT outperforms the state-of-the-art PATCH-SIM by filtering 26.0% more incorrect patches. The results demonstrate the effectiveness of our approach and it also provides a new way of thinking for improving automatic program repair techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑