基于符号形状分析的复变函数性质研究
On Verifying Complex Properties using Symbolic Shape Analysis
摘要:
软件系统验证的主要挑战之一是分析具有动态存储器分配的无界数据结构,例如链接数据结构和数组。我们描述Bohne,一个新的分析验证数据结构。Bohne验证了数据结构操作,并表明:1)操作保持数据结构不变,2)操作满足它们的规范,这些规范是根据存储在数据结构中的对象集的变化来表达的。在分析过程中,Bohne以普遍量化的布尔公式组合的析取形式推断循环不变量。为了合成这种形式的循环不变量,Bohne使用了树上一元二阶逻辑的决策过程,SMT-LIB决策过程(目前为CVC Lite)和Isabelle交互式定理证明器中的自动推理器的组合。这种架构表明,合成循环不变式可以作为一个有用的通信机制之间的不同的决策过程。使用Bohne,我们已经验证了数据结构上的操作,例如具有迭代器和反向指针的链表,具有和不具有父指针的树,两级跳表,数组数据结构和排序列表。我们已经在Hob和Jahob数据结构分析系统中部署了Bohne,使我们能够将Bohne与数据结构客户端的分析相结合,并将其应用于更大的程序。本报告描述了Bohne算法以及Bohne用于减少注释数量和分析运行时间的技术。
英文摘要:
One of the main challenges in the verification of software systems is the analysis of unbounded data structures with dynamic memory allocation, such as linked data structures and arrays. We describe Bohne, a new analysis for verifying data structures. Bohne verifies data structure operations and shows that 1) the operations preserve data structure invariants and 2) the operations satisfy their specifications expressed in terms of changes to the set of objects stored in the data structure. During the analysis, Bohne infers loop invariants in the form of disjunctions of universally quantified Boolean combinations of formulas. To synthesize loop invariants of this form, Bohne uses a combination of decision procedures for Monadic Second-Order Logic over trees, SMT-LIB decision procedures (currently CVC Lite), and an automated reasoner within the Isabelle interactive theorem prover. This architecture shows that synthesized loop invariants can serve as a useful communication mechanism between different decision procedures. Using Bohne, we have verified operations on data structures such as linked lists with iterators and back pointers, trees with and without parent pointers, two-level skip lists, array data structures, and sorted lists. We have deployed Bohne in the Hob and Jahob data structure analysis systems, enabling us to combine Bohne with analyses of data structure clients and apply it in the context of larger programs. This report describes the Bohne algorithm as well as techniques that Bohne uses to reduce the ammount of annotations and the running time of the analysis.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。