Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark

Hamed Taherkhani, Mohammad Abdollahi, Melika Sepidband, Hridya Dhulipala, Tien N. Nguyen +1 more
9/23/2026
cs.SEcs.AIcs.CL
benchmark-dataset

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) are increasingly used in coding tasks, but their ability to reason about code execution remains unclear. Existing repository-level QA benchmarks mainly evaluate static code understanding and often rely on LLM-based evaluation, while execution-reasoning benchmarks are mostly limited to snippets or functions.

Show full abstract

We introduce SWE-Flux, a repository-level benchmark for dynamic execution reasoning containing 480 execution-grounded instances across 12 real Python repositories, with gold answers automatically harvested from instrumented test executions rather than written manually or judged by LLMs. The benchmark covers singletest and multi-test questions over control flow, loops, program state, dataflow, exceptions, and program invariants. Evaluating five LLMs shows that this task remains challenging. The best model achieves only 37% accuracy. Models perform better on localized behavior such as invariants, intra-procedural control flow, exceptions, and simple loops, but struggle with dataflow, inter-procedural execution, precise state reasoning, and suite-level aggregation. Finally, we show that the oracle-harvesting pipeline can generate fresh benchmark variants using input perturbation. It successfully harvests valid variants for almost 90% of the selected instances, and the resulting variants are substantially more challenging for the evaluated models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{taherkhani2026llms,
  title  = {Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark},
  author = {Hamed Taherkhani and Mohammad Abdollahi and Melika Sepidband and Hridya Dhulipala and Tien N. Nguyen and Hadi Hemmati},
  year   = {2026},
  eprint = {2609.28449},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.28449v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.28449.svg)](https://codeofpaper.com/paper/2609.28449)

Discussion