paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Accurate String Constraints Solution Counting with Weighted Automata

基于加权自动机的精确字符串约束解计数
ASE 2019 34th IEEE/ACM International Conference on Automated Software Engineering (ASE)2019匹配度 3/10 · 论文聚焦字符串约束的解计数与加权自动机,属于符号执行/程序分析的形式化基础工作,但未涉及用户核心关注的 LLM/Agent、浮点程序分析或贝叶斯程序分析。其问题驱动与基准评估思路与用户兴趣部分契合,但研究方向匹配度有限。引用 3 inbox
Elena Sherman, Andrew Harris
crossref: 2026-09-12

AI 速览

一句话:提出加权自动机模型对字符串约束解计数,保持与输入字符串值的一一对应,修正传统自动机模型的计数错误。

概率符号执行通过路径约束解计数来计算路径执行概率,其正确性取决于计数方法以及路径约束与程序输入值是否一一对应。已有字符串域工作主要关注基于自动机的字符串模型的高效精确计数,却未考察自动机编码的字符串与输入字符串值是否保持一一对应。本文证明传统基于自动机的字符串模型会破坏这种一一对应关系,并提出加权自动机模型,使路径约束编码与输入字符串值保持一一对应。作者基于该模型实现字符串约束求解器,在非平凡合成基准上验证正确性,并在真实字符串约束上比较传统与加权自动机求解器。评估表明,加权自动机模型虽效率较低,但能维持正确的解计数。

问题
概率符号执行计算路径概率时依赖路径约束的解计数,而解计数正确性要求约束与程序输入值保持一一对应;字符串域中传统自动机基模型是否满足该性质尚不清楚。
方法
作者证明传统基于自动机的字符串模型无法保持一一对应关系,提出加权自动机模型来编码路径约束,以保持与输入字符串值的一一对应,并实现了字符串约束求解器。
评估
在非平凡合成基准上验证求解器正确性,并在真实字符串约束上将传统自动机求解器与加权自动机求解器进行实证比较;结果显示加权模型虽效率较低,但能得到正确的解计数。
原文摘要(Abstract)

As an important extension of symbolic execution (SE), probabilistic symbolic execution (PSE) computes execution probabilities of program paths. Using this information, PSE can prioritize path exploration strategies. To calculate the probability of a path PSE relies on solution counting approaches for the path constraint. The correctness of a solution counting approach depends on the methodology used to count solutions and whether a path constraint maintains a one-to-one relation with program input values. This work focuses on the latter aspect of the solution counting correctness for string constraints. In general, maintaining a one-to-one relation is not always possible, especially in the presence of non-linear constraints. To deal with this issue, researchers that work on PSE for numerical domains either analyze programs with linear constraints, or develop novel techniques to handle solution counting of non-linear constraints. For the string domain, however, previous work on PSE mainly focuses on efficient and accurate solution counting for automata-based string models and has not investigated whether a one-to-one relationship between the strings encoded by automata and input string values is preserved. In this work we demonstrate that traditional automata-based string models fail to maintain one-to-one relations and propose to use the weighted automata model, which preserves the one-to-one relation between the path constraint it encodes and the input string values. We use this model to implement a string constraint solver and show its correctness on a set of non-trivial synthetic benchmarks. We also present an empirical evaluation of traditional and proposed automata solvers on real-world string constraints. The evaluations show that while being less efficient than traditional automata models, the weighted automata model maintains correct solution counts.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5301,
  title = {Accurate String Constraints Solution Counting with Weighted Automata},
  author = {Elena Sherman and Andrew Harris},
  booktitle = {ASE},
  year = {2019},
  doi = {10.1109/ase.2019.00049}
}