首页> 外文会议>European Conference on Object-Oriented Programming >Regional Logic for Local Reasoning about Global Invariants
【24h】

Regional Logic for Local Reasoning about Global Invariants

机译:关于全球不变性的地方推理的区域逻辑

获取原文

摘要

Shared mutable objects pose grave challenges in reasoning, especially for data abstraction and modularity. This paper presents a novel logic for error-avoiding partial correctness of programs featuring shared mutable objects. Using a first order assertion language, the logic provides heap-local reasoning about mutation and separation, via ghost fields and variables of type 'region' (finite sets of object references). A new form of modifies clause specifies write, read, and allocation effects using region expressions; this supports effect masking and a frame rule that allows a command to read state on which the framed predicate depends. Soundness is proved using a standard program semantics. The logic facilitates heap-local reasoning about object invariants: disciplines such as ownership are expressible but not hard-wired in the logic.
机译:共享可变的物体在推理中构成严重挑战,特别是对于数据抽象和模块化。本文提出了一种新颖的逻辑,用于避免具有共享可变对象的共享可变对象的程序的部分正确性。使用一阶断言语言,逻辑通过幽灵字段和“区域类型”(有限组对象引用)提供关于突变和分离的堆局域推理。新形式的Modifies子句使用区域表达式指定写入,读取和分配效果;这支持效果屏蔽和帧规则,允许命令读取帧谓词取决于的状态。使用标准程序语义证明了声音。逻辑促进了关于对象不变的堆 - 本地推理:所有权等学科是表示的,但在逻辑中没有硬化。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号