计算机科学 > 计算机科学中的逻辑
[提交于 2016年11月28日]
标题:Relational Logic with Framing and Hypotheses: Technical Report
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Relational properties arise in many settings: relating two versions of a program that use different data representations, noninterference properties for security, etc. The main ingredient of relational verification, relating aligned pairs of intermediate steps, has been used in numerous guises, but existing relational program logics are narrow in scope. This paper introduces a logic based on novel syntax that weaves together product programs to express alignment of control flow points at which relational formulas are asserted. Correctness judgments feature hypotheses with relational specifications, discharged by a rule for the linking of procedure implementations. The logic supports reasoning about program-pairs containing both similar and dissimilar control and data structures. Reasoning about dynamically allocated objects is supported by a frame rule based on frame conditions amenable to SMT provers. We prove soundness and sketch how the logic can be used for data abstraction, loop optimizations, and secure information flow.
提交历史
来自:David Naumann[v1] 2016年11月28日 星期一 05:57:30 UTC