arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0312014cs.LO
收藏

堆抽象的逻辑刻画

Logical Characterizations of Heap Abstractions

G. Yorsh, T. Reps, M. Sagiv, R. Wilhelm

摘要:

形状分析关注的问题,确定“形状不变量”的程序,执行破坏性更新动态分配的存储。在最近的工作中,我们已经展示了如何使用基于3值一阶逻辑的抽象解释进行形状分析。在这项工作中,具体的存储是有限的2值逻辑结构,并且在执行期间可能出现的存储集合使用有限的3值逻辑结构的某个族来表示(保守地)。在本文中,我们展示了如何在形状分析中出现的3值结构可以使用具有传递闭包的一阶逻辑中的公式来表征。我们还定义了一个非标准的(“超赋值”)语义的3值一阶逻辑,比传统的3值语义更精确,并证明了超赋值语义可以有效地实现使用现有的定理证明。

英文摘要:

Shape analysis concerns the problem of determining "shape invariants" for programs that perform destructive updating on dynamically allocated storage. In recent work, we have shown how shape analysis can be performed, using an abstract interpretation based on 3-valued first-order logic. In that work, concrete stores are finite 2-valued logical structures, and the sets of stores that can possibly arise during execution are represented (conservatively) using a certain family of finite 3-valued logical structures. In this paper, we show how 3-valued structures that arise in shape analysis can be characterized using formulas in first-order logic with transitive closure. We also define a non-standard ("supervaluational") semantics for 3-valued first-order logic that is more precise than a conventional 3-valued semantics, and demonstrate that the supervaluational semantics can be effectively implemented using existing theorem provers.

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

↑