{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T20:31:07Z","timestamp":1792787467488,"version":"4.5.0"},"reference-count":68,"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":[{"name":"NSFC","award":["No. 62572427"],"award-info":[{"award-number":["No. 62572427"]}],"id":[{"id":"https:\/\/ror.org\/01h0zpd94","id-type":"ROR","asserted-by":"crossref"}]},{"name":"ZJNSF Major Program","award":["No. LD24F020013"],"award-info":[{"award-number":["No. LD24F020013"]}]},{"name":"Huawei Cooperation Project","award":["No. TC20250422031"],"award-info":[{"award-number":["No. TC20250422031"]}]},{"name":"CCF-Huawei Populus Grove Fund","award":["No. CCF-HuaweiSY202503"],"award-info":[{"award-number":["No. CCF-HuaweiSY202503"]}]},{"name":"CASC Open Fund","award":["No. LHCESET202502"],"award-info":[{"award-number":["No. LHCESET202502"]}]},{"name":"NSFC","award":["No. 62402038"],"award-info":[{"award-number":["No. 62402038"]}],"id":[{"id":"https:\/\/ror.org\/01h0zpd94","id-type":"ROR","asserted-by":"crossref"}]},{"name":"NSFC","award":["No. 62192730"],"award-info":[{"award-number":["No. 62192730"]}],"id":[{"id":"https:\/\/ror.org\/01h0zpd94","id-type":"ROR","asserted-by":"crossref"}]},{"name":"Fundamental Research Funds for the Central Universities of China","award":["No. 226-2024-00140"],"award-info":[{"award-number":["No. 226-2024-00140"]}]}],"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>\n                    Fully automated verification of large-scale software and hardware systems is arguably the holy grail of formal methods. Large language models (LLMs) have recently demonstrated their potential for enhancing the degree of automation in formal verification by, e.g., generating formal specifications as essential to deductive verification, yet exhibit poor scalability due to long-context reasoning limitations and, more importantly, the difficulty of inferring complex, interprocedural specifications. This paper presents\n                    <jats:sc>Preguss<\/jats:sc>\n                    \u2013 a modular, finegrained framework for automating the generation and refinement of formal specifications. Preguss synergizes between static analysis and deductive verification by steering two components in a divide-and-conquer fashion: (i) potential runtime error-guided construction and prioritization of verification units, and (ii) LLM-aided synthesis of interprocedural specifications at the unit level. We show that Preguss substantially outperforms state-of-the-art LLM-based approaches and, in particular, it enables highly automated RTE-freeness verification for real-world programs with over a thousand LoC, with a reduction of 80.6%~88.9% human verification effort.\n                  <\/jats:p>","DOI":"10.1145\/3798268","type":"journal-article","created":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T14:33:43Z","timestamp":1775831623000},"page":"1874-1902","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":3,"title":["A Tale of 1001 LoC: Potential Runtime Error-Guided Specification Synthesis for Verifying Large-Scale Programs"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0009-0008-1986-6070","authenticated-orcid":false,"given":"Zhongyi","family":"Wang","sequence":"first","affiliation":[{"name":"Zhejiang University, Hangzhou, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-5951-7314","authenticated-orcid":false,"given":"Tengjie","family":"Lin","sequence":"additional","affiliation":[{"name":"Zhejiang University, Hangzhou, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9663-7441","authenticated-orcid":false,"given":"Mingshuai","family":"Chen","sequence":"additional","affiliation":[{"name":"Zhejiang University, Hangzhou, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6411-9324","authenticated-orcid":false,"given":"Haokun","family":"Li","sequence":"additional","affiliation":[{"name":"Peking University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-5304-6763","authenticated-orcid":false,"given":"Mingqi","family":"Yang","sequence":"additional","affiliation":[{"name":"Zhejiang University, Hangzhou, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4792-4433","authenticated-orcid":false,"given":"Xiao","family":"Yi","sequence":"additional","affiliation":[{"name":"Chinese University of Hong Kong, Hong Kong, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3028-8191","authenticated-orcid":false,"given":"Shengchao","family":"Qin","sequence":"additional","affiliation":[{"name":"Xidian University, Xi'an, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6223-5217","authenticated-orcid":false,"given":"Yixing","family":"Luo","sequence":"additional","affiliation":[{"name":"Beijing Institute of Control Engineering, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-8805-665X","authenticated-orcid":false,"given":"Xiaofeng","family":"Li","sequence":"additional","affiliation":[{"name":"Beijing Institute of Control Engineering, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7218-4839","authenticated-orcid":false,"given":"Bin","family":"Gu","sequence":"additional","affiliation":[{"name":"Beijing Institute of Control Engineering, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3801-6847","authenticated-orcid":false,"given":"Liqiang","family":"Lu","sequence":"additional","affiliation":[{"name":"Zhejiang University, Hangzhou, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4703-7348","authenticated-orcid":false,"given":"Jianwei","family":"Yin","sequence":"additional","affiliation":[{"name":"Zhejiang University, Hangzhou, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,4,10]]},"reference":[{"key":"e_1_3_1_2_1","unstructured":"2000. The Explosion of the Ariane 5. Retrieved October 2025 from https:\/\/www-users.cse.umn.edu\/~arnold\/disasters\/ariane.html"},{"key":"e_1_3_1_3_1","unstructured":"2020. A repository dedicated for problems related to verification of programs using the tool Frama-C. Retrieved October 2025 from https:\/\/github.com\/manavpatnaik\/frama-c-problems"},{"key":"e_1_3_1_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-49812-6"},{"key":"e_1_3_1_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-64354-6_6"},{"key":"e_1_3_1_6_1","unstructured":"America\u2019s Cyber Defense Agency. 2025. Secure by Design Alert: Eliminating Buffer Overflow Vulnerabilities. https:\/\/www.cisa.gov\/resources-tools\/resources\/secure-design-alert-eliminating-buffer-overflow-vulnerabilities"},{"key":"e_1_3_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/503272.503275"},{"key":"e_1_3_1_8_1","unstructured":"Anthropic. 2025. System Card: Claude Opus 4 & Claude Sonnet 4. Retrieved October 2025 from https:\/\/www-cdn.anthropic.com\/6be99a52cb68eb70eb9572b4cafad13df32ed995.pdf"},{"key":"e_1_3_1_9_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-99524-9_24"},{"key":"e_1_3_1_10_1","unstructured":"Patrick Baudin Pascal Cuoq Jean-Christophe Filli\u00e2tre Claude March\u00e9 Benjamin Monate Yannick Moy and Virgile Prevosto. 2025. ANSI\/ISO C Specification Language Version 1.22. https:\/\/www.frama-c.com\/download\/frama-c-acsl-implementation.pdf"},{"key":"e_1_3_1_11_1","unstructured":"Allan Blanchard. 2020. Introduction to C program proof with Frama-C and its WP plugin. https:\/\/allan-blanchard.fr\/publis\/frama-c-wp-tutorial-en.pdf"},{"key":"e_1_3_1_12_1","unstructured":"Tom B. Brown Benjamin Mann Nick Ryder Melanie Subbiah Jared Kaplan Prafulla Dhariwal Arvind Neelakantan Pranav Shyam Girish Sastry Amanda Askell Sandhini Agarwal Ariel Herbert-Voss Gretchen Krueger Tom Henighan Rewon Child Aditya Ramesh Daniel M. Ziegler Jeffrey Wu Clemens Winter Christopher Hesse Mark Chen Eric Sigler Mateusz Litwin Scott Gray Benjamin Chess Jack Clark Christopher Berner Sam McCandlish Alec Radford Ilya Sutskever and Dario Amodei. 2020. Language Models are Few-Shot Learners. In NeurIPS. https:\/\/dl.acm.org\/doi\/abs\/10.5555\/3495724.3495883"},{"key":"e_1_3_1_13_1","unstructured":"David B\u00fchler Pascal Cuoq and Boris Yakobowski. 2025. The Eva plug-in. https:\/\/www.frama-c.com\/download\/frama-c-eva-manual.pdf"},{"key":"e_1_3_1_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10009-004-0167-4"},{"key":"e_1_3_1_15_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2025.acl-long.1310"},{"key":"e_1_3_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-20398-5_35"},{"key":"e_1_3_1_17_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-45069-6_39"},{"key":"e_1_3_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/512950.512973"},{"key":"e_1_3_1_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45937-5_13"},{"key":"e_1_3_1_20_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-35873-9_10"},{"key":"e_1_3_1_21_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-18275-4_12"},{"key":"e_1_3_1_22_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"e_1_3_1_23_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-90870-6_23"},{"key":"e_1_3_1_24_1","unstructured":"Arnaud Ebalard Patricia Mouy and Ryad Benadjila. 2019. Journey to a RTE-Free X.509 Parser. In Symposium sur la s\u00e9curit\u00e9 des technologies de l\u2019information et des communications (SSTIC 2019). https:\/\/www.sstic.org\/media\/SSTIC2019\/SSTIC-actes\/journey-to-a-rte-free-x509-parser\/SSTIC2019-Article-journey-to-a-rte-free-x509-parser-ebalard_mouy_benadjila.pdf"},{"key":"e_1_3_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3527325"},{"key":"e_1_3_1_26_1","volume-title":"USENIX Security Symposium","author":"Fang Chongzhou","year":"2024","unstructured":"Chongzhou Fang, Ning Miao, Shaurya Srivastav, Jialin Liu, Ruoyu Zhang, Ruijie Fang, Asmita, Ryan Tsang, Najmeh Nazari, Han Wang, and Houman Homayoun. 2024. Large Language Models for Code Analysis: Do LLMs Really Do Their Job?. In USENIX Security Symposium. USENIX Association. https:\/\/www.usenix.org\/system\/files\/usenixsecurity24-fang.pdf"},{"key":"e_1_3_1_27_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-94-011-1793-7_4"},{"key":"e_1_3_1_28_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASE63991.2025.00110"},{"key":"e_1_3_1_29_1","unstructured":"Jens Gerlach. 2019. Minimal contract Hoare-style verification versus abstract interpretation. Technical Report. https:\/\/vessedia.technikon.com\/downloads\/VESSEDIA-D5.7-Minimal-contract-Hoare-style-verification-vs-abstract-interpretation-PU-M36.pdf"},{"key":"e_1_3_1_30_1","unstructured":"Philippe Herrmann and Julien Signoles. 2025. RTE - Runtime Error Annotation Generation. https:\/\/www.frama-c.com\/download\/frama-c-rte-manual.pdf"},{"key":"e_1_3_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/363235.363259"},{"key":"e_1_3_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/3703155"},{"key":"e_1_3_1_33_1","volume-title":"ISO\/IEC 9899:2024 Information technology \u2014 Programming languages \u2014 C","author":"ISO\/IEC JTC 1\/SC 22","year":"2024","unstructured":"ISO\/IEC JTC 1\/SC 22. 2024. ISO\/IEC 9899:2024 Information technology \u2014 Programming languages \u2014 C. ISO. https:\/\/www.iso.org\/standard\/82075.html"},{"key":"e_1_3_1_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/11691372_33"},{"key":"e_1_3_1_35_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2025.acl-short.50"},{"key":"e_1_3_1_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-44245-2_2"},{"key":"e_1_3_1_37_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-55608-1"},{"key":"e_1_3_1_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-50497-0"},{"key":"e_1_3_1_39_1","unstructured":"Kelvin Lawson. 2015. Atomthreads: Open Source RTOS. Retrieved October 2025 from https:\/\/github.com\/kelvinlawson\/atomthreads"},{"key":"e_1_3_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/3314221.3314634"},{"key":"e_1_3_1_41_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-17511-4_20"},{"key":"e_1_3_1_42_1","first-page":"489","volume-title":"USENIX Security Symposium","author":"Lekssays Ahmed","year":"2025","unstructured":"Ahmed Lekssays, Hamza Mouhcine, Khang Tran, Ting Yu, and Issa Khalil. 2025. LLMxCPG: Context-Aware Vulnerability Detection Through Code Property Graph-Guided Large Language Models. In USENIX Security Symposium. USENIX Association, 489\u2013507. https:\/\/www.usenix.org\/conference\/usenixsecurity25\/presentation\/lekssays"},{"key":"e_1_3_1_43_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE55347.2025.00129"},{"key":"e_1_3_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/1460690.1460715"},{"key":"e_1_3_1_45_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-14295-6_10"},{"key":"e_1_3_1_46_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-57256-2_24"},{"key":"e_1_3_1_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510120"},{"key":"e_1_3_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/3720499"},{"key":"e_1_3_1_49_1","unstructured":"OpenAI. 2024. Learning to reason with LLMs. Retrieved October 2025 from https:\/\/openai.com\/index\/learning-to-reason-with-llms\/"},{"key":"e_1_3_1_50_1","unstructured":"OpenAI. 2025. GPT-5 System Card. Retrieved October 2025 from https:\/\/cdn.openai.com\/gpt-5-system-card.pdf"},{"key":"e_1_3_1_51_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.net.2014.12.009"},{"key":"e_1_3_1_52_1","first-page":"264","volume-title":"EWSN","author":"Peyrard Alexandre","year":"2018","unstructured":"Alexandre Peyrard, Nikolai Kosmatov, Simon Duquennoy, Inria Lille, and Shahid Raza. 2018. Towards Formal Verification of Contiki: Analysis of the AES-CCM* Modules with Frama-C. In EWSN. Junction Publishing, Canada\/ACM, 264\u2013269. https:\/\/dl.acm.org\/doi\/10.5555\/3234847.3234910"},{"key":"e_1_3_1_53_1","doi-asserted-by":"publisher","DOI":"10.1145\/3691620.3695512"},{"key":"e_1_3_1_54_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10009-025-00804-2"},{"key":"e_1_3_1_55_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-05089-3_34"},{"key":"e_1_3_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/3368089.3409758"},{"key":"e_1_3_1_57_1","unstructured":"Chengpeng Wang. 2025. Advances in AI-Powered Code Security: Next-Level Bug Detection. Technical Report. https:\/\/chengpeng-wang.github.io\/slides\/talk_GitHub.pdf"},{"key":"e_1_3_1_58_1","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2512.24594"},{"key":"e_1_3_1_59_1","doi-asserted-by":"publisher","DOI":"10.1145\/3759425.3763394"},{"key":"e_1_3_1_60_1","doi-asserted-by":"publisher","unstructured":"Zhongyi Wang Tengjie Lin Mingshuai Chen Mingqi Yang Haokun Li Xiao Yi Shengchao Qin and Jianwei Yin. 2026. OOPSLA26 Artifact \u2013 A Tale of 1001 LoC: Potential Runtime Error-Guided Specification Synthesis for Verifying Large-Scale Programs. doi:10.5281\/zenodo.18768810","DOI":"10.5281\/zenodo.18768810"},{"key":"e_1_3_1_61_1","doi-asserted-by":"publisher","DOI":"10.1145\/3691620.3695487"},{"key":"e_1_3_1_62_1","doi-asserted-by":"crossref","unstructured":"Jason Wei Xuezhi Wang Dale Schuurmans Maarten Bosma Brian Ichter Fei Xia Ed H. Chi Quoc V. Le and Denny Zhou. 2022. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. In NeurIPS. https:\/\/dl.acm.org\/doi\/10.5555\/3600270.3602070","DOI":"10.52202\/068431-1800"},{"key":"e_1_3_1_63_1","doi-asserted-by":"publisher","DOI":"10.1145\/1985793.1985820"},{"key":"e_1_3_1_64_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-65630-9_16"},{"key":"e_1_3_1_65_1","doi-asserted-by":"publisher","DOI":"10.1145\/3691620.3695014"},{"key":"e_1_3_1_66_1","unstructured":"Haoze Wu Clark W. Barrett and Nina Narodytska. 2024a. Lemur: Integrating Large Language Models in Automated Program Verification. In ICLR. https:\/\/iclr.cc\/virtual\/2024\/poster\/18684"},{"key":"e_1_3_1_67_1","unstructured":"Yedi Zhang Yufan Cai Xinyue Zuo Xiaokun Luan Kailong Wang Zhe Hou Yifan Zhang Zhiyuan Wei Meng Sun Jun Sun Jing Sun and Jin Song Dong. 2025. Position: Trustworthy AI Agents Require the Integration of Large Language Models and Formal Methods. In ICML. https:\/\/icml.cc\/virtual\/2025\/poster\/40101"},{"key":"e_1_3_1_68_1","doi-asserted-by":"publisher","unstructured":"Yusen Zhang Ruoxi Sun Yanfei Chen Tomas Pfister Rui Zhang and Sercan \u00d6. Arik. 2024. Chain of Agents: Large Language Models Collaborating on Long-Context Tasks. In NeurIPS. doi:10.52202\/079017-4202","DOI":"10.52202\/079017-4202"},{"key":"e_1_3_1_69_1","doi-asserted-by":"publisher","DOI":"10.1145\/3728955"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798268","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:21:54Z","timestamp":1790421714000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3798268"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,10]]},"references-count":68,"journal-issue":{"issue":"OOPSLA1","published-print":{"date-parts":[[2026,4,10]]}},"alternative-id":["10.1145\/3798268"],"URL":"https:\/\/doi.org\/10.1145\/3798268","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,10]]},"assertion":[{"value":"2025-10-10","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"}}]}}