Lune

CAV2023顶会

Incremental Dead State Detection in Logarithmic Time

Caleb Stanford, Margus Veanes

摘要

Abstract Identifying live and dead states in an abstract transition system is a recurring problem in formal verification; for example, it arises in our recent work on efficiently deciding regex constraints in SMT. However, state-of-the-art graph algorithms for maintaining reachability informationincrementally(that is, as states are visited and before the entire state space is explored) assume that new edges can be added from any state at any time, whereas in many applications, outgoing edges are added from each state as it is explored. To formalize the latter situation, we proposeguided incremental digraphs(GIDs), incremental graphs which support labelingclosedstates (states which will not receive further outgoing edges). Our main result is that dead state detection in GIDs is solvable in O(log⁡m)O(\log m) amortized time per edge formedges, improving upon O(m)O(\sqrt{m}) per edge due to Bender, Fineman, Gilbert, and Tarjan (BFGT) for general incremental directed graphs. We introduce two algorithms for GIDs: one establishing the logarithmic time bound, and a second algorithm to explore a lazy heuristics-based approach. To enable an apples-to-apples experimental comparison, we implemented both algorithms, two simpler baselines, and the state-of-the-art BFGT baseline using a common directed graph interface in Rust. Our evaluation shows 110-530x speedups over BFGT for the largest input graphs over a range of graph classes, random graphs, and graphs arising from regex benchmarks.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • An SMT Solver for Regular Expressions and Linear Arithmetic over String Length 引用了 Symbolic Boolean derivatives for efficiently solving extended regular expression constraints
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper4

  1. egg: Fast and extensible equality saturationMax Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt 等POPL 2021 · 170 次引用
  2. Symbolic Boolean derivatives for efficiently solving extended regular expression constraintsCaleb Stanford, Margus Veanes, Nikolaj S. BjørnerPLDI 2021 · 38 次引用
  3. An SMT Solver for Regular Expressions and Linear Arithmetic over String LengthMurphy Berzish, Mitja Kulczynski, Federico Mora, Florin Manea 等CAV 2021 · 37 次引用
  4. An Improved Algorithm for Incremental Cycle Detection and Topological Ordering in Sparse GraphsSayan Bhattacharya, Janardhan KulkarniSODA 2020 · 15 次引用

相关 Paper

  1. Efficient algorithms for dynamic bidirected Dyck-reachabilityYuanbo Li, Kris Satya, Qirun ZhangPOPL 2022 · 8 次引用
  2. On-the-Fly Static Analysis via Dynamic Bidirected Dyck ReachabilityShankaranarayanan Krishna, Aniket Lal, Andreas Pavlogiannis, Omkar TuppePOPL 2024 · 7 次引用
  3. Computing Bottom SCCs Symbolically Using Transition Guided ReductionNikola Benes, Lubos Brim, Samuel Pastva, David SafránekCAV 2021 · 11 次引用
  4. The decidability and complexity of interleaved bidirected Dyck reachabilityAdam Husted Kjelstrøm, Andreas PavlogiannisPOPL 2022 · 17 次引用
  5. Infinite-State Liveness Checking with rliveAlessandro Cimatti, Alberto Griggio, Christopher Johannsen, Kristin Yvonne Rozier 等CAV 2025 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖