Lune

OOPSLA2024Top-tier venue

Non-termination Proving at Scale

Azalea Raad, Julien Vanegue, Peter W. O'Hearn

Abstract

Program termination is a classic non-safety property whose falsification cannot in general be witnessed by a finite trace. This makes testing for non-termination challenging, and also a natural target for symbolic proof. Several works in the literature apply non-termination proving to small, self-contained benchmarks, but it has not been developed for large, real-world projects; as such, despite its allure, non-termination proving has had limited practical impact. We develop a compositional theory for non-termination proving, paving the way for its scalable application to large codebases. Discovering non-termination is an under-approximate problem, and we present UNT er , a sound and complete under-approximate logic for proving non-termination. We then extend UNT er with separation logic and develop UNTer SL for heap-manipulating programs, yielding a compositional proof method amenable to automation via under-approximation and bi-abduction. We extend the Pulse analyser from Meta and develop Pulse ∞ , an automated, compositional prover for non-termination based onx UNTer SL . We have run Pulse ∞ on large codebases and libraries, each comprising hundreds of thousands of lines of code, including OpenSSL, libxml2, libxpm and CryptoPP; we discovered several previously-unknown non-termination bugs and have reported them to developers of these libraries.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and Tests cites Incorrectness logic
  • A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and Tests cites Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
  • Systematic Design of Separation Logics cites Incorrectness logic
  • Systematic Design of Separation Logics cites A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and Tests
  • Systematic Design of Separation Logics cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Systematic Design of Separation Logics cites Finding real bugs in big programs with incorrectness logic
  • Systematic Design of Separation Logics cites Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
  • U-Turn: Enhancing Incorrectness Analysis by Reversing Direction cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • U-Turn: Enhancing Incorrectness Analysis by Reversing Direction cites Finding real bugs in big programs with incorrectness logic
  • U-Turn: Enhancing Incorrectness Analysis by Reversing Direction cites Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
  • Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation Search cites Incorrectness logic
  • Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation Search cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation Search cites Finding real bugs in big programs with incorrectness logic
  • Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic cites Incorrectness logic
  • DynamiTe: dynamic termination and non-termination proofs cites Incorrectness logic
  • Finding real bugs in big programs with incorrectness logic cites Incorrectness logic
  • Finding real bugs in big programs with incorrectness logic cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning cites Incorrectness logic
  • Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning cites Finding real bugs in big programs with incorrectness logic
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and TestsLena Verscht, Benjamin Lucien KaminskiPOPL 2025 · 3 citations
  2. U-Turn: Enhancing Incorrectness Analysis by Reversing DirectionFlavio Ascari, Roberto Bruni, Roberta Gori, Azalea RaadPOPL 2026 · 2 citations
  3. Systematic Design of Separation LogicsRoberto Bruni, Lorenzo Gazzella, Roberta GoriOOPSLA 2026
  4. Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation SearchPinhan Zhao, Yuepeng Wang, Xinyu WangPLDI 2025

Builds on10

  1. Incorrectness logicPeter W. O'HearnPOPL 2020 · 122 citations
  2. Local Reasoning About the Presence of Bugs: Incorrectness Separation LogicAzalea Raad, Josh Berdine, Hoang-Hai Dang, Derek Dreyer et al.CAV 2020 · 70 citations
  3. Finding real bugs in big programs with incorrectness logicQuang Loc Le, Azalea Raad, Jules Villard, Josh Berdine et al.OOPSLA 2022 · 52 citations
  4. Outcome Logic: A Unifying Foundation for Correctness and Incorrectness ReasoningNoam Zilberstein, Derek Dreyer, Alexandra SilvaOOPSLA 2023 · 39 citations
  5. DynamiTe: dynamic termination and non-termination proofsTon Chanh Le, Timos Antonopoulos, Parisa Fathololumi, Eric Koskinen et al.OOPSLA 2020 · 26 citations

Related papers

  1. Large-scale analysis of non-termination bugs in real-world OSS projectsXiuhan Shi, Xiaofei Xie, Yi Li, Yao Zhang et al.FSE 2022 · 12 citations
  2. EndWatch: A Practical Method for Detecting Non-Termination in Real-World SoftwareYao Zhang, Xiaofei Xie, Yi Li, Sen Chen et al.ASE 2023 · 4 citations
  3. Termination analysis without the tearsShaowei Zhu, Zachary KincaidPLDI 2021 · 16 citations
  4. LLM-Guided Loop Bound Generation for Program Termination VerificationZan Gong, Biting Huang, Fei HeICML 2026
  5. Data-driven Recurrent Set Learning For Non-termination AnalysisZhilei Han, Fei HeICSE 2023 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines