计算机科学 > 程序设计语言
[提交于 2017年2月13日]
标题:Trace Properties from Separation Logic Specifications
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Nikos Tzevelekos[v1] 2017年2月13日 星期一 00:00:00 UTC