Automated Testing and Repair for Verified Compilers Generated by a Coding Agent
Martin Rinard
Abstract
We present an agent based automated testing and repair system for verified compilers that contain four kinds of code: verified code, checked code, unverified code, and specification. We present specialized defect detection techniques that exploit the structure present in such compilers. For each surfaced defect the system invokes a coding agent to repair the defect and validate the repair. We evaluate the system on the Axon compiler, a compiler completely generated by a coding agent operating under developer supervision. The compiler was validated during development on a small benchmark set (the Livermore benchmarks), raising the possibility that its coding agent reward hacked the compiler. We also evaluate the possibility that the repair system reward hacked the repairs and find no evidence of reward hacking in either the Axon compiler or the repairs. We present results that characterize the testing and repair effectiveness and discuss repair characteristics.
Create a lesson
Related papers
Compiled AI: Deterministic Code Generation for LLM-Based Workflow Automation
Shared title terminology · Geert Trooskens, Aaron Karlsberg, Anmol Sharma et al.
Can Coding Agents Write and Transpile Unit Tests
Shared title terminology · Gil Pasternak, AJ Langley, Tom Yotam et al.
CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer
Shared title terminology · Kaixin Wang, Tianlin Li, Xiaoyu Zhang et al.
Automated Assertion Generation and Regression Testing for Machine Learning Notebooks
Shared title terminology · Yingao, Yao, Vedant Nimje et al.
Route-Align-Verify for Functional Correctness in Code Generation
Shared title terminology · Erxue Zhou, Jingxiang Meng, Aofan Liu
On Automated and Explainable Provenance of AI-Generated Code
Shared title terminology · Alejandro Velasco, Nathan Wintersgill, Trevor Stalnaker et al.