Lune

OOPSLA2022顶会

Taming transitive redundancy for context-free language reachability

Yuxiang Lei, Yulei Sui, Shuo Ding, Qirun Zhang

摘要

Given an edge-labeled graph, context-free language reachability (CFL-reachability) computes reachable node pairs by deriving new edges and adding them to the graph. The redundancy that limits the scalability of CFL-reachability manifests as redundant derivations, i.e., identical edges can be derived multiple times due to the many paths between two reachable nodes. We observe that most redundancy arises from the derivations involving transitive relations of reachable node pairs. Unfortunately, existing techniques for reducing redundancy in transitive-closure-based problems are either ineffective or inapplicable to identifying and eliminating redundant derivations during on-the-fly CFL-reachability solving.

This paper proposes a scalable yet precision-preserving approach to all-pairs CFL-reachability analysis by taming its transitive redundancy. Our key insight is that transitive relations are intrinsically ordered, and utilizing the order for edge derivation can avoid most redundancy. To address the challenges in determining the derivation order from the dynamically changed graph during CFL-reachability solving, we introduce a hybrid graph representation by combining spanning trees and adjacency lists, together with a dynamic construction algorithm. Based on this representation, we propose a fast and effective partially ordered algorithm Pocr to boost the performance of CFL-reachability analysis by reducing its transitive redundancy during on-the-fly solving. Our experiments on context-sensitive value-flow analysis and field-sensitive alias analysis for C/C++ demonstrate the promising performance of Pocr. On average, Pocr eliminates 98.50% and 97.26% redundant derivations respectively for the value-flow and alias analysis, achieving speedups of 21.48× and 19.57× over the standard CFL-reachability algorithm. We also compare Pocr with two recent open-source tools, Graspan (a CFL-reachability solver) and Soufflé (a Datalog engine). The results demonstrate that Pocr is over 3.67× faster than Graspan and Soufflé on average for both value-flow analysis and alias analysis.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Two Birds with One Stone: Multi-Derivation for Fast Context-Free Language Reachability Analysis 引用了 Fast graph simplification for interleaved Dyck-reachability
  • Two Birds with One Stone: Multi-Derivation for Fast Context-Free Language Reachability Analysis 引用了 Recursive State Machine Guided Graph Folding for Context-Free Language Reachability
  • Boosting the Performance of Alias-Aware IFDS Analysis with CFL-Based Environment Transformers 引用了 Two Birds with One Stone: Multi-Derivation for Fast Context-Free Language Reachability Analysis
  • Boosting the Performance of Alias-Aware IFDS Analysis with CFL-Based Environment Transformers 引用了 Fast graph simplification for interleaved Dyck-reachability
  • Boosting the Performance of Alias-Aware IFDS Analysis with CFL-Based Environment Transformers 引用了 Recursive State Machine Guided Graph Folding for Context-Free Language Reachability
  • Context-Free Language Reachability via Skewed Tabulation 引用了 Two Birds with One Stone: Multi-Derivation for Fast Context-Free Language Reachability Analysis
  • Context-Free Language Reachability via Skewed Tabulation 引用了 Fast graph simplification for interleaved Dyck-reachability
  • Recursive State Machine Guided Graph Folding for Context-Free Language Reachability 引用了 Fast graph simplification for interleaved Dyck-reachability
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Recursive State Machine Guided Graph Folding for Context-Free Language ReachabilityYuxiang Lei, Yulei Sui, Shin Hwei Tan, Qirun ZhangPLDI 2023 · 15 次引用
  2. Two Birds with One Stone: Multi-Derivation for Fast Context-Free Language Reachability AnalysisChenghang Shi, Haofeng Li, Yulei Sui, Jie Lu 等ASE 2023 · 6 次引用
  3. Boosting the Performance of Alias-Aware IFDS Analysis with CFL-Based Environment TransformersHaofeng Li, Chenghang Shi, Jie Lu, Lian Li 等OOPSLA 2024 · 6 次引用
  4. Context-Free Language Reachability via Skewed TabulationYuxiang Lei, Camille Bossut, Yulei Sui, Qirun ZhangPLDI 2024 · 5 次引用
  5. Boosting Path-Sensitive Value Flow Analysis Via Removal of Redundant SummariesYongchao Wang, Yuandao Cai, Charles ZhangICSE 2025 · 1 次引用

它引用的 Paper2

  1. Typestate-guided fuzzer for discovering use-after-free vulnerabilitiesHaijun Wang, Xiaofei Xie, Yi Li, Cheng Wen 等ICSE 2020 · 107 次引用
  2. Fast graph simplification for interleaved Dyck-reachabilityYuanbo Li, Qirun Zhang, Thomas W. RepsPLDI 2020 · 30 次引用

相关 Paper

  1. Better Not Together: Staged Solving for Context-Free Language ReachabilityChenghang Shi, Haofeng Li, Jie Lu, Lian LiISSTA 2024 · 2 次引用
  2. Iterative-Epoch Online Cycle Elimination for Context-Free Language ReachabilityPei Xu, Yuxiang Lei, Yulei Sui, Jingling XueOOPSLA 2024 · 3 次引用
  3. Context-Free Language Reachability via Efficient Relation ChainingChenghang Shi, Haofeng Li, Jie Lu, Lian LiOOPSLA 2026
  4. Indexing the extended Dyck-CFL reachability for context-sensitive program analysisQingkai Shi, Yongchao Wang, Peisen Yao, Charles ZhangOOPSLA 2022 · 11 次引用
  5. No Shot in the Dark: Efficient Context-Free Language Reachability via Context-Aware TabulationChenghang Shi, Lian LiICSE 2026
黄昏的海面,两侧是细线勾勒的悬崖