English

Optimization of the Context-Free Language Reachability Matrix-Based Algorithm

Programming Languages 2024-01-23 v1

Abstract

Various static analysis problems are reformulated as instances of the Context-Free Language Reachability (CFL-r) problem. One promising way to make solving CFL-r more practical for large-scale interprocedural graphs is to reduce CFL-r to linear algebra operations on sparse matrices, as they are efficiently executed on modern hardware. In this work, we present five optimizations for a matrix-based CFL-r algorithm that utilize the specific properties of both the underlying semiring and the widely-used linear algebra library SuiteSparse:GraphBlas. Our experimental results show that these optimizations result in orders of magnitude speedup, with the optimized matrix-based CFL-r algorithm consistently outperforming state-of-the-art CFL-r solvers across four considered static analyses.

Keywords

Cite

@article{arxiv.2401.11029,
  title  = {Optimization of the Context-Free Language Reachability Matrix-Based Algorithm},
  author = {Ilia Muravev},
  journal= {arXiv preprint arXiv:2401.11029},
  year   = {2024}
}
R2 v1 2026-06-28T14:22:09.718Z