paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Interactive Abstract Interpretation with Demanded Summarization

基于按需摘要的交互式抽象解释
TOPLAS 46(1)2024匹配度 3/10 · 论文属于静态分析与抽象解释的核心方向,兼具形式化证明与原型实现,但与用户画像中‘PL→AI’(将静态分析用于ML/Agentic程序)或‘AI→PL’(用LLM/Agent改进静态分析)没有直接关联,也未涉及浮点程序分析或贝叶斯程序分析及其与LLM的交叉。引用 6 inbox
Benno Stein, Bor-Yuh Evan Chang, Manu Sridharan
crossref: 2026-09-10

AI 速览

一句话:提出按需摘要,首个在任意抽象域中保证从零一致性的增量组合式静态分析算法。

交互式静态分析需在代码修改后快速更新结果,但现有技术支持任意抽象域的交互式分析往往缺乏组合性,难以复用未修改代码的分析结果,或无法保证编辑后与从零分析一致。本文提出 demanded summarization(按需摘要),一种面向任意抽象域的增量组合式分析算法。它采用按需分析思想,在过程调用处按需计算过程摘要,并用动态更新的摘要依赖图在编辑后精确失效受影响结果;算法支持递归,并保证从零一致性。作者形式化该技术,证明其可靠性、终止性与从零一致性,并在合成及真实世界程序编辑上评估原型实现,表明相较非按需组合分析有显著性能潜力。

问题
如何让表达力强、支持任意抽象域的交互式静态分析具备组合性,并能在代码编辑后复用已有结果且保持与从零分析一致。
方法
提出按需摘要:在过程调用处按需生成摘要,维护动态摘要依赖图以精确失效编辑影响,并在递归与任意抽象域下保证从零一致性;作者形式化并证明可靠性、终止性和从零一致性。
评估
在合成和真实世界程序编辑上对原型实现进行实验评估,显示相较非按需组合分析有显著性能潜力。
原文摘要(Abstract)

We consider the problem of making expressive, interactive static analyzers compositional . Such a technique could help bring the power of server-based static analyses to integrated development environments (IDEs), updating their results live as the code is modified. Compositionality is key for this scenario, as it enables reuse of already-computed analysis results for unmodified code. Previous techniques for interactive static analysis either lack compositionality, cannot express arbitrary abstract domains, or are not from-scratch consistent. We present demanded summarization, the first algorithm for incremental compositional analysis in arbitrary abstract domains that guarantees from-scratch consistency. Our approach analyzes individual procedures using a recent technique for demanded analysis, computing summaries on demand for procedure calls. A dynamically updated summary dependency graph enables precise result invalidation after program edits, and the algorithm is carefully designed to guarantee from-scratch-consistent results after edits, even in the presence of recursion and in arbitrary abstract domains. We formalize our technique and prove soundness, termination, and from-scratch consistency. An experimental evaluation of a prototype implementation on synthetic and real-world program edits provides evidence for the feasibility of this theoretical framework, showing potential for major performance benefits over non-demanded compositional analyses.

链接与引用

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

BibTeX
@article{paperbot2677,
  title = {Interactive Abstract Interpretation with Demanded Summarization},
  author = {Benno Stein and Bor-Yuh Evan Chang and Manu Sridharan},
  journal = {ACM Transactions on Programming Languages and Systems},
  volume = {46},
  number = {1},
  year = {2024},
  doi = {10.1145/3648441}
}