AutoICE: Automatically Synthesizing Verifiable C Code via LLM-driven Evolution

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Luo, Weilin, Liang, Xueyi, Deng, Haotian, Liu, Yanan, Wan, Hai
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918237859479552
author Luo, Weilin
Liang, Xueyi
Deng, Haotian
Liu, Yanan
Wan, Hai
author_facet Luo, Weilin
Liang, Xueyi
Deng, Haotian
Liu, Yanan
Wan, Hai
contents Automatically synthesizing verifiable code from natural language requirements ensures software correctness and reliability while significantly lowering the barrier to adopting the techniques of formal methods. With the rise of large language models (LLMs), long-standing efforts at autoformalization have gained new momentum. However, existing approaches suffer from severe syntactic and semantic errors due to the scarcity of domain-specific pre-training corpora and often fail to formalize implicit knowledge effectively. In this paper, we propose AutoICE, an LLM-driven evolutionary search for synthesizing verifiable C code. It introduces the diverse individual initialization and the collaborative crossover to enable diverse iterative updates, thereby mitigating error propagation inherent in single-agent iterations. Besides, it employs the self-reflective mutation to facilitate the discovery of implicit knowledge. Evaluation results demonstrate the effectiveness of AutoICE: it successfully verifies $90.36$\% of code, outperforming the state-of-the-art (SOTA) approach. Besides, on a developer-friendly dataset variant, AutoICE achieves a $88.33$\% verification success rate, significantly surpassing the $65$\% success rate of the SOTA approach.
format Preprint
id arxiv_https___arxiv_org_abs_2512_07501
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AutoICE: Automatically Synthesizing Verifiable C Code via LLM-driven Evolution
Luo, Weilin
Liang, Xueyi
Deng, Haotian
Liu, Yanan
Wan, Hai
Software Engineering
Artificial Intelligence
Automatically synthesizing verifiable code from natural language requirements ensures software correctness and reliability while significantly lowering the barrier to adopting the techniques of formal methods. With the rise of large language models (LLMs), long-standing efforts at autoformalization have gained new momentum. However, existing approaches suffer from severe syntactic and semantic errors due to the scarcity of domain-specific pre-training corpora and often fail to formalize implicit knowledge effectively. In this paper, we propose AutoICE, an LLM-driven evolutionary search for synthesizing verifiable C code. It introduces the diverse individual initialization and the collaborative crossover to enable diverse iterative updates, thereby mitigating error propagation inherent in single-agent iterations. Besides, it employs the self-reflective mutation to facilitate the discovery of implicit knowledge. Evaluation results demonstrate the effectiveness of AutoICE: it successfully verifies $90.36$\% of code, outperforming the state-of-the-art (SOTA) approach. Besides, on a developer-friendly dataset variant, AutoICE achieves a $88.33$\% verification success rate, significantly surpassing the $65$\% success rate of the SOTA approach.
title AutoICE: Automatically Synthesizing Verifiable C Code via LLM-driven Evolution
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2512.07501