Understanding Function Behaviors through Program Slicing

  • Authors:
  • Andrea de Lucia;Anna Rita Fasolino;Malcolm Munro

  • Affiliations:
  • -;-;-

  • Venue:
  • WPC '96 Proceedings of the 4th International Workshop on Program Comprehension (WPC '96)
  • Year:
  • 1996

Quantified Score

Hi-index 0.01

Visualization

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.