首页> 外文OA文献 >Shared boxes: rely-guarantee reasoning in VeriFast
【2h】

Shared boxes: rely-guarantee reasoning in VeriFast

机译:共享框:VeriFast中的依赖保证推理

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

VeriFast is a verifier for single-threaded and multithreaded C and Java programs. It takes a C or Java program annotated with preconditions and postconditions in a separation logic notation, and verifies statically that these preconditions and postconditions hold, using symbolic execution. In plain separation logic, a thread either has full ownership of a memory location and knows the value at the location, or it has no ownership and no knowledge of the value of the location. Existing work proposes a marriage of rely-guarantee reasoning and separation logic to address this. In this document, we describe the shared boxes mechanism, which marries separation logic and rely-guarantee reasoning in VeriFast. We introduce and motivate the shared boxes mechanism using a minimalistic example and a realistic example. The minimalistic example is a counter program where one thread continuously increments a counter and other threads check that the counter does not decrease. For the realistic example, we verify functional correctness of the Michael-Scott queue, a lock-free concurrent data structure. We define the syntax and semantics of a simple C-like programming language, and we define a separation logic with shared boxes and prove its soundness. We discuss the implementation in VeriFast and the examples we verified using our VeriFast implementation.
机译:VeriFast是用于单线程和多线程C和Java程序的验证程序。它采用用分隔逻辑符号注释了前置条件和后置条件的C或Java程序,并使用符号执行静态验证了这些前置条件和后置条件是否成立。在普通分离逻辑中,线程要么完全拥有内存位置,并且知道该位置的值,要么不拥有所有权,也不知道该位置的值。现有的工作提出了依赖保证推理和分离逻辑的结合来解决这个问题。在本文中,我们描述了共享框机制,该机制将VeriFast中的分离逻辑和依赖保证推理结合在一起。我们使用一个简单的例子和​​一个现实的例子来介绍和激励共享框机制。简约的示例是一个计数器程序,其中一个线程连续增加一个计数器,而其他线程检查该计数器没有减少。对于实际示例,我们验证Michael-Scott队列(无锁的并发数据结构)的功能正确性。我们定义一种简单的类似于C的编程语言的语法和语义,并定义一个带有共享框的分离逻辑并证明其合理性。我们讨论了VeriFast中的实现以及使用VeriFast实现验证的示例。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号