Re-Testing LLM-Based C-to-Rust Translations Against Their Original C
Muhammad Hassnain
Key points
From the paper's conclusion- We survey 34 C-to-Rust translators that use LLMs.
Abstract
Most C-to-Rust translators use large language models (LLMs), and each reports a success rate from its own correctness check. We survey 34 C-to-Rust translators that use LLMs. Only one reports testing its check, and eleven release the original C and their Rust in runnable form. We re-test all eleven. We run the C and the Rust on generated inputs, compare every output, and count a divergence only where the C has no undefined behavior. All eleven release defective translations: we find 160 defects, 93 of them outright errors on ordinary inputs. Their own checks accepted 86 defective translations. For 81 of them, the released check never compared the programs on an input that exposes the defect. For three of the other five, it ran one but compared only part of the output. A success rate is only as good as its check. Before counting a translation as a success, authors should compare every output with the C's on inputs the repair loop never saw, check that a verifier reaches its assertion, release exactly what the check accepted, and report how they tested the check.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Beyond Source Code: Evaluating Natural Language Specifications for LLM-Based C-to-Rust TranslationarXiv · 2026
- C2SaferRust: Transforming C Projects Into Safer Rust With NeuroSymbolic TechniquesIEEE Transactions on Software Engineering · 2025
- Where Does the Performance Go? Understanding and Recovering Performance Regressions in C-to-Rust TranslationarXiv · 2026
- C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Refinement ProofarXiv · 2026
- SpeC2Rust: Specification-Driven Repository-Level C-to-Rust TranslationarXiv · 2026
- Agentic Discovery of Soundness Bugs in Safe Rust BindingsarXiv · 2026