TL;DR
LLM coding agents are great at writing unit tests for isolated functions, but real-world software quality depends on system testing—driving an entire program from its front door to deep, tricky corners of the codebase. This paper introduces DIS-BENCH, a benchmark of 8,267 tasks across 37 real-world C/C++ repositories that tests whether agents can synthesize system-level inputs to reach specific code branches. Even the best frontier setup (GPT-5.4 with OpenHands) solves only 57.8% of tasks on the lite subset, revealing that LLMs struggle less with reading local code and more with building a big-picture mental model of how a whole system works.
What Problem Does This Paper Address?
Existing LLM testing benchmarks focus almost exclusively on unit tests, single functions, or reproducing known GitHub issues. That is a bit like testing a car by spinning each wheel on a bench rather than driving it on a road. System testing—feeding an input into a program's external entry point and watching it flow across modules, parsers, and state machines—is where many real bugs hide.
However, system testing is hard to benchmark. It requires repository-level comprehension and long-horizon reasoning, and benchmarks built on human-written issues or patches are slow to scale and prone to data contamination. The authors distill system testing into a clean, automatically verifiable problem: Directed Input Synthesis (DIS)—given a codebase, an entry point, and a target branch, generate an input that drives execution to that exact branch.
Methods
In a DIS task, an agent is given a repository, an entry program (like pngtopng.c), and a specific target branch deep in the codebase. Instead of outputting raw bytes—which LLMs notoriously fumble due to checksums and bit-level math—the agent writes a self-contained Python generator script (generate_buf()) that produces the input bytes. Verification is completely objective: run the compiled, instrumented program on the generated input and check if LLVM coverage hits the target branch.
To ensure targets are neither trivial nor unreachable, the authors use an automated random-testing pipeline (24-hour fuzzing campaigns). They keep only "stable roadblock branches": branches whose enclosing if statement is reached early, but which random byte-level mutations repeatedly fail to enter for at least an hour across multiple runs.
Datasets
- DIS-BENCH: 8,267 tasks mined from 37 real-world, production C/C++ repositories (e.g.,
libpng,sqlite3,tcpdump,freetype2) spanning 51 input formats across 9 categories (images, audio/video, documents, fonts, data formats, compilers/interpreters, binaries, network, and others). - DIS-BENCH-LITE: A balanced 555-task evaluation subset (15 tasks uniformly sampled per program) designed for practical agent evaluation.
Unlike SWE-bench or SWT-Bench, DIS-BENCH requires zero human-authored issues or patches, making it scalable and naturally resistant to pre-training memorization.
Key Insights and Ideas
- The bottleneck is system-level abstraction, not local code reading. When the authors manually inspected 111 failed trajectories, 54.1% failed because the agent could not form a high-level structural model of the program—resulting in "unbounded exploration" (grepping and dumping files without a working hypothesis). Only 11.7% misread the local branch condition itself.
- Textual formats are easy; binary layouts are hard. Agents ace formats abundant in pre-training data like Data (JSON/SQL) and Code (Lua), but crater on densely packed binary formats like Fonts (max 7.8% pass@1 for open-weight models) and Audio/Video.
- Local reasoning works once you get there. Across all models, 31–65% of failed attempts never even enter the function containing the target branch. Once an input does reach that function, the gap between entering the function and hitting the exact branch is relatively small.
Key Results
The authors evaluated 7 open-weight LLMs and 2 proprietary frontier models (Seed-2.0 and GPT-5.4) using BM25 retrieval (RAG) and three coding agents (Mini-SWE-Agent, OpenHands, Claude-Code) on DIS-BENCH-LITE:
- Open-weight ceiling: The best open-weight setup (MiniMax-M2.5 + Claude-Code) achieves 28.1% pass@1 (42.7% pass@3).
- Frontier performance: GPT-5.4 + OpenHands reaches 57.8% pass@1, and Seed-2.0 + OpenHands hits 34.5% pass@1 (46.1% pass@3). Scaffold choice matters: GPT-5.4 drops to 37.8% under Mini-SWE-Agent.
- The "hard core": 23.1% of tasks (128/555) were not solved by any model or agent in any attempt.
Limitations and Future Work
Evaluating coding agents on all 8,267 tasks is expensive, so full model comparisons were run on the 555-task DIS-BENCH-LITE subset (with GPT-5.4 evaluated at 1 sample per task). Additionally, the current benchmark focuses on C/C++ repositories with byte-buffer entry harnesses. Looking ahead, the authors note that improving agents' ability to build and use system-level abstractions—rather than just scaling local code comprehension—is the key to unlocking automated system testing.
Summary updated