atlas

Research map / Large language models / Agents, code and math

CoRe: Benchmarking LLMs’ Code Reasoning Capabilities through Static Analysis Tasks

NeurIPS 2025 · Large language models › Agents, code and math · approach: Execution-based code verification · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces CoRe, a human-verified multilingual benchmark of 12,553 static-analysis task instances (data dependency, control dependency, information flow) over C/C++, Java, and Python, and evaluates 10 LLMs on it.

Problem

Existing code benchmarks evaluate end-to-end outcomes (repair, generation) and do not directly test LLMs' fine-grained reasoning about program semantics such as value propagation and control dependencies.

Approach

A semantics-aware diverse sampling strategy selects targets and task instances by structural coverage and dependency depth, and a semi-automated, human-verified annotation pipeline produces dependency labels for intra-procedural queries (pairwise and target-centric) across three languages.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a clipped prompt containing only the target function instead of the whole file (ablation)LLMs evaluated on CoRe · CoRe Lite pairwise tasksperformance: up to 5.7%Helped
Add retrieved few-shot examples to the base prompt (ablation)LLMs evaluated on CoRe · CoRe LiteperformanceHurt
Ask for a supporting trace along with dependency classification instead of classification only (ablation)LLMs evaluated on CoRe · CoRe pairwise tasksrecallHelped
Ask for a supporting trace along with dependency classification instead of classification only (ablation)LLMs evaluated on CoRe · CoRe pairwise tasksprecisionHurt
Increase function length from short (21--40 LoC) to long (81--100 LoC)LLMs evaluated on CoRe · CoRe trace generationCorrect Trace Rate: 8.9--15.8%Hurt
Increase the number of conditions in a functionLLMs evaluated on CoRe · CoRe trace generationCorrect Trace Rate: 24.4--44.6%Hurt
Include early-exit logic that influences the target variableLLMs evaluated on CoRe · CoRe source enumerationExact Match: up to 21.7%Hurt
Use a reverse dependency where the source appears after the targetLLMs evaluated on CoRe · CoRe pairwise classificationF1: up to 49.5%Hurt
Use reasoning-capable models rather than non-reasoning modelsLLMs evaluated on CoRe · CoRe tasksperformance: 5.2--31.5%Helped

Surprising findings

Limitations

Experimental setup

Datasets: CodeNet Google Code Jam

Benchmarks: CoRe CoRe Lite

Metrics: F1 precision recall correct trace rate exact match

Baselines: Claude 3.7 Claude 3.5 DeepSeek R1 DeepSeek V3 Gemini 2.5 Pro GPT o3 GPT o4-mini GPT 4o Llama 3.1 405B Qwen3 235B

Builds on: CodeNet CRUXEval LLMDFA IRIS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy