{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,18]],"date-time":"2026-05-18T03:23:47Z","timestamp":1779074627050,"version":"3.51.4"},"reference-count":78,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA2","license":[{"start":{"date-parts":[[2024,10,8]],"date-time":"2024-10-08T00:00:00Z","timestamp":1728345600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100001665","name":"Agence Nationale de la Recherche","doi-asserted-by":"publisher","award":["ANR-22-CE39-0014-03"],"award-info":[{"award-number":["ANR-22-CE39-0014-03"]}],"id":[{"id":"10.13039\/501100001665","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2024,10,8]]},"abstract":"<jats:p>\n                    We tackle the problem of\n                    <jats:italic toggle=\"yes\">checking non-proof-carrying code<\/jats:italic>\n                    , i.e. automatically proving type-safety (implying in our type system spatial memory safety) of low-level C code or of machine code resulting from its compilation without modification. This requires a precise static analysis that we obtain by having a type system which (i) is expressive enough to encode common low-level idioms, like pointer arithmetic, discriminating variants by bit-stealing on aligned pointers, storing the size and the base address of a buffer in distinct parts of the memory, or records with flexible array members, among others; and (ii) can be embedded in an abstract interpreter. We propose a new type system that meets these criteria. The distinguishing feature of this type system is a nominal organization of contiguous memory regions, which (i) allows nesting, concatenation, union, and sharing parameters between regions; (ii) induces a lattice over sets of addresses from the type definitions; and (iii) permits updates to memory cells that change their type without requiring one to control aliasing. We provide a semantic model for our type system, which enables us to derive sound type checking rules by abstract interpretation, then to integrate these rules as an abstract domain in a standard flow-sensitive static analysis. Our experiments on various challenging benchmarks show that semantic type-checking using this expressive type system generally succeeds in proving type safety and spatial memory safety of\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mi>C<\/mml:mi>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    and machine code programs without modification, using only user-provided function prototypes.\n                  <\/jats:p>","DOI":"10.1145\/3689712","type":"journal-article","created":{"date-parts":[[2024,10,8]],"date-time":"2024-10-08T03:23:04Z","timestamp":1728357784000},"page":"30-59","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":4,"title":["A Dependent Nominal Physical Type System for Static Analysis of Memory in Low Level Code"],"prefix":"10.1145","volume":"8","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-1984-4958","authenticated-orcid":false,"given":"Julien","family":"Simonnet","sequence":"first","affiliation":[{"name":"University Paris-Saclay, CEA, List, Palaiseau, France"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1081-0467","authenticated-orcid":false,"given":"Matthieu","family":"Lemerre","sequence":"additional","affiliation":[{"name":"University Paris-Saclay, CEA, List, Palaiseau, France"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1925-089X","authenticated-orcid":false,"given":"Mihaela","family":"Sighireanu","sequence":"additional","affiliation":[{"name":"University Paris-Saclay, ENS Paris-Saclay, CNRS, LMF, Gif-sur-Yvette, France"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2024,10,8]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"2024.CODEX site. https:\/\/codex.top."},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","DOI":"10.5555\/1037736"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","DOI":"10.1145\/1709093.1709094"},{"key":"e_1_3_1_5_2","unstructured":"andrea Arcangeli David Woodhouse and Michel Lespinasse. 2012. Linux Kernel Red Black Trees. https:\/\/github.com\/torvalds\/linux\/blob\/5133c9e51de41bfa902153888e11add3342ede18\/lib\/rbtree.c"},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-18275-4_6"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","DOI":"10.1145\/3607858"},{"key":"e_1_3_1_8_2","doi-asserted-by":"crossref","first-page":"102","DOI":"10.1007\/10722010_8","volume-title":"Mathematics of Program Construction","author":"Bornat Richard","year":"2000","unstructured":"Richard Bornat. 2000. Proving Pointer Programs in Hoare Logic. In Mathematics of Program Construction, Roland Backhouse and Jos\u00e9 Nuno Oliveira(Eds.).Springer Berlin Heidelberg,Berlin, Heidelberg,102\u2013126."},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","unstructured":"Rodney M Burstall. 1972. Some techniques for proving correctness of programs which alter data structures. Machine intelligence 7 23-50(1972) 3. https:\/\/doi.org\/10.1007\/10722010_8 10.1007\/10722010_8","DOI":"10.1007\/10722010_8"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-018-9457-5"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","DOI":"10.1145\/381788.316183"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","unstructured":"Bor-Yuh Evan Chang and Xavier Rival. 2013. Modular Construction of Shape-Numeric Analyzers. In Festschrift for Dave Schmidt (EPTCS Vol. 129) Anindya Banerjee Olivier Danvy Kyung-Goo Doh and John Hatcliff(Eds.). https:\/\/doi.org\/10.48550\/arXiv.1309.5138 10.48550\/arXiv.1309.5138","DOI":"10.48550\/arXiv.1309.5138"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","unstructured":"Adam Chlipala. 2011. Mostly-automated verification of low-level programs in computational separation logic. In Proceedings of the 32nd ACM SIGPLAN conference on Programming language design and implementation.234\u2013245. https:\/\/doi.org\/10.1145\/1993498.1993526 10.1145\/1993498.1993526","DOI":"10.1145\/1993498.1993526"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-36946-9_3"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-71316-6_35"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/263699.263744"},{"key":"e_1_3_1_17_2","unstructured":"Patrick Cousot. 2021. Principles of Abstract Interpretation. MIT Press. https:\/\/books.google.fr\/books?id=CUoQEAAAQBAJ"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","unstructured":"Patrick Cousot and Radhia Cousot. 1977. Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints. In 4th ACM Symposium on Principles of Programming Languages (POPL 1977).238\u2013252. https:\/\/doi.org\/10.1145\/512950.512973 10.1145\/512950.512973","DOI":"10.1145\/512950.512973"},{"key":"e_1_3_1_19_2","doi-asserted-by":"publisher","unstructured":"Patrick Cousot and Radhia Cousot. 1979. Systematic design of program analysis frameworks. In 6th ACM Symposium on Principles of Programming Languages (POPL 1979).269\u2013282. https:\/\/doi.org\/10.1145\/567752.567778 10.1145\/567752.567778","DOI":"10.1145\/567752.567778"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.5555\/647478.727794"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1145\/1925844.1926399"},{"key":"e_1_3_1_22_2","volume-title":"Type Assignment in Programming Languages","author":"Damas Luis Manuel Martins","year":"1984","unstructured":"Luis Manuel Martins Damas. 1984. Type Assignment in Programming Languages. Ph.D. Dissertation. University of Edinburgh."},{"key":"e_1_3_1_23_2","unstructured":"Vincent David Christophe Aussagu\u00e8s St\u00e9phane Louise Philippe Hilsenkopf Bertrand Ortolo and Christophe Hessler. 2004. The oasis based qualified display system. In Fourth American Nuclear Society International Topical Meeting on Nuclear Plant Instrumentation Controls and Human-Machine Interface Technologies (NPIC&HMIT 2004) Columbus Ohio USA.11."},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/277650.277670"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.1145\/3192366.3192388"},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-38856-9_13"},{"key":"e_1_3_1_27_2","unstructured":"Adam Dunkels. 2023. Contiki-OS. https:\/\/github.com\/contiki-ng\/contiki-ng\/blob\/release-4.9\/os\/lib\/list.c"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.1109\/SecDev.2018.00015"},{"key":"e_1_3_1_29_2","unstructured":"Free Software Foundation. 2022. GNU Emacs source repository. https:\/\/git.savannah.gnu.org\/cgit\/emacs.git\/tree\/lisp.h?h=emacs-28.2"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24754-8_15"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.1080\/00207168908803778"},{"key":"e_1_3_1_32_2","volume-title":"Dependent Types for Assembly Code Safety","author":"Harren Matthew","year":"2007","unstructured":"Matthew Harren. 2007. Dependent Types for Assembly Code Safety. Ph.D. Dissertation. University of California at Berkeley."},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-20398-5_4"},{"key":"e_1_3_1_34_2","unstructured":"Trevor Jim J Gregory Morrisett Dan Grossman Michael W Hicks James Cheney and Yanling Wang. 2002. Cyclone: A Safe Dialect of C.. In USENIX Annual Technical Conference General Track.275\u2013288."},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-99725-4_16"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","DOI":"10.1145\/2983990.2983998"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-93900-9_19"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","unstructured":"J\u00f6rg Kreiker Helmut Seidl and Vesal Vojdani. 2010. Shape Analysis of Low-Level C with Overlapping Structures. In VMCAI.214\u2013230. https:\/\/doi.org\/10.1007\/978-3-642-11319-2_17 10.1007\/978-3-642-11319-2_17","DOI":"10.1007\/978-3-642-11319-2_17"},{"key":"e_1_3_1_39_2","volume-title":"Macroscopic Data Structure Analysis and Optimization","author":"Lattner Chris","year":"2005","unstructured":"Chris Lattner. 2005. Macroscopic Data Structure Analysis and Optimization. Ph.D. Dissertation. Computer Science Dept., University of Illinois at Urbana-Champaign,Urbana, IL. see http:\/\/llvm.cs.uiuc.edu.."},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-11957-6_21"},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","DOI":"10.1145\/3554341"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","DOI":"10.1145\/3498681"},{"key":"e_1_3_1_43_2","volume-title":"The CompCert memory model","author":"Leroy Xavier","year":"2014","unstructured":"Xavier Leroy, andrew W. Appel, Sandrine Blazy, and Gordon Stewart. 2014. The CompCert memory model.Cambridge University Press,Chapter 32."},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","DOI":"10.1007\/S10817-008-9099-0"},{"key":"e_1_3_1_45_2","doi-asserted-by":"publisher","DOI":"10.1145\/3093333.3009881"},{"key":"e_1_3_1_46_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-48288-9_6"},{"key":"e_1_3_1_47_2","doi-asserted-by":"publisher","unstructured":"Aravind Machiry John H. Kastner Matt McCutchen Aaron Eline Kyle Headley and Michael Hicks. 2022. C to Checked C by 3C (with appendices). CoRR abs\/2203.13445(2022). https:\/\/doi.org\/10.48550\/arXiv.2203.13445 10.48550\/arXiv.2203.13445","DOI":"10.48550\/arXiv.2203.13445"},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","DOI":"10.1145\/3290380"},{"key":"e_1_3_1_49_2","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(78)90014-4"},{"key":"e_1_3_1_50_2","first-page":"54","volume-title":"Proc. of the ACM SIGPLAN\/SIGBED Conference on Languages, Compilers, and Tools for Embedded Systems (LCTES'06)","author":"Min\u00e9 Antoine","year":"2006","unstructured":"Antoine Min\u00e9. 2006. Field-sensitive value analysis of embedded C programs with union types and pointer arithmetics. In Proc. of the ACM SIGPLAN\/SIGBED Conference on Languages, Compilers, and Tools for Embedded Systems (LCTES'06).ACM, 54\u201363. http:\/\/www.di.ens.fr\/~mine\/publi\/article-mine-lctes06.pdf."},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","DOI":"10.1109\/WCRE.2001.957836"},{"key":"e_1_3_1_52_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-52234-0_21"},{"key":"e_1_3_1_53_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPICS.ECOOP.2020.17"},{"key":"e_1_3_1_54_2","unstructured":"Greg Morrisett Karl Crary Neal Glew Dan Grossman Richard Samuels Frederick Smith David Walker Stephanie Weirich and Steve Zdancewic. 1999. TALx86: A realistic typed assembly language. In 1999 ACM SIGPLAN Workshop on Compiler Support for System Software Atlanta GA USA.25\u201335."},{"key":"e_1_3_1_55_2","doi-asserted-by":"publisher","DOI":"10.1145\/319301.319345"},{"key":"e_1_3_1_56_2","doi-asserted-by":"publisher","DOI":"10.1145\/319301.319345"},{"key":"e_1_3_1_57_2","doi-asserted-by":"publisher","DOI":"10.1145\/1542476.1542504"},{"key":"e_1_3_1_58_2","doi-asserted-by":"publisher","DOI":"10.1145\/263699.263712"},{"key":"e_1_3_1_59_2","doi-asserted-by":"publisher","DOI":"10.1145\/1065887.1065892"},{"key":"e_1_3_1_60_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-94583-1_11"},{"key":"e_1_3_1_61_2","doi-asserted-by":"publisher","DOI":"10.1145\/379605.379635"},{"key":"e_1_3_1_62_2","doi-asserted-by":"publisher","DOI":"10.1145\/1190216.1190225"},{"key":"e_1_3_1_63_2","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2002.1029817"},{"key":"e_1_3_1_64_2","doi-asserted-by":"publisher","DOI":"10.1145\/201059.201065"},{"key":"e_1_3_1_65_2","doi-asserted-by":"publisher","DOI":"10.1145\/1706299.1706316"},{"key":"e_1_3_1_66_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-17138-4_4"},{"key":"e_1_3_1_67_2","doi-asserted-by":"publisher","DOI":"10.1145\/3453483.3454036"},{"key":"e_1_3_1_68_2","doi-asserted-by":"crossref","unstructured":"Julien Simonnet Matthieu Lemerre and Mihaela Sighireanu. 2024. A dependent nominal physical type system for the static analysis of memory in low level code.Technical Report. https:\/\/hal.science\/hal-04649674 Full version with appendices.","DOI":"10.1145\/3689712"},{"key":"e_1_3_1_69_2","doi-asserted-by":"publisher","unstructured":"Julien Simonnet Matthieu Lemerre and Mihaela Sighireanu. 2024. Artifact for the paper A Dependent Nominal Physical Type System for the Static Analysis of Memory in Low Level Code. https:\/\/doi.org\/10.5281\/zenodo.13383433 10.5281\/zenodo.13383433","DOI":"10.5281\/zenodo.13383433"},{"key":"e_1_3_1_70_2","doi-asserted-by":"publisher","unstructured":"L\u00e1szl\u00f3 Szekeres Mathias Payer Tao Wei and Dawn Song. 2013. SoK: Eternal War in Memory. In 2013 IEEE Symposium on Security and Privacy.48\u201362. https:\/\/doi.org\/10.1109\/SP.2013.13 10.1109\/SP.2013.13","DOI":"10.1109\/SP.2013.13"},{"key":"e_1_3_1_71_2","doi-asserted-by":"publisher","DOI":"10.1023\/A:1010022312623"},{"key":"e_1_3_1_72_2","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(90)90018-D"},{"key":"e_1_3_1_73_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-44914-8_25"},{"key":"e_1_3_1_74_2","doi-asserted-by":"publisher","DOI":"10.1145\/1190216.1190234"},{"key":"e_1_3_1_75_2","first-page":"3","volume-title":"Advanced topics in types and programming languages","author":"Walker David","year":"2005","unstructured":"David Walker. 2005. Advanced topics in types and programming languages.The MIT Press Cambridge,Chapter Substructural type systems,3\u201344."},{"key":"e_1_3_1_76_2","doi-asserted-by":"publisher","DOI":"10.1007\/BF01018828"},{"key":"e_1_3_1_77_2","doi-asserted-by":"publisher","unstructured":"andrew K. Wright and Matthias Felleisen. 1994. A syntactic approach to type soundness. Information and computation(1994).https:\/\/doi.org\/10.1006\/inco.1994.1093 10.1006\/inco.1994.1093","DOI":"10.1006\/inco.1994.1093"},{"key":"e_1_3_1_78_2","doi-asserted-by":"publisher","DOI":"10.1145\/507635.507657"},{"key":"e_1_3_1_79_2","first-page":"45","volume-title":"7th Symposium on Operating Systems Design and Implementation (OSDI '06), November 6-8, Seattle, WA, USA","author":"Zhou Feng","year":"2006","unstructured":"Feng Zhou, Jeremy Condit, Zachary R. anderson, Ilya Bagrak, Robert Ennals, Matthew Harren, George C. Necula, and Eric A. Brewer. 2006. SafeDrive: Safe and Recoverable Extensions Using Language-Based Techniques. In 7th Symposium on Operating Systems Design and Implementation (OSDI '06), November 6-8, Seattle, WA, USA, Brian N. Bershad and Jeffrey C. Mogul(Eds.).USENIX Association, 45\u201360."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3689712","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3689712","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,2,4]],"date-time":"2026-02-04T09:12:45Z","timestamp":1770196365000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3689712"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,10,8]]},"references-count":78,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2024,10,8]]}},"alternative-id":["10.1145\/3689712"],"URL":"https:\/\/doi.org\/10.1145\/3689712","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,10,8]]},"assertion":[{"value":"2024-04-06","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-08-18","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-10-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}