DocumentCode
1399306
Title
Deriving a Slicing Algorithm via FermaT Transformations
Author
Ward, M.P. ; Zedan, H.
Author_Institution
De Montfort Univ., Durham, UK
Volume
37
Issue
1
fYear
2011
Firstpage
24
Lastpage
47
Abstract
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.
Keywords
formal specification; program slicing; FermaT transformations; WSL specification statement; program slicing; program transformation; semantic slicing; slicing algorithm; Program slicing; algorithm derivation.; formal methods; program transformations;
fLanguage
English
Journal_Title
Software Engineering, IEEE Transactions on
Publisher
ieee
ISSN
0098-5589
Type
jour
DOI
10.1109/TSE.2010.13
Filename
5401170
Link To Document