{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,16]],"date-time":"2026-10-16T02:58:14Z","timestamp":1792119494175,"version":"4.4.0"},"reference-count":60,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA1","license":[{"start":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T00:00:00Z","timestamp":1775779200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/501100001665","name":"Agence Nationale de la Recherche","doi-asserted-by":"publisher","award":["ANR-22-PECY-0006"],"award-info":[{"award-number":["ANR-22-PECY-0006"]}],"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":[[2026,4,10]]},"abstract":"<jats:p>The popularity of the Rust language continues to explode; yet, many critical codebases remain authored in C. Automatically translating C to Rust is thus an appealing course of action. Several works have gone down this path, handling an ever-increasing subset of C through a variety of Rust features, such as unsafe. While the prospect of automation is appealing, producing code that relies on unsafe negates the memory safety guarantees offered by Rust, and therefore the main advantages of porting existing codebases to memory-safe languages. We instead advocate for a different approach, where the programmer iterates on the original C, gradually making the code more structured until it becomes eligible for compilation to safe Rust. This means that redesigns and rewrites can be evaluated incrementally for performance and correctness against existing test suites and production environments.<\/jats:p>\n                  <jats:p>Compiling structured C to safe Rust relies on the following contributions: a type-directed translation from (a subset of) C to safe Rust; a novel static analysis based on \u201csplit trees\u201d which allows expressing C\u2019s pointer arithmetic using Rust\u2019s slices and splitting operations; an analysis that infers which borrows need to be mutable; and a compilation strategy for C pointer types that is compatible with Rust\u2019s distinction between non-owned and owned allocations. We evaluate our approach on real-world cryptographic libraries, binary parsers and serializers, and a file compression library. We show that these can be rewritten to Rust with small refactors of the original C code, and that the resulting Rust code exhibits similar performance characteristics as the original C code. As part of our translation process, we also identify and report undefined behaviors in the bzip2 compression library and in Microsoft\u2019s implementation of the FrodoKEM cryptographic primitive.<\/jats:p>","DOI":"10.1145\/3798229","type":"journal-article","created":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T14:33:43Z","timestamp":1775831623000},"page":"823-849","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":5,"title":["Scylla: Translating an Applicative Subset of C to Safe Rust"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-2642-543X","authenticated-orcid":false,"given":"Aymeric","family":"Fromherz","sequence":"first","affiliation":[{"name":"Inria, Paris, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7347-3050","authenticated-orcid":false,"given":"Jonathan","family":"Protzenko","sequence":"additional","affiliation":[{"name":"Google, Seattle, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,4,10]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"publisher","DOI":"10.1007\/11502760_3"},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","unstructured":"Daniel J. Bernstein. 2006. Curve25519: New Diffie-Hellman Speed Records. In Proceedings of the IACR Conference on Practice and Theory of Public Key Cryptography (PKC). doi:10.1007\/11745853_14","DOI":"10.1007\/11745853_14"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","unstructured":"Karthikeyan Bhargavan Lasse Letager Hansen Franziskus Kiefer Jonas Schneider-Bensch and Bas Spitters. 2025. Formal Security and Functional Verification of Cryptographic Protocol Implementations in Rust. In Proceedings of the ACM Conference on Computer and Communications Security (CCS). doi:10.1145\/3719027.3765213","DOI":"10.1145\/3719027.3765213"},{"key":"e_1_3_1_5_2","unstructured":"Kees Cook. 2022. [GIT PULL] Rust introduction for v6.1-rc1. https:\/\/lore.kernel.org\/lkml\/202210010816.1317F2C@keescook\/."},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","unstructured":"Gabriel Ebner Guido Mart\u00ednez Aseem Rastogi Thibault Dardinier Megan Frisella Tahina Ramananandro and Nikhil Swamy. 2025. PulseCore: An Impredicative Concurrent Separation Logic for Dependently Typed Programs. In Proceedings of the Conference on Programming Language Design and Implementation (PLDI). doi:10.1145\/3729311","DOI":"10.1145\/3729311"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","DOI":"10.1145\/3586046"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/3485498"},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","unstructured":"Aymeric Fromherz and Jonathan Protzenko. 2026. Scylla: Translating an Applicative Subset of C to Safe Rust (Artefact). doi:10.5281\/zenodo.18498234","DOI":"10.5281\/zenodo.18498234"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","unstructured":"Aymeric Fromherz Aseem Rastogi Nikhil Swamy Sydney Gibson Guido Mart\u00ednez Denis Merigoux and Tahina Ramananandro. 2021. Steel: Proof-Oriented Programming in a Dependently Typed Concurrent Separation Logic. In Proceedings of the International Conference on Functional Programming (ICFP). doi:10.1145\/3473590","DOI":"10.1145\/3473590"},{"key":"e_1_3_1_11_2","unstructured":"Galois and Immunant. 2019. C2Rust: Migrating Legacy Code to Rust. https:\/\/github.com\/immunant\/c2rust."},{"key":"e_1_3_1_12_2","unstructured":"GrammaTech. 2024. CRAM: C++ to Rust Assisted Migration. https:\/\/www.grammatech.com\/cyber-security-solutions\/migration-to-memory-safe-code\/"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","unstructured":"Son Ho Aymeric Fromherz and Jonathan Protzenko. 2023. Modularity Code Specialization and Zero-Cost Abstractions for Program Verification. In Proceedings of the International Conference on Functional Programming (ICFP). doi:10.1145\/3607844","DOI":"10.1145\/3607844"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE-Companion58688.2023.00074"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00069"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3656406"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","unstructured":"Jaemin Hong and Sukyoung Ryu. 2024. To Tag or Not to Tag: Translating C\u2019s Unions to Rust\u2019s Tagged Unions. In Proceedings of the 39th IEEE\/ACM International Conference on Automated Software Engineering (Sacramento CA USA) (ASE \u201924). 40\u201352. doi:10.1145\/3691620.3694985","DOI":"10.1145\/3691620.3694985"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-024-10573-2"},{"key":"e_1_3_1_19_2","unstructured":"Internet Engineering Task Force. 2020. Concise Binary Object Representation (CBOR) - RFC 8949. https:\/\/datatracker.ietf.org\/doc\/rfc8949\/."},{"key":"e_1_3_1_20_2","unstructured":"ISO. 2011. ISO\/IEC 9899:2011 C standard. https:\/\/www.open-std.org\/jtc1\/sc22\/wg14\/www\/docs\/n1570.pdf."},{"key":"e_1_3_1_21_2","unstructured":"Sylvestre Ledru. 2025. Extending the Coreutils project - Rewriting base tools in Rust. https:\/\/uutils.github.io\/blog\/2025-02-extending\/."},{"key":"e_1_3_1_22_2","unstructured":"Kornel Lesinski. 2017. Citrus: Convert C to Rust. https:\/\/gitlab.com\/citrus-rs\/citrus."},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","unstructured":"Ruishi Li Bo Wang Tianyu Li Prateek Saxena and Ashish Kundu. 2025. Translating C To Rust: Lessons from a User Study. In Proceedings of the Network and Distributed System Security Symposium (NDSS). doi:10.14722\/ndss.2025.241407","DOI":"10.14722\/ndss.2025.241407"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/3510454.3528640"},{"key":"e_1_3_1_25_2","unstructured":"Patrick Longa Joppe W Bos Stephan Ehlen and Douglas Stebila. 2025. FrodoKEM: Learning With Errors Key Encapsulation. https:\/\/datatracker.ietf.org\/doc\/draft-longa-cfrg-frodokem\/00\/."},{"key":"e_1_3_1_26_2","unstructured":"Thierry Martinez. [n. d.]. Clangml OCaml bindings for Clang. https:\/\/github.com\/ocamllibs\/clangml."},{"key":"e_1_3_1_27_2","unstructured":"Microsoft. 2016. SymCrypt: Cryptographic Library. https:\/\/github.com\/microsoft\/SymCrypt."},{"key":"e_1_3_1_28_2","unstructured":"Microsoft. 2025. FrodoKEM: Learning With Errors Key Encapsulation. https:\/\/github.com\/microsoft\/PQCrypto-LWEKE."},{"key":"e_1_3_1_29_2","unstructured":"Mozilla Hacks. 2024. Porting a cross-platform GUI application to Rust. https:\/\/hacks.mozilla.org\/2024\/04\/porting-across-platform-gui-application-to-rust\/."},{"key":"e_1_3_1_30_2","unstructured":"National Security Agency. 2022. Software Memory Safety. https:\/\/media.defense.gov\/2022\/Nov\/10\/2003112742\/-1\/-1\/0\/CSI_SOFTWARE_MEMORY_SAFETY.PDF."},{"key":"e_1_3_1_31_2","doi-asserted-by":"crossref","unstructured":"Yoav Nir and Adam Langley. 2015. ChaCha20 and Poly1305 for IETF protocols. https:\/\/datatracker.ietf.org\/doc\/html\/draft-irtf-cfrg-chacha20-poly1305-10.","DOI":"10.17487\/RFC7539"},{"key":"e_1_3_1_32_2","unstructured":"NIST. 2001. Advanced Encryption Standard (AES). http:\/\/csrc.nist.gov\/publications\/fips\/fips197\/fips-197.pdf."},{"key":"e_1_3_1_33_2","unstructured":"NIST. 2015. Secure Hash Standard (SHS). https:\/\/csrc.nist.gov\/pubs\/fips\/180-4\/upd1\/final."},{"key":"e_1_3_1_34_2","unstructured":"NIST. 2015. SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions. https:\/\/csrc.nist.gov\/pubs\/fips\/202\/final."},{"key":"e_1_3_1_35_2","unstructured":"NIST. 2016. SHA-3 Derived Functions: cSHAKE KMAC TupleHash and ParallelHash. https:\/\/csrc.nist.gov\/pubs\/sp\/800\/185\/final."},{"key":"e_1_3_1_36_2","unstructured":"NIST. 2023. Digital Signature Standard (DSS). https:\/\/csrc.nist.gov\/pubs\/fips\/186-5\/final."},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","unstructured":"Vikram Nitin Rahul Krishna Luiz Lemos do Valle and Baishakhi Ray. 2025. C2 SAFERRUST: Transforming C Projects into Safer Rust with NeuroSymbolic Techniques. IEEE Transactions on Software Engineering (2025). doi:10.1109\/TSE.2025.3641486","DOI":"10.1109\/TSE.2025.3641486"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","unstructured":"Rangeet Pan Ali Reza Ibrahimzada Rahul Krishna Divya Sankar Lambert Pouguem Wassi Michele Merler Boris Sobolev Raju Pavuluri Saurabh Sinha and Reyhaneh Jabbarvand. 2024. Lost in translation: A study of bugs introduced by large language models while translating code. In Proceedings of the IEEE\/ACM 46th International Conference on Software Engineering. 1\u201313. doi:10.1145\/3597503.3639226","DOI":"10.1145\/3597503.3639226"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","unstructured":"Marina Polubelova Karthikeyan Bhargavan Jonathan Protzenko Benjamin Beurdouche Aymeric Fromherz Natalia Kulatova and Santiago Zanella-B\u00e9guelin. 2020. HACLxN: Verified Generic SIMD Crypto (for All Your Favourite Platforms). In Proceedings of the ACM Conference on Computer and Communications Security (CCS). doi:10.1145\/3372297.3423352","DOI":"10.1145\/3372297.3423352"},{"key":"e_1_3_1_40_2","unstructured":"Fran\u00e7ois Pottier. 2009. Lazy least fixed points in ML. Unpublished. Manuscript available at http:\/\/gallium.inria.fr\/\u02dcfpottier\/publis\/fpottier-fix.pdf (2009)."},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","unstructured":"Jonathan Protzenko Jean-Karim Zinzindohou\u00e9 Aseem Rastogi Tahina Ramananandro Peng Wang Santiago Zanella-B\u00e9guelin Antoine Delignat-Lavaud Catalin Hritcu Karthikeyan Bhargavan C\u00e9dric Fournet and Nikhil Swamy. 2017. Verified Low-Level Programming Embedded in F*. In Proceedings of the International Conference on Functional Programming (ICFP). doi:10.1145\/3110261","DOI":"10.1145\/3110261"},{"key":"e_1_3_1_42_2","unstructured":"Tahina Ramananandro Antoine Delignat-Lavaud C\u00e9dric Fournet Nikhil Swamy Tej Chajed Nadim Kobeissi and Jonathan Protzenko. 2019. EverParse: Verified Secure Zero-Copy Parsers for Authenticated Message Formats. In Proceedings of the USENIX Security Symposium."},{"key":"e_1_3_1_43_2","doi-asserted-by":"crossref","unstructured":"Tahina Ramananandro Gabriel Ebner Guido Mart\u00ednez and Nikhil Swamy. 2025. Secure Parsing and Serializing with Separation Logic Applied to CBOR CDDL and COSE. arXiv:2505.17335 [cs.CR] https:\/\/arxiv.org\/abs\/2505.17335","DOI":"10.1145\/3719027.3765120"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","DOI":"10.1145\/3547621"},{"key":"e_1_3_1_45_2","unstructured":"Jamey Sharp. 2020. Corrode: Automatic semantics-preserving translation from C to Rust. https:\/\/github.com\/jameysharp\/corrode."},{"key":"e_1_3_1_46_2","unstructured":"Signal Messenger. 2020. libsignal-protocol-rust. https:\/\/github.com\/signalapp\/libsignal-protocol-rust."},{"key":"e_1_3_1_47_2","unstructured":"StackOverflow. 2023. 2023 Developer Survey. https:\/\/survey.stackoverflow.co\/2023\/#section-admired-and-desired-programming-scripting-and-markup-languages."},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","unstructured":"Nikhil Swamy Catalin Hritcu Chantal Keller Aseem Rastogi Antoine Delignat-Lavaud Simon Forest Karthikeyan Bhargavan C\u00e9dric Fournet Pierre-Yves Strub Markulf Kohlweiss Jean-Karim Zinzindohou\u00e9 and Santiago Zanella-B\u00e9guelin. 2016. Dependent Types and Multi-Monadic Effects in F*. In Proceedings of the ACM Symposium on Principles of Programming Languages (POPL). doi:10.1145\/2837614.2837655","DOI":"10.1145\/2837614.2837655"},{"key":"e_1_3_1_49_2","unstructured":"The bzip2 contributors. [n. d.]. bzip2. https:\/\/gitlab.com\/bzip2\/bzip2."},{"key":"e_1_3_1_50_2","unstructured":"The Chromium Project. 2020. Memory Safety. https:\/\/www.chromium.org\/Home\/chromium-security\/memory-safety\/."},{"key":"e_1_3_1_51_2","unstructured":"The MSRC Team. 2019. A Proactive Approach to More Secure Code. https:\/\/msrc.microsoft.com\/blog\/2019\/07\/a-proactive-approach-to-more-secure-code\/."},{"key":"e_1_3_1_52_2","unstructured":"The Register. 2022. In Rust We Trust: Microsoft Azure CTO shuns C and C++. https:\/\/www.theregister.com\/2022\/09\/20\/rust_microsoft_c\/."},{"key":"e_1_3_1_53_2","unstructured":"The Register. 2023. Microsoft is busy rewriting core Windows code in memory-safe Rust. https:\/\/www.theregister.com\/2023\/04\/27\/microsoft_windows_rust\/."},{"key":"e_1_3_1_54_2","unstructured":"The White House. 2024. Back to the Building Blocks: a Path Toward Secure and Measurable Software. https:\/\/www.whitehouse.gov\/wp-content\/uploads\/2024\/02\/Final-ONCD-Technical-Report.pdf."},{"key":"e_1_3_1_55_2","unstructured":"The zerocopy Contributors. [n. d.]. Crate zerocopy. https:\/\/docs.rs\/zerocopy\/latest\/zerocopy\/."},{"key":"e_1_3_1_56_2","unstructured":"Jeff Vander Stoep and Alex Rebert. 2024. Eliminating Memory Safety Vulnerabilities at the Source. https:\/\/security.googleblog.com\/2024\/09\/eliminating-memory-safety-vulnerabilities-Android.html."},{"key":"e_1_3_1_57_2","unstructured":"Sara Verdi. 2023. Why Rust is the most admired language among developers. https:\/\/github.blog\/2023-08-30-why-rust-is-the-most-admired-language-among-developers\/."},{"key":"e_1_3_1_58_2","doi-asserted-by":"publisher","unstructured":"Philip Wadler and Stephen Blott. 1989. How to make ad-hoc polymorphism less ad hoc. In Proceedings of the ACM Symposium on Principles of Programming Languages (POPL). doi:10.1145\/75277.75283","DOI":"10.1145\/75277.75283"},{"key":"e_1_3_1_59_2","unstructured":"Aidan ZH Yang Yoshiki Takashima Brandon Paulsen Josiah Dodds and Daniel Kroening. 2024. VERT: Verified equivalent rust transpilation with large language models as few-shot learners. arXiv preprint arXiv:2404.18852 (2024)."},{"key":"e_1_3_1_60_2","doi-asserted-by":"publisher","unstructured":"Alon Zakai. 2011. Emscripten: an LLVM-to-JavaScript compiler. In Proceedings of the ACM SIGPLAN Conference on Object-Oriented Programming Systems Languages and Applications (OOPSLA). doi:10.1145\/2048147.2048224","DOI":"10.1145\/2048147.2048224"},{"key":"e_1_3_1_61_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-37709-9_22"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798229","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:22:45Z","timestamp":1790421765000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3798229"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,10]]},"references-count":60,"journal-issue":{"issue":"OOPSLA1","published-print":{"date-parts":[[2026,4,10]]}},"alternative-id":["10.1145\/3798229"],"URL":"https:\/\/doi.org\/10.1145\/3798229","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,10]]},"assertion":[{"value":"2025-10-07","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-02-17","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-10","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}