CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks
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
- 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoning19 Apr
- 2024CRQBench: A Benchmark of Code Reasoning Questions15 Aug
Other references · 17
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
- 2024DeepSeek-V3 Technical Reportcited by 724
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2025SWE-Lancer: Can Frontier LLMs Earn 1 Million from Real-World Freelance Software Engineering?cited by 99
- 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 67
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testingcited by 34
5 more
- 2023E&V: Prompting Large Language Models to Perform Static Analysis by Pseudo-code Execution and Verificationcited by 9
- 2024Advancing Code Coverage: Incorporating Program Analysis with Large Language Modelscited by 8
- 2024LLMExplainer: Large Language Model based Bayesian Inference for Graph Explanation Generationcited by 8
- 2025RFCAudit: An LLM Agent for Functional Bug Detection in Network Protocolscited by 7
- 2025Raw Pointer Rewriting with LLMs for Translating C to Safer Rustcited by 4
Built on by
Citing papers per year: 2025: 10; 2026: 14.
24 papers.
Sort:
By area:
- 2026Code as Agent Harnesscited by 40
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2026From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Levelcited by 6
- 2025Assessing Coherency and Consistency of Code Execution Reasoning by Large Language Modelscited by 5
- 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulationcited by 5
- 2026ExecVerify: White-Box RL with Verifiable Stepwise Rewards for Code Execution Reasoningcited by 5
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
- 2025Gistify! Codebase-Level Understanding via Runtime Executioncited by 4
- 2025Is "Knowing It's Malicious Enough?" Evaluating LLMs for Fine-Grained Malware Behavior Auditingcited by 3
- 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settingscited by 3
- 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligencecited by 2
12 more
- 2025Counting Without Running: Evaluating LLMs' Reasoning About Code Complexitycited by 2
- 2026How Robustly do LLMs Understand Execution Semantics?cited by 2
- 2026Beyond Output Correctness: Benchmarking and Evaluating Large Language Model Reasoning in Coding Taskscited by 1
- 2026PRISM: A Benchmark for Programmatic Spatial-Temporal Reasoningcited by 1
- 2026GTBench: A Curriculum-Grounded Benchmark for Evaluating LLMs as Mathematical Research Assistants in Graph Theorycited by 1
- 2026Detecting Differences Is Not Understanding Structure: Large Language Models Fail at Graph Isomorphismcited by 1
- 2025Grounded AI for Code Review: Resource-Efficient Large-Model Serving in Enterprise Pipelinescited by 0
- 2026CMind: An AI Agent for Localizing C Memory Bugscited by 0
- 2026The Path Not Taken: Duality in Reasoning about Program Executioncited by 0
- 2026Teaching LLMs Program Semantics via Symbolic Execution Tracescited by 0
- 2026Croissant Tasks: A Metadata Format for Reproducible Machine Learning Evaluationscited by 0
- 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agentscited by 0
- 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agents28 Sep 2026
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models28 Jul 2026
- 2026Detecting Differences Is Not Understanding Structure: Large Language Models Fail at Graph Isomorphism8 Jun 2026
- 2026GTBench: A Curriculum-Grounded Benchmark for Evaluating LLMs as Mathematical Research Assistants in Graph Theory2 Jun 2026
- 2026Croissant Tasks: A Metadata Format for Reproducible Machine Learning Evaluations28 May 2026
- 2026PRISM: A Benchmark for Programmatic Spatial-Temporal Reasoning19 May 2026
- 2026Code as Agent Harness18 May 2026
- 2026Teaching LLMs Program Semantics via Symbolic Execution Traces7 May 2026
- 2026The Path Not Taken: Duality in Reasoning about Program Execution22 Apr 2026
- 2026Beyond Output Correctness: Benchmarking and Evaluating Large Language Model Reasoning in Coding Tasks14 Apr 2026
- 2026ExecVerify: White-Box RL with Verifiable Stepwise Rewards for Code Execution Reasoning11 Mar 2026
- 2026How Robustly do LLMs Understand Execution Semantics?24 Feb 2026
12 more
- 2026CMind: An AI Agent for Localizing C Memory Bugs20 Jan 2026
- 2026From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Level7 Jan 2026
- 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settings16 Dec 2025
- 2025Counting Without Running: Evaluating LLMs' Reasoning About Code Complexity4 Dec 2025
- 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation28 Nov 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Gistify! Codebase-Level Understanding via Runtime Execution30 Oct 2025
- 2025Assessing Coherency and Consistency of Code Execution Reasoning by Large Language Models16 Oct 2025
- 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligence13 Oct 2025
- 2025Grounded AI for Code Review: Resource-Efficient Large-Model Serving in Enterprise Pipelines11 Oct 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025Is "Knowing It's Malicious Enough?" Evaluating LLMs for Fine-Grained Malware Behavior Auditing17 Sep 2025
- 2026From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Levelcited by 6
- 2025Assessing Coherency and Consistency of Code Execution Reasoning by Large Language Modelscited by 5
- 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulationcited by 5
- 2026ExecVerify: White-Box RL with Verifiable Stepwise Rewards for Code Execution Reasoningcited by 5
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
- 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settingscited by 3
- 2025Counting Without Running: Evaluating LLMs' Reasoning About Code Complexitycited by 2
- 2026Beyond Output Correctness: Benchmarking and Evaluating Large Language Model Reasoning in Coding Taskscited by 1
- 2026PRISM: A Benchmark for Programmatic Spatial-Temporal Reasoningcited by 1
- 2026GTBench: A Curriculum-Grounded Benchmark for Evaluating LLMs as Mathematical Research Assistants in Graph Theorycited by 1
- 2026The Path Not Taken: Duality in Reasoning about Program Executioncited by 0
- 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agentscited by 0
- 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agents28 Sep 2026
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models28 Jul 2026
- 2026GTBench: A Curriculum-Grounded Benchmark for Evaluating LLMs as Mathematical Research Assistants in Graph Theory2 Jun 2026
- 2026PRISM: A Benchmark for Programmatic Spatial-Temporal Reasoning19 May 2026
- 2026The Path Not Taken: Duality in Reasoning about Program Execution22 Apr 2026
- 2026Beyond Output Correctness: Benchmarking and Evaluating Large Language Model Reasoning in Coding Tasks14 Apr 2026
- 2026ExecVerify: White-Box RL with Verifiable Stepwise Rewards for Code Execution Reasoning11 Mar 2026
- 2026From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Level7 Jan 2026
- 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settings16 Dec 2025
- 2025Counting Without Running: Evaluating LLMs' Reasoning About Code Complexity4 Dec 2025
- 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation28 Nov 2025
- 2025Assessing Coherency and Consistency of Code Execution Reasoning by Large Language Models16 Oct 2025
- 2026Code as Agent Harnesscited by 40
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Gistify! Codebase-Level Understanding via Runtime Executioncited by 4
- 2026CMind: An AI Agent for Localizing C Memory Bugscited by 0
- 2026Code as Agent Harness18 May 2026
- 2026CMind: An AI Agent for Localizing C Memory Bugs20 Jan 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Gistify! Codebase-Level Understanding via Runtime Execution30 Oct 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2026How Robustly do LLMs Understand Execution Semantics?cited by 2
- 2026How Robustly do LLMs Understand Execution Semantics?24 Feb 2026
- 2025Is "Knowing It's Malicious Enough?" Evaluating LLMs for Fine-Grained Malware Behavior Auditingcited by 3
- 2026Detecting Differences Is Not Understanding Structure: Large Language Models Fail at Graph Isomorphismcited by 1
- 2025Grounded AI for Code Review: Resource-Efficient Large-Model Serving in Enterprise Pipelinescited by 0
- 2026Teaching LLMs Program Semantics via Symbolic Execution Tracescited by 0
- 2026Croissant Tasks: A Metadata Format for Reproducible Machine Learning Evaluationscited by 0
- 2026Detecting Differences Is Not Understanding Structure: Large Language Models Fail at Graph Isomorphism8 Jun 2026
- 2026Croissant Tasks: A Metadata Format for Reproducible Machine Learning Evaluations28 May 2026
- 2026Teaching LLMs Program Semantics via Symbolic Execution Traces7 May 2026
- 2025Grounded AI for Code Review: Resource-Efficient Large-Model Serving in Enterprise Pipelines11 Oct 2025
- 2025Is "Knowing It's Malicious Enough?" Evaluating LLMs for Fine-Grained Malware Behavior Auditing17 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026CoRE: A Fine-Grained Code Reasoning Benchmark Beyond Output Prediction
- 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning
- 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inference
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning
- 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysis
- 2025Evaluating Program Semantics Reasoning with Type Inference in System F
- 2025Dynamic Benchmarking of Reasoning Capabilities in Code Large Language Models Under Data Contamination