判定带指针算术与归纳定义的分离逻辑
Deciding Separation Logic with Pointer Arithmetic and Inductive Definitions
AI总结:
本文研究允许归纳定义内含指针算术的分离逻辑片段 SLAH,通过归纳定义摘要的线性化及空间原子匹配切分,给出可满足性与蕴含判定过程,并在内存分配器验证任务上验证性能。
摘要:
指针算术广泛用于底层程序,例如内存分配器。这类程序的规约通常需要在归纳定义内部使用指针算术,以定义常见数据结构,例如内存分配器中的堆链表。在本工作中,我们研究 SLAH 的判定问题;SLAH 是一个分离逻辑片段,允许在归纳定义内部使用指针算术,从而能够规约操作堆链表的程序的性质。归纳定义内部的指针算术给自动推理带来挑战。我们应对这一挑战,并获得了 SLAH 公式可满足性与蕴含的判定过程。可满足性判定过程的关键是计算归纳定义的摘要。我们表明,尽管该摘要自然地表示为存在量词量化的非线性算术公式,但它实际上可以被转换为等价的线性算术公式。另一方面,蕴含的判定过程必须根据地址变量之间的算术关系来匹配和切分空间原子。我们报告了这些判定过程的实现,以及它们在求解由内存分配器所用构建块程序的验证所产生问题时的良好性能。
英文摘要:
Pointer arithmetic is widely used in low-level programs, e.g. memory allocators. The specification of such programs usually requires using pointer arithmetic inside inductive definitions to define the common data structures, e.g. heap lists in memory allocators. In this work, we investigate decision problems for SLAH, a separation logic fragment that allows pointer arithmetic inside inductive definitions, thus enabling specification of properties for programs manipulating heap lists. Pointer arithmetic inside inductive definitions is challenging for automated reasoning. We tackle this challenge and achieve decision procedures for both satisfiability and entailment of SLAH formulas. The crux of our decision procedure for satisfiability is to compute summaries of inductive definitions. We show that although the summary is naturally expressed as an existentially quantified non-linear arithmetic formula, it can actually be transformed into an equivalent linear arithmetic formula. The decision procedure for entailment, on the other hand, has to match and split the spatial atoms according to the arithmetic relation between address variables. We report on the implementation of these decision procedures and their good performance in solving problems issued from the verification of building block programs used in memory allocators.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。