Parametric program slicing
John Field, Ganesan Ramalingam, Frank Tip · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · 1995
Program slicing is a technique for isolating computational threads in programs. In this paper, we show how to mechanically extract a family of practical algorithms for computing slices directly from semantic specifications. These algorithms are based on combining the notion of dynamic dependence tracking in term rewriting systems with a program representation whose behavior is defined via an equational logic. Our approach is distinguished by the fact that changes to the behavior of the slicing algorithm can be accomplished through simple changes in rewriting rules that define the semantics of the program representation. Thus, e.g., different notions of dependence may be specified, properties of language-specific datatypes can be exploited, and various time, space, and precision tradeoffs may be made. This flexibility enables us to generalize the traditional notions of static and dynamic slices to that of a constrained slice, where any subset of the inputs of a program may be supplied.
Cited by 110 works. doi:10.1145/199448.199534 Open-access PDF
Authors
References
- Program Slicing
- The program dependence graph and its use in optimization
- Efficiently computing static single assignment form and the control dependence graph
- Constant propagation with conditional branches
- Integrating noninterfering versions of programs
- Dynamic program slicing
- A Survey of Program Slicing Techniques.
- Using program slicing in software maintenance
- A safe approximate algorithm for interprocedural aliasing
- A safe approximate algorithm for interprocedural pointer aliasing