Skip to content
Hacker News · AI·· 1 h agoAI score34

R2C2: AI-Assisted Proof Validates C-to-Rust Translation at LLVM IR Level

C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Proof

AI summary

R2C2 validates C-to-Rust translation by proving in Rocq that the Rust program refines the C program, comparing both at the LLVM IR level since no shared formal semantics exists. AI agents automate proof construction, and Rocq's checking means the agents need not be trusted. On LLM translations of 519 C programs, R2C2 proved 486 correct without bounding executions and found three incorrect translations with valid counterexamples existing tools cannot find.

Source:Hacker News · AI · arxiv.org