mlsanityData to 7 Oct 2026

CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks

arXiv 2507.05269 ↗First posted 3 Jul 2025cs.SE cs.AIcited by 24

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

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. 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.

Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 19 of its 109 references that are in the map. First posted on arXiv 3 Jul 2025.

Builds on

19 of 109 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoning19 Apr
  2. 2024CRQBench: A Benchmark of Code Reasoning Questions15 Aug

Other references · 17

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
  7. 2024DeepSeek-V3 Technical Reportcited by 724
  8. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  9. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
  10. 2025SWE-Lancer: Can Frontier LLMs Earn 1 Million from Real-World Freelance Software Engineering?cited by 99
  11. 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 67
  12. 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testingcited by 34
5 more
  1. 2023E&V: Prompting Large Language Models to Perform Static Analysis by Pseudo-code Execution and Verificationcited by 9
  2. 2024Advancing Code Coverage: Incorporating Program Analysis with Large Language Modelscited by 8
  3. 2024LLMExplainer: Large Language Model based Bayesian Inference for Graph Explanation Generationcited by 8
  4. 2025RFCAudit: An LLM Agent for Functional Bug Detection in Network Protocolscited by 7
  5. 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rustcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 10; 2026: 14.

24 papers.

Sort:

By area:

  1. 2026Code as Agent Harnesscited by 40
  2. 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
  3. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  4. 2026From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Levelcited by 6
  5. 2025Assessing Coherency and Consistency of Code Execution Reasoning by Large Language Modelscited by 5
  6. 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulationcited by 5
  7. 2026ExecVerify: White-Box RL with Verifiable Stepwise Rewards for Code Execution Reasoningcited by 5
  8. 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
  9. 2025Gistify! Codebase-Level Understanding via Runtime Executioncited by 4
  10. 2025Is "Knowing It's Malicious Enough?" Evaluating LLMs for Fine-Grained Malware Behavior Auditingcited by 3
  11. 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settingscited by 3
  12. 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligencecited by 2
12 more
  1. 2025Counting Without Running: Evaluating LLMs' Reasoning About Code Complexitycited by 2
  2. 2026How Robustly do LLMs Understand Execution Semantics?cited by 2
  3. 2026Beyond Output Correctness: Benchmarking and Evaluating Large Language Model Reasoning in Coding Taskscited by 1
  4. 2026PRISM: A Benchmark for Programmatic Spatial-Temporal Reasoningcited by 1
  5. 2026GTBench: A Curriculum-Grounded Benchmark for Evaluating LLMs as Mathematical Research Assistants in Graph Theorycited by 1
  6. 2026Detecting Differences Is Not Understanding Structure: Large Language Models Fail at Graph Isomorphismcited by 1
  7. 2025Grounded AI for Code Review: Resource-Efficient Large-Model Serving in Enterprise Pipelinescited by 0
  8. 2026CMind: An AI Agent for Localizing C Memory Bugscited by 0
  9. 2026The Path Not Taken: Duality in Reasoning about Program Executioncited by 0
  10. 2026Teaching LLMs Program Semantics via Symbolic Execution Tracescited by 0
  11. 2026Croissant Tasks: A Metadata Format for Reproducible Machine Learning Evaluationscited by 0
  12. 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agentscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026CoRE: A Fine-Grained Code Reasoning Benchmark Beyond Output Prediction
  2. 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning
  3. 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inference
  4. 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark
  5. 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning
  6. 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysis
  7. 2025Evaluating Program Semantics Reasoning with Type Inference in System F
  8. 2025Dynamic Benchmarking of Reasoning Capabilities in Code Large Language Models Under Data Contamination