关联数据结构的谓词抽象
Predicate Abstraction for Linked Data Structures
摘要:
本文提出了一种新的验证链接数据结构正确性的方法-虽然有许多技术可以检查堆操作程序是否符合其规范,但它们通常需要程序员注释每个过程的行为,例如,以循环不变式和前置条件和后置条件的形式。谓词抽象将是执行不变推理的一个有吸引力的抽象域,现有技术不能以足够的精度来推理堆以验证数据结构操纵程序的功能属性。在本文中,我们提出了一种技术,通过将数据结构的分析分解为两个正交分量,将谓词抽象提升到堆中:(1)优化类型,它推理堆结构的物理形状,以及(2)细化类型,它使用来自SMT可判定理论的简单谓词来捕获结构的逻辑或语义属性。我们通过将类型转换为分离逻辑断言来证明ART的可靠性,从而将ART中的类型推导转换为分离逻辑证明。我们评估艺术通过实现一个工具,执行类型推断的命令式语言,并凭经验表明,使用一套数据结构基准,艺术只需要21%的注释所需的其他国家的最先进的验证技术。
英文摘要:
We present Alias Refinement Types (ART), a new approach to the verification of correctness properties of linked data structures. While there are many techniques for checking that a heap-manipulating program adheres to its specification, they often require that the programmer annotate the behavior of each procedure, for example, in the form of loop invariants and pre- and post-conditions. Predicate abstraction would be an attractive abstract domain for performing invariant inference, existing techniques are not able to reason about the heap with enough precision to verify functional properties of data structure manipulating programs. In this paper, we propose a technique that lifts predicate abstraction to the heap by factoring the analysis of data structures into two orthogonal components: (1) Alias Types, which reason about the physical shape of heap structures, and (2) Refinement Types, which use simple predicates from an SMT decidable theory to capture the logical or semantic properties of the structures. We prove ART sound by translating types into separation logic assertions, thus translating typing derivations in ART into separation logic proofs. We evaluate ART by implementing a tool that performs type inference for an imperative language, and empirically show, using a suite of data-structure benchmarks, that ART requires only 21% of the annotations needed by other state-of-the-art verification techniques.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。