An Iris Instance for Verifying CompCert C Programs
William Mansky, Ke Du
摘要
Iris is a generic separation logic framework that has been instantiated to reason about a wide range of programming languages and language features. Most Iris instances are defined on simple core calculi, but by connecting Iris to new or existing formal semantics for practical languages, we can also use it to reason about real programs. In this paper we develop an Iris instance based on CompCert, the verified C compiler, allowing us to prove correctness of C programs under the same semantics we use to compile and run them. We take inspiration from the Verified Software Toolchain (VST), a prior separation logic for CompCert C, and reimplement the program logic of VST in Iris. Unlike most Iris instances, this involves both a new model of resources for CompCert memories, and a new definition of weakest preconditions/Hoare triples, as the Iris defaults for both of these cannot be applied to CompCert as is. Ultimately, we obtain a complete program logic for CompCert C within Iris, and we reconstruct enough of VST’s top-level automation to prove correctness of simple C programs.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Archmage and CompCertCast: End-to-End Verification Supporting Integer-Pointer Casting 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
- Transfinite Iris: resolving an existential dilemma of step-indexed separation logic 引用了 RustBelt meets relaxed memory
- Generically Automating Separation Logic by Functors, Homomorphisms, and Modules 引用了 RustBelt meets relaxed memory
- Generically Automating Separation Logic by Functors, Homomorphisms, and Modules 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
- Generically Automating Separation Logic by Functors, Homomorphisms, and Modules 引用了 Diaframe: automated verification of fine-grained concurrent programs in Iris
- RefinedC: automating the foundational verification of C code with refined ownership types 引用了 RustBelt meets relaxed memory
- RefinedC: automating the foundational verification of C code with refined ownership types 引用了 Transfinite Iris: resolving an existential dilemma of step-indexed separation logic
- Raven: An SMT-Based Concurrency Verifier 引用了 Diaframe: automated verification of fine-grained concurrent programs in Iris
- Program Logics à la Carte 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
- Diaframe: automated verification of fine-grained concurrent programs in Iris 引用了 RustBelt meets relaxed memory
- Diaframe: automated verification of fine-grained concurrent programs in Iris 引用了 RefinedC: automating the foundational verification of C code with refined ownership types
- PulseCore: An Impredicative Concurrent Separation Logic for Dependently Typed Programs 引用了 Transfinite Iris: resolving an existential dilemma of step-indexed separation logic
引用它的顶会 Paper5
- PulseCore: An Impredicative Concurrent Separation Logic for Dependently Typed ProgramsGabriel Ebner, Guido Martínez, Aseem Rastogi, Thibault Dardinier 等PLDI 2025 · 8 次引用
- Program Logics à la CarteMax Vistrup, Michael Sammler, Ralf JungPOPL 2025 · 4 次引用
- Archmage and CompCertCast: End-to-End Verification Supporting Integer-Pointer CastingYonghyun Kim, Minki Cho, Jaehyung Lee, Jinwoo Kim 等POPL 2025 · 1 次引用
- Raven: An SMT-Based Concurrency VerifierEkanshdeep Gupta, Nisarg Patel, Thomas WiesCAV 2025 · 1 次引用
- Generically Automating Separation Logic by Functors, Homomorphisms, and ModulesQiyuan Xu, David Sanán, Zhe Hou, Xiaokun Luan 等POPL 2025
它引用的 Paper8
- RefinedC: automating the foundational verification of C code with refined ownership typesMichael Sammler, Rodolphe Lepigre, Robbert Krebbers, Kayvan Memarian 等PLDI 2021 · 83 次引用
- RustBelt meets relaxed memoryHoang-Hai Dang, Jacques-Henri Jourdan, Jan-Oliver Kaiser, Derek DreyerPOPL 2020 · 68 次引用
- Transfinite Iris: resolving an existential dilemma of step-indexed separation logicSimon Spies, Lennard Gäher, Daniel Gratzer, Joseph Tassarotti 等PLDI 2021 · 32 次引用
- Two Mechanisations of WebAssembly 1.0Conrad Watt, Xiaojia Rao, Jean Pichon-Pharabod, Martin Bodin 等FM 2021 · 32 次引用
- Diaframe: automated verification of fine-grained concurrent programs in IrisIke Mulder, Robbert Krebbers, Herman GeuversPLDI 2022 · 27 次引用
相关 Paper
- CompCertELF: verified separate compilation of C programs into ELF object filesYuting Wang, Xiangzhe Xu, Pierre Wilke, Zhong ShaoOOPSLA 2020 · 26 次引用
- Beyond Backtracking: Connections in Fine-Grained Concurrent Separation LogicIke Mulder, Lukasz Czajka, Robbert KrebbersPLDI 2023 · 2 次引用
- VST-A: A Foundationally Sound Annotation VerifierLitao Zhou, Jianxing Qin, Qinshi Wang, Andrew W. Appel 等POPL 2024 · 12 次引用
- Spirea: A Mechanized Concurrent Separation Logic for Weak Persistent MemorySimon Friis Vindum, Lars BirkedalOOPSLA 2023 · 6 次引用
- Melocoton: A Program Logic for Verified Interoperability Between OCaml and CArmaël Guéneau, Johannes Hostert, Simon Spies, Michael Sammler 等OOPSLA 2023 · 10 次引用
