Extracting Reusable Functions by Program Slicing

dc.contributor.authorLanubile, Filippoen_US
dc.contributor.authorVisaggio, Giuseppeen_US
dc.date.accessioned2004-05-31T22:37:35Z
dc.date.available2004-05-31T22:37:35Z
dc.date.created1996-01en_US
dc.date.issued1998-10-15en_US
dc.description.abstractAn alternative approach to developing reusable components from scratch is to recover them from existing systems. In this paper, we apply program slicing, introduced by Weiser, to the problem of extracting reusable functions from ill-structured programs. We extend the definition of program slice to a transform slice, one that includes statements which contribute directly or indirectly to transform a set of input variables into a set of output variables. Unlike conventional program slicing, these statements do not include neither the statements necessary to get input data nor the statements which test the binding conditions of the function. Transform slicing presupposes the knowledge that a function is performed in the code and its partial specification, only in terms of input and output data. Using domain knowledge we discuss how to formulate expectations of the functions implemented in the code. In addition to the input/output parameters of the function, the slicing criterion depends on an initial statement which is difficult to obtain for large programs. Using the notions of decomposition slice and concept validation we demonstrate how to produce a set of candidate functions, which are independent of line numbers but must be evaluated with respect to the expected behavior. Although human interaction is required, the limited size of candidate functions makes this task easier than looking for the last function instruction in the original source code. (Also cross-referenced as UMIACS-TR-96-13)en_US
dc.format.extent646401 bytes
dc.format.mimetypeapplication/postscript
dc.identifier.urihttp://hdl.handle.net/1903/796
dc.language.isoen_US
dc.relation.isAvailableAtDigital Repository at the University of Marylanden_US
dc.relation.isAvailableAtUniversity of Maryland (College Park, Md.)en_US
dc.relation.isAvailableAtTech Reports in Computer Science and Engineeringen_US
dc.relation.isAvailableAtUMIACS Technical Reportsen_US
dc.relation.ispartofseriesUM Computer Science Department; CS-TR-3594en_US
dc.relation.ispartofseriesUMIACS; UMIACS-TR-96-13en_US
dc.titleExtracting Reusable Functions by Program Slicingen_US
dc.typeTechnical Reporten_US

Files

Original bundle

Now showing 1 - 2 of 2
Loading...
Thumbnail Image
Name:
CS-TR-3594.ps
Size:
631.25 KB
Format:
Postscript Files
Loading...
Thumbnail Image
Name:
CS-TR-3594.pdf
Size:
175 KB
Format:
Adobe Portable Document Format
Description:
Auto-generated copy of CS-TR-3594.ps