• Home
  • Search
  • An empirical study of large language models for type and call graph analysis in Python and JavaScript
  • Cite Icon2
  • https://doi.org/10.1007/s10664-025-10704-3Copy DOI Icon

An empirical study of large language models for type and call graph analysis in Python and JavaScript

Show More
  • Abstract
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Abstract Large Language Models (LLMs) are increasingly being explored for their potential in software engineering, particularly in static analysis tasks. In this study, we investigate the potential of current LLMs to enhance call-graph analysis and type inference for Python and JavaScript programs. We empirically evaluated 24 LLMs, including OpenAI’s GPT series and open-source models like LLaMA and Mistral, using existing and newly developed benchmarks. Specifically, we enhanced TypeEvalPy, a micro-benchmarking framework for type inference in Python, with auto-generation capabilities, expanding its scope from 860 to 77,268 type annotations for Python. Additionally, we introduce SWARM-CG and SWARM-JS, comprehensive benchmarking suites for evaluating call-graph construction tools across multiple programming languages. Our findings reveal a contrasting performance of LLMs in static analysis tasks. For call-graph generation, traditional static analysis tools such as PyCG for Python and Jelly for JavaScript consistently outperform LLMs. While advanced models like mistral-large-it-2407-123b and gpt-4o show promise, they still struggle with completeness and soundness in call-graph analysis across both languages. In contrast, LLMs demonstrate a clear advantage in type inference for Python, surpassing traditional tools like HeaderGen and hybrid approaches such as HiTyper. These results suggest that, while LLMs hold promise in type inference, their limitations in call-graph analysis highlight the need for further research. Our study provides a foundation for integrating LLMs into static analysis workflows, offering insights into their strengths and current limitations.

Loading PDF

Similar Papers
  • PDF
  • Research Article
  • Citations31

Large language models for error detection in radiology reports: a comparative analysis between closed-source and privacy-compliant open-source models

  • Feb 20, 2025
  • European Radiology
  • Babak Salam +12
  • PDF
  • Research Article
  • Citations2

Interleaving static analysis and LLM prompting with applications to error specification inference

  • Feb 04, 2025
  • International Journal on Software Tools for Technology Transfer
  • Patrick J Chapman +2
  • Conference Article
  • Citations135

Jigsaw

  • May 21, 2022
  • Naman Jain +6
  • Research Article
  • Citations1

An Empirical Study of Exploring the Capabilities of Large Language Models in Code Learning

  • Nov 01, 2025
  • IEEE Transactions on Software Engineering
  • Shangqing Liu +5
  • Research Article

Вдосконалена класифікація великих мовних моделей

  • Jan 01, 2025
  • Scientific papers of Donetsk National Technical University. Series: Informatics, Cybernetics and Computer Science
  • С.М Бабчук
  • Research Article
  • Citations5

HumanEvalComm: Benchmarking the Communication Competence of Code Generation for LLMs and LLM Agent

  • Jan 27, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Jie Jw Wu +1
  • Research Article

Open-source large language model-based on-premises pipeline for automated data extraction from unstructured electronic health records: a pilot study

  • Jun 01, 2026
  • BMJ Health & Care Informatics
  • Vasileios Ntinopoulos +4
  • Research Article

A Study of Large Language Models for Patient Information Extraction: Model Architecture, Fine-Tuning Strategy, and Multi-task Instruction Tuning

  • Mar 27, 2026
  • Journal of biomedical informatics
  • Cheng Peng +5
  • Research Article
  • Citations11

Image-Based Diagnostic Performance of LLMs vs CNNs for Oral Lichen Planus: Example-Guided and Differential Diagnosis

  • Jun 06, 2025
  • International Dental Journal
  • Paak Rewthamrongsris +7
  • Conference Article

Can We Translate Code Better with LLMs and Call Graph Analysis?

  • Sep 01, 2025
  • Yang Luo
  • Conference Article
  • Citations23

The Promise and Challenges of Using LLMs to Accelerate the Screening Process of Systematic Reviews

  • Jun 18, 2024
  • Aleksi Huotala +3
  • Conference Article
  • Citations6

An Exploratory Study on Upper-Level Computing Students’ Use of Large Language Models as Tools in a Semester-Long Project

  • Aug 03, 2024
  • Ben Tanay +4
  • Research Article
  • Citations2

Optimising large language models for clinical information extraction: a benchmarking study in the context of ulcerative colitis research

  • Sep 14, 2025
  • BMJ digital health & AI
  • Richard Paul Yim +3
  • Research Article
  • Citations39

CORE: Resolving Code Quality Issues using LLMs

  • Jul 12, 2024
  • Proceedings of the ACM on Software Engineering
  • Nalin Wadhwa +7
  • Research Article
  • Citations14

Comparative Analysis of Large Language Models and Spine Surgeons in Surgical Decision-Making and Radiological Assessment for Spine Pathologies

  • Feb 01, 2025
  • World Neurosurgery
  • Ahmad K Almekkawi +7
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.