Skip to main content
QUICK REVIEW

[Paper Review] Program slicing techniques and its applications

N. Sasirekha, A. Edwin Robert|arXiv (Cornell University)|Aug 5, 2011
Software Testing and Debugging TechniquesComputer Science8 citations
TL;DR

This paper presents a comprehensive survey of program slicing techniques—static, dynamic, conditional, and quasi-static slicing—demonstrating their application in software engineering tasks such as debugging, maintenance, and testing. Implemented using Java, the study outlines forward and backward slicing methods, emphasizing syntactic and semantic analysis to isolate relevant program components based on data and control flow.

ABSTRACT

Program understanding is an important aspect in Software Maintenance and Reengineering. Understanding the program is related to execution behaviour and relationship of variable involved in the program. The task of finding all statements in a program that directly or indirectly influence the value for an occurrence of a variable gives the set of statements that can affect the value of a variable at some point in a program is called a program slice. Program slicing is a technique for extracting parts of computer programs by tracing the programs' control and data flow related to some data item. This technique is applicable in various areas such as debugging, program comprehension and understanding, program integration, cohesion measurement, re-engineering, maintenance, testing where it is useful to be able to focus on relevant parts of large programs. This paper focuses on the various slicing techniques (not limited to) like static slicing, quasi static slicing, dynamic slicing and conditional slicing. This paper also includes various methods in performing the slicing like forward slicing, backward slicing, syntactic slicing and semantic slicing. The slicing of a program is carried out using Java which is a object oriented programming language.

Motivation & Objective

  • To analyze and categorize various program slicing techniques applicable in software maintenance and reengineering.
  • To investigate how slicing can improve program comprehension by isolating relevant code segments based on data flow and control dependencies.
  • To evaluate the effectiveness of different slicing methods—static, dynamic, forward, backward, syntactic, and semantic—in focusing on program components that influence specific variables.
  • To demonstrate practical applications of slicing in debugging, testing, cohesion measurement, and program integration.
  • To provide a systematic approach to slicing using object-oriented principles in Java for real-world software analysis.

Proposed method

  • Employing static slicing to analyze program statements based on data and control dependencies without execution.
  • Applying dynamic slicing by tracing actual runtime data flows to identify statements influencing a variable at a specific execution point.
  • Using backward slicing to trace dependencies from a variable occurrence back to its defining statements.
  • Using forward slicing to identify all statements that may affect a variable's value from a given point forward.
  • Implementing syntactic slicing based on source code structure and semantic slicing based on program semantics and execution context.
  • Conducting slicing analysis on Java programs to evaluate the impact of object-oriented constructs on slicing accuracy and relevance.

Experimental results

Research questions

  • RQ1How do static and dynamic slicing differ in their ability to isolate relevant program components during software maintenance?
  • RQ2What are the practical benefits of conditional and quasi-static slicing in debugging and testing large-scale software systems?
  • RQ3To what extent do syntactic and semantic slicing improve program comprehension in object-oriented programs?
  • RQ4How can slicing techniques enhance cohesion measurement and program integration in reengineering processes?
  • RQ5What are the limitations of traditional slicing techniques when applied to object-oriented languages like Java?

Key findings

  • Program slicing effectively isolates relevant code segments by tracing data and control dependencies, significantly improving debugging and maintenance efficiency.
  • Dynamic slicing provides more accurate results than static slicing in identifying relevant statements during actual program execution.
  • Backward slicing is particularly effective in debugging by tracing variable values back to their sources.
  • Forward slicing aids in understanding the propagation of data values through a program, supporting testing and impact analysis.
  • Semantic slicing outperforms syntactic slicing in complex object-oriented programs due to its context-aware analysis of program behavior.
  • The integration of slicing techniques into software maintenance workflows reduces the time and effort required for understanding and modifying large codebases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.