CORE: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks

Dan-Ning Xie, Ming-Wei Zheng, Xu-Wei Liu, Jian-Nan Wang, Cheng-Peng Wang +2 more
7/1/2025
benchmark-dataset

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) have been widely adopted across diverse domains of software engineering, such as code generation, program repair, and vulnerability detection. These applications require understanding beyond surface-level code patterns: value propagation, control flow, and interdependence between program elements.

Show full abstract

However, existing benchmarks primarily evaluate end-to-end outcomes, such as whether code is correctly repaired or generated, leaving the models'ability for program semantic reasoning underexplored. This work presents CORE, a high-quality, human-verified benchmark designed to evaluate LLMs on fundamental static analysis tasks. CORE includes 12,553 task instances spanning data dependency, control dependency, and information flow across programs written in C/C++, Java, and Python. To ensure semantic diversity and reasoning complexity, we propose a semantics-aware diverse sampling strategy that selects targets and task instances based on structural coverage and dependency depth. We evaluate 10 mainstream LLMs and show that, while they perform well at identifying dependencies, models still struggle with tasks that require deeper semantic understanding and multi-step reasoning. We further conduct qualitative analyses to uncover key challenges, such as complex control structures and backward dependency patterns, offering insights into improving LLMs'code reasoning capabilities.

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{xie2025core,
  title  = {CORE: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks},
  author = {Dan-Ning Xie and Ming-Wei Zheng and Xu-Wei Liu and Jian-Nan Wang and Cheng-Peng Wang and Lin Tan and Xiang-Yu Zhang},
  year   = {2025},
  eprint = {2507.05269},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2507.05269},
  url    = {https://doi.org/10.48550/arXiv.2507.05269},
  journal = {Neural Information Processing Systems}
}

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/2507.05269.svg)](https://codeofpaper.com/paper/2507.05269)

Discussion