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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteur principal: Muravev, Ilia
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917571843850240
author Muravev, Ilia
author_facet Muravev, Ilia
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_11029
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Optimization of the Context-Free Language Reachability Matrix-Based Algorithm
Muravev, Ilia
Programming Languages
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.
title Optimization of the Context-Free Language Reachability Matrix-Based Algorithm
topic Programming Languages
url https://arxiv.org/abs/2401.11029