arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1612.01198cs.SE
收藏

基于数据的不变量生成的实现与评价

Implementing and Evaluating Candidate-Based Invariant Generation

Adam Betts, Nathan Chong, Pantazis Deligiannis, Alastair F. Donaldson, Jeroen Ketema

摘要:

归纳不变量的发现是静态程序验证的核心。目前,许多归纳不变式自动生成的解决方案是不灵活的,只适用于某些类别的程序,或不可预测的。一个自动的技术,在一定程度上规避这些不足之处是候选人为基础的不变生成。本文介绍了我们的努力,应用候选人为基础的不变量生成GPUVerify,一个静态检查程序,在GPU上运行。我们研究了一组包含循环的GPU程序,这些程序来自许多开源套件和供应商SDK。我们描述了我们用来逐步提高GPUVerify的不变生成能力来处理这些基准测试的方法,通过基于候选人的不变生成,使用廉价的静态分析来推测潜在的程序不变。我们还描述了一组实验,我们用来检查我们的候选人生成规则的有效性,评估规则的基础上,他们的一般性(它们生成候选不变量的程度),命中率(生成的候选人持有的程度),价值(可证明的候选人实际上在多大程度上有助于验证成功),和影响力(一个生成规则的成功取决于另一个规则生成的候选项的程度)。GPUVerify生成的候选程序帮助验证了253个程序中的231个。然而,这种精度的提高使得GPUVerify变得缓慢:生成的候选项越多,花在确定哪些是归纳不变量上的时间就越多。为了加快这个过程中,我们已经调查了四个下近似程序分析,旨在快速拒绝虚假的候选人和一个框架,使这些分析可以在顺序或并行运行。

英文摘要:

The discovery of inductive invariants lies at the heart of static program verification. Presently, many automatic solutions to inductive invariant generation are inflexible, only applicable to certain classes of programs, or unpredictable. An automatic technique that circumvents these deficiencies to some extent is candidate-based invariant generation. This paper describes our efforts to apply candidate-based invariant generation in GPUVerify, a static checker for programs that run on GPUs. We study a set of GPU programs that contain loops, drawn from a number of open source suites and vendor SDKs. We describe the methodology we used to incrementally improve the invariant generation capabilities of GPUVerify to handle these benchmarks, through candidate-based invariant generation, using cheap static analysis to speculate potential program invariants. We also describe a set of experiments that we used to examine the effectiveness of our rules for candidate generation, assessing rules based on their generality (the extent to which they generate candidate invariants), hit rate (the extent to which the generated candidates hold), worth (the extent to which provable candidates actually help in allowing verification to succeed), and influence (the extent to which the success of one generation rule depends on candidates generated by another rule). The candidates produced by GPUVerify help to verify 231 of the 253 programs. This increase in precision, however, makes GPUVerify sluggish: the more candidates that are generated, the more time is spent determining which are inductive invariants. To speed up this process, we have investigated four under-approximating program analyses that aim to reject false candidates quickly and a framework whereby these analyses can run in sequence or in parallel.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑