数据结构不变量的综合短路验证
Synthesizing Short-Circuiting Validation of Data Structure Invariants
摘要:
本文提出了一种新的增量式验证-确认方法,用于检查表示为分离逻辑断言的丰富数据结构不变量。增量验证-确认将分离属性的静态验证与任意丰富数据约束的高效短路动态验证相结合。数据结构不变式检查器是具有可执行解释的分离逻辑中的归纳谓词;短路检查器是每当其在运行时间检测到某个子结构的断言已被完全静态证明时停止检查的不变式检查器。在一个高层次上,我们的方法做两件事:它静态地证明分离属性的数据结构不变量使用静态形状分析在一个标准的方式,但然后利用这种证明在一个新的方式来合成短路动态验证的数据属性。因此,我们启用动态验证来弥补声音静态分析中的不精确性,同时利用静态验证来使剩余的动态验证有效。我们的经验表明,短路可以产生渐近改善动态验证,低开销超过没有验证,即使在静态验证是不完整的情况下。
英文摘要:
This paper presents incremental verification-validation, a novel approach for checking rich data structure invariants expressed as separation logic assertions. Incremental verification-validation combines static verification of separation properties with efficient, short-circuiting dynamic validation of arbitrarily rich data constraints. A data structure invariant checker is an inductive predicate in separation logic with an executable interpretation; a short-circuiting checker is an invariant checker that stops checking whenever it detects at run time that an assertion for some sub-structure has been fully proven statically. At a high level, our approach does two things: it statically proves the separation properties of data structure invariants using a static shape analysis in a standard way but then leverages this proof in a novel manner to synthesize short-circuiting dynamic validation of the data properties. As a consequence, we enable dynamic validation to make up for imprecision in sound static analysis while simultaneously leveraging the static verification to make the remaining dynamic validation efficient. We show empirically that short-circuiting can yield asymptotic improvements in dynamic validation, with low overhead over no validation, even in cases where static verification is incomplete.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。