paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Reachability Analysis of Innermost Rewriting

Innermost 重写的可达性分析
LMCS vol.Volume 13, Issue 12017匹配度 3/10 · 该论文属于形式化静态分析与重写系统可达性分析,与用户关注的静态分析/形式化验证方向有较弱关联;但它不涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,也不属于 AI→PL 中用 LLM/Agent 改进分析的核心交叉。引用 19 inbox
Thomas Genet, Yann Salmon
dblp: 2026-09-10crossref: 2026-09-10arxiv: 2026-09-10

AI 速览

一句话:将树自动机补全算法扩展到 innermost 重写策略,以精确近似可达项集合,并在 Timbuk 中实现验证。

本文研究在给定输入语法时推断函数式程序输出语法的问题,即重写系统可达项集合的静态近似。已有语法推断方法忽略求值策略,在策略影响结果时精度不足。作者将 Tree Automata Completion 算法适配到 innermost 重写策略,用树自动机补全过程近似最内层重写可达的项集合,并证明该技术相对于 innermost 重写是可靠且精确的;结果还可扩展到最左和最右 innermost 情形。算法已在 Timbuk 可达性工具中实现,实验表明其显著提升了采用 call-by-value 求值策略的函数式程序静态分析的精度。

问题
在给定输入语法时,如何推断函数式程序的输出语法,即静态近似重写可达项集合;已有方法未考虑求值策略,导致 innermost/call-by-value 情形不精确。
方法
将 Tree Automata Completion 算法适配到 innermost 重写,用树自动机补全近似最内层可达项,证明其可靠且精确,并扩展到最左/最右 innermost;在 Timbuk 中实现。
评估
在 Timbuk 可达性工具中实现并进行实验,表明对采用 call-by-value 求值策略的函数式程序静态分析精度有明显提升。
原文摘要(Abstract)

We consider the problem of inferring a grammar describing the output of a functional program given a grammar describing its input. Solutions to this problem are helpful for detecting bugs or proving safety properties of functional programs, and several rewriting tools exist for solving this problem. However, known grammar inference techniques are not able to take evaluation strategies of the program into account. This yields very imprecise results when the evaluation strategy matters. In this work, we adapt the Tree Automata Completion algorithm to approximate accurately the set of terms reachable by rewriting under the innermost strategy. We formally prove that the proposed technique is sound and precise w.r.t. innermost rewriting. We show that those results can be extended to the leftmost and rightmost innermost case. The algorithms for the general innermost case have been implemented in the Timbuk reachability tool. Experiments show that it noticeably improves the accuracy of static analysis for functional programs using the call-by-value evaluation strategy.

链接与引用

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

BibTeX
@article{GenetS16,
  title = {Reachability Analysis of Innermost Rewriting},
  author = {Thomas Genet and Yann Salmon},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 13, Issue 1},
  year = {2017},
  doi = {10.23638/lmcs-13(1:12)2017}
}