POPL 2027 (series) / TPSA 2027 (series) / Theory And Practice of Static Analysis /
Guiding Translation of Concurrent C to Safe Rust with Witnesses from Static Analysis
Safe programming languages like Rust rule out a wide range of memory-safety errors, including data races, use-after-free, and double frees. However, much existing code is written in C, and rewriting large projects from scratch is often imprac- tical, making automatic translation attractive. Translating concurrent C code to Rust requires choosing suitable Rust abstractions while preserving the source program’s synchro- nization and observable behavior, which is not guaranteed by the Rust type system alone. We propose to use correctness witnesses derived from static analysis to make the source concurrency discipline explicit, guide the translation, and verify that these properties are preserved in the resulting Rust code.