A Dataset and Preliminary Study of Using GPT-5 for Code-change Impact Analysis

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Stengg, Katharina, Macho, Christian, Pinzger, Martin
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908728083611648
author Stengg, Katharina
Macho, Christian
Pinzger, Martin
author_facet Stengg, Katharina
Macho, Christian
Pinzger, Martin
contents Understanding source code changes and their impact on other code entities is a crucial skill in software development. However, the analysis of code changes and their impact is often performed manually and therefore is time-consuming. Recent advancements in AI, and in particular large language models (LLMs) show promises to help developers in various code analysis tasks. However, the extent to which this potential can be utilized for understanding code changes and their impact is underexplored. To address this gap, we study the capabilities of GPT-5 and GPT-5-mini to predict the code entities impacted by given source code changes. We construct a dataset containing information about seed-changes, change pairs, and change types for each commit. Existing datasets lack crucial information about seed changes and impacted code entities. Our experiments evaluate the LLMs in two configurations: (1) seed-change information and the parent commit tree and (2) seed-change information, the parent commit tree, and the diff hunk of each seed change. We found that both LLMs perform poorly in the two experiments, whereas GPT-5 outperforms GPT-5-mini. Furthermore, the provision of the diff hunks helps both models to slightly improve their performance.
format Preprint
id arxiv_https___arxiv_org_abs_2512_19481
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Dataset and Preliminary Study of Using GPT-5 for Code-change Impact Analysis
Stengg, Katharina
Macho, Christian
Pinzger, Martin
Software Engineering
Artificial Intelligence
Understanding source code changes and their impact on other code entities is a crucial skill in software development. However, the analysis of code changes and their impact is often performed manually and therefore is time-consuming. Recent advancements in AI, and in particular large language models (LLMs) show promises to help developers in various code analysis tasks. However, the extent to which this potential can be utilized for understanding code changes and their impact is underexplored. To address this gap, we study the capabilities of GPT-5 and GPT-5-mini to predict the code entities impacted by given source code changes. We construct a dataset containing information about seed-changes, change pairs, and change types for each commit. Existing datasets lack crucial information about seed changes and impacted code entities. Our experiments evaluate the LLMs in two configurations: (1) seed-change information and the parent commit tree and (2) seed-change information, the parent commit tree, and the diff hunk of each seed change. We found that both LLMs perform poorly in the two experiments, whereas GPT-5 outperforms GPT-5-mini. Furthermore, the provision of the diff hunks helps both models to slightly improve their performance.
title A Dataset and Preliminary Study of Using GPT-5 for Code-change Impact Analysis
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2512.19481