Generic sensitivity: customizing context-sensitive pointer analysis for generics
Haofeng Li, Jie Lu, Haining Meng, Liqing Cao, Yongheng Huang, Lian Li, Lin Gao
摘要
Generic programming has been extensively used in object-oriented programs such as Java. However, existing context-sensitive pointer analyses perform poorly in analyzing generics. 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 updated during the analysis in a context-sensitive manner.
We have implemented different variants of generic-sensitive analysis in Wala and experimental results show that the generic customization scheme can significantly improve performance and precision of context-sensitive pointer analyses. For instance, generic context customization significantly improves precision of 1-objectsensitive analysis, with an average speedup of 1.8×. In addition, generic context customization enables a 1-object-sensitive analysis to achieve overall better precision than a 2-object-sensitive analysis, with an averagely speed up of 12.6 × (62 × for chart).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Making pointer analysis more precise by unleashing the power of selective context sensitivity 引用了 Learning graph-based heuristics for pointer analysis without handcrafting application-specific features
- Module-Aware Context Sensitive Pointer Analysis 引用了 Making pointer analysis more precise by unleashing the power of selective context sensitivity
- Module-Aware Context Sensitive Pointer Analysis 引用了 Return of CFA: call-site sensitivity can be superior to object sensitivity even for object-oriented programs
- Module-Aware Context Sensitive Pointer Analysis 引用了 Learning graph-based heuristics for pointer analysis without handcrafting application-specific features
- Return of CFA: call-site sensitivity can be superior to object sensitivity even for object-oriented programs 引用了 Learning graph-based heuristics for pointer analysis without handcrafting application-specific features
- Learning Abstraction Selection for Bayesian Program Analysis 引用了 Making pointer analysis more precise by unleashing the power of selective context sensitivity
- Learning Abstraction Selection for Bayesian Program Analysis 引用了 Return of CFA: call-site sensitivity can be superior to object sensitivity even for object-oriented programs
- Learning Abstraction Selection for Bayesian Program Analysis 引用了 Learning graph-based heuristics for pointer analysis without handcrafting application-specific features
引用它的顶会 Paper2
它引用的 Paper8
- TriggerScope: Towards Detecting Logic Bombs in Android ApplicationsYanick Fratantonio, Antonio Bianchi, William K. Robertson, Engin Kirda 等S&P 2016 · 161 次引用
- Static analysis of Java enterprise applications: frameworks and caches, the elephants in the roomAnastasios Antoniadis, Nikos Filippakis, Paddy Krishnan, Raghavendra Ramesh 等PLDI 2020 · 41 次引用
- Making pointer analysis more precise by unleashing the power of selective context sensitivityTian Tan, Yue Li, Xiaoxing Ma, Chang Xu 等OOPSLA 2021 · 39 次引用
- Learning graph-based heuristics for pointer analysis without handcrafting application-specific featuresMinseok Jeon, Myungho Lee, Hakjoo OhOOPSLA 2020 · 29 次引用
- Return of CFA: call-site sensitivity can be superior to object sensitivity even for object-oriented programsMinseok Jeon, Hakjoo OhPOPL 2022 · 15 次引用
相关 Paper
- Towards a Theoretically-Backed and Practical Framework for Selective Object-Sensitive Pointer AnalysisChaoyue Zhang, Longlong Lu, Yifei Lu, Minxue Pan 等OOPSLA 2025
- Context Sensitivity without Contexts: A Cut-Shortcut Approach to Fast and Precise Pointer AnalysisWenjie Ma, Shengyuan Yang, Tian Tan, Xiaoxing Ma 等PLDI 2023 · 29 次引用
- SHARP: fast incremental context-sensitive pointer analysis for JavaBozhen Liu, Jeff HuangOOPSLA 2022 · 21 次引用
- GPU-Accelerated Flow-Sensitive Pointer Analysis for C/C++ ProgramsJiaqi He, Karim AliFSE 2026
- Automatic Generation and Reuse of Precise Library Summaries for Object-Sensitive Pointer AnalysisJingbo Lu, Dongjie He, Wei Li, Yaoqing Gao 等ASE 2023 · 1 次引用
