A Better Approximation for Interleaved Dyck Reachability

Giovanna Kobus Conrado*, Andreas Pavlogiannis

*Corresponding author for this work

Research output: Contribution to book/anthology/report/proceedingArticle in proceedingsResearch

2 Citations (Scopus)

Abstract

Interleaved Dyck reachability is a standard, graph-based formulation of a plethora of static analyses that seek to be context- and field- sensitive, where each type of sensitivity is expressed via a CFL/Dyck language. Unfortunately, the problem is well-known to be undecidable in general, and as such, existing approaches resort to clever overapproximations. Recently, a mutual refinement algorithm, that iteratively considers each of the two sensitivities in isolation until a fixpoint is reached, was shown to achieve high precision. In this work we present a more precise approximation of interleaved Dyck reachability, by extending the mutual-refinement algorithm in two directions. First, we develop refined CFLs to express each type of sensitivity precisely, while simultaneously also lightly overapproximating the opposite type. Second, we apply the resulting algorithm on an on-demand basis, which effectively masks out imprecision incurred by parts of the graph that are irrelevant for the query at hand. Our experiments show that the new approach offers significantly higher precision than the vanilla mutual-refinement algorithm and other common baselines; for a particularly challenging benchmark, we report, on average, 51% of the reachable pairs compared to the most recent alternative.

Original languageEnglish
Title of host publicationSOAP 2024 - Proceedings of the 13th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis
Number of pages8
PublisherAssociation for Computing Machinery
Publication dateJun 2024
Pages18-25
ISBN (Electronic)979-8-4007-0621-9
DOIs
Publication statusPublished - Jun 2024
Event13th ACM SIGPLAN International Workshop on the State of the Art in Program Analysis, SOAP 2024, co-located with the 45th ACM SIGPLAN International Conference on Programming Language Design and Implementation, PLDI 2024 - Copenhagen, Denmark
Duration: 25 Jun 2024 → …

Conference

Conference13th ACM SIGPLAN International Workshop on the State of the Art in Program Analysis, SOAP 2024, co-located with the 45th ACM SIGPLAN International Conference on Programming Language Design and Implementation, PLDI 2024
Country/TerritoryDenmark
CityCopenhagen
Period25/06/2024 → …

Keywords

  • CFL Reachability
  • Graphs
  • Static Analysis

Fingerprint

Dive into the research topics of 'A Better Approximation for Interleaved Dyck Reachability'. Together they form a unique fingerprint.

Cite this