LLMs and Fuzzing in Tandem: A New Approach to Automatically Generating Weakest Preconditions
Not on the map. Why?
Abstract (arXiv)
The weakest precondition (WP) of a program describes the largest set of initial states from which all terminating executions of the program satisfy a given postcondition. The generation of WPs is an important task with practical applications in areas ranging from verification to run-time error checking. This paper proposes the combination of Large Language Models (LLMs) and fuzz testing for generating WPs. In pursuit of this goal, we introduce Fuzzing Guidance (FG); FG acts as a means of directing LLMs towards correct WPs using program execution feedback. FG utilises fuzz testing for approximately checking the validity and weakness of candidate WPs, this information is then fed back to the LLM as a means of context refinement. We demonstrate the effectiveness of our approach on a comprehensive benchmark set of deterministic array programs in Java. Our experiments indicate that LLMs are capable of producing viable candidate WPs, and that this ability can be practically enhanced through FG.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 8 of its 49 references that are in the map. First posted on arXiv 3 Jul 2025.
Builds on
8 of 49 references.
References · 8
- 2017Attention Is All You Needcited by 60,361
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2022CodeT: Code Generation with Generated Testscited by 384
- 2023Impact of Code Language Models on Automated Program Repaircited by 85
- 2018The Art, Science, and Engineering of Fuzzing: A Surveycited by 62
- 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 57
- 2023Lemur: Integrating Large Language Models in Automated Program Verificationcited by 49
- 2021Data-Driven Abductive Inference of Library Specificationscited by 2
Built on by
Not cited yet.