arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1802.04695cs.LO
收藏

并发约束程序设计对Access的解释

A Concurrent Constraint Programming Interpretation of Access Permissions

Carlos Olarte, Elaine Pimentel, Camilo Rueda

摘要:

面向对象(OO)程序设计语言中的最近趋势是使用Access对象(AP)作为控制程序的并发执行的抽象。AP源代码注释的使用定义了一个协议,指定对象引用如何访问对象的可变状态。虽然AP的使用简化了编写并发代码的任务,但不系统地使用它们可能会导致一些微妙的问题。本文提出了一个声明性解释的AP线性并发约束程序(LCC)。我们将AP表示为约束(即,逻辑中的公式),其蕴涵关系对AP的转换规则进行建模。此外,我们使用LCC中的流程来模拟AP所施加的依赖关系,从而使其在程序中的流的忠实表示。我们利用Girard直觉线性逻辑(ILL)中的公式对LCC过程的解释来验证AP程序的相关性质。属性包括死锁检测、程序正确性(程序是否遵守其AP规范)和方法并发运行的能力。通过依赖于ILL的聚焦纪律,我们提供了一个复杂性的措施,证明上述属性。我们的验证技术的有效性证明,通过实施凹室工具,包括一个动画和验证。前者执行lcc模型,观察AP的流程,并快速找到AP与实现的不一致之处。后者是一个基于ILL的自动定理证明器。这篇论文正在考虑发表在《逻辑程序设计理论与实践》(TPLP)上。

英文摘要:

A recent trend in object oriented (OO) programming languages is the use of Access Permissions (APs) as an abstraction for controlling concurrent executions of programs. The use of AP source code annotations defines a protocol specifying how object references can access the mutable state of objects. Although the use of APs simplifies the task of writing concurrent code, an unsystematic use of them can lead to subtle problems. This paper presents a declarative interpretation of APs as Linear Concurrent Constraint Programs (lcc). We represent APs as constraints (i.e., formulas in logic) in an underlying constraint system whose entailment relation models the transformation rules of APs. Moreover, we use processes in lcc to model the dependencies imposed by APs, thus allowing the faithful representation of their flow in the program. We verify relevant properties about AP programs by taking advantage of the interpretation of lcc processes as formulas in Girard's intuitionistic linear logic (ILL). Properties include deadlock detection, program correctness (whether programs adhere to their AP specifications or not), and the ability of methods to run concurrently. By relying on a focusing discipline for ILL, we provide a complexity measure for proofs of the above mentioned properties. The effectiveness of our verification techniques is demonstrated by implementing the Alcove tool that includes an animator and a verifier. The former executes the lcc model, observing the flow of APs and quickly finding inconsistencies of the APs vis-a-vis the implementation. The latter is an automatic theorem prover based on ILL. This paper is under consideration for publication in Theory and Practice of Logic Programming (TPLP).

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

↑