Back to Search Start Over

Accelerating Object-Sensitive Pointer Analysis by Exploiting Object Containment and Reachability (Artifact)

Authors :
He, Dongjie
Lu, Jingbo
Gao, Yaoqing
Xue, Jingling
Publication Year :
2021
Publisher :
Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021.

Abstract

Object-sensitive pointer analysis for an object-oriented program can be accelerated if context-sensitivity can be selectively applied to some precision-critical variables/objects in the program. Existing pre-analyses, which are performed to make such selections, either preserve precision but achieve limited speedups by reasoning about all the possible value flows in the program conservatively or achieve greater speedups but sacrifice precision (often unduly) by examining only some but not all the value flows in the program heuristically. In this paper, we introduce a new approach, named Turner, that represents a sweet spot between the two existing ones, as it is designed to enable object-sensitive pointer analysis to run significantly faster than the former approach and achieve significantly better precision than the latter approach. Turner is simple, lightweight yet effective due to two novel aspects in its design. First, we exploit a key observation that some precision-uncritical objects can be approximated based on the object-containment relationship pre-established (by applying Andersen’s analysis). This approximation introduces a small degree yet the only source of imprecision into Turner. Second, leveraging this initial approximation, we introduce a simple DFA to reason about object reachability for a method intra-procedurally from its entry to its exit along all the possible value flows established by its statements to finalize its precision-critical variables/objects identified. We have validated Turner with an implementation in Soot against the state of the art using a set of 12 popular Java benchmarks and applications.<br />DARTS, Vol. 7, Special Issue of the 35th European Conference on Object-Oriented Programming (ECOOP 2021), pages 12:1-12:3

Details

Language :
English
Database :
OpenAIRE
Accession number :
edsair.doi...........22c54d058edc645fad1fc06a03d33ddc
Full Text :
https://doi.org/10.4230/darts.7.2.12