Soot-based implementation of a demand-driven reaching definitions analysis

  • Authors:
  • Longwen Lu;Cheng Zhang;Jianjun Zhao

  • Affiliations:
  • Shanghai Jiao Tong University;Shanghai Jiao Tong University;Shanghai Jiao Tong University

  • Venue:
  • Proceedings of the ACM SIGPLAN International Workshop on State of the Art in Java Program analysis
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

As a classical data-flow analysis, reaching definitions analysis is the corner stone of various techniques, such as code optimization and program slicing. The built-in data-flow analysis framework in Soot has been implemented in the traditional iterative style. While being able to meet general requirements for implementation of data flow analyses, the framework may be less efficient for a certain type of analyses in which the complete data-flow solution is unnecessary. In this paper, we introduce our Soot-based implementation of an inter-procedural demand-driven reaching definitions analysis. For a demand for reaching definitions facts, the analysis only explores relevant program points and variables, saving a considerable amount of computation. Preliminary results show that the implementation can be much more efficient than its traditional counterpart in several scenarios. The Soot framework has greatly facilitated the implementation by providing abundant basic analysis results via well designed APIs.