Viverra: Text-to-Code with Guarantees
Haoze Wu, Rocky Klopfenstein, Keith Farkas, Nina Narodytska

TL;DR
Viverra is a system that automatically generates C code from natural language and produces formally verified assertions to improve correctness and user understanding, verified via model checkers.
Contribution
It introduces a novel approach combining LLM-generated code with formal verification of safety assertions to enhance correctness guarantees.
Findings
Viverra efficiently generates code with verified assertions for diverse tasks.
Assertions improve user performance on code comprehension tasks.
System verified assertions using a portfolio of bounded model checkers.
Abstract
A fundamental limitation of Text-to-Code is that no guarantee can be obtained about the correctness of the generated code. Therefore, to ensure its correctness, the generated code still has to be reviewed, tested, and maintained by developers. However, parsing through LLM-generated code can be tedious and time-consuming, potentially negating the productivity gains promised by AI-coding tools. To address this challenge, we present Viverra, a system that automatically produces formally verified annotations alongside generated code to aid user's understanding of the generated program. Given a natural-language task description, Viverra prompts an LLM to synthesize a C program together with candidate assertions expressing safety and correctness properties. It then verifies those assertions in a compositional and best-effort manner via a portfolio of bounded model checkers. Evaluation on 18…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
