The Community for Technology Leaders
2013 20th Working Conference on Reverse Engineering (WCRE) (1999)
Atlanta, Georgia
Oct. 6, 1999 to Oct. 8, 1999
ISSN: 1095-1350
ISBN: 0-7695-0303-9
pp: 36
Jean-Christophe Deprez , University of Southwestern Louisiana
Arun Lakhotia , University of Southwestern Louisiana
ABSTRACT
We present a technique for restructuring functions with low cohesion into functions with high cohesion. Such restructuring is desirable when rearchitecting a legacy system into an object-oriented architecture. The restructured system has functions with higher cohesion and hence lower coupling. This enables finer-grained grouping of functions into objects.Automatically decomposing a function is difficult when its computations are interleaved. The challenge lies in programmatically identifying and separating the various activities performed by a complex code segment. The technique presented partitions the set of output variables of a function on the basis of their pair-wise cohesion. Program slicing is then used to identify the statements that perform computations for each variable group in the partition. New functions corresponding to the slices are created to replace the original function. Experiences with restructuring real-world code using a tool that implements the technique are presented.
INDEX TERMS
Software reengineering, restructuring, modularization, program tucking, cohesion
CITATION
Jean-Christophe Deprez, Arun Lakhotia, "Restructuring Functions with Low Cohesion", 2013 20th Working Conference on Reverse Engineering (WCRE), vol. 00, no. , pp. 36, 1999, doi:10.1109/WCRE.1999.806945
93 ms
(Ver 3.3 (11022016))