Skip to main content

Research Repository

Advanced Search

Some notes on interprocedural program slicing

Gallagher, K.B.

Some notes on interprocedural program slicing Thumbnail


Authors

K.B. Gallagher



Abstract

Weiser's algorithm for computing interprocedural slices has a serious drawback: it generates spurious criteria which are not feasible in the control flow of the program. When these extraneous criteria are used the slice becomes imprecise in that it has statements that are not relevant to the computation. Horwitz, Reps and Binkley solved this problem by devising the System Dependence Graph with an associated algorithm that produced more precise interprocedural slices. We take a ``step backward'' and show how to generate exactly the interprocedural slicing criteria needed, using the program's call graph or a stack. This technique can also be used on a family of program dependence graphs that represent all procedures in a program and are not interconnected by a system dependence graph. Then we show how to use the Horwitz, Reps and Binkley interprocedural slicing algorithm to generate criteria and show that the criteria so generated are equal to those generated by the call-graph/stack technique. Thus we present alternative, equivalent ways to generate precise slicing criteria across procedure boundaries. And finally we show that under certain circumstances, Weiser's technique for slicing across procedures is a bit ``too strong,'' for it always generates sufficient criteria to obtain the entire program as a slice on any criteria.

Citation

Gallagher, K. (2004). Some notes on interprocedural program slicing. . https://doi.org/10.1109/scam.2004.21

Conference Name 4th IEEE International Workshop on Source Code Analysis and Manipulation : SCAM-4.
Conference Location Chicago, Illinois
Start Date Sep 15, 2004
End Date Sep 16, 2004
Publication Date 2004-09
Deposit Date May 27, 2008
Publicly Available Date May 27, 2008
Publisher Institute of Electrical and Electronics Engineers
Pages 36-42
DOI https://doi.org/10.1109/scam.2004.21
Keywords Algorithm, System dependence graph.
Publisher URL http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?isnumber=30171&arnumber=1386157&count=17&index=4
Additional Information 15-16 Sept. 2004.

Files

Published Conference Proceeding (125 Kb)
PDF

Copyright Statement
©2004 IEEE. Personal use of this material is permitted. However, permission to reprint/republish this material for advertising or promotional purposes or for creating new collective works for resale or redistribution to servers or lists, or to reuse any copyrighted component of this work in other works must be obtained from the IEEE.




You might also like



Downloadable Citations