TL;DR
AGOLIC introduces an "agentic" planning layer driven by Large Language Models (LLMs) that sits above traditional symbolic execution tools. Instead of modifying the complex inner search loops of these tools, AGOLIC uses an LLM planner to analyze code and past coverage data, intelligently configuring and launching subsequent targeted runs to achieve over 3× the branch coverage of baseline methods.
What Problem Does This Paper Address?
Symbolic execution is a powerful program analysis technique that treats inputs as mathematical symbols to explore every possible path through a piece of software. When it works, it can mathematically prove the absence of bugs or generate exact inputs to trigger vulnerabilities.
However, it frequently hits a wall known as path explosion. As a program grows, the number of possible execution paths increases exponentially. Complex input parsers, setup routines, and heavy constraint-solving queries quickly exhaust a tool's time and memory budgets before it can ever reach deep, interesting program logic.
While researchers have tried to fix this by tweaking inner search heuristics or pairing symbolic execution with fuzzing (hybrid testing), these tools still lack a high-level, "macro" understanding of why they get stuck and how to pivot.
Methods
AGOLIC solves this by introducing a clean division of labor: let the symbolic execution tool handle micro-level path exploration, and let an LLM agent handle macro-level strategy.
Instead of intervening mid-run, AGOLIC treats a Bounded Symbolic Execution (BSE) run as its atomic unit of control. The system operates in a loop across multiple planning rounds:
- Feedback Collection: AGOLIC concretely replays all generated test inputs to build a precise source-level coverage map.
- Agentic Planning: An LLM agent (like GPT-4 or Claude) inspects the source code, the current coverage map, and the history of previous attempts to identify underexplored functions.
- Target Configuration: The agent generates specific configurations for the next batch of BSE runs.
To execute these plans, AGOLIC introduces two distinct execution modes:
- Harness-Entry Mode: The symbolic execution tool starts normally from the main test harness.
- Witness-Guided Mode: To bypass heavy initialization code (like file format parsers), the planner provides a concrete input (a "witness") to fast-forward the program to a specific "release function." At that boundary, the tool switches to ordinary symbolic execution, exploring new branches from a deep, pre-established state.
Datasets
The authors evaluated AGOLIC on seven real-world C and C++ programs originally sourced from the ConcoLLMic benchmark suite:
bc(arbitrary-precision calculator)confettikreplibmathevallibyaml(YAML parser)oggenc(audio encoder)woff2(font format converter)
(Note: libsoup was excluded from the original suite due to missing network model dependencies in the evaluation container).
Key Insights and Ideas
- The "Hard Frontier" Failure: Early iterations of this research tried to clone stuck symbolic states and ask an LLM to patch variables mid-run. This failed because the path conditions leading to that point were already fixed, limiting what the tool could explore next. Shifting the LLM's role to configuring entirely new runs provided the necessary flexibility.
- The Release-Boundary Trade-off: Witness-Guided Mode acts as a narrow scalpel. Releasing symbolic execution too early reintroduces path explosion in the setup code; releasing it too late means the witness has already locked in the choices determining the target branch. The LLM's primary value is its ability to reason through code structure to find the "sweet spot" for this boundary.
Key Results
AGOLIC significantly outperformed traditional testing and state-of-the-art concolic execution tools across the board:
- Massive Coverage Gains: AGOLIC covered more than 3× as many branches on average compared to continuous, un-planned symbolic execution (KLEE baseline).
- Outperforming the State-of-the-Art: It achieved higher branch coverage than coverage-guided fuzzing (
AFL++), compiler-based concolic execution (SymCC,SymSan), and the LLM-guided concolic toolConcoLLMic. - Reaching the Unreachable: On six of the seven programs, AGOLIC successfully uncovered branches that were completely missed by all other comparison tools combined.
Limitations and Future Work
- Resource Asymmetry: In the evaluation, AGOLIC utilized up to 10 parallel workers (one for continuous execution, nine for planned BSE runs), whereas the baseline KLEE run used a single worker. A stricter, capacity-matched evaluation is needed to isolate the exact benefit of the planner's intelligence versus raw compute power.
- Data Contamination & Web Dependency: The witness finder agent scrapes public web inputs to find seed files for Witness-Guided Mode. This introduces a dependency on external data availability and raises questions about whether the LLM's success is partially due to seeing these benchmarks during pre-training.
- Narrow Objective: The current implementation focuses purely on maximizing branch coverage. Future work will need to test if agentic planning can be adapted to other critical objectives, such as targeted bug-hunting or vulnerability discovery.
Summary updated