FlowCFL: A Framework for Type-based Reachability Analysis in the Presence of Mutable Data

by   Ana Milanova, et al.

Reachability analysis is a fundamental program analysis with a wide variety of applications. We present FlowCFL, a framework for type-based reachability analysis in the presence of mutable data. Interestingly, the underlying semantics of FlowCFL is CFL-reachability. We make three contributions. First, we define a dynamic semantics that captures the notion of flow commonly used in reachability analysis. Second, we establish correctness of CFL-reachability over graphs with inverse edges (inverse edges are necessary for the handling of mutable heap data). Our approach combines CFL-reachability with reference immutability to avoid the addition of certain infeasible inverse edges and we demonstrate empirically that avoiding those edges results in precision improvement. Our formal account of correctness extends to this case as well. Third, we present a type-based reachability analysis and establish equivalence between a certain CFL-reachability analysis and the type-based analysis, thus proving correctness of the type-based analysis.



page 1

page 2

page 3

page 4


On Higher-Order Reachability Games vs May Reachability

We consider the reachability problem for higher-order functional program...

Optimal Dyck Reachability for Data-Dependence and Alias Analysis

A fundamental algorithmic problem at the heart of static analysis is Dyc...

Benchmarks of Extended Basis Reachability Graphs

In this note, we want to provide a comparison among the efficiency of di...

Reachability and Distances under Multiple Changes

Recently it was shown that the transitive closure of a directed graph ca...

All-Path Reachability Logic

This paper presents a language-independent proof system for reachability...

Ranking and Repulsing Supermartingales for Reachability in Probabilistic Programs

Computing reachability probabilities is a fundamental problem in the ana...

A Relational Static Semantics for Call Graph Construction

The problem of resolving virtual method and interface calls in object-or...
This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.