Issue No.01 - January/February (2011 vol.37)
Martin P. Ward , De Montfort University, Leicester
Hussein Zedan , De Montfort University, Leicester
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/TSE.2010.13
In this paper, we present a case study in deriving an algorithm from a formal specification via FermaT transformations. The general method (which is presented in a separate paper) is extended to a method for deriving an implementation of a program transformation from a specification of the program transformation. We use program slicing as an example transformation since this is of interest outside the program transformation community. We develop a formal specification for program slicing in the form of a WSL specification statement which is refined into a simple slicing algorithm by applying a sequence of general purpose program transformations and refinements. Finally, we show how the same methods can be used to derive an algorithm for semantic slicing. The main novel contributions of this paper are: 1) developing a formal specification for slicing, 2) expressing the definition of slicing in terms of a WSL specification statement, and 3) by applying correctness preserving transformations to the specification, we can derive a simple slicing algorithm.
Program slicing, program transformations, formal methods, algorithm derivation.
Martin P. Ward, Hussein Zedan, "Deriving a Slicing Algorithm via FermaT Transformations", IEEE Transactions on Software Engineering, vol.37, no. 1, pp. 24-47, January/February 2011, doi:10.1109/TSE.2010.13