Abstract
The aim of this paper is to integrate the strong points of statistical debugging and program slicing techniques for efficient program fault localization. The dynamic slices could be inappropriately large including redundant information considering that the statements are not ranked according to their fault relevance in the computed slice. On the other hand, the conventional statistical debugging techniques do not consider the dependence relationships between the faulty code (i.e., the cause) and the erroneous output (i.e., the effect). This information is very useful during the debugging. In this paper, a new method Stat-Slice for locating the latent bugs in programs is presented which could find a wider range of bugs, e.g. the omitted code faults, the header file faults, and etc., comparing with other techniques. Unlike the traditional program slicing techniques, the proposed method computes the backward dynamic slices of several failing and passing runs. Using K-means clustering in addition to a new ranking and pruning technique, we prioritize statements according to their likelihood to be the cause for failure. Our experiments on Siemens, grep, gzip, and flex test suites manifest that ranking statements according to their suspiciousness has considerably reduced the effort for fault localization.
Keywords
MSC
68-N99
Cite this article
@article{cai-1284,
author = {Saeed Parsa and Mojtaba Vahidi-Asl and Farzaneh Zareie},
title = {Statistical Based Slicing Method for Prioritizing Program Fault Relevant Statements},
journal = {Computing and Informatics},
volume = {34},
number = {4},
pages = {823--857},
year = {2015},
issn = {1335-9150},
url = {https://cai.type.sk/content/2015/4/statistical-based-slicing-method-for-prioritizing-program-fault-relevant-statements/}
}
TY - JOUR AU - Saeed Parsa AU - Mojtaba Vahidi-Asl AU - Farzaneh Zareie TI - Statistical Based Slicing Method for Prioritizing Program Fault Relevant Statements JO - Computing and Informatics VL - 34 IS - 4 SP - 823 EP - 857 PY - 2015 SN - 1335-9150 UR - https://cai.type.sk/content/2015/4/statistical-based-slicing-method-for-prioritizing-program-fault-relevant-statements/ KW - Fault localization KW - dynamic slicing KW - statistical debugging KW - clustering KW - Pearson KW - fault ER -
Parsa, S., Vahidi-Asl, M., & Zareie, F. (2015). Statistical Based Slicing Method for Prioritizing Program Fault Relevant Statements. Computing and Informatics, 34(4), 823–857. https://cai.type.sk/content/2015/4/statistical-based-slicing-method-for-prioritizing-program-fault-relevant-statements/