Semantic Correctness of Dependence-based Slicing for Interprocedural, Possibly Nonterminating Programs
Open Access
- 31 December 2020
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 42 (4) , 1-56
Abstract
Existing proofs of correctness for dependence-based slicing methods are limited either to the slicing of intraprocedural programs [2, 39], or the proof is only applicable to a specific slicing method [4, 41]. We contribute a general proof of correctness for dependence-based slicing methods such as Weiser [50, 51], or Binkley et al. [7, 8], for interprocedural, possibly nonterminating programs. The proof uses well-formed weak and strong control closure relations, which are the interprocedural extensions of the generalised weak/strong control closure provided by Danicic et al. [13], capturing various nonterminating-insensitive and nontermination-sensitive control-dependence relations that have been proposed in the literature. Thus, our proof framework is valid for a whole range of existing control-dependence relations. We have provided a definition of semantically correct (SC) slice. We prove that SC slices agree with Weiser slicing, that deterministic SC slices preserve termination, and that nondeterministic SC slices preserve the nondeterministic behavior of the original programs.Keywords
Funding Information
- KK-stiftelsen finansierar (16492 HERO)
This publication has 40 references indexed in Scilit:
- Slicing for modern program structures: a theory for eliminating irrelevant loopsInformation Processing Letters, 2008
- Conditioned semantic slicing for abstraction; industrial experimentSoftware: Practice and Experience, 2008
- A new foundation for control dependence and slicing for modern program structuresACM Transactions on Programming Languages and Systems, 2007
- A formalisation of the relationship between forms of program slicingScience of Computer Programming, 2006
- Slicing programs with arbitrary control-flow2005
- Slicing java programs that throw and catch exceptionsACM SIGPLAN Notices, 2003
- Optimal control dependence computation and the Roman chariots problemACM Transactions on Programming Languages and Systems, 1997
- Precise executable interprocedural slicesACM Letters on Programming Languages and Systems, 1993
- The program dependence graph in a software development environmentACM SIGSOFT Software Engineering Notes, 1984
- On the total correctness of nondeterministic programsTheoretical Computer Science, 1981