StaAgent: An Agentic Framework for Testing Static Analyzers
Elijah Nnorom, Md Basim Uddin Ahmed, Jiho Shin, Hung Viet Pham, Song Wang

TL;DR
StaAgent leverages large language models and a multi-agent system to systematically evaluate and improve static analyzers by identifying inconsistent rule behaviors and uncovering hidden bugs.
Contribution
Introduces StaAgent, a novel agentic framework utilizing LLMs for scalable, systematic testing of static analyzer rules through metamorphic testing and seed mutation.
Findings
Revealed 64 problematic rules across five static analyzers.
Detected 53 bugs not found by state-of-the-art baselines.
Reported bugs led to fixes and developer confirmations.
Abstract
Static analyzers play a critical role in identifying bugs early in the software development lifecycle, but their rule implementations are often under-tested and prone to inconsistencies. To address this, we propose StaAgent, an agentic framework that harnesses the generative capabilities of Large Language Models (LLMs) to systematically evaluate static analyzer rules. StaAgent comprises four specialized agents: a Seed Generation Agent that translates bug detection rules into concrete, bug-inducing seed programs; a Code Validation Agent that ensures the correctness of these seeds; a Mutation Generation Agent that produces semantically equivalent mutants; and an Analyzer Evaluation Agent that performs metamorphic testing by comparing the static analyzer's behavior on seeds and their corresponding mutants. By revealing inconsistent behaviors, StaAgent helps uncover flaws in rule…
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
TopicsAnomaly Detection Techniques and Applications · Software System Performance and Reliability · Time Series Analysis and Forecasting
