使用可执行操作语义对中间验证器进行基于模型的测试
Model-Based Testing of an Intermediate Verifier Using Executable Operational Semantics
AI总结:
本文提出BCC技术,结合Boogie语言子集形式化与PLT Redex生成能力,生成随机程序并对比其在Redex与Boogie验证器的执行一致性,实验发现Boogie工具链2%完整性失败案例,证明轻量测试对形式化验证工具的有效性。
摘要:
轻量级验证技术(如基于随机测试的技术)有时是完全形式化验证的实用替代方案——无需付出不成比例的努力即可提供发现错误等宝贵益处。事实上,即使对于完全形式化验证的工具,通过测试复杂系统中超出形式模型范围的部分,它们也很有用。在此背景下,本文介绍了BCC:一种针对Boogie中间验证器的基于模型的测试技术。BCC将Boogie语言的一个小型确定性子集的形式化与PLT Redex语言工程框架的生成能力相结合。BCC基本原理是使用PLT Redex生成随机Boogie程序,并根据形式化操作语义执行它们;然后,通过Boogie验证器运行相同程序。两种执行(PLT Redex和Boogie)之间的任何不一致都可能表明Boogie实现中存在潜在错误。为了解BCC在实践中是否有用,我们使用它生成了三百万个Boogie程序。这些实验发现Boogie工具链中2%的案例表明存在完整性失败(即虚假验证失败)。这些结果表明,轻量级分析工具(如基于模型的随机测试工具)对于测试和验证Boogie等形式化验证工具也很有用。
英文摘要:
Lightweight validation technique, such as those based on random testing, are sometimes practical alternatives to full formal verification -- providing valuable benefits, such as finding bugs, without requiring a disproportionate effort. In fact, they can be useful even for fully formally verified tools, by exercising the parts of a complex system that go beyond the reach of formal models. In this context, this paper introduces BCC: a model-based testing technique for the Boogie intermediate verifier. BCC combines the formalization of a small, deterministic subset of the Boogie language with the generative capabilities of the PLT Redex language engineering framework. Basically, BCC uses PLT Redex to generate random Boogie programs, and to execute them according to a formal operational semantics; then, it runs the same programs through the Boogie verifier. Any inconsistency between the two executions (in PLT Redex and with Boogie) may indicate a potential bug in Boogie's implementation. To understand whether BCC can be useful in practice, we used it to generate three million Boogie programs. These experiments found 2% of cases indicative of completeness failures (i.e., spurious verification failures) in Boogie's toolchain. These results indicate that lightweight analysis tools, such as those for model-based random testing, are also useful to test and validate formal verification tools such as Boogie.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。