srcSlice: very efficient and scalable forward static slicing
- 19 May 2014
- journal article
- research article
- Published by Wiley in Journal of Software: Evolution and Process
- Vol. 26 (11) , 931-961
Abstract
A highly efficient lightweight forward static slicing approach is presented and evaluated. The approach does not compute the program/system dependence graph but instead dependence and control information is computed as needed while computing the slice on a variable. The result is a list of line numbers, dependent variables, aliases, and function calls that are part of the slice for all variables (both local and global) for the entire system. The method is implemented as a tool, called srcSlice, on top of srcML, an XML representation of source code. The approach is highly scalable and can generate the slices for all variables of the Linux kernel in approximately 20 min on a typical desktop. Benchmark results are compared with the CodeSurfer slicing tool from GrammaTech Inc., and the approach compares well with regard to accuracy of slices. Copyright © 2014 John Wiley & Sons, Ltd.Keywords
Funding Information
- National Science Foundation (13-05292/05217)
This publication has 62 references indexed in Scilit:
- State-based model slicingACM Computing Surveys, 2013
- Assessing the impact of global variables on program dependence and dependence clustersJournal of Systems and Software, 2009
- An empirical study of static program slice sizeACM Transactions on Software Engineering and Methodology, 2007
- A study of effectiveness of dynamic slicing in locating real faultsEmpirical Software Engineering, 2006
- A new algorithm for slicing unstructured programsJournal of Software Maintenance: Research and Practice, 1998
- Effective whole-program analysis in the presence of pointersACM SIGSOFT Software Engineering Notes, 1998
- An empirical study of static call graph extractorsACM Transactions on Software Engineering and Methodology, 1998
- Computation of dynamic program slices for unstructured programsIEEE Transactions on Software Engineering, 1997
- A parallel algorithm for static program slicingInformation Processing Letters, 1995
- The program dependence graph in a software development environmentACM SIGSOFT Software Engineering Notes, 1984