{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,8]],"date-time":"2026-10-08T11:33:21Z","timestamp":1791459201701,"version":"4.3.4"},"reference-count":70,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2026,6,30]],"date-time":"2026-06-30T00:00:00Z","timestamp":1782777600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"crossref","award":["62332005"],"award-info":[{"award-number":["62332005"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2026,6,30]]},"abstract":"<jats:p>Translating C code into safe Rust is an effective way to ensure memory safety. Compared to rule-based approaches, which often produce largely unsafe Rust code, LLM-based methods generate more idiomatic and safer Rust by leveraging extensive training on human-written code. Despite their promise, existing LLM-based approaches still struggle with project-level C-to-Rust translation. They typically partition a C project into smaller units (e.g., functions) based on call graphs and translate them in a bottom-up manner to resolve dependencies. However, this unit-by-unit paradigm often fails to handle pointers due to the lack of a global view of their usage.  \nTo address this limitation, we propose a novel C-to-Rust Pointer Knowledge Graph (KG) that augments code dependency graphs with two types of pointer semantics: (i) pointer usage information, which captures global behaviors such as points-to flows and lifts low-level struct interactions to higher-level abstractions; and (ii) Rust-oriented annotations, which encode ownership, mutability, nullability, and lifetime. Building on this KG, we further propose PtrTrans, a project-level C-to-Rust translation approach. In PtrTrans, the KG provides LLMs with comprehensive global pointer semantics, guiding them to generate safe and idiomatic Rust code. Experimental results show that PtrTrans reduces unsafe usages in translated Rust by 99.9% compared to both rule-based and conventional LLM-based methods, while achieving 29.3% higher functional correctness than fuzzing-enhanced LLM approaches.<\/jats:p>","DOI":"10.1145\/3808169","type":"journal-article","created":{"date-parts":[[2026,6,30]],"date-time":"2026-06-30T17:06:14Z","timestamp":1782839174000},"page":"3675-3698","source":"Crossref","is-referenced-by-count":1,"title":["Project-Level C-to-Rust Translation via Pointer Knowledge Graphs"],"prefix":"10.1145","volume":"3","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-6497-9380","authenticated-orcid":false,"given":"Zhiqiang","family":"Yuan","sequence":"first","affiliation":[{"name":"Fudan University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-3305-7858","authenticated-orcid":false,"given":"Wenjun","family":"Mao","sequence":"additional","affiliation":[{"name":"Fudan University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-2676-759X","authenticated-orcid":false,"given":"Zhuo","family":"Chen","sequence":"additional","affiliation":[{"name":"Fudan University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-3778-7414","authenticated-orcid":false,"given":"Xiyue","family":"Shang","sequence":"additional","affiliation":[{"name":"Fudan University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1424-6290","authenticated-orcid":false,"given":"Chong","family":"Wang","sequence":"additional","affiliation":[{"name":"Nanyang Technological University, Singapore, Singapore"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4066-3365","authenticated-orcid":false,"given":"Yiling","family":"Lou","sequence":"additional","affiliation":[{"name":"Fudan University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3376-2581","authenticated-orcid":false,"given":"Xin","family":"Peng","sequence":"additional","affiliation":[{"name":"Fudan University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,6,30]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"AFLplusplus. [n. d.]. ([n. d.]). https:\/\/github.com\/AFLplusplus\/AFLplusplus"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1109\/ACCESS.2025.3538050"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1109\/HPEC62836.2024.10938485"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE55347.2025.00157"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2503.17741"},{"key":"e_1_2_1_6_1","unstructured":"Claude. [n. d.]. ([n. d.]). https:\/\/www.anthropic.com\/index\/introducing-claude"},{"key":"e_1_2_1_7_1","unstructured":"Clippy. [n. d.]. ([n. d.]). https:\/\/github.com\/rust-lang\/rust-clippy"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/3672459"},{"key":"e_1_2_1_9_1","unstructured":"Doxygen. [n. d.]. ([n. d.]). https:\/\/doxygen.nl\/"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3586046"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/3485498"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2405.11514"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2503.03698"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/3379597.3387501"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00128"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2505.10708"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2412.15042"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2505.04852"},{"key":"e_1_2_1_19_1","unstructured":"Gemini. [n. d.]. ([n. d.]). https:\/\/blog.google\/technology\/ai\/google-gemini-ai\/"},{"key":"e_1_2_1_20_1","unstructured":"Ziqi Guan Xin Yin Zhiyuan Peng and Chao Ni. 2025. RepoTransAgent: Multi-Agent LLM Framework for Repository- Aware Code Translation. arXiv:2508.17720 [cs.SE] https:\/\/arxiv.org\/abs\/2508.17720"},{"key":"e_1_2_1_21_1","unstructured":"Zach Hanley. 2023. Rust Won't Save Us: An Analysis of 2023's Known Exploited Vulnerabilities."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3656406"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3691620.3694985"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/3737696"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2506.01427"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/S10664-024-10573-2"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/3729379"},{"key":"e_1_2_1_28_1","unstructured":"KG-C2Rust. [n. d.]. ([n. d.]). https:\/\/github.com\/FudanSELab\/PtrTrans-C2Rust"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2504.15254"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1109\/MSEC.2024"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.14722\/ndss.2025.241407"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/3510454"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2502.07399"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1109\/JAC-ECC64419.2024.11061239"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/2663171.2663188"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2405.18574"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2503.18305"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2411.13990"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/3597503.3639226"},{"key":"e_1_2_1_41_1","volume-title":"A Survey of Embedded Software Profiling Methodologies. CoRR abs\/1312.2949","author":"Patel Rajendra","year":"2013","unstructured":"Rajendra Patel and Arvind Rajawat. 2013. A Survey of Embedded Software Profiling Methodologies. CoRR abs\/1312.2949 (2013). arXiv:1312.2949 http:\/\/arxiv.org\/abs\/1312.2949"},{"key":"e_1_2_1_42_1","unstructured":"Quadtree. [n. d.]. ([n. d.]). https:\/\/github.com\/thejefflarson\/quadtree"},{"key":"e_1_2_1_43_1","volume-title":"CodeBLEU: a Method for Automatic Evaluation of Code Synthesis. CoRR abs\/2009.10297","author":"Ren Shuo","year":"2020","unstructured":"Shuo Ren, Daya Guo, Shuai Lu, Long Zhou, Shujie Liu, Duyu Tang, Neel Sundaresan, Ming Zhou, Ambrosio Blanco, and Shuai Ma. 2020. CodeBLEU: a Method for Automatic Evaluation of Code Synthesis. CoRR abs\/2009.10297 (2020). arXiv:2009.10297 https:\/\/arxiv.org\/abs\/2009.10297"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1111\/j.1541-0420.2005.00389.x"},{"key":"e_1_2_1_45_1","volume-title":"Unsupervised Translation of Programming Languages. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020","author":"Rozi\u00e8re Baptiste","year":"2020","unstructured":"Baptiste Rozi\u00e8re, Marie-Anne Lachaux, Lowik Chanussot, and Guillaume Lample. 2020. Unsupervised Translation of Programming Languages. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual."},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1109\/PROC.1975.9939"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2412.14234"},{"key":"e_1_2_1_48_1","unstructured":"Momoko Shiraishi and Takahiro Shinagawa. [n. d.]."},{"key":"e_1_2_1_49_1","unstructured":"Toward LLM-based Large-scale C-to-Rust Code Translation. ([n. d.])."},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2409.10506"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2505.15858"},{"key":"e_1_2_1_52_1","unstructured":"SVF. [n. d.]. ([n. d.]). https:\/\/github.com\/SVF-tools\/SVF"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1137\/0201010"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2412.17744"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00129"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/3466642"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.18653\/V1\/2023.FINDINGS-EMNLP.337"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2404.18852"},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1145\/3660778"},{"key":"e_1_2_1_60_1","unstructured":"Xiaohua Yin Zhiqiu Huang Shuanglong Kan and Guohua Shen. 2024. SafeMD: Ownership-Based Safe Memory Deallocation for C Programs. (2024)."},{"key":"e_1_2_1_61_1","volume-title":"How ISO C became unusable for operating systems development. CoRR abs\/2201.07845","author":"Yodaiken Victor","year":"2022","unstructured":"Victor Yodaiken. 2022. How ISO C became unusable for operating systems development. CoRR abs\/2201.07845 (2022). arXiv:2201.07845 https:\/\/arxiv.org\/abs\/2201.07845"},{"key":"e_1_2_1_62_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2409"},{"key":"e_1_2_1_63_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2308.01240"},{"key":"e_1_2_1_64_1","doi-asserted-by":"publisher","DOI":"10.1145\/3660783"},{"key":"e_1_2_1_65_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2412.08035"},{"key":"e_1_2_1_66_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-37709-9_22"},{"key":"e_1_2_1_67_1","doi-asserted-by":"publisher","DOI":"10.1145\/3611643.3613878"},{"key":"e_1_2_1_68_1","doi-asserted-by":"publisher","DOI":"10.1145\/3624738"},{"key":"e_1_2_1_69_1","doi-asserted-by":"publisher","unstructured":"Han Zhou Yu Luo Mengtao Zhang and Dianxiang Xu. 2025. C2RustTV: An LLM-based Framework for C to Rust Translation and Validation. In 2025 IEEE 49th Annual Computers Software and Applications Conference (COMPSAC). 1254-1259. doi:10.1109\/COMPSAC65507.2025.00158 10.1109\/COMPSAC65507.2025.00158","DOI":"10.1109\/COMPSAC65507.2025.00158"},{"key":"e_1_2_1_70_1","doi-asserted-by":"publisher","DOI":"10.48550\/ARXIV.2503.12511"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3808169","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,30]],"date-time":"2026-06-30T18:27:24Z","timestamp":1782844044000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3808169"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,30]]},"references-count":70,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2026,6,30]]}},"alternative-id":["10.1145\/3808169"],"URL":"https:\/\/doi.org\/10.1145\/3808169","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,6,30]]}}}