AI and the World's Hard Problems · Theoretical computer science · arXiv · 2026-11-10
Viverra: Text-to-Code with Guarantees

LLM-generated code cannot be guaranteed correct, so developers must still review it, which can erode the productivity gains of AI coding tools. Viverra prompts an LLM to produce a C program along with candidate assertions for safety and correctness, then verifies those assertions with a portfolio of bounded model checkers. On 17 programming tasks it efficiently generated code with verified assertions, and in a user study with over 400 task completions, the assertions improved users' performance on code-comprehension tasks.