DocumentCode :
2224024
Title :
Loop squashing transformations for amorphous slicing
Author :
Hu, Lin ; Harman, Mark ; Hierons, Robert M. ; Binkley, David
Author_Institution :
Brunel Univ., Uxbridge, UK
fYear :
2004
fDate :
8-12 Nov. 2004
Firstpage :
152
Lastpage :
160
Abstract :
Program slicing is a source code extraction technique that can be used to support reverse engineering by automatically extracting executable subprograms that preserve some aspect of the original program´s semantics. Although minimal slices are not generally computable, safe approximate algorithms can be used to good effect. However, the precision of such slicing algorithms is a major factor in determining the value of slicing for reverse engineering. Amorphous slicing has been proposed as a way of reducing the size of a slice. Amorphous slices preserve the aspect of semantic interest, but not the syntax that denotes it, making them generally smaller than their syntactically restricted counterparts. Amorphous slicing is suitable for many reverse engineering applications, since reverse engineering typically abandons the existing syntax to facilitate structural improvements. Previous work on amorphous slicing has not attempted to exploit its potential to apply loop-squashing transformations. This paper presents an algorithm for amorphous slicing of loops, which identifies induction variables, transformation rule templates and iteration-determining compile-time expressions. The algorithm uses these to squash certain loops into conditional assignments. The paper also presents an inductive proof of the rule templates and illustrates the application of the algorithm with a detailed example of loop squashing.
Keywords :
program control structures; program slicing; reverse engineering; amorphous slicing; conditional assignments; executable subprogram extraction; iteration-determining compile-time expressions; loop squashing transformations; program semantics; program slicing; reverse engineering; source code extraction; transformation rule templates; Amorphous materials; Educational institutions; Reverse engineering; Testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Reverse Engineering, 2004. Proceedings. 11th Working Conference on
ISSN :
1095-1350
Print_ISBN :
0-7695-2243-2
Type :
conf
DOI :
10.1109/WCRE.2004.26
Filename :
1374315
Link To Document :
بازگشت