paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Parameterized model counting for string and numeric constraints

字符串与数值约束的参数化模型计数
FSE Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2018匹配度 3/10 · 该论文属于约束求解/定量程序分析的基础工具(字符串与线性整数算术的参数化模型计数),与静态分析沾边,可能与浮点/LLM 无关的量化工具有间接支撑价值;但它不涉及 LLM/Agent、不涉及浮点程序分析(数值部分限定为线性整数算术),也不涉及贝叶斯程序分析,与用户主线方向交叉很弱。引用 33 inbox
Abdulbaki Aydin, William Eiers, Lucas Bang, Tegan Brennan, Miroslav Gavrilov, Tevfik Bultan, Fang Yu
crossref: 2026-09-12

AI 速览

一句话:提出面向字符串与数值约束的参数化模型计数求解器,用多轨 DFA 计数解,支持任意大界与混合约束。

符号程序分析已借助模型计数约束求解器扩展到定量分析。给定约束与界,模型计数求解器计算界内解数。本文提出面向字符串与数值约束的参数化模型计数求解器。方法先构造接受约束解集的多轨确定性有限自动机:数值约束限于线性整数算术,非正则字符串约束则过近似。通过计数自动机中接受路径数求解模型计数。该方法不假定有限域大小,构造自动机时解集可无限,计数适用于任意大界。实验在软件应用中提取的大量字符串与数值约束上进行,与五个现有求解器比较,工具效率相当、精度不低于其他工具,且能处理无其他工具支持的字符串-整数混合约束。

问题
如何对字符串与数值混合约束进行模型计数,以支撑符号程序分析中的定量推理,且不预设有限域、支持任意大的界。
方法
将约束编码为多轨 DFA,数值约束限于线性整数算术,非正则字符串约束过近似,通过计数接受路径得到解数。
评估
在软件应用提取的约束集上与五个已有模型计数求解器对比,效率与精度相当或更优,并能处理混合字符串/整数约束。
原文摘要(Abstract)

Recently, symbolic program analysis techniques have been extended to quantitative analyses using model counting constraint solvers. Given a constraint and a bound, a model counting constraint solver computes the number of solutions for the constraint within the bound. We present a parameterized model counting constraint solver for string and numeric constraints. We first construct a multi-track deterministic finite state automaton that accepts all solutions to the given constraint. We limit the numeric constraints to linear integer arithmetic, and for non-regular string constraints we over-approximate the solution set. Counting the number of accepting paths in the generated automaton solves the model counting problem. Our approach is parameterized in the sense that, we do not assume a finite domain size during automata construction, resulting in a potentially infinite set of solutions, and our model counting approach works for arbitrarily large bounds. We experimentally demonstrate the effectiveness of our approach on a large set of string and numeric constraints extracted from software applications. We experimentally compare our tool to five existing model counting constraint solvers for string and numeric constraints and demonstrate that our tool is as efficient and as or more precise than other solvers. Moreover, our tool can handle mixed constraints with string and integer variables that no other tool can.

链接与引用

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

BibTeX
@inproceedings{paperbot4664,
  title = {Parameterized model counting for string and numeric constraints},
  author = {Abdulbaki Aydin and William Eiers and Lucas Bang and Tegan Brennan and Miroslav Gavrilov and Tevfik Bultan and Fang Yu},
  booktitle = {FSE},
  year = {2018},
  doi = {10.1145/3236024.3236064}
}