{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,10]],"date-time":"2026-11-10T18:34:38Z","timestamp":1794335678936,"version":"4.9.0"},"reference-count":58,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2019,12,20]],"date-time":"2019-12-20T00:00:00Z","timestamp":1576800000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,1]]},"abstract":"<jats:p>Program correctness and incorrectness are two sides of the same coin. As a programmer, even if you would like to have correctness, you might find yourself spending most of your time reasoning about incorrectness. This includes informal reasoning that people do while looking at or thinking about their code, as well as that supported by automated testing and static analysis tools. This paper describes a simple logic for program incorrectness which is, in a sense, the other side of the coin to Hoare's logic of correctness.<\/jats:p>","DOI":"10.1145\/3371078","type":"journal-article","created":{"date-parts":[[2019,12,20]],"date-time":"2019-12-20T14:45:25Z","timestamp":1576853125000},"page":"1-32","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":126,"title":["Incorrectness logic"],"prefix":"10.1145","volume":"4","author":[{"given":"Peter W.","family":"O'Hearn","sequence":"first","affiliation":[{"name":"Facebook, UK \/ University College London, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2019,12,20]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/357146.357150"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/6490.6494"},{"key":"e_1_2_2_3_1","volume-title":"Refinement Calculus - A Systematic Introduction","author":"Back R.-J."},{"key":"e_1_2_2_4_1","doi-asserted-by":"crossref","unstructured":"S. Blackshear B.-Y. Evan Chang and M. Sridharan. 2013. Thresher: precise refutations for heap reachability. In PLDI.  S. Blackshear B.-Y. Evan Chang and M. Sridharan. 2013. Thresher: precise refutations for heap reachability. In PLDI.","DOI":"10.1145\/2491956.2462186"},{"key":"e_1_2_2_5_1","doi-asserted-by":"crossref","unstructured":"S. Blackshear N. Gorogiannis P. W. O\u2019Hearn and I. Sergey. 2018. RacerD: Compositional static race detection. PACMPL 2 OOPSLA (2018) 144:1\u2013144:28.  S. Blackshear N. Gorogiannis P. W. O\u2019Hearn and I. Sergey. 2018. RacerD: Compositional static race detection. PACMPL 2 OOPSLA (2018) 144:1\u2013144:28.","DOI":"10.1145\/3276514"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/2984450.2984457"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(92)90017-A"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1002\/(SICI)1097-024X(200006)30:7<775::AID-SPE309>3.0.CO;2-H"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/2408776.2408795"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/2049697.2049700"},{"key":"e_1_2_2_11_1","doi-asserted-by":"crossref","unstructured":"C. Calcagno P. W. O\u2019Hearn and H.Yang. 2007. Local Action and Abstract Separation Logic. In LICS. 366\u2013378.  C. Calcagno P. W. O\u2019Hearn and H.Yang. 2007. Local Action and Abstract Separation Logic. In LICS. 366\u2013378.","DOI":"10.1109\/LICS.2007.30"},{"key":"e_1_2_2_12_1","doi-asserted-by":"crossref","unstructured":"K. Claessen and J. Hughes. 2000. QuickCheck: a lightweight tool for random testing of Haskell programs. In ICFP.  K. Claessen and J. Hughes. 2000. QuickCheck: a lightweight tool for random testing of Haskell programs. In ICFP.","DOI":"10.1145\/351240.351266"},{"key":"e_1_2_2_13_1","doi-asserted-by":"crossref","unstructured":"E. Clarke D. Kroening and F. Lerda. 2004. A Tool for Checking ANSI-C Programs. In TACAS. 168\u2013176.  E. Clarke D. Kroening and F. Lerda. 2004. A Tool for Checking ANSI-C Programs. In TACAS. 168\u2013176.","DOI":"10.1007\/978-3-540-24730-2_15"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF00288686"},{"key":"e_1_2_2_15_1","unstructured":"J. Constine. 2013. Facebook acquires assets of UK mobile bug-checking software developer Monoidics. (2013). Techcrunch.  J. Constine. 2013. Facebook acquires assets of UK mobile bug-checking software developer Monoidics. (2013). Techcrunch."},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/1941487.1941509"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1137\/0207005"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(00)00313-3"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/512950.512973"},{"key":"e_1_2_2_20_1","volume-title":"Proceedings of SSGRR.","author":"Cousot P."},{"key":"e_1_2_2_21_1","doi-asserted-by":"crossref","unstructured":"P. Cousot R. Cousot M. F\u00e4hndrich and F. Logozzo. 2013. Automatic Inference of Necessary Preconditions. In VMCAI.  P. Cousot R. Cousot M. F\u00e4hndrich and F. Logozzo. 2013. Automatic Inference of Necessary Preconditions. In VMCAI.","DOI":"10.1007\/978-3-642-35873-9_10"},{"key":"e_1_2_2_22_1","doi-asserted-by":"crossref","unstructured":"E. de Vries and V. Koutavas. 2011. Reverse Hoare Logic. In SEFM. 155\u2013171.  E. de Vries and V. Koutavas. 2011. Reverse Hoare Logic. In SEFM. 155\u2013171.","DOI":"10.1007\/978-3-642-24690-6_12"},{"key":"e_1_2_2_23_1","volume-title":"A Discipline of Programming","author":"Dijkstra E. W."},{"key":"e_1_2_2_24_1","volume-title":"Scaling Static Analyses at Facebook. Commun. ACM 62, 8","author":"Distefano D.","year":"2019"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1090\/psapm\/019\/0235771"},{"key":"e_1_2_2_26_1","doi-asserted-by":"crossref","unstructured":"P. Godefroid. 2007. Compositional dynamic test generation. In POPL. 47\u201354.  P. Godefroid. 2007. Compositional dynamic test generation. In POPL. 47\u201354.","DOI":"10.1145\/1190215.1190226"},{"key":"e_1_2_2_27_1","unstructured":"P. Godefroid M. Y. Levin and D. A. Molnar. 2008. Automated Whitebox Fuzz Testing. In NDSS.  P. Godefroid M. Y. Levin and D. A. Molnar. 2008. Automated Whitebox Fuzz Testing. In NDSS."},{"key":"e_1_2_2_28_1","doi-asserted-by":"crossref","unstructured":"N. Gorogiannis P. W. O\u2019Hearn and I. Sergey. 2019. A true positives theorem for a static race detector. POPL (2019).  N. Gorogiannis P. W. O\u2019Hearn and I. Sergey. 2019. A true positives theorem for a static race detector. POPL (2019).","DOI":"10.1145\/3290370"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2011.09.021"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.7551\/mitpress\/2516.001.0001"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(80)90005-5"},{"key":"e_1_2_2_32_1","doi-asserted-by":"crossref","unstructured":"D. Harel J. Tiuryn and D. Kozen. 2000. Dynamic Logic. MIT Press Cambridge MA USA.  D. Harel J. Tiuryn and D. Kozen. 2000. Dynamic Logic. MIT Press Cambridge MA USA.","DOI":"10.7551\/mitpress\/2516.001.0001"},{"key":"e_1_2_2_33_1","doi-asserted-by":"crossref","unstructured":"M. Harman and P. W. O\u2019Hearn. 2018. From Start-ups to Scale-ups: Opportunities and Open Problems for Static and Dynamic Program Analysis. In Source Code Analysis and Manipulation. 1\u201323.  M. Harman and P. W. O\u2019Hearn. 2018. From Start-ups to Scale-ups: Opportunities and Open Problems for Static and Dynamic Program Analysis. In Source Code Analysis and Manipulation. 1\u201323.","DOI":"10.1109\/SCAM.2018.00009"},{"key":"e_1_2_2_34_1","doi-asserted-by":"crossref","unstructured":"I. J. Hayes and C. B. Jones. 2017. A Guide to Rely\/Guarantee Thinking. In SETSS. 1\u201338.  I. J. Hayes and C. B. Jones. 2017. A Guide to Rely\/Guarantee Thinking. In SETSS. 1\u201338.","DOI":"10.1007\/978-3-030-02928-9_1"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/363235.363259"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/322077.322088"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jlap.2011.04.005"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/360248.360252"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/343369.343378"},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10703-015-0228-1"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.1977.229904"},{"key":"e_1_2_2_42_1","unstructured":"P. Manolios and R. J. Trefler. 2001. Safety and Liveness in Branching Time. In LICS. 366\u2013374.  P. Manolios and R. J. Trefler. 2001. Safety and Liveness in Branching Time. In LICS. 366\u2013374."},{"key":"e_1_2_2_43_1","doi-asserted-by":"crossref","unstructured":"S. McPeak C.-H. Gros and M. K. Ramanathan. 2013. Scalable and incremental software bug detection. In ESEC\/FSE.  S. McPeak C.-H. Gros and M. K. Ramanathan. 2013. Scalable and incremental software bug detection. In ESEC\/FSE.","DOI":"10.1145\/2491411.2501854"},{"key":"e_1_2_2_44_1","doi-asserted-by":"crossref","volume-title":"Hoare Logics in Isabelle\/HOL","author":"Nipkow T.","DOI":"10.1007\/978-94-010-0413-8_11"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/3209108.3209109"},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/3211968"},{"key":"e_1_2_2_47_1","first-page":"49","article-title":"Smashing the Stack for Fun and Profit","volume":"7","author":"One Aleph","year":"1996","journal-title":"Phrack"},{"key":"e_1_2_2_48_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(81)90110-9"},{"key":"e_1_2_2_49_1","doi-asserted-by":"crossref","unstructured":"R. Potvin and J. Levenberg. 2016. Why Google Stores Billions of Lines of Code in a Single Repository. Commun. ACM 59 (2016).  R. Potvin and J. Levenberg. 2016. Why Google Stores Billions of Lines of Code in a Single Repository. Commun. ACM 59 (2016).","DOI":"10.1145\/2854146"},{"key":"e_1_2_2_50_1","doi-asserted-by":"crossref","unstructured":"F. Ranzato. 2013. Complete Abstractions Everywhere. In VMCAI. 15\u201326.  F. Ranzato. 2013. Complete Abstractions Everywhere. In VMCAI. 15\u201326.","DOI":"10.1007\/978-3-642-35873-9_3"},{"key":"e_1_2_2_51_1","doi-asserted-by":"crossref","unstructured":"T. W. Reps S. Horwitz and S. Sagiv. 1995. Precise Interprocedural Dataflow Analysis via Graph Reachability. In POPL.  T. W. Reps S. Horwitz and S. Sagiv. 1995. Precise Interprocedural Dataflow Analysis via Graph Reachability. In POPL.","DOI":"10.1145\/199448.199462"},{"key":"e_1_2_2_52_1","unstructured":"J. C. Reynolds. 2002. Separation Logic: A Logic for Shared Mutable Data Structures. In LICS. 55\u201374.  J. C. Reynolds. 2002. Separation Logic: A Logic for Shared Mutable Data Structures. In LICS. 55\u201374."},{"key":"e_1_2_2_53_1","doi-asserted-by":"crossref","unstructured":"X. Rival. 2005. Understanding the Origin of Alarms in Astr\u00e9e. In SAS. 303\u2013319.  X. Rival. 2005. Understanding the Origin of Alarms in Astr\u00e9e. In SAS. 303\u2013319.","DOI":"10.1007\/11547662_21"},{"key":"e_1_2_2_54_1","unstructured":"P. R\u00fcmmer and M. A. Shah. 2007. Proving Programs Incorrect Using a Sequent Calculus for Java Dynamic Logic. In TAP.  P. R\u00fcmmer and M. A. Shah. 2007. Proving Programs Incorrect Using a Sequent Calculus for Java Dynamic Logic. In TAP."},{"key":"e_1_2_2_55_1","doi-asserted-by":"crossref","unstructured":"J. F. Santos P. Maksimovic G. Sampaio and P. Gardner. 2019. JaVerT 2.0: Compositional symbolic execution for JavaScript. PACMPL 3 POPL (2019) 66:1\u201366:31.  J. F. Santos P. Maksimovic G. Sampaio and P. Gardner. 2019. JaVerT 2.0: Compositional symbolic execution for JavaScript. PACMPL 3 POPL (2019) 66:1\u201366:31.","DOI":"10.1145\/3290379"},{"key":"e_1_2_2_56_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2006.03.008"},{"key":"e_1_2_2_57_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(88)90149-1"},{"key":"e_1_2_2_58_1","volume-title":"Report of a Conference on High Speed Automatic Calculating Machines, Univ. Math. Lab.","author":"Turing A. M."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3371078","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3371078","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T15:05:42Z","timestamp":1750259142000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3371078"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,12,20]]},"references-count":58,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2020,1]]}},"alternative-id":["10.1145\/3371078"],"URL":"https:\/\/doi.org\/10.1145\/3371078","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019,12,20]]},"assertion":[{"value":"2019-12-20","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}