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

KestRel:利用E-Graph进行程序对齐的关系验证

KestRel: Relational Verification Using E-Graphs for Program Alignment

Robert Dickerson, Prasita Mukherjee, Benjamin Delaware

AI总结:

本文提出KestRel关系验证方法,利用e-graph、等式饱和及数据驱动提取技术构建语义对齐的中间程序,以简化多程序关系性质验证。

摘要:

许多有趣的程序性质涉及多个程序的执行,包括观察等价性、非干扰性、共同终止性、单调性和幂等性。验证此类关系性质的一种策略是构造一个中间程序并对其进行推理,该中间程序的正确性意味着各个程序表现出这些性质。构建中间程序的一个关键挑战是为原始程序找到良好的对齐。对齐将原始程序的子部分对应起来,以便利用它们的相似性来简化验证。我们提出了一种利用e-graph、等式饱和和代数重对齐规则来高效表示和构建适合自动化验证的程序的方法。我们解决方案的一个关键成分是一种新颖的数据驱动提取技术,该技术利用候选中间程序的执行轨迹来识别在语义上良好对齐的解。我们基于所提出的方法实现了一个关系验证引擎,称为KestRel,并使用它对取自关系验证文献的一组基准测试来评估我们的方法。

英文摘要:

Many interesting program properties involve the execution of multiple programs, including observational equivalence, noninterference, co-termination, monotonicity, and idempotency. One strategy for verifying such relational properties is to construct and reason about an intermediate program whose correctness implies that the individual programs exhibit those properties. A key challenge in building an intermediate program is finding a good alignment of the original programs. An alignment puts subparts of the original programs into correspondence so that their similarities can be exploited in order to simplify verification. We propose an approach to intermediate program construction that uses e-graphs, equality saturation, and algebraic realignment rules to efficiently represent and build programs amenable to automated verification. A key ingredient of our solution is a novel data-driven extraction technique that uses execution traces of candidate intermediate programs to identify solutions that are semantically well-aligned. We have implemented a relational verification engine based on our proposed approach, called KestRel, and use it to evaluate our approach over a suite of benchmarks taken from the relational verification literature.

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

↑