arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.17901cs.LO
收藏

OCaml 程序的实际演绎验证(扩展版)

Practical Deductive Verification of OCaml Programs (Extended Version)

Mário Pereira

AI总结:

本文提供使用 GOSPEL 规范语言和 Cameleer 工具对 OCaml 程序进行演绎验证的实践教程,涵盖纯函数式与命令式两类程序,实现大部分自动化验证。

摘要:

在本文中,我们提供了一个关于如何对用 OCaml 编写的程序应用演绎验证的全面、动手实践的教程。特别是,我们展示了如何使用 GOSPEL 规范语言和 Cameleer 工具对 OCaml 代码进行大部分自动化的验证。在我们的演示中,我们重点关注两类主要程序:第一类是纯函数式程序,没有可变状态;然后是命令式程序,其中可以将可变状态与微妙的控制流原语(如局部定义的异常)混合使用。

英文摘要:

In this paper, we provide a comprehensive, hands-on tutorial on how to apply deductive verification to programs written in OCaml. In particular, we show how one can use the GOSPEL specification language and the Cameleer tool to conduct mostly-automated verification on OCaml code. In our presentation, we focus on two main classes of programs: first, purely functional programs with no mutable state; then on imperative programs, where one can mix mutable state with subtle control-flow primitives, such as locally-defined exceptions.

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

↑