The Decidability and Complexity of Interleaved Bidirected Dyck Reachability

11/10/2021
by   Adam Husted Kjelstrøm, et al.
0

Dyck reachability is the standard formulation of a large domain of static analyses, as it achieves the sweet spot between precision and efficiency, and has thus been studied extensively. Interleaved Dyck reachability (denoted D_k⊙ D_k) uses two Dyck languages for increased precision (e.g., context and field sensitivity) but is well-known to be undecidable. As many static analyses yield a certain type of bidirected graphs, they give rise to interleaved bidirected Dyck reachability problems. Although these problems have seen numerous applications, their decidability and complexity has largely remained open. In a recent work, Li et al. made the first steps in this direction, showing that (i) D_1⊙ D_1 reachability (i.e., when both Dyck languages are over a single parenthesis and act as counters) is computable in O(n^7) time, while (ii) D_k⊙ D_k reachability is NP-hard. In this work we address the decidability and complexity of all variants of interleaved bidirected Dyck reachability. First, we show that D_1⊙ D_1 reachability can be computed in O(n^3·α(n)) time, significantly improving over the existing O(n^7) bound. Second, we show that D_k⊙ D_1 reachability (i.e., when one language acts as a counter) is decidable, in contrast to the non-bidirected case where decidability is open. We further consider D_k⊙ D_1 reachability where the counter remains linearly bounded. Our third result shows that this bounded variant can be solved in O(n^2·α(n)) time, while our fourth result shows that the problem has a (conditional) quadratic lower bound, and thus our upper bound is essentially optimal. Fifth, we show that full D_k⊙ D_k reachability is undecidable. This improves the recent NP-hardness lower-bound, and shows that the problem is equivalent to the non-bidirected case.

READ FULL TEXT
research
04/26/2021

The Reachability Problem for Petri Nets is Not Primitive Recursive

We present a way to lift up the Tower complexity lower bound of the reac...
research
05/18/2021

Improved Ackermannian lower bound for the VASS reachability problem

This draft is a follow-up of the Ackermannian lower bound for the reacha...
research
10/01/2019

Optimal Dyck Reachability for Data-Dependence and Alias Analysis

A fundamental algorithmic problem at the heart of static analysis is Dyc...
research
09/19/2018

The Reachability Problem for Petri Nets is Not Elementary

Petri nets, also known as vector addition systems, are a long establishe...
research
02/25/2021

Subcubic Certificates for CFL Reachability

Many problems in interprocedural program analysis can be modeled as the ...
research
09/03/2021

Indexing Context-Sensitive Reachability

Many context-sensitive data flow analyses can be formulated as a variant...
research
07/10/2020

Conditional Lower Bound for Inclusion-Based Points-to Analysis

Inclusion-based (i.e., Andersen-style) points-to analysis is a fundament...

Please sign up or login with your details

Forgot password? Click here to reset