VST-A:一个基础可靠的注解验证器
VST-A: A Foundationally Sound Annotation Verifier
AI总结:
提出VST-A注解验证器,通过在Coq中分析控制流图并将C函数分解为直线型Hoare三元组,结合VST丰富的断言语言与形式化可靠性证明,实现了兼具自动化与高灵活性的基础程序验证。
摘要:
针对C等命令式语言的程序验证器可以是基于注解的,即将断言和不变量放入源文件然后进行检查;也可以是基于策略的,即在Coq等证明助手中交互式地开发与程序分离的证明脚本。注解验证器更加自动化和便捷,但一些交互式验证器拥有更丰富的断言语言和可靠性的形式化证明。我们提出了VST-A,这是一个注解验证器,它使用VST丰富的断言语言,利用VST的形式化可靠性证明,并允许用户通过插入断言直观地描述函数正确性证明。VST-A分析控制流图,将每个C函数分解为断言之间的控制流路径,并将程序验证问题归约为对应的直线型Hoare三元组。与VST和Iris等现有的基础程序验证工具相比,在VST-A中,这种分解和归约允许是非结构化的,这使得VST-A使用起来更加灵活。VST-A的分解和归约在Coq中定义,在Coq中证明其可靠性,并在Coq中以按值调用的方式进行计算。归约的可靠性证明是完全逻辑性的,独立于VST的Hoare三元组复杂的语义模型(及其可靠性证明)。由于断言语言丰富,并非所有归约后的证明目标都能被自动检查,但系统允许用户利用Coq证明助手的全部能力来证明剩余的证明目标。
英文摘要:
Program verifiers for imperative languages such as C may be annotation-based, in which assertions and invariants are put into source files and then checked, or tactic-based, where proof scripts separate from programs are interactively developed in a proof assistant such as Coq. Annotation verifiers have been more automated and convenient, but some interactive verifiers have richer assertion languages and formal proofs of soundness. We present VST-A, an annotation verifier that uses the rich assertion language of VST, leverages the formal soundness proof of VST, but allows users to describe functional correctness proofs intuitively by inserting assertions. VST-A analyzes control flow graphs, decomposes every C function into control flow paths between assertions, and reduces program verification problems into corresponding straightline Hoare triples. Compared to existing foundational program verification tools like VST and Iris, in VST-A, such decompositions and reductions are allowed to be nonstructural, which makes VST-A more flexible to use. VST-A's decomposition and reduction is defined in Coq, proved sound in Coq, and computed in a call-by-value way in Coq. The soundness proof for reduction is totally logical, independent of the complicated semantic model (and soundness proof) of VST's Hoare triple. Because of the rich assertion language, not all reduced proof goals can be automatically checked, but the system allows users to prove residual proof goals using the full power of the Coq proof assistant.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。