Combining Slicing and Constraint Solving for Better Debugging: The CONBAS Approach
Authors:
Open Access
- 31 December 2012
- journal article
- research article
- Published by Wiley in Advances in Software Engineering
- Vol. 2012, 1-18
Abstract
Although slices provide a good basis for analyzing programs during debugging, they lack in their capabilities providing precise information regarding the most likely root causes of faults. Hence, a lot of work is left to the programmer during fault localization. In this paper, we present an approach that combines an advanced dynamic slicing method with constraint solving in order to reduce the number of delivered fault candidates. The approach is called Constraints Based Slicing (CONBAS). The idea behind CONBAS is to convert an execution trace of a failing test case into its constraint representation and to check if it is possible to find values for all variables in the execution trace so that there is no contradiction with the test case. For doing so, we make use of the correctness and incorrectness assumptions behind a diagnosis, the given failing test case. Beside the theoretical foundations and the algorithm, we present empirical results and discuss future research. The obtained empirical results indicate an improvement of about 28% for the single fault and 50% for the double-fault case compared to dynamic slicing approaches.Keywords
Funding Information
- Austrian Federal Ministry of Economy
- Family and Youth
- Province of Styria
- Steirische Wirtschaftsförderungsgesellschaft
- Center for Innovation and Technology
This publication has 19 references indexed in Scilit:
- Diagnosing multiple intermittent failures using maximum likelihood estimationArtificial Intelligence, 2010
- Automatic program repair with evolutionary computationCommunications of the ACM, 2010
- A practical evaluation of spectrum-based fault localizationJournal of Systems and Software, 2009
- Towards locating execution omission errorsACM SIGPLAN Notices, 2007
- A study of effectiveness of dynamic slicing in locating real faultsEmpirical Software Engineering, 2006
- Pruning dynamic slices with confidenceACM SIGPLAN Notices, 2006
- Simplifying and isolating failure-inducing inputIEEE Transactions on Software Engineering, 2002
- On the relationship between model-based debugging and program slicingArtificial Intelligence, 2002
- On the Relationship Between Abduction and DeductionJournal of Logic and Computation, 1991
- Programmers use slices when debuggingCommunications of the ACM, 1982