Sciweavers

INFSOF
1998

Restructuring programs by tucking statements into functions

14 years 3 days ago
Restructuring programs by tucking statements into functions
Changing the internal structure of a program without changing its behavior is called restructuring. This paper presents a transformation called tuck for restructuring programs by decomposing large functions into small functions. Tuck consists of three steps: Wedge, Split, and Fold. A wedge—a subset of statements in a slice—contains computations that are related and that may create a meaningful function. The statements in a wedge are split from the rest of the code and folded into a new function. A call to the new function is placed in the now restructured function. That tuck does not alter the behavior of the original function follows from the semantic preserving properties of a slice.
Arun Lakhotia, Jean-Christophe Deprez
Added 22 Dec 2010
Updated 22 Dec 2010
Type Journal
Year 1998
Where INFSOF
Authors Arun Lakhotia, Jean-Christophe Deprez
Comments (0)