arrow
Return

Do code LLMs do static analysis?

delete2026-04-10
delete0
PRE
AI
C
Chia‐Yi Su *
C
Collin McMillan
DOI:10.1007/s10664-026-10853-zdelete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
Static analysis
Code intelligence tasks
Large language models
LLM reasoning
errShare
errSave
Revisiting code readability improvement with LLMs: A critical assessment of fine-tuned models
err2026-07-23
err0
errOAAI
errAntonio Vitale; Emanuela Guglielmi; Valentina Piantadosi; Antonio Mastropaolo; Gabriele Bavota; Rocco Oliveto; Simone Scalabrino
errShare
errSave
On the Effectiveness of LLM-as-a-Judge for Code Generation and Summarization
err2025-08-01
err0
PREAI
errGiuseppe Crupi; Rosalia Tufano; Alejandro Velasco; Antonio Mastropaolo; Denys Poshyvanyk; Gabriele Bavota
errShare
errSave
Do multimodal LLMs understand programming screenshots? Inferring questions and extracting relevant content
err2026-03-09
err0
PREAI
errFaiz Ahmed; Xuchen Tan; Folajinmi Adewole; Suprakash Datta; Maleknaz Nayebi
errShare
errSave
Complexity-Constraint Code Evaluation: A Benchmark for Time Complexity Compliance in LLM-Generated Code
err2026-05-01
err1
PREAI
errChen, Li-Guo; Wang, Xin; Chen, Jue-Yu; Liang, Ren-Zhao; Zeng, Zheng-Ran; Li, Yang-Ning; Li, Ying-Hui; Wang, Yi-Dong; Xu, Yi-Jiang; Gao, Qing; Zhang, Shi-Kun
errShare
errSave
Performance-Aligned LLMs for Generating Fast HPC Code
err2026-03-18
err0
PREAI
errDaniel Nichols; Pranav Polasam; Harshitha Menon; Aniruddha Marathe; Todd Gamblin; Abhinav Bhatele
errShare
errSave

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
6.4K

Organization

C
computer science and engineering
Scholars:
0
Papers: 1
Citations: 93
Cited Papers

Cited Papers

An empirical study of static call graph extractors
err1998-04-01
err0
errOAAI
errGail C. Murphy; David Notkin; William G. Griswold; Erica S. Lan
errShare
errSave
errShare
errSave
Lost in the Middle: How Language Models Use Long Contexts
err2024-02-23
err56
errOAAI
errLiu, Nelson F.; Lin, Kevin; Hewitt, John; Paranjape, Ashwin; Bevilacqua, Michele; Petroni, Fabio; Liang, Percy
errShare
errSave
errShare
errSave
srcDiff: A syntactic differencing approach to improve the understandability of deltas
err2019-10-21
err0
PREAI
errMichael John Decker; Michael L. Collard; L. Gwenn Volkert; Jonathan I. Maletic
errShare
errSave
Competition-level code generation with AlphaCode
errScience
IF45.8
err2022-01-01
err0
errOAAI
errYujia Li; David Choi; Junyoung Chung; Nate Kushman; Julian Schrittwieser; Rémi Leblond; Tom Eccles; James Keeling; Felix Gimeno; Agustin Dal Lago; Thomas Hübert; Peter Choy; Cyprien de Masson d’Autume; I. Babuschkin; Xinyun Chen; Po-Sen Huang; Johannes Welbl; Sven Gowal; Alexey Cherepanov; James Molloy; Daniel J. Mankowitz; Esme Sutherland Robson; Pushmeet Kohli; Nando de Freitas; Koray Kavukcuoglu; Oriol Vinyals
errShare
errSave
Mental models and software maintenance
err1987-12-01
err0
PREAI
errDavid C. Littman; Jeannine Pinto; Stanley Letovsky; Elliot Soloway
errShare
errSave
researcher View more