Specify What? Enhancing Neural Specification Synthesis by Symbolic Methods

Architecture of OpenAI


View a PDF of the paper titled Specify What? Enhancing Neural Specification Synthesis by Symbolic Methods, by George Granberry and 2 other authors

View PDF
HTML (experimental)

Abstract:We investigate how combinations of Large Language Models (LLMs) and symbolic analyses can be used to synthesise specifications of C programs. The LLM prompts are augmented with outputs from two formal methods tools in the Frama-C ecosystem, Pathcrawler and EVA, to produce C program annotations in the specification language ACSL. We demonstrate how the addition of symbolic analysis to the workflow impacts the quality of annotations: information about input/output examples from Pathcrawler produce more context-aware annotations, while the inclusion of EVA reports yields annotations more attuned to runtime errors. In addition, we show that the method infers rather the programs intent than its behaviour, by generating specifications for buggy programs and observing robustness of the result against bugs.

Submission history

From: George Granberry [view email]
[v1]
Fri, 21 Jun 2024 17:39:57 UTC (362 KB)
[v2]
Wed, 18 Sep 2024 08:21:29 UTC (369 KB)



Source link
lol

By stp2y

Leave a Reply

Your email address will not be published. Required fields are marked *

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.