{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T07:53:50Z","timestamp":1790927630986,"version":"4.1.0"},"reference-count":55,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA2","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2025,10,9]]},"abstract":"<jats:p>\n                    Many imperative programming languages offer global variables to implement common functionality such as global caches and counters. Global variables are typically initialized by\n                    <jats:italic toggle=\"yes\">module initializers<\/jats:italic>\n                    (e.g., static initializers in Java), code blocks that are executed automatically by the runtime system. When or in what order these initializers run is typically not known statically and modularly. For instance in Java, initialization is triggered dynamically upon the first use of a class, while in Go, the order depends on all packages of a program. As a result, reasoning modularly about global variables and their initialization is difficult, especially because module initializers may perform arbitrary side effects and may have cyclic dependencies. Consequently, existing modular verification techniques either do not support global state or impose drastic restrictions that are not satisfied by mainstream languages and programs.\n                  <\/jats:p>\n                  <jats:p>\n                    In this paper, we present the first practical verification technique to reason formally and modularly about global state and its initialization. Our technique is based on separation logic and uses\n                    <jats:italic toggle=\"yes\">module invariants<\/jats:italic>\n                    to specify ownership and values of global variables. A partial order on modules and methods allows us to reason modularly about when a module invariant may be soundly assumed to hold, irrespective of when exactly the module initializer establishing it runs. Our technique supports both thread-local and shared global state. We formalize it as a program logic in Iris and prove its soundness in Rocq. We make only minimal assumptions about the initialization semantics, making our technique applicable to a wide range of programming languages. We implemented our technique in existing verifiers for Java and Go and demonstrate its effectiveness on typical uses cases of global state as well as a substantial codebase implementing an Internet router.\n                  <\/jats:p>","DOI":"10.1145\/3763133","type":"journal-article","created":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T08:49:50Z","timestamp":1759999790000},"page":"2310-2337","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["Modular Reasoning about Global Variables and Their Initialization"],"prefix":"10.1145","volume":"9","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-4671-4132","authenticated-orcid":false,"given":"Jo\u00e3o","family":"Pereira","sequence":"first","affiliation":[{"name":"ETH Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0006-0121-6964","authenticated-orcid":false,"given":"Isaac","family":"van Bakel","sequence":"additional","affiliation":[{"name":"ETH Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-8916-329X","authenticated-orcid":false,"given":"Patricia","family":"Firlejczyk","sequence":"additional","affiliation":[{"name":"ETH Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4891-6950","authenticated-orcid":false,"given":"Marco","family":"Eilers","sequence":"additional","affiliation":[{"name":"ETH Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7001-2566","authenticated-orcid":false,"given":"Peter","family":"M\u00fcller","sequence":"additional","affiliation":[{"name":"ETH Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,10,9]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"2013. JML Reference Manual\u2013 Type Specifications. https:\/\/www.cs.ucf.edu\/~leavens\/JML\/jmlrefman\/jmlrefman_8.html#SEC68 (Retrieved 25 November 2024)"},{"key":"e_1_3_1_3_2","unstructured":"2022. cmd\/compile: global variable initialization done in unexpected order.Retrieved 16 October 2024 https:\/\/github.com\/golang\/go\/issues\/51913"},{"key":"e_1_3_1_4_2","unstructured":"2023. The Boogie IVL Language Reference \u2013 Global Variables. Retrieved 25 November 2024 https:\/\/boogie-docs.readthedocs.io\/en\/latest\/LangRef.html#global-variables"},{"key":"e_1_3_1_5_2","unstructured":"2023. Crate lazy_static. https:\/\/docs.rs\/lazy_static\/latest\/lazy_static\/ (Retrieved 16 December 2023)"},{"key":"e_1_3_1_6_2","unstructured":"2023. Static Initialization Order Fiasco.Retrieved 22 December 2023 https:\/\/en.cppreference.com\/w\/cpp\/language\/siof"},{"key":"e_1_3_1_7_2","unstructured":"2024. Java Language Specification. Chapter 12: Execution.Retrieved 11 October 2024 https:\/\/docs.oracle.com\/javase\/specs\/jls\/se7\/html\/jls-12.html"},{"key":"e_1_3_1_8_2","unstructured":"2024. Java\u2122Platform Standard Edition 8 API Specification - Cl.ass Logger.Retrieved 31 October 2024 https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/java\/util\/logging\/Logger.html"},{"key":"e_1_3_1_9_2","unstructured":"2024. OpenJDK\u2019s implementation of Java\u2019s Byteclass.Retrieved 7 October 2024https:\/\/github.com\/openjdk\/jdk\/blob\/master\/src\/java.base\/share\/classes\/java\/lang\/Byte.java"},{"key":"e_1_3_1_10_2","unstructured":"2024. Static Constructors (C# Programming Guide).Retrieved 11 October 2024https:\/\/learn.microsoft.com\/en-us\/dotnet\/csharp\/programming-guide\/classes-and-structs\/static-constructors"},{"key":"e_1_3_1_11_2","unstructured":"2025. The Go Programming Language Specification Package initialization.Retrieved 8 March 2025 https:\/\/go.dev\/ref\/spec#Program_initialization"},{"key":"e_1_3_1_12_2","unstructured":"2025. HeapLang overview.Retrieved 24 January 2025https:\/\/gitlab.mpi-sws.org\/iris\/iris\/-\/blob\/master\/docs\/heap_lang.md"},{"key":"e_1_3_1_13_2","volume-title":"Deductive Software Verification - The KeYBook - From Theory to Practice","author":"Ahrendt Wolfgang","year":"2016","unstructured":"Wolfgang Ahrendt, Bernhard Beckert, Richard Bubel, Reiner H\u00e4hnle, Peter H. Schmitt, and Mattias Ulbrich. (Eds.).2016.Deductive Software Verification - The KeYBook - From Theory to Practice. Lecture Notes in Computer Science, Vol. 10001. Springer. https:\/\/doi.org\/10.1007\/978-3-319-49812-6"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1007\/11804192_17"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.5381\/jot.2004.3.6.a2"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/2489837.2489838"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","DOI":"10.1145\/3563314"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-06410-9_9"},{"key":"e_1_3_1_19_2","doi-asserted-by":"publisher","DOI":"10.1007\/s003789900003"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-44898-5_4"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2011.09.018"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-20398-5_35"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","DOI":"10.5381\/jot.2005.4.8.a1"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-08867-9_1"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-76637-7_3"},{"key":"e_1_3_1_26_2","article-title":"Actris: session-type based reasoning in separation logic","volume":"4","author":"Hinrichsen Jonas Kastberg","year":"2019","unstructured":"Jonas Kastberg Hinrichsen, Jesper Bengtson, and Robbert Krebbers. 2019. Actris: session-type based reasoning in separation logic. Proc. ACM Program. Lang. 4, POPL, Article 6 (Dec. 2019), 30 pages. https:\/\/doi.org\/10.1145\/3371074","journal-title":"Proc. ACM Program. Lang."},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.5555\/1792878.1792914"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-17164-221"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2007.04.005"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796818000151"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.1145\/2676726.2676980"},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","DOI":"10.1145\/3236772"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009855"},{"key":"e_1_3_1_34_2","volume-title":"Program Proofs.","author":"Leino K. Rustan M.","year":"2023","unstructured":"K. Rustan M. Leino. 2023. Program Proofs. MIT Press."},{"key":"e_1_3_1_35_2","doi-asserted-by":"crossref","unstructured":"K. Rustan M. Leino and Peter M\u00fcller. 2004. Object Invariants in Dynamic Contexts. In ECOOP 2004 - Object-Oriented Programming. https:\/\/doi.org\/10.1007\/978-3-540-24851-4_22","DOI":"10.1007\/978-3-540-24851-4_22"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","DOI":"10.1007\/11526841_4"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-11957-6_22"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","DOI":"10.1145\/197320.197383"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","DOI":"10.1145\/3428243"},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","DOI":"10.1145\/3622844"},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jlap.2003.07.006"},{"key":"e_1_3_1_42_2","first-page":"336","volume-title":"Mathematics for Computer Science\u2014MIT Course No. 6.042J","author":"Meyer Albert R.","year":"2015","unstructured":"Albert R. Meyer and Adam Chlipala. 2015. Partial Orders. In Mathematics for Computer Science\u2014MIT Course No. 6.042J. MIT OpenCourseWare: Massachusetts Institute of Technology, 336\u2013338. https:\/\/ocw.mit.edu\/courses\/6- 042j-mathematics-for-computer-science-spring-2015\/ Accessed March 25, 2025."},{"key":"e_1_3_1_43_2","doi-asserted-by":"publisher","DOI":"10.5555\/129093"},{"issue":"3","key":"e_1_3_1_44_2","article-title":"Modular invariants for layered object structures","volume":"62","author":"M\u00fcller Peter","year":"2006","unstructured":"Peter M\u00fcller, Arnd Poetzsch-Heffter, and Gary T. Leavens. 2006. Modular invariants for layered object structures. Sei. Comput. Program. 62, 3 (Oct. 2006). https:\/\/doi.Org\/10.1016\/j.scico.2006.03.001","journal-title":"Sei. Comput. Program."},{"key":"e_1_3_1_45_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-28644-8_4"},{"key":"e_1_3_1_46_2","doi-asserted-by":"crossref","unstructured":"Jo\u00e3o Pereira Isaac van Bakel Patricia Firlejczyk Marco Eilers and Peter M\u00fcller. 2025. Artifact for \u201cModular Reasoning about Global Variables and Their Initialization\u201c. https:\/\/doi.org\/10.5281\/zenodo.15756716","DOI":"10.1145\/3763133"},{"key":"e_1_3_1_47_2","doi-asserted-by":"crossref","unstructured":"Jo\u00e3o Pereira Isaac van Bakel Patricia Firlejczyk Marco Eilers and Peter M\u00fcller. 2025. Modular Reasoning about Global Variables and Their Initialization (Extended Version).","DOI":"10.1145\/3763133"},{"key":"e_1_3_1_48_2","doi-asserted-by":"crossref","unstructured":"Jo\u00e4o C. Pereira Tobias Klenze Sofia Giampietro Markus Limbeck Dionysios Spiliopoulos Felix A. Wolf Marco Eilers Christoph Sprenger David Basin Peter M\u00fcller and Adrian Perrig. 2024. Protocols to Code: Formal Verification of a Next-Generation Internet Router. arXiv:2405.06074 [cs.CR]. https:\/\/arxiv.org\/abs\/2405.06074","DOI":"10.1145\/3719027.3765104"},{"key":"e_1_3_1_49_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-67080-5"},{"key":"e_1_3_1_50_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2002.1029817"},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-39038-8_6"},{"issue":"4","key":"e_1_3_1_52_2","article-title":"Universe-Type-Based Verification Techniques for Mutable Static Fields and Methods","volume":"8","author":"Summers A. J.","year":"2009","unstructured":"A. J. Summers, S. Drossopoulou, and P. M\u00fcller. 2009. Universe-Type-Based Verification Techniques for Mutable Static Fields and Methods. Journal of Object Technology (JOT) 8, 4 (June 2009). https:\/\/doi.Org\/10.5381\/jot.2009.8.4.a4","journal-title":"Journal of Object Technology (JOT)"},{"key":"e_1_3_1_53_2","doi-asserted-by":"publisher","DOI":"10.1145\/2076021.2048142"},{"key":"e_1_3_1_54_2","unstructured":"The Rocq Development Team. 2025. The Rocq Prover Reference Manual - Release 9.0.0. https:\/\/rocq-prover.org\/doc\/V9.0.0\/refman."},{"key":"e_1_3_1_55_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-10672-9_15"},{"key":"e_1_3_1_56_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-81685-8_17"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3763133","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T10:11:59Z","timestamp":1784196719000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3763133"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,9]]},"references-count":55,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2025,10,9]]}},"alternative-id":["10.1145\/3763133"],"URL":"https:\/\/doi.org\/10.1145\/3763133","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,10,9]]},"assertion":[{"value":"2025-03-26","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-08-12","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-10-09","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}