arrow
Return

Generic Sensitivity: Generics-Guided Context Sensitivity for Pointer Analysis

delete2024-05-01
delete0
PRE
AI
H
Haofeng Li
T
Tian Tan
Y
Yue Li
J
Jie Lu
H
Haining Meng
L
Liqing Cao
Y
Yongheng Huang
L
Lian Li *
L
Lin Gao
P
Peng Di
L
Liang Lin
C
ChenXi Cui
DOI:10.1109/TSE.2024.3377645delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Generic programming has found widespread application in object-oriented languages like Java. However, existing context-sensitive pointer analyses fail to leverage the benefits of generic programming. This paper introduces generic sensitivity, a new context customization scheme targeting generics. We design our context customization scheme in such a way that generic instantiation sites, i.e., locations instantiating generic classes/methods with concrete types, are always preserved as key context elements. This is realized by augmenting contexts with a type variable lookup map, which is efficiently generated in a context-sensitive manner throughout the analysis process. We have implemented various variants of generic-sensitive analysis in WALA and conducted extensive experiments to compare it with state-of-the-art approaches, including both traditional and selective context-sensitivity methods. The evaluation results demonstrate that generic sensitivity effectively enhances existing context-sensitivity approaches, striking a new balance between efficiency and precision. For instance, it enables a 1-object-sensitive analysis to achieve overall better precision compared to a 2-object-sensitive analysis, with an average speedup of 12.6 times (up to 62 times).
Keywords:
Sensitivity
Receivers
Java
Resource management
Codes
Software
Benchmark testing
Pointer analysis
generic programming
context sensitivity

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.8K
Citations:
1.1W

Organization

A
alibaba group
Scholars:
1.1K
Papers: 789
Citations: 0
U
university of chinese academy of sciences, cas
Scholars:
4.1W
Papers: 3.8W
Citations: 75
Z
Zhongguancun Laboratory
Scholars:
271
Papers: 198
Citations: 0
I
institute of computing technology, cas
Scholars:
1.0K
Papers: 877
Citations: 1
C
chinese academy of sciences
Scholars:
56.0W
Papers: 44.8W
Citations: 704
researcher View more organizations