arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2101.03008cs.SE
收藏

程序切片故障定位的实证分析

Locating Faults with Program Slicing: An Empirical Analysis

Ezekiel Soremekun, Lukas Kirschner, Marcel Böhme, Andreas Zeller

摘要:

统计故障定位是一种易于部署的技术,用于快速确定故障代码位置的候选者。但是,如果人类程序员必须在顶部候选位置之外搜索故障,那么沿着动态切片跟踪依赖关系的更传统的技术可能更适合。在一个大型的研究457错误(369单故障和88多故障)在46个开源C程序,我们比较了统计故障定位的有效性,对动态切片。对于单个故障,我们发现,动态切片比最佳性能的统计调试公式更有效8个百分点;对于66%的错误,动态切片比最佳性能的统计调试公式更早发现故障。在我们的评估中,动态切片是更有效的程序与单故障,但统计调试执行更好的多故障。然而,最好的结果是通过混合方法获得的:如果程序员首先从统计调试中检查最多前五个最可疑的位置,然后切换到动态切片,平均而言,他们将需要检查15%(30行)的代码。这些发现适用于18个最有效的统计调试公式,我们的结果与故障数量(即单个或多个故障)和错误类型(即人为或真实错误)无关。

英文摘要:

Statistical fault localization is an easily deployed technique for quickly determining candidates for faulty code locations. If a human programmer has to search the fault beyond the top candidate locations, though, more traditional techniques of following dependencies along dynamic slices may be better suited. In a large study of 457 bugs (369 single faults and 88 multiple faults) in 46 open source C programs, we compare the effectiveness of statistical fault localization against dynamic slicing. For single faults, we find that dynamic slicing was eight percentage points more effective than the best performing statistical debugging formula; for 66% of the bugs, dynamic slicing finds the fault earlier than the best performing statistical debugging formula. In our evaluation, dynamic slicing is more effective for programs with single fault, but statistical debugging performs better on multiple faults. Best results, however, are obtained by a hybrid approach: If programmers first examine at most the top five most suspicious locations from statistical debugging, and then switch to dynamic slices, on average, they will need to examine 15% (30 lines) of the code. These findings hold for 18 most effective statistical debugging formulas and our results are independent of the number of faults (i.e. single or multiple faults) and error type (i.e. artificial or real errors).

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

↑