paperbot · PL 论文追踪

全部论文 待读 收藏

P0 Semantic-Enhanced Indirect Call Analysis with Large Language Models

基于大语言模型的语义增强间接调用分析
ASE Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering2024匹配度 8/10 · 该论文将 LLM 用于改进静态分析中的间接调用目标过滤,直接命中用户“AI→PL:利用 LLM/Agent 改进静态分析/形式化验证”的核心方向。虽未涉及浮点、贝叶斯程序分析或 Agentic 程序,但属于 LLM 增强静态分析的典型工作,因此匹配度较高。引用 11 inbox
Baijun Cheng, Cen Zhang, Kailong Wang, Ling Shi, Yang Liu, Haoyu Wang, Yao Guo, Ding Li, Xiangqun Chen
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 SEA,用 LLM 生成间接调用与目标函数的语义摘要来过滤虚假目标,提升静态分析精度。

现代软件广泛使用间接调用以实现动态特性,这给精确构建控制流图(CFG)带来困难,并进一步影响下游静态分析任务的效果。现有各类间接调用分析器未能充分利用程序的语义信息,因而在真实场景中效果受限。本文提出语义增强分析 SEA,其核心洞察是:在常见编程实践中,间接调用与其实际被调用目标之间往往存在语义相似性,这种语义一致性可作为辅助机制,帮助静态分析技术剔除虚假目标。具体而言,SEA 利用大语言模型(LLM)从多个视角分别为间接调用点与候选目标函数生成自然语言摘要,再通过对这些摘要的分析判断二者是否适合构成调用者—被调用者对,从而得到更精确的间接调用目标集合。实验结果表明,SEA 能显著增强现有静态分析方法,为其产出更精确的目标集。

问题
间接调用的普遍使用使控制流图构建不精确,而现有间接调用分析器未能充分利用程序语义信息,导致在真实场景中目标集合包含大量虚假目标。
方法
基于“间接调用与其被调用目标语义相似”的洞察,SEA 用大语言模型从多视角为间接调用点和候选目标函数生成自然语言摘要,再通过分析摘要判断调用者—被调用者对是否合理,以此过滤虚假目标。
评估
将 SEA 与现有静态间接调用分析方法结合进行实验,结果表明它能显著提升分析效果,为间接调用产出更精确的目标集合。
原文摘要(Abstract)

In contemporary software development, the widespread use of indirect calls to achieve dynamic features poses challenges in constructing precise control flow graphs (CFGs), which further impacts the performance of downstream static analysis tasks. To tackle this issue, various types of indirect call analyzers have been proposed. However, they do not fully leverage the semantic information of the program, limiting their effectiveness in real-world scenarios.To address these issues, this paper proposes Semantic-Enhanced Analysis (SEA), a new approach to enhance the effectiveness of indirect call analysis. Our fundamental insight is that for common programming practices, indirect calls often exhibit semantic similarity with their invoked targets. This semantic alignment serves as a supportive mechanism for static analysis techniques in filtering out false targets. Notably, contemporary large language models (LLMs) are trained on extensive code corpora, encompassing tasks such as code summarization, making them well-suited for semantic analysis. Specifically, SEA leverages LLMs to generate natural language summaries of both indirect calls and target functions from multiple perspectives. Through further analysis of these summaries, SEA can determine their suitability as caller-callee pairs. Experimental results demonstrate that SEA can significantly enhance existing static analysis methods by producing more precise target sets for indirect calls.CCS CONCEPTS•Software and its engineering → Software maintenance tools.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{ChengZWS0000C24,
  title = {Semantic-Enhanced Indirect Call Analysis with Large Language Models},
  author = {Baijun Cheng and Cen Zhang and Kailong Wang and Ling Shi and Yang Liu and Haoyu Wang and Yao Guo and Ding Li and Xiangqun Chen},
  booktitle = {ASE},
  year = {2024},
  doi = {10.1145/3691620.3695016}
}