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

带符号执行的健全渐进验证

Sound Gradual Verification with Symbolic Execution

Conrad Zimmerman, Jenna DiVincenzo, Jonathan Aldrich

AI总结:

本文通过符号执行的形式化、优化的运行时检查生成及运行时执行,为渐进验证奠定健全基础,证明了方法的健全性,并发现并修复了现有工具中的健全性缺陷。

摘要:

渐进验证支持显式的部分规范,并通过静态与动态检查相结合的方式进行验证,这使得验证更具增量性,并能更早地向开发者提供反馈。此前,一种基于最弱前置条件的抽象渐进验证方法已被证明是健全的,但该方法并未为所需运行时检查的实现和优化提供充分指导。最近,渐进验证已通过符号执行技术实现,但该方法的健全性(与基于隐式动态框架的相关静态检查器一样)仍是一个悬而未决的问题。本文通过符号执行的形式化、优化的运行时检查生成以及运行时执行,为实用的渐进验证奠定了健全的基础。我们证明了我们的方法是健全的;我们的证明还涵盖了Viper工具的一个核心子集,据我们所知,此前尚无关于该子集的健全性结果。我们的形式化使我们能够在一个已实现的渐进验证工具中发现一个健全性缺陷,并描述了使其健全所需的修复方法。

英文摘要:

Gradual verification, which supports explicitly partial specifications and verifies them with a combination of static and dynamic checks, makes verification more incremental and provides earlier feedback to developers. While an abstract, weakest precondition-based approach to gradual verification was previously proven sound, the approach did not provide sufficient guidance for implementation and optimization of the required run-time checks. More recently, gradual verification was implemented using symbolic execution techniques, but the soundness of the approach (as with related static checkers based on implicit dynamic frames) was an open question. This paper puts practical gradual verification on a sound footing with a formalization of symbolic execution, optimized run-time check generation, and run time execution. We prove our approach is sound; our proof also covers a core subset of the Viper tool, for which we are aware of no previous soundness result. Our formalization enabled us to find a soundness bug in an implemented gradual verification tool and describe the fix necessary to make it sound.

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

↑