组合符号执行用于正确性与不正确性推理(扩展版)
Compositional Symbolic Execution for Correctness and Incorrectness Reasoning (Extended Version)
AI总结:
本文提出一个基于分离逻辑的形式化组合符号执行引擎,通过公理接口刻画消费与生产操作,为正确性与不正确性推理提供统一基础,并扩展Gillian平台实现自动真错误发现。
摘要:
分离逻辑的引入促进了符号执行技术和工具的发展,这些技术和工具在功能上是组合的,其函数规范可用于更广泛的调用上下文。学术界和工业界开发的许多组合符号执行工具都基于形式化基础,但要么函数规范未根据理论基础的分离逻辑进行验证,要么理论与工具实现之间存在巨大鸿沟。我们引入了一个形式化的组合符号执行引擎,该引擎从底层分离逻辑创建并使用函数规范,为Gillian符号执行平台提供了可靠的理论基础,并确实部分受其启发。这是通过提供一个公理接口来实现的,该接口描述了引擎中用于组合更新符号状态(例如调用函数规范时)的消费(consume)和生产(produce)操作的属性。这种消费-生产技术被VeriFast、Viper和Gillian使用,但此前从未独立于工具进行过表征。作为我们结果的一部分,我们给出了受Gillian实现启发的消费和生产操作,这些操作满足我们公理接口所描述的属性。一个令人惊讶的特性是,我们的引擎语义为正确性和不正确性推理提供了共同的基础,底层引擎的差异仅在于选择使用可满足性还是有效性。我们利用这一特性扩展了Gillian平台,该平台此前仅支持正确性推理,现增加了不正确性推理以及使用不正确性双分离(bi-abduction)的自动真错误发现功能。
英文摘要:
The introduction of separation logic has led to the development of symbolic execution techniques and tools that are (functionally) compositional with function specifications that can be used in broader calling contexts. Many of the compositional symbolic execution tools developed in academia and industry have been grounded on a formal foundation, but either the function specifications are not validated with respect to the underlying separation logic of the theory, or there is a large gulf between the theory and the implementation of the tool. We introduce a formal compositional symbolic execution engine which creates and uses function specifications from an underlying separation logic and provides a sound theoretical foundation for, and indeed was partially inspired by, the Gillian symbolic execution platform. This is achieved by providing an axiomatic interface which describes the properties of the consume and produce operations used in the engine to update compositionally the symbolic state, for example when calling function specifications. This consume-produce technique is used by VeriFast, Viper, and Gillian, but has not been previously characterised independently of the tool. As part of our result, we give consume and produce operations inspired by the Gillian implementation that satisfy the properties described by our axiomatic interface. A surprising property is that our engine semantics provides a common foundation for both correctness and incorrectness reasoning, with the difference in the underlying engine only amounting to the choice to use satisfiability or validity. We use this property to extend the Gillian platform, which previously only supported correctness reasoning, with incorrectness reasoning and automatic true bug-finding using incorrectness bi-abduction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。