Loading…
HSFal: Effective fault localization using hybrid spectrum of full slices and execution slices
•A novel fault localization approach (HSS) based on compounding full slices and execution slices.•A maximal risk evaluation formula which is theoretically proved, for calculating suspiciousness based on a hybrid spectrum of full slices and execution slices.•A prototype tool HSFal (hybrid slice spect...
Saved in:
Published in: | The Journal of systems and software 2014-04, Vol.90, p.3-17 |
---|---|
Main Authors: | , , , , , |
Format: | Article |
Language: | English |
Subjects: | |
Citations: | Items that this one cites Items that cite this one |
Online Access: | Get full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Summary: | •A novel fault localization approach (HSS) based on compounding full slices and execution slices.•A maximal risk evaluation formula which is theoretically proved, for calculating suspiciousness based on a hybrid spectrum of full slices and execution slices.•A prototype tool HSFal (hybrid slice spectrum fault locator) to implement our proposed approach.•An empirical evaluation of proposed approach comparing with coverage-based approaches and slice-based approaches.
Most of the existing fault localization approaches use execution coverage of test cases to isolate the suspicious codes that likely contain faults. Program slicing can extract the dependencies of program entities with respect to a specific criterion. Therefore this technique is expected to have a beneficial effect on fault localization. In this paper, we propose a novel approach using a hybrid spectrum of full slices and execution slices to improve the effectiveness of fault localization. In particular, our approach firstly computes full slices of failed test cases and execution slices of passed test cases respectively. Secondly it constructs the hybrid spectrum by intersecting full slices and execution slices. Finally it computes the suspiciousness of each statement in the hybrid slice spectrum and generates a fault location report with descending suspiciousness of each statement. We also implement our proposed approach in our prototype tool HSFal by Java programming language. To verify the effectiveness of our approach, we performed an empirical study by the prototype on several widely used open source programs. Our approach is compared with eight representative coverage-based and slice-based fault localization approaches. Final experimental results show that our proposed approach is more effective in fault localization than other compared approaches, and can reduce almost 2.98–31.79% of the average cost of examined code significantly. |
---|---|
ISSN: | 0164-1212 1873-1228 |
DOI: | 10.1016/j.jss.2013.11.1109 |