Lune

POPL2026Top-tier venue

U-Turn: Enhancing Incorrectness Analysis by Reversing Direction

Flavio Ascari, Roberto Bruni, Roberta Gori, Azalea Raad

Abstract

O’Hearn’s Incorrectness Logic (IL) has sparked renewed interest in static analyses that aim to detect program errors rather than prove their absence, thereby avoiding false alarms—a critical factor for practical adoption in industrial settings. As new incorrectness logics emerge to capture diverse error-related properties, a key question arises: can combining correctness and incorrectness techniques enhance precision, expressiveness, automation, or scalability? Notable frameworks, such as outcome logic, UNTer, local completeness logic, and exact separation logic, unify multiple analyses within a single proof system. In this work, we adopt a complementary strategy. Rather than designing a unified logic, we combine IL, which identifies reachable error states, with Sufficient Incorrectness Logic (SIL), which finds input states potentially leading to those errors. As a result, we get a more informative and effective analysis than either logic in isolation. Rather than sequencing them, our key innovation is reusing heuristic choices from the first analysis to steer the second. In fact, both IL and SIL rely on under-approximation and thus their automation legitimizes heuristics that avoid exhaustive path enumeration (e.g., selective disjunct pruning, loop unrolling). Concretely, we instrument the proof rules of the second logic with derivations from the first to inductively guide rule selection and application. To our knowledge, this is the first rule format enabling such inter-analysis instrumentation. This combined analysis aids debugging and testing by revealing both reachable errors and their causes, and opens new avenues for embedding incorrectness insights into scalable, expressive, automated code contracts.

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.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • A Logic for Locally Complete Abstract Interpretations cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties cites A Logic for Locally Complete Abstract Interpretations
  • Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties cites Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
  • Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties cites Finding real bugs in big programs with incorrectness logic
  • Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties cites Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning
  • Outcome Logic: A Unifying Foundation for Correctness and Incorrectness Reasoning cites Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties
  • 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 A Logic for Locally Complete Abstract Interpretations
  • 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.

Builds on8

  1. Local Reasoning About the Presence of Bugs: Incorrectness Separation LogicAzalea Raad, Josh Berdine, Hoang-Hai Dang, Derek Dreyer et al.CAV 2020 · 70 citations
  2. Finding real bugs in big programs with incorrectness logicQuang Loc Le, Azalea Raad, Jules Villard, Josh Berdine et al.OOPSLA 2022 · 52 citations
  3. Outcome Logic: A Unifying Foundation for Correctness and Incorrectness ReasoningNoam Zilberstein, Derek Dreyer, Alexandra SilvaOOPSLA 2023 · 39 citations
  4. A Logic for Locally Complete Abstract InterpretationsRoberto Bruni, Roberto Giacobazzi, Roberta Gori, Francesco RanzatoLICS 2021 · 34 citations
  5. Hyper Hoare Logic: (Dis-)Proving Program HyperpropertiesThibault Dardinier, Peter MüllerPLDI 2024 · 28 citations

Related papers

  1. Revealing Sources of (Memory) Errors via Backward AnalysisFlavio Ascari, Roberto Bruni, Roberta Gori, Francesco LogozzoOOPSLA 2025 · 4 citations
  2. On Extending Incorrectness Logic with Backwards ReasoningFreek Verbeek, Md Syadus Sefat, Zhoulai Fu, Binoy RavindranPOPL 2025 · 1 citation
  3. Concurrent incorrectness separation logicAzalea Raad, Josh Berdine, Derek Dreyer, Peter W. O'HearnPOPL 2022 · 24 citations
  4. Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational EffectsNoam Zilberstein, Angelina Saliling, Alexandra SilvaOOPSLA 2024 · 16 citations
  5. Incorrectness logicPeter W. O'HearnPOPL 2020 · 122 citations
Dusk over the sea between two cliffs drawn in fine vertical lines