Research map / Large language models / Agents, code and math
Raw Pointer Rewriting with LLMs for Translating C to Safer Rust
Yifei Gao, Chengpeng Wang, Pengxiang Huang, Xuwei Liu, Mingwei Zheng, Xiangyu Zhang
Purdue University · University of Rochester
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add decision-tree-based prompting for pointer lifting (ablation) | PR2 · 28 C projects | raw pointers eliminated: 1,208 -> 2,255 | Improved |
| add code change analysis in repair (ablation) | PR2 · 28 C projects | raw pointers eliminated: 1,580 -> 2,255 | Improved |
| use PR2 instead of Laertes | C2Rust output · 28 C projects | raw pointers eliminated: 506 -> 2,255 | Improved |
| use PR2 instead of Laertes | C2Rust output · buffer (ID 2) | raw pointers eliminated: 27 -> 10 | Hurt |
| use PR2 instead of Laertes | C2Rust output · 28 C projects | running time: 133.32 s -> 5.02 hours per project | Hurt |
| replace gpt-4o-mini with Claude-3.5-Sonnet or Deepseek-v3.2 | PR2 · top-10 projects | raw pointers eliminated: ID 8: 18 -> 42 (Claude), 34 (Deepseek) | Mixed |
| remove decision tree and code change analysis (each alone) (ablation) | PR2 · tar-1.34 and glpk-5.0 | raw pointers eliminated | Hurt |
Open problems this paper states
- “Lacks a theoretical correctness guarantee, so rewriting can break functional equivalence despite passing compilation and tests.” → Passing the tests does not show the code is correct. (an open problem in execution-based code verification)
Open problems in execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- SACTOR: LLM-Driven Correct and Idiomatic C to Rust Translation with Static Analysis and FFI-Based Verification (ACL 2026 · similarity 0.89)
- Automated Proof Generation for Rust Code via Self-Evolution (ICLR 2025 · similarity 0.84)
- Instruction Tuning for Secure Code Generation (ICML 2024 · similarity 0.82)
- Verified Code Transpilation with LLMs (NeurIPS 2024 · similarity 0.81)
- Decompile-Bench: Million-Scale Binary-Source Function Pairs for Real-World Binary Decompilation (NeurIPS 2025 · similarity 0.80)
- CLEVER: A Curated Benchmark for Formally Verified Code Generation (NeurIPS 2025 · similarity 0.79)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.