arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2306.00004cs.SEcs.LO
收藏

面向自动验证的自动程序插桩(扩展技术报告)

Automatic Program Instrumentation for Automatic Verification (Extended Technical Report)

Jesper Amilon, Zafer Esen, Dilian Gurov, Christian Lidström, Philipp Rümmer

AI总结:

本文提出将程序插桩作为统一验证范式,以自动变换方式消除规约语言中后端求解器难以处理的结构,并将数组聚合形式化为幺半群同态,在 MonoCera 工具中实现并验证其有效性。

摘要:

在演绎验证和软件模型检查中,当后端求解器能力不足或缺少所需理论时,处理某些规约语言构造可能会带来问题。一种应对方法是为验证目的将程序变换为不使用这些困难构造的等价程序,并转而对其正确性进行推理。在本文中,我们提出将插桩作为一种统一的验证范式,它涵盖多种现有的临时性方法,具有明确的形式化正确性准则,能够自动应用,并且可以回传见证和反例。我们以涉及数组上的量化和聚合操作(例如给定数组段中元素的最大值或总和)的程序自动验证为例来说明我们的方法,这类程序已知难以自动推理。我们将数组聚合操作形式化为幺半群同态。我们在 MonoCera 工具中实现了该方法,该工具专为验证带聚合操作的程序而定制,并在包括 SV-COMP 程序在内的示例程序上对其进行了评估。

英文摘要:

In deductive verification and software model checking, dealing with certain specification language constructs can be problematic when the back-end solver is not sufficiently powerful or lacks the required theories. One way to deal with this is to transform, for verification purposes, the program to an equivalent one not using the problematic constructs, and to reason about its correctness instead. In this paper, we propose instrumentation as a unifying verification paradigm that subsumes various existing ad-hoc approaches, has a clear formal correctness criterion, can be applied automatically, and can transfer back witnesses and counterexamples. We illustrate our approach on the automated verification of programs that involve quantification and aggregation operations over arrays, such as the maximum value or sum of the elements in a given segment of the array, which are known to be difficult to reason about automatically. We formalise array aggregation operations as monoid homomorphisms. We implement our approach in the MonoCera tool, which is tailored to the verification of programs with aggregation, and evaluate it on example programs, including SV-COMP programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑