Title :
Understanding function behaviors through program slicing
Author :
De Lucia, Andrea ; Fasolino, Anna Rita ; Munro, Malcolm
Author_Institution :
Dipartimento di Inf. e Sistemistica, Naples Univ., Italy
Abstract :
We present conditioned slicing as a general slicing framework for program comprehension. A conditioned slice consists of a subset of program statements which preserves the behavior of the original program with respect to a set of program executions. The set of initial states of the program that characterize these executions is specified in terms of a first order logic formula on the input variables of the program. Conditioned slicing allows a better decomposition of the program giving the maintainer the possibility to analyze code fragments with respect to different perspectives. We also show how slices produced with traditional slicing methods can be reduced to conditioned slices. Conditioned slices can be identified by using symbolic execution techniques and dependence graphs
Keywords :
formal logic; program diagnostics; reverse engineering; code fragments; conditioned slices; conditioned slicing; dependence graphs; first order logic formula; function behavior understanding; general slicing framework; input variables; program comprehension; program executions; program slicing; program statements; symbolic execution techniques; Application software; Cognition; Control systems; Input variables; Logic; Production; Programming profession; Software maintenance; Software systems; US Department of Transportation;
Conference_Titel :
Program Comprehension, 1996, Proceedings., Fourth Workshop on
Conference_Location :
Berlin
Print_ISBN :
0-8186-7283-8
DOI :
10.1109/WPC.1996.501116