paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Demystifying Template-Based Invariant Generation for Bit-Vector Programs

揭秘面向位向量程序的基于模板的不变式生成
ASE 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE)2023匹配度 4/10 · 该论文是形式化验证/静态分析领域的经验研究,关注位向量程序的不变式生成,与用户对静态分析和程序验证的兴趣有间接关联,但未涉及LLM/Agent或浮点程序分析等核心交叉方向,因此匹配度较低。引用 6 inbox
Peisen Yao, Jingyu Ke, Jiahui Sun, Hongfei Fu, Rongxin Wu, Kui Ren
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:系统实验揭示位向量程序中模板不变式生成的模板与求解器影响,并证明其可处理现有方法难处理的基准。

基于模板的不变式生成是一种参数化且相对完备的循环不变式推断方法,但其在位精确推理(以位向量算术建模整数)上的进展有限,而这对忠实刻画机器整数语义并保证程序验证的可靠与精确至关重要。本文作为经验论文,从三方面系统实验研究位精确、基于模板的不变式生成:不同不变式模板的精度、不同约束求解器求解约束的性能,以及该方法与现有位精确验证技术相比的有效性。作者在广泛基准上开展大规模评估,发现模板与约束求解器的选择会不同程度地影响不变式生成的精度和效率;同时,基于模板的方法能够处理其他位向量方法无法处理的基准。结果还为未来研究提供了若干指导。

问题
位精确推理对机器整数语义建模和程序验证至关重要,但基于模板的不变式生成在位向量程序上的适用性、精度和求解性能尚缺乏系统认识。
方法
作者对位精确、基于模板的不变式生成进行经验研究,比较不同不变式模板、约束求解器,并与现有位精确验证技术对比,在大量基准上实验。
评估
通过广泛基准上的大规模实验评估模板精度、求解器性能及相对有效性,并总结未来研究指南。
原文摘要(Abstract)

The template-based approach to invariant generation is a parametric and relatively complete methodology for inferring loop invariants. The relative completeness ensures the generated invariants' accuracy up to the template's form and the inductive condition. However, there has been limited in advancing the approach to bit-precise reasoning, which involves modeling integers using bit-vector arithmetic. This is unfortunate because bit-precise reasoning is crucial for faithfully and accurately modeling machine integer semantics and, thus, for ensuring sound and precise program verification. In this experience paper, we present an experimental study of bit-precise, template-based invariant generation on three fronts: the precision of different invariant templates, the performance of different constraint solvers for solving the constraints, and the effectiveness of the template-based approach compared to existing bit-precise verification techniques. Through an extensive experimental evaluation over a wide range of benchmarks, we find that (1) the choices of invariant templates and constraint solvers have varying degrees of impact on the precision and efficiency of invariant generation; (2) the template-based approach can handle benchmarks that other approaches for bit-vectors cannot handle. The results also reveal several guidelines for advancing future research on template-based invariant generation.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{YaoKSFWR23,
  title = {Demystifying Template-Based Invariant Generation for Bit-Vector Programs},
  author = {Peisen Yao and Jingyu Ke and Jiahui Sun and Hongfei Fu and Rongxin Wu and Kui Ren},
  booktitle = {ASE},
  year = {2023},
  doi = {10.1109/ase56229.2023.00069}
}