paperbot · PL 论文追踪

全部论文 待读 收藏

P2 The Power of Regular Constraint Propagation

正则约束传播的力量
OOPSLA 9(OOPSLA2)2025匹配度 3/10 · 该论文研究字符串约束求解与正则约束传播,属于形式化方法与约束求解范畴,与用户关注的静态分析/形式化验证有间接关联;但它不涉及 LLM/Agent 与程序分析的交叉、浮点程序分析或贝叶斯程序分析,因此与核心研究方向匹配度较低。引用 1 inbox
Matthew Hague, Artur Jeż, Anthony Widjaja Lin, Oliver Markgraf, Philipp Rümmer
crossref: 2026-09-10

AI 速览

一句话:提出并实现正则约束传播方法,可可靠且完备地求解一大类字符串约束,并显著提升 OSTRICH 求解器性能。

字符串求解在程序分析与验证中很重要,但现有求解器策略复杂。本文研究简单通用的正则约束传播(RCP):反复计算字符串函数下正则语言的前像/后像,推断变量可能取值,直至发现冲突或判定可满足性;适用于连接、替换及几乎所有字符串转换。理论上,作者证明 RCP 对一大类字符串约束可靠且完备,涵盖 straight-line 与 chain-free 这两个可判定片段。实践上,他们在 OSTRICH 中实现 RCP,实验显示其显著提升性能,使 OSTRICH 具备竞争力,并在随机 PCP 和生物信息学基准上大幅优于其他求解器,表明与其他技术结合可进一步提速。

问题
现有字符串求解器采用的求解策略较为复杂,本文希望探索一种简单、通用且有效的字符串约束求解方法。
方法
提出正则约束传播(RCP),通过反复计算字符串函数下正则语言的前像或后像来推断字符串变量的可能取值,直至发现冲突或足以判定可满足性;该方法可处理连接、替换和几乎所有字符串转换。
评估
理论上证明 RCP 对涵盖 straight-line 与 chain-free 的一大类字符串约束可靠且完备;实践上在开源求解器 OSTRICH 中实现,并在随机 PCP、生物信息学等基准上评估,显示性能显著提升且优于现有求解器。
原文摘要(Abstract)

The past decade has witnessed substantial developments in string solving. Motivated by the complexity of string solving strategies adopted in existing string solvers, we investigate a simple and generic method for solving string constraints: regular constraint propagation. The method repeatedly computes pre- or postimages of regular languages under the string functions present in a string formula, inferring more and more knowledge about the possible values of string variables, until either a conflict is found or satisfiability of the string formula can be concluded. Such a propagation strategy is applicable to string constraints with multiple operations like concatenation, replace, and almost all flavors of string transductions. We demonstrate the generality and effectiveness of this method theoretically and experimentally. On the theoretical side, we show that RCP is sound and complete for a large fragment of string constraints, subsuming both straight-line and chain-free constraints, two of the most expressive decidable fragments for which some modern string solvers provide formal completeness guarantees. On the practical side, we implement regular constraint propagation within the open-source string solver OSTRICH. Our experimental evaluation shows that this addition significantly improves OSTRICH’s performance and makes it competitive with existing solvers. In fact, it substantially outperforms other solvers on random PCP and bioinformatics benchmarks. The results also suggest that incorporating regular constraint propagation alongside other techniques could lead to substantial performance gains for existing solvers.

链接与引用

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

BibTeX
@article{paperbot2959,
  title = {The Power of Regular Constraint Propagation},
  author = {Matthew Hague and Artur Jeż and Anthony Widjaja Lin and Oliver Markgraf and Philipp Rümmer},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {OOPSLA2},
  year = {2025},
  doi = {10.1145/3763165}
}