mlsanityData to 14 Oct 2026

Do Code LLMs Do Static Analysis?

arXiv 2505.12118 ↗First posted 17 May 2025cs.SEcited by 2

Not on the map. Why?

Abstract (arXiv)

This paper investigates code LLMs' capability of static analysis during code intelligence tasks such as code summarization and generation. Code LLMs are now household names for their abilities to do some programming tasks that have heretofore required people. The process that people follow to do programming tasks has long been understood to require static analysis. For example, human programmers navigate the call graph of large programs to comprehend the different parts of those programs. Education in programming includes static analysis under the assumption that better static analysis skills beget better programming. While popular culture is replete with anthropomorphic references such as LLM ``reasoning'', in fact code LLMs could exhibit a wholly alien thought process to humans. This paper studies the specific question of static analysis by code LLMs. We use three different static analysis tasks (callgraph generation, AST generation, and dataflow generation) and three different code intelligence tasks (code generation, summarization, and translation) with two different open-source models (Gemini and GPT-4o) and closed-source models (CodeLlaMA and Jam) as our experiments. We found that LLMs show poor performance on static analysis tasks and that pretraining on the static analysis tasks does not generalize to better performance on the code intelligence tasks and vice versa.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). First posted on arXiv 17 May 2025.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024One Step at a Time: Combining LLMs and Static Analysis to Generate Next-Step Hints for Programming Tasks
  2. 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks
  3. 2024Can LLM Prompting Serve as a Proxy for Static Analysis in Vulnerability Detection
  4. 2024Analyzing LLM Usage in an Advanced Computing Class in India
  5. 2026Less Is More: Measuring How LLM Involvement affects Chatbot Accuracy in Static Analysis ↗
  6. 2025On Code-Induced Reasoning in LLMs
  7. 2025An Empirical Study of Reasoning Steps in Thinking Code LLMs
  8. 2025From Code to Courtroom: LLMs as the New Software Judges