arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.12313cs.PLcs.SE
收藏

带函数契约的正确性见证

Correctness Witnesses with Function Contracts

Matthias Heizmann, Dominik Klumpp, Marian Lingsch-Rosenfeld, Frank Schüssele

AI总结:

本文针对软件验证见证格式2.0无法表达函数契约的局限,提出扩展以支持ACSL风格的前置和后置条件,从而增强工具间信息交换能力。

摘要:

软件验证见证是软件验证工具之间常见的交换格式。它们被开发出来以提供支持验证结果的论证,允许其他工具复现验证结果。当前格式(版本2.0)的正确性见证仅允许使用C表达式编码循环不变量和位置不变量。这限制了验证器能够在见证格式中表达的正确性论证。一个特别的限制是无法表达函数契约,函数契约由函数的前置条件和后置条件组成。我们提出对现有见证格式2.0的扩展,以允许函数契约的规范。我们的扩展包括对受ACSL启发的若干特性的支持(\result、\old、\at)。这允许从工具中导出更多信息,并与需要函数契约的工具交换信息。

英文摘要:

Software verification witnesses are a common exchange format for software verification tools. They were developed to provide arguments supporting the verification result, allowing other tools to reproduce the verification results. Correctness witnesses in the current format (version 2.0) allow only for the encoding of loop and location invariants using C expressions. This limits the correctness arguments that verifiers can express in the witness format. One particular limitation is the inability to express function contracts, which consist of a pre-condition and a post-condition for a function. We propose an extension to the existing witness format 2.0 to allow for the specification of function contracts. Our extension includes support for several features inspired by ACSL (\result, \old, \at). This allows for the export of more information from tools and for the exchange of information with tools that require function contracts.

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

↑