Fast Client-Driven CFL-Reachability via Regularization-Based Graph Simplification
Context-free language (CFL) reachability is a critical framework for various program analyses, widely adopted despite its computational challenges due to cubic or near-cubic time complexity. This often leads to significant performance degradation in client applications. Notably, in real-world scenarios, clients typically require reachability information only for specific source-to-sink pairs, offering opportunities for targeted optimization. We introduce MoYe, an effective regularization-based graph simplification technique designed to enhance the performance of client-driven CFL-reachability analyses by pruning non-contributing edges—those that do not participate in any specified CFL-reachable paths. MoYe employs a regular approximation to ensure exact reachability results for all designated node pairs and operates linearly with respect to the number of edges in the graph. This lightweight efficiency makes MoYe a valuable pre-processing step that substantially reduces both computational time and memory requirements for CFL-reachability analysis, outperforming a recent leading graph simplification approach. Our evaluations with two prominent CFL-reachability client applications demonstrate that MoYe can substantially improve performance and reduce resource consumption.
Authors
- Jingling Xue (ORCID: https://orcid.org/0000-0003-0380-3506)
- Haofeng Li (ORCID: https://orcid.org/0009-0008-0931-8767)
- Jie Lu (ORCID: https://orcid.org/0000-0002-4162-0404)
- Dongjie He (ORCID: https://orcid.org/0000-0003-0304-8942)
- Chenghang Shi (ORCID: https://orcid.org/0009-0003-3055-8929)
- Lian Li (ORCID: https://orcid.org/0000-0002-4476-0541)
Institutions
- Chongqing University (CN)
- UNSW Sydney (AU)
- Institute of Computing Technology (CN)
- University of Chinese Academy of Sciences (CN)
Publication Details
- Journal
- Proceedings of the ACM on Programming Languages
- Published
- 2025-10-09
- DOI
- https://doi.org/10.1145/3763065
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00