# Viverra: Text-to-Code with Guarantees

DevFeed: [Viverra: Text-to-Code with Guarantees](<https://devfeed.tech/articles/viverra-text-to-code-with-guarantees-127188.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.14972>)

Author: Haoze Wu, Rocky Klopfenstein, Keith Farkas, Nina Narodytska

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Generative AI](<https://devfeed.tech/topics/generative-ai.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [generative-ai-tools](<https://devfeed.tech/topics/generative-ai-tools.md>), [Code](<https://devfeed.tech/topics/code.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding-tools](<https://devfeed.tech/tags/ai-coding-tools.md>), [annotations](<https://devfeed.tech/tags/annotations.md>), [assertions](<https://devfeed.tech/tags/assertions.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [bounded](<https://devfeed.tech/tags/bounded.md>), [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-hc](<https://devfeed.tech/tags/cs-hc.md>), [cs-lo](<https://devfeed.tech/tags/cs-lo.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [efficiently](<https://devfeed.tech/tags/efficiently.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [llm](<https://devfeed.tech/tags/llm.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [safety](<https://devfeed.tech/tags/safety.md>), [study](<https://devfeed.tech/tags/study.md>), [system](<https://devfeed.tech/tags/system.md>), [tasks](<https://devfeed.tech/tags/tasks.md>), [users](<https://devfeed.tech/tags/users.md>)

## AI overview

Viverra pairs LLM-generated C programs with candidate assertions about safety and correctness, then checks those assertions compositionally and on a best-effort basis using a portfolio of bounded model checkers. The verified annotations are intended to help developers understand generated code; they do not remove the stated need for developers to review, test, and maintain it. Evaluation across 17 programming tasks found the system could efficiently produce code with verified assertions, and a user study with more than 400 task completions found the assertions improved code-comprehension performance.

## Source excerpt

arXiv:2605.14972v2 Announce Type: replace 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 17 diverse programming tasks suggests that Viverra can efficiently generate code with verified assertions, and that these assertions improve users' performance on code-comprehension tasks in a user study with more than 400 task completions.