LLMs and Fuzzing in Tandem: A New Approach to Automatically Generating Weakest Preconditions
King, Daragh, Koutavas, Vasileios, Kovacs, Laura
–arXiv.org Artificial Intelligence
Pre-and postconditions are fundamental formalisms for specifying program behaviour, originating from the seminal work of Floyd [1] and Hoare [2]. Beyond Hoare-logic itself, these formalisms are a cornerstone in many software engineering, verification, and debugging techniques; these include design-by-contract [3], abstract interpretation [4], program refinement [5], symbolic execution [6], and runtime assertion checking [7]. The postcondition of a program method specifies the desired property of the program state upon termination. On the other hand, the precondition specifies the required property of the initial state for the method to behave as intended.1 Knowing the pre-and postconditions of a method suffice to ensure its correctness to external calling methods - thereby enabling compositional program reasoning. There can be many pre-and postconditions for a given method m, but finding the right ones is crucial for effective compositional reasoning. If m's precondition is too permissive (allowing too many initial states) or its postcondition too restrictive (rejecting too many final states), reasoning about
arXiv.org Artificial Intelligence
Dec-18-2025
- Country:
- Europe (0.93)
- North America > United States
- California (0.46)
- Genre:
- Overview (0.67)
- Research Report (0.50)
- Technology: