• Home
  • Search
  • An Empirical Study on the Effectiveness of Iterative LLM-Based Improvements for Static Analysis Issues
  • https://doi.org/10.5753/sbes.2025.9964Copy DOI Icon

An Empirical Study on the Effectiveness of Iterative LLM-Based Improvements for Static Analysis Issues

  • Sep 22, 2025
  • João Carlos Gonçalves +1 more
Show More
  • Abstract
  • Literature Map
  • References
  • Similar Papers
Abstract

Maintaining and evolving software systems often demands more effort than their initial development. Improving source code quality through automated support can significantly reduce technical debt, increase maintainability, and enhance developer productivity. This paper presents an experimental approach that integrates static analysis with Large Language Models (LLMs) to automate source code improvement. The proposed pipeline iteratively processes Java classes by extracting issues detected by SonarQube and transforming them into prompts for LLMs, which generate improved code versions. Each version is reanalyzed, and the process repeats until convergence or a predefined iteration limit is reached. The experimental setup includes multiple configurations combining two LLMs (GPT-4-mini and Gemini), variation in temperature, prompt style, and number of iterations. Evaluations were conducted using multiple Java datasets, with three repeated runs for the Commons Lang repository to identify behavioral patterns. The analysis focuses on the number of issues reduction, decrease in technical debt (measured in a SonarQube metric), and the evolution of issue severity. Functional correctness was assessed manually by inspecting and executing the improved code to ensure behavior preservation. The results demonstrate that combining SonarQube with LLMs is effective in reducing code issues—achieving over 58% average reduction in key scenarios—while preserving functionality. The iterative process proved successful in guiding the models to incrementally improve code quality based on real static analysis feedback. This work contributes a reproducible and extensible pipeline, offering insights into the impact of LLM configurations and supporting further research in the integration of AI and software quality engineering.

Similar Papers
  • Research Article
  • Citations1

An Empirical Study on the Code Refactoring Capability of Large Language Models

  • Mar 10, 2026
  • ACM Transactions on Software Engineering and Methodology
  • Jonathan Cordeiro +2
  • Research Article

Analyzing LLM-generated code according to four ISO/IEC 5055:2021 categories

  • Jan 01, 2025
  • IEEE Access
  • Rasmus Krebs +1
  • Research Article
  • Citations5

An Empirical Evaluation of Large Language Models in Static Code Analysis for PHP Vulnerability Detection

  • Sep 14, 2024
  • JUCS - Journal of Universal Computer Science
  • Orçun Çetin +3
  • Research Article
  • Citations1

AI-Powered Code Generation Evaluating the Effectiveness of Large Language Models (LLMs) in Automated Software Development

  • Mar 31, 2023
  • Journal of Artificial Intelligence & Cloud Computing
  • Ravikanth Konda
  • 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
  • Research Article

Enhancing creative writing with robot– LLM integration: The interplay of embodiment, AI creativity and user engagement

  • Apr 20, 2026
  • British Journal of Educational Technology
  • Yuqing Liu +1
  • Research Article
  • Citations1

Accuracy of AI in Cyber Security: Navigating the Dual-Edged Dynamics of an Evolving Security Frontier

  • May 31, 2024
  • Journal of Student Research
  • Sreekrishna Sanka +3
  • Research Article
  • Citations18

Large Language Model-Aware In-Context Learning for Code Generation

  • Feb 28, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Jia Li +7
  • Conference Article

Evaluating Large Language Models on the Classification of Different Technical Debt Types in Stack Overflow Discussions

  • Sep 23, 2025
  • Lucas Amaral +3
  • Research Article
  • Citations39

CORE: Resolving Code Quality Issues using LLMs

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

On the Identification of Self-Admitted Technical Debt with Large Language Models

  • Sep 30, 2024
  • Pedro Lambert +2
  • Conference Article
  • Citations20

PromSec: Prompt Optimization for Secure Generation of Functional Source Code with Large Language Models (LLMs)

  • Dec 02, 2024
  • Mahmoud Nazzal +3
  • Research Article

Prompting Strategies for Large Language Models in Primary Care: A Primer for Clinician-Artificial Intelligence Interaction.

  • Feb 01, 2026
  • Journal of primary care & community health
  • Christopher R Stephenson +4
  • Research Article
  • Citations6

LLM-assisted Bug Identification and Correction for Verilog HDL

  • Oct 17, 2025
  • ACM Transactions on Design Automation of Electronic Systems
  • Khushboo Qayyum +4
  • PDF
  • Research Article
  • Citations2

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

  • Sep 27, 2025
  • Empirical Software Engineering
  • Ashwin Prasad Shivarpatna Venkatesh +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.