基于符号执行的迭代分离连词自动验证
Automatic Verification of Iterated Separating Conjunctions using Symbolic Execution
摘要:
在诸如分离逻辑之类的权限逻辑中,迭代分离合取是表示对堆位置的无界集合的访问权限的量词。与递归谓词相反,迭代分离合取并不规定它们所覆盖的位置的结构,因此不限制如何遍历和修改这些位置。这种灵活性对于验证随机存取数据结构(例如数组)和可以以多种方式遍历的数据结构(例如图形)是重要的。尽管它的有用性,没有自动程序验证原生支持迭代分离合取,他们是特别难以纳入符号执行引擎,流行的技术,为这些逻辑建立验证。在本文中,我们提出了第一个符号执行技术,以支持一般迭代分离合取。我们提出了一种新的表示符号堆和灵活的支持,量化堆位置的逻辑规范。我们的技术表现出可预测的和快速的性能,尽管在SMT级别采用量词,通过仔细控制量词实例。它与权限逻辑的其他功能兼容,如部分权限、递归谓词和抽象函数。我们的技术是实现作为一个扩展的毒蛇验证基础设施。
英文摘要:
In permission logics such as separation logic, the iterated separating conjunction is a quantifier denoting access permission to an unbounded set of heap locations. In contrast to recursive predicates, iterated separating conjunctions do not prescribe a structure on the locations they range over, and so do not restrict how to traverse and modify these locations. This flexibility is important for the verification of random-access data structures such as arrays and data structures that can be traversed in multiple ways such as graphs. Despite its usefulness, no automatic program verifier natively supports iterated separating conjunctions; they are especially difficult to incorporate into symbolic execution engines, the prevalent technique for building verifiers for these logics. In this paper, we present the first symbolic execution technique to support general iterated separating conjunctions. We propose a novel representation of symbolic heaps and flexible support for logical specifications that quantify over heap locations. Our technique exhibits predictable and fast performance despite employing quantifiers at the SMT level, by carefully controlling quantifier instantiations. It is compatible with other features of permission logics such as fractional permissions, recursive predicates, and abstraction functions. Our technique is implemented as an extension of the Viper verification infrastructure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。