arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.15844cs.LO
收藏

基于不变量的堆编码(技术报告)

Sound and Complete Invariant-Based Heap Encodings (Technical Report)

Uppsala University(乌普萨拉大学);University of Regensburg(雷根斯堡大学)

Zafer Esen, Philipp Rümmer, Tjark Weber

AI总结:

本文提出时间索引堆不变量,通过未解释谓词和预言变量减少堆操作程序的验证至整数程序验证,首次实现堆不变量方法的正确性与完备性。

摘要:

对操作堆分配数据结构的程序验证存在重大挑战,由于此类数据结构的大小可能无界。我们提出了时间索引堆不变量,一种新颖的基于不变量的堆编码,利用未解释谓词和预言变量,将堆操作程序的验证减少为仅整数程序的验证。我们的堆编码是通用的,不依赖特定数据结构。据我们所知,我们的方法是首个实现正确性与完备性的堆不变量方法。我们提供了形式证明以确立编码的正确性。通过实验评估,我们证明时间索引堆不变量显著扩展了现有验证工具的能力,使之前无法由最先进工具自动验证的堆程序得以验证。

英文摘要:

Verification of programs operating on heap-allocated data structures, for instance lists or trees, poses significant challenges due to the potentially unbounded size of such data structures. We present time-indexed heap invariants, a novel invariant-based heap encoding leveraging uninterpreted predicates and prophecy variables to reduce verification of heap-manipulating programs to verification of programs over integers only. Our encoding of heap is general and agnostic to specific data structures. To the best of our knowledge, our approach is the first heap invariant-based method that achieves both soundness and completeness. We provide formal proofs establishing the correctness of our encodings. Through an experimental evaluation, we demonstrate that time-indexed heap invariants significantly extend the capability of existing verification tools, allowing automatic verification of programs with heap that were previously out of reach for state-of-the-art tools.

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

↑