Minimizing False Positives in Static Bug Detection via LLM-Enhanced Path Feasibility Analysis

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Du, Xueying, Yu, Kai, Wang, Chong, Zou, Yi, Deng, Wentai, Ou, Zuoyu, Peng, Xin, Zhang, Lingming, Lou, Yiling
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908405637054464
author Du, Xueying
Yu, Kai
Wang, Chong
Zou, Yi
Deng, Wentai
Ou, Zuoyu
Peng, Xin
Zhang, Lingming
Lou, Yiling
author_facet Du, Xueying
Yu, Kai
Wang, Chong
Zou, Yi
Deng, Wentai
Ou, Zuoyu
Peng, Xin
Zhang, Lingming
Lou, Yiling
contents Static bug analyzers play a crucial role in ensuring software quality. However, existing analyzers for bug detection in large codebases often suffer from high false positive rates. This is primarily due to the limited capabilities of analyzers in path feasibility validation with multiple conditional branches and complex data dependencies. While current LLM-based approaches attempt to address this issue, their effectiveness remains limited due to insufficient constraint cascade analysis and scalability challenges in large projects. To address this challenge, we propose an iterative path feasibility analysis framework LLM4PFA. By leveraging LLM agent based targeted constraint reasoning, and key context-aware analysis driven by agent planning, LLM4PFA effectively enhances complex inter-procedural path feasibility analysis for minimizing false positives in static bug detection. Evaluation results show that LLM4PFA precisely filters out 72% to 96% false positives reported during static bug detection, significantly outperforming all the baselines by 41.1% - 105.7% improvements; meanwhile LLM4PFA only misses 3 real bugs of 45 true positives.
format Preprint
id arxiv_https___arxiv_org_abs_2506_10322
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Minimizing False Positives in Static Bug Detection via LLM-Enhanced Path Feasibility Analysis
Du, Xueying
Yu, Kai
Wang, Chong
Zou, Yi
Deng, Wentai
Ou, Zuoyu
Peng, Xin
Zhang, Lingming
Lou, Yiling
Software Engineering
Static bug analyzers play a crucial role in ensuring software quality. However, existing analyzers for bug detection in large codebases often suffer from high false positive rates. This is primarily due to the limited capabilities of analyzers in path feasibility validation with multiple conditional branches and complex data dependencies. While current LLM-based approaches attempt to address this issue, their effectiveness remains limited due to insufficient constraint cascade analysis and scalability challenges in large projects. To address this challenge, we propose an iterative path feasibility analysis framework LLM4PFA. By leveraging LLM agent based targeted constraint reasoning, and key context-aware analysis driven by agent planning, LLM4PFA effectively enhances complex inter-procedural path feasibility analysis for minimizing false positives in static bug detection. Evaluation results show that LLM4PFA precisely filters out 72% to 96% false positives reported during static bug detection, significantly outperforming all the baselines by 41.1% - 105.7% improvements; meanwhile LLM4PFA only misses 3 real bugs of 45 true positives.
title Minimizing False Positives in Static Bug Detection via LLM-Enhanced Path Feasibility Analysis
topic Software Engineering
url https://arxiv.org/abs/2506.10322