Scaling Type-Based Points-to Analysis with Saturation
Christian Wimmer, Codrut Stancu, David Kozak, Thomas Würthinger
摘要
Designing a whole-program static analysis requires trade-offs between precision and scalability. While a context-insensitive points-to analysis is often considered a good compromise, it still has non-linear complexity that leads to scalability problems when analyzing large applications. On the other hand, rapid type analysis scales well but lacks precision. We use saturation in a context-insensitive type-based points-to analysis to make it as scalable as a rapid type analysis, while preserving most of the precision of the points-to analysis. With saturation, the points-to analysis only propagates small points-to sets for variables. If a variable can have more values than a certain threshold, the variable and all its usages are considered saturated and no longer analyzed.
Our implementation in the points-to analysis of GraalVM Native Image, a closed-world approach to build standalone binaries for Java applications, shows that saturation allows GraalVM Native Image to analyze large Java applications with hundreds of thousands of methods in less than two minutes.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Two Approaches to Fast Bytecode Frontend for Static Analysis 引用了 Tai-e: A Developer-Friendly Static Analysis Framework for Java by Harnessing the Good Designs of Classics
- Tai-e: A Developer-Friendly Static Analysis Framework for Java by Harnessing the Good Designs of Classics 引用了 Compacting points-to sets through object clustering
- Heap Abstraction via Early-Confluent Object Merging for Pointer Analysis 引用了 A Container-Usage-Pattern-Based Context Debloating Approach for Object-Sensitive Pointer Analysis
- Heap Abstraction via Early-Confluent Object Merging for Pointer Analysis 引用了 Tai-e: A Developer-Friendly Static Analysis Framework for Java by Harnessing the Good Designs of Classics
- Heap Abstraction via Early-Confluent Object Merging for Pointer Analysis 引用了 JavaScript Pointer Analysis with Adaptive Heap Abstraction
- Heap Abstraction via Early-Confluent Object Merging for Pointer Analysis 引用了 Context Sensitivity without Contexts: A Cut-Shortcut Approach to Fast and Precise Pointer Analysis
- Universal Scalability in Declarative Program Analysis (with Choice-Based Combination Pruning) 引用了 Static analysis of Java enterprise applications: frameworks and caches, the elephants in the room
- Universal Scalability in Declarative Program Analysis (with Choice-Based Combination Pruning) 引用了 Context Sensitivity without Contexts: A Cut-Shortcut Approach to Fast and Precise Pointer Analysis
- Context Sensitivity without Contexts: A Cut-Shortcut Approach to Fast and Precise Pointer Analysis 引用了 Static analysis of Java enterprise applications: frameworks and caches, the elephants in the room
引用它的顶会 Paper6
- Two Approaches to Fast Bytecode Frontend for Static AnalysisChenxi Li, Haoran Lin, Tian Tan, Yue LiOOPSLA 2025
- JavaScript Pointer Analysis with Adaptive Heap AbstractionWenyuan Xu, Anders MøllerFSE 2026
- Heap-Snapshot Matching and Ordering using CAHPs: A Context-Augmented Heap-Path Representation for Exact and Partial Path Matching using Prefix TreesMatteo Basso, Aleksandar Prokopec, Andrea Rosà, Walter BinderOOPSLA 2025
- Heap Abstraction via Early-Confluent Object Merging for Pointer AnalysisJinpeng Wang, Yufei Liang, Zhongsheng Zhan, Tian Tan 等OOPSLA 2026
- Universal Scalability in Declarative Program Analysis (with Choice-Based Combination Pruning)Anastasios Antoniadis, Ilias Tsatiris, Neville Grech, Yannis SmaragdakisOOPSLA 2025
它引用的 Paper5
- Static analysis of Java enterprise applications: frameworks and caches, the elephants in the roomAnastasios Antoniadis, Nikos Filippakis, Paddy Krishnan, Raghavendra Ramesh 等PLDI 2020 · 41 次引用
- Context Sensitivity without Contexts: A Cut-Shortcut Approach to Fast and Precise Pointer AnalysisWenjie Ma, Shengyuan Yang, Tian Tan, Xiaoxing Ma 等PLDI 2023 · 29 次引用
- Tai-e: A Developer-Friendly Static Analysis Framework for Java by Harnessing the Good Designs of ClassicsTian Tan, Yue LiISSTA 2023 · 26 次引用
- Compacting points-to sets through object clusteringMohamad Barbar, Yulei SuiOOPSLA 2021 · 15 次引用
- A Container-Usage-Pattern-Based Context Debloating Approach for Object-Sensitive Pointer AnalysisDongjie He, Yujiang Gui, Wei Li, Yonggang Tao 等OOPSLA 2023 · 9 次引用
相关 Paper
- Hybrid Inlining: A Framework for Compositional and Context-Sensitive Static AnalysisJiangchao Liu, Jierui Liu, Peng Di, Diyu Wu 等ISSTA 2023 · 3 次引用
- The ART of Sharing Points-to Analysis: Reusing Points-to Analysis Results Safely and EfficientlyShashin Halalingaiah, Vijay Sundaresan, Daryl Maier, V. Krishna NandivadaOOPSLA 2024 · 2 次引用
- Generic sensitivity: customizing context-sensitive pointer analysis for genericsHaofeng Li, Jie Lu, Haining Meng, Liqing Cao 等FSE 2022 · 6 次引用
- Taking Out the Toxic Trash: Recovering Precision in Mixed Flow-Sensitive Static AnalysesFabian Stemmler, Michael Schwarz, Julian Erhard, Sarah Tilscher 等PLDI 2025 · 3 次引用
- SHARP: fast incremental context-sensitive pointer analysis for JavaBozhen Liu, Jeff HuangOOPSLA 2022 · 21 次引用
