Locating Faults with Program Slicing: An Empirical Analysis
Not on the map. Why?
Abstract (arXiv)
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).
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 8 Jan 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 2.
7 papers.
- 2025Who is Introducing the Failure? Automatically Attributing Failures of Multi-Agent Systems via Spectrum Analysiscited by 33
- 2025SweRank: Software Issue Localization with Code Rankingcited by 20
- 2026On the Role of Fault Localization Context for LLM-Based Program Repaircited by 3
- 2024CFaults: Model-Based Diagnosis for Fault Localization in C Programs with Multiple Test Casescited by 1
- 2025SLICEMATE: Accurate and Scalable Static Program Slicing via LLM-Powered Agentscited by 0
- 2025Model-Based Diagnosis with Multiple Observations: A Unified Approach for C Software and Boolean Circuitscited by 0
- 2026FLARE: Agentic Coverage-Guided Fuzzing for LLM-Based Multi-Agent Systemscited by 0
- 2026On the Role of Fault Localization Context for LLM-Based Program Repair7 Apr 2026
- 2026FLARE: Agentic Coverage-Guided Fuzzing for LLM-Based Multi-Agent Systems7 Apr 2026
- 2025Model-Based Diagnosis with Multiple Observations: A Unified Approach for C Software and Boolean Circuits2 Dec 2025
- 2025Who is Introducing the Failure? Automatically Attributing Failures of Multi-Agent Systems via Spectrum Analysis17 Sep 2025
- 2025SLICEMATE: Accurate and Scalable Static Program Slicing via LLM-Powered Agents25 Jul 2025
- 2025SweRank: Software Issue Localization with Code Ranking7 May 2025
- 2024CFaults: Model-Based Diagnosis for Fault Localization in C Programs with Multiple Test Cases12 Jul 2024