To make an existing program easier to understand and modify, we propose the identification and extraction of two main kinds of components: environment-dependent operations and domain-dependent functionalities. A reference information model drives the process by giving expectations of components and their interface data. We apply two modified definitions of Weiser's slicing to this function recovery problem: direct slice and transform slice. The former, direct slice, is an executable subset of the original program containing all the statements which directly contribute either to the writing on an external sink or to the reading from an external source. The latter, transform slice, is also an executable subset including all the instructions which directly or indirectly contribute to transform an external input into an external output.
Function recovery based on program slicing
LANUBILE, Filippo;VISAGGIO, Giuseppe
1993-01-01
Abstract
To make an existing program easier to understand and modify, we propose the identification and extraction of two main kinds of components: environment-dependent operations and domain-dependent functionalities. A reference information model drives the process by giving expectations of components and their interface data. We apply two modified definitions of Weiser's slicing to this function recovery problem: direct slice and transform slice. The former, direct slice, is an executable subset of the original program containing all the statements which directly contribute either to the writing on an external sink or to the reading from an external source. The latter, transform slice, is also an executable subset including all the instructions which directly or indirectly contribute to transform an external input into an external output.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.