paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Call-Guarded Abstract Definitional Interpreters

调用守卫的抽象定义式解释器
ICFP 9(ICFP)2025匹配度 4/10 · 论文属于抽象解释与系统化抽象框架的形式语义研究,与用户的 PL 背景和偏好理论+实现的品味相关,但不涉及用户主攻的 PL↔AI 交叉、浮点程序分析或贝叶斯程序分析,属于外围的静态分析理论工作。引用 0 inbox
Kimball Germane
crossref: 2026-09-10

AI 速览

一句话:CGADI 将抽象推迟到参数化安全性质触发时,使系统化抽象框架能在部分执行中保持完全精确而不失可计算性。

系统化抽象框架通过先验抽象诱导执行空间的有限化来保证可计算性,但这种抽象不考虑程序结构,对每个程序点施加统一的上下文敏感度。本文提出 CGADI,一种基于定义式解释器的系统化抽象框架增强:它将抽象推迟,直到某个参数化安全性质发出应当抽象的 сигнал。作者以两种安全性质实例化该框架:检测非递归执行部分的简单重入性质,以及检测因值适当递减而注定收敛的求值路径的 size change 性质。由此,CGADI 能在部分执行中运行于完全精确的具体空间而不牺牲可计算性。评估表明,与对应的 CFA 相比,CGADI 能以较低代价产生更多精确结果,且无需特殊处理即可处理许多通常需要专门分析技术才能应对的程序模式。

问题
现有系统化抽象框架为了保证可计算性而先验地施加统一抽象,忽略程序结构,导致所有程序点承受相同的固定上下文敏感度,精度受限。
方法
提出 CGADI,在定义式解释器式系统化抽象框架中延迟抽象,仅当参数化安全性质(重入性质与 size change 性质)发出信号时才应用抽象,从而在部分执行中保持具体精度。
评估
与对应的 CFA 进行对比实验,显示 CGADI 以相对较低的成本产生更多精确结果,并能无需特殊处理地处理许多原本需要专门分析技术的程序模式。
原文摘要(Abstract)

Over the last 15 years, several popular systematic abstraction frameworks have emerged—frameworks that allow a static analysis to be derived by systematically transforming a concrete semantics. These frameworks guarantee computability of the resulting artifact by the application of an a priori abstraction which induces a particular finitization in the execution space. While effective, this abstraction occurs without regard for program structure, subjecting each program point to the same fixed degree of context sensitivity. In this paper, we present CGADI, an enhancement to systematic abstraction frameworks based on definitional interpreters which defers abstraction until a parameterized safety property signals that it should be applied. We then examine this enhanced framework instantiated with two such safety properties: a simple reentrancy property which detects non-recursive portions of program execution, and a size change property which detects evaluation paths destined to converge by virtue of appropriately decreasing values along them. The result is that CGADI can operate in the fully-precise concrete space for portions of execution without forfeiting computability. Our evaluation demonstrates that CGADI is able to produce a higher number of precise results than a corresponding CFA at relatively low cost and that, with no special treatment, CGADI can handle many programming patterns targeted by specific analysis techniques.

链接与引用

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

BibTeX
@article{paperbot3039,
  title = {Call-Guarded Abstract Definitional Interpreters},
  author = {Kimball Germane},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {ICFP},
  year = {2025},
  doi = {10.1145/3747539}
}