从分离逻辑规范看迹的性质
Trace Properties from Separation Logic Specifications
摘要:
我们提出了一个正式的方法有关的抽象分离逻辑库规范的跟踪性能,他们执行客户端和库之间的交互。具有抽象谓词的分离逻辑强制执行资源规程,该资源规程约束何时以及如何在客户机和库之间进行调用。直观地说,这可以在交互跟踪上实施协议。这种直觉在分离逻辑界被广泛使用,但以前尚未被正式化。我们提供的就是这样一种形式化。我们的方法是基于使用包装器的仪器库代码,以诱导执行跟踪检查下的属性。通过考虑一个分离逻辑扩展与跟踪资源,我们证明了当一个库满足其分离逻辑规范,那么它的包装版本满足相同的规范,而且,保持跟踪属性作为一个不变量。因此,任何符合分离逻辑规范的客户端和库实现都将满足跟踪属性。
英文摘要:
We propose a formal approach for relating abstract separation logic library specifications with the trace properties they enforce on interactions between a client and a library. Separation logic with abstract predicates enforces a resource discipline that constrains when and how calls may be made between a client and a library. Intuitively, this can enforce a protocol on the interaction trace. This intuition is broadly used in the separation logic community but has not previously been formalised. We provide just such a formalisation. Our approach is based on using wrappers which instrument library code to induce execution traces for the properties under examination. By considering a separation logic extended with trace resources, we prove that when a library satisfies its separation logic specification then its wrapped version satisfies the same specification and, moreover, maintains the trace properties as an invariant. Consequently, any client and library implementation that are correct with respect to the separation logic specification will satisfy the trace properties.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。