arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.04842cs.LOcs.PL
收藏

结果分离逻辑:面向计算效应的正确性与不正确性局部推理

Outcome Separation Logic: Local Reasoning for Correctness and Incorrectness with Computational Effects

Noam Zilberstein, Angelina Saliling, Alexandra Silva

AI总结:

本文提出结果分离逻辑(OSL),一种同时支持正确性与不正确性推理的程序逻辑,通过框架规则和新的三归结符号执行算法,实现对具有计算效应程序的局部推理,推进了分离逻辑的合成性。

摘要:

分离逻辑的合成性和局部推理性质推动了可扩展静态分析的显著进展。但程序分析面临新的挑战——许多程序展现计算效应,并且正交地,静态分析器也必须处理不正确性。我们提出结果分离逻辑(OSL),一种程序逻辑,对于具有不同效应的程序中的正确性和不正确性推理都是可靠的。OSL具有框架规则——正如分离逻辑一样——但使用不同的底层假设,将局部推理开放给比任何单一现有逻辑所能处理的更大类别的性质。基于这一基础理论,我们还定义了符号执行算法,使用双归结(bi-abduction)为具有效应的程序推导规范。这涉及一种新的三归结(tri-abduction)过程,用于分析其执行因非确定性或概率选择等效应而分支的程序。这项工作推进了分离逻辑所承诺的合成性,通过开辟在具有不同效应的程序中跨两个维度(错误发现与验证)更大程度重用分析工具的可能性。

英文摘要:

Separation logic's compositionality and local reasoning properties have led to significant advances in scalable static analysis. But program analysis has new challenges -- many programs display computational effects and, orthogonally, static analyzers must handle incorrectness too. We present Outcome Separation Logic (OSL), a program logic that is sound for both correctness and incorrectness reasoning in programs with varying effects. OSL has a frame rule -- just like separation logic -- but uses different underlying assumptions that open up local reasoning to a larger class of properties than can be handled by any single existing logic. Building on this foundational theory, we also define symbolic execution algorithms that use bi-abduction to derive specifications for programs with effects. This involves a new tri-abduction procedure to analyze programs whose execution branches due to effects such as nondeterministic or probabilistic choice. This work furthers the compositionality promised by separation logic by opening up the possibility for greater reuse of analysis tools across two dimensions: bug-finding vs verification in programs with varying effects.

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

↑