Write Your Own CodeChecker: An Automated Test-Driven Checker Development Approach with LLMs
Jun Liu, Yuanyuan Xie, Jiwei Yan, Jinhao Huang, Jun Yan, and Jian Zhang

TL;DR
AutoChecker is an LLM-powered system that automatically generates custom code checkers from rule descriptions and test suites, significantly improving effectiveness and applicability in real-world projects.
Contribution
The paper introduces AutoChecker, a novel LLM-based approach for automated, incremental, and logic-guided code checker generation from minimal input.
Findings
AutoChecker achieves an average test pass rate of 82.28%.
Generated checkers match the performance of official checkers in real-world projects.
AutoChecker outperforms five baseline methods across all effectiveness metrics.
Abstract
With the rising demand for code quality assurance, developers are not only utilizing existing static code checkers but also seeking custom checkers to satisfy their specific needs. Nowadays, various code-checking frameworks provide extensive checker customization interfaces to meet this need. However, both the abstract checking logic and the complex API usage of large-scale checker frameworks make this task challenging. To this end, automated code checker generation is anticipated to ease the burden of checker development. In this paper, we propose AutoChecker, an innovative LLM-powered approach that can write code checkers automatically based on only a rule description and a test suite. To achieve comprehensive checking logic, AutoChecker incrementally updates the checker's logic by focusing on solving one selected case each time. To obtain precise API knowledge, during each iteration,…
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.
Taxonomy
TopicsService-Oriented Architecture and Web Services · Natural Language Processing Techniques · Web Application Security Vulnerabilities
