用平铺法实现数组操作程序
Verifying Array Manipulating Programs by Tiling
摘要:
形式化验证在循环中操作数组的程序的属性在计算上是具有挑战性的。在本文中,我们专注于一个有用的类这样的程序,并提出了一种新的属性驱动的验证方法,首先推断数组访问模式的循环使用简单的逻辑,然后使用这些信息来证明普遍量化的断言组合数组。具体来说,我们确定在一个循环中的数组访问模式的瓦片,并使用瓦片信息,以减少在一个循环结束时,检查一个量化的断言的问题,一个归纳参数,检查只有一个切片的断言的循环体的一个单一的迭代。我们表明,这种方法可以扩展到程序顺序组成的循环和嵌套循环以及。我们已经在一个名为Tiler的工具中实现了我们的方法。初步实验表明,Tiler优于几个国家的最先进的工具在一套有趣的基准测试。
英文摘要:
Formally verifying properties of programs that manipulate arrays in loops is computationally challenging. In this paper, we focus on a useful class of such programs, and present a novel property-driven verification method that first infers array access patterns in loops using simple heuristics, and then uses this information to compositionally prove universally quantified assertions about arrays. Specifically, we identify tiles of array accesses patterns in a loop, and use the tiling information to reduce the problem of checking a quantified assertion at the end of a loop to an inductive argument that checks only a slice of the assertion for a single iteration of the loop body. We show that this method can be extended to programs with sequentially composed loops and nested loops as well. We have implemented our method in a tool called Tiler. Initial experiments show that Tiler outperforms several state-of-the-art tools on a suite of interesting benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。