Non-termination Proving at Scale
Azalea Raad, Julien Vanegue, Peter W. O'Hearn
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and Tests 引用了 Incorrectness logic
- A Taxonomy of Hoare-Like Logics: Towards a Holistic View using Predicate Transformers and Kleene Algebras with Top and Tests 引用了 Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
- Systematic Design of Separation Logics 引用了 Incorrectness logic
- Systematic Design of Separation Logics 引用了 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 引用了 Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Systematic Design of Separation Logics 引用了 Finding real bugs in big programs with incorrectness logic
- Systematic Design of Separation Logics 引用了 Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
- U-Turn: Enhancing Incorrectness Analysis by Reversing Direction 引用了 Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- U-Turn: Enhancing Incorrectness Analysis by Reversing Direction 引用了 Finding real bugs in big programs with incorrectness logic
- U-Turn: Enhancing Incorrectness Analysis by Reversing Direction 引用了 Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
- Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation Search 引用了 Incorrectness logic
- Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation Search 引用了 Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation Search 引用了 Finding real bugs in big programs with incorrectness logic
- Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic 引用了 Incorrectness logic
- DynamiTe: dynamic termination and non-termination proofs 引用了 Incorrectness logic
- Finding real bugs in big programs with incorrectness logic 引用了 Incorrectness logic
- Finding real bugs in big programs with incorrectness logic 引用了 Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning 引用了 Incorrectness logic
- Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning 引用了 Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning 引用了 Finding real bugs in big programs with incorrectness logic
引用它的顶会 Paper4
- 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 次引用
- U-Turn: Enhancing Incorrectness Analysis by Reversing DirectionFlavio Ascari, Roberto Bruni, Roberta Gori, Azalea RaadPOPL 2026 · 2 次引用
- Systematic Design of Separation LogicsRoberto Bruni, Lorenzo Gazzella, Roberta GoriOOPSLA 2026
- Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation SearchPinhan Zhao, Yuepeng Wang, Xinyu WangPLDI 2025
它引用的 Paper10
- Incorrectness logicPeter W. O'HearnPOPL 2020 · 122 次引用
- Local Reasoning About the Presence of Bugs: Incorrectness Separation LogicAzalea Raad, Josh Berdine, Hoang-Hai Dang, Derek Dreyer 等CAV 2020 · 70 次引用
- Finding real bugs in big programs with incorrectness logicQuang Loc Le, Azalea Raad, Jules Villard, Josh Berdine 等OOPSLA 2022 · 52 次引用
- Outcome Logic: A Unifying Foundation for Correctness and Incorrectness ReasoningNoam Zilberstein, Derek Dreyer, Alexandra SilvaOOPSLA 2023 · 39 次引用
- DynamiTe: dynamic termination and non-termination proofsTon Chanh Le, Timos Antonopoulos, Parisa Fathololumi, Eric Koskinen 等OOPSLA 2020 · 26 次引用
相关 Paper
- Large-scale analysis of non-termination bugs in real-world OSS projectsXiuhan Shi, Xiaofei Xie, Yi Li, Yao Zhang 等FSE 2022 · 12 次引用
- EndWatch: A Practical Method for Detecting Non-Termination in Real-World SoftwareYao Zhang, Xiaofei Xie, Yi Li, Sen Chen 等ASE 2023 · 4 次引用
- Termination analysis without the tearsShaowei Zhu, Zachary KincaidPLDI 2021 · 16 次引用
- LLM-Guided Loop Bound Generation for Program Termination VerificationZan Gong, Biting Huang, Fei HeICML 2026
- Data-driven Recurrent Set Learning For Non-termination AnalysisZhilei Han, Fei HeICSE 2023 · 1 次引用
