arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.10889cs.LOcs.SE
收藏

AutoDeduct:一种用于C代码自动化演绎验证的工具

AutoDeduct: A Tool for Automated Deductive Verification of C Code

Jesper Amilon, Dilian Gurov, Christian Lidström, Mattias Nyberg, Gustav Ung, Ola Wingbrant

AI总结:

AutoDeduct基于Frama-C框架,通过两个插件自动推断C函数的ACSL契约,减少手动标注开销,并在工业示例上验证了其有效性。

摘要:

演绎验证已成为工业软件验证的成熟范式。然而,应用演绎验证要求代码库中的每个函数都附带一个函数契约,以指定其行为。这引入了大量的手动工作开销。为应对这一挑战,我们引入了AutoDeduct工具链,它构建在Frama-C框架之上。该工具链实现了一系列技术的组合,以自动推断C程序中函数的契约,使用ACSL语法,即Frama-C的规范语言。AutoDeduct中的契约推断实现为Frama-C的两个插件,每个插件推断不同类型的注释。我们假设程序有一个已经配备契约的入口点函数,该契约与程序源代码结合使用,以推断辅助函数的契约,从而使入口点契约能够被验证。当前版本的AutoDeduct是第一个公开原型,我们在一个改编自工业软件的示例上对其进行了评估。

英文摘要:

Deductive verification has become a mature paradigm for the verification of industrial software. Applying deductive verification, however, requires that every function in the code base is annotated with a function contract specifying its behaviour. This introduces a large overhead of manual work. To address this challenge, we introduce the AutoDeduct toolchain, built on top of the Frama-C framework. It implements a combination of techniques to automatically infer contracts for functions in C programs, in the syntax of ACSL, the specification language of Frama-C. Contract inference in AutoDecuct is implemented as two plugins for Frama-C, each inferring different types of annotations. We assume that programs have an entry-point function already equipped with a contract, which is used in conjunction with the program source code to infer contracts for the helper functions, so that the entry-point contract can be verified. The current release of AutoDeduct is the first public prototype, which we evaluate on an example adapted from industrial software.

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

↑