Lune

OOPSLA2025Top-tier venue

Revealing Sources of (Memory) Errors via Backward Analysis

Flavio Ascari, Roberto Bruni, Roberta Gori, Francesco Logozzo

Abstract

Sound over-approximation methods have been proved effective for guaranteeing the absence of errors, but inevitably they produce false alarms that can hamper the programmers. Conversely, under-approximation methods are aimed at bug finding and are free from false alarms. We introduce Sufficient Incorrectness Logic (SIL), a new under-approximating, triple-based program logic to reason about program errors. SIL is designed to set apart the initial states leading to errors. We prove that SIL is correct and complete for a minimal set of rules, and we study additional rules that can facilitate program analyses. We formally compare SIL to existing triple-based program logics. Incorrectness Logic and SIL both perform under-approximations, but while the former exposes only true errors, the latter locates the set of initial states that lead to such errors. Hoare Logic performs over-approximations and as such cannot capture the set of initial states leading to errors in nondeterministic programs -for deterministic and terminating programs, Hoare Logic and SIL coincide. Finally, we instantiate SIL with Separation Logic formulae (Separation SIL) to handle pointers and dynamic allocation and we prove its correctness and, for loop-free programs, also its completeness. We argue that in some cases Separation SIL can yield more succinct postconditions and provide stronger guarantees than Incorrectness Separation Logic and can support effective backward reasoning.

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.

8 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

  • Concurrent incorrectness separation logic cites Incorrectness logic
  • Concurrent incorrectness separation logic cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • 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 Non-termination Proving at Scale
  • 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
  • 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 Non-termination Proving at Scale
  • U-Turn: Enhancing Incorrectness Analysis by Reversing Direction cites Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
  • Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic cites Incorrectness logic
  • Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites Concurrent incorrectness separation logic
  • Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites Incorrectness logic
  • Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites Finding real bugs in big programs with incorrectness logic
  • Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects cites Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
  • Finding real bugs in big programs with incorrectness logic cites Concurrent incorrectness separation 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
  • Non-termination Proving at Scale cites Concurrent incorrectness separation logic
  • Non-termination Proving at Scale cites Incorrectness logic
  • Non-termination Proving at Scale cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Non-termination Proving at Scale cites Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects
  • Non-termination Proving at Scale cites Finding real bugs in big programs with incorrectness logic
  • Non-termination Proving at Scale cites Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
  • Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning cites Concurrent 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
  • Quantitative Weakest Hyper Pre: Unifying Correctness and Incorrectness Hyperproperties via Predicate Transformers cites Incorrectness logic
  • Quantitative Weakest Hyper Pre: Unifying Correctness and Incorrectness Hyperproperties via Predicate Transformers cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Quantitative Weakest Hyper Pre: Unifying Correctness and Incorrectness Hyperproperties via Predicate Transformers cites Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects
  • Quantitative Weakest Hyper Pre: Unifying Correctness and Incorrectness Hyperproperties via Predicate Transformers cites Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational EffectsNoam Zilberstein, Angelina Saliling, Alexandra SilvaOOPSLA 2024 · 16 citations
  2. Non-termination Proving at ScaleAzalea Raad, Julien Vanegue, Peter W. O'HearnOOPSLA 2024 · 10 citations
  3. Quantitative Weakest Hyper Pre: Unifying Correctness and Incorrectness Hyperproperties via Predicate TransformersLinpeng Zhang, Noam Zilberstein, Benjamin Lucien Kaminski, Alexandra SilvaOOPSLA 2024 · 5 citations
  4. 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
  5. U-Turn: Enhancing Incorrectness Analysis by Reversing DirectionFlavio Ascari, Roberto Bruni, Roberta Gori, Azalea RaadPOPL 2026 · 2 citations

Builds on8

  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. Concurrent incorrectness separation logicAzalea Raad, Josh Berdine, Derek Dreyer, Peter W. O'HearnPOPL 2022 · 24 citations

Related papers

  1. On Extending Incorrectness Logic with Backwards ReasoningFreek Verbeek, Md Syadus Sefat, Zhoulai Fu, Binoy RavindranPOPL 2025 · 1 citation
  2. On incorrectness logic for Quantum programsPeng Yan, Hanru Jiang, Nengkun YuOOPSLA 2022 · 27 citations
  3. Systematic Design of Separation LogicsRoberto Bruni, Lorenzo Gazzella, Roberta GoriOOPSLA 2026
  4. Hyper Hoare Logic: (Dis-)Proving Program HyperpropertiesThibault Dardinier, Peter MüllerPLDI 2024 · 28 citations
  5. On incorrectness logic and Kleene algebra with top and testsCheng Zhang, Arthur Azevedo de Amorim, Marco GaboardiPOPL 2022 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines