arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.01748cs.LOcs.PLcs.SE
收藏

验证框架的差异测试,以实现更好的优化(经验文件)

Differential Testing of a Verification Framework for Compiler Optimizations (Experience Paper)

Mark Utting, Brae J. Webb, Ian J. Hayes

摘要:

我们希望验证GraalVM编译器中优化阶段的正确性,该编译器由数千行执行复杂图形转换的复杂Java代码组成。我们已经建立了高层次的数据结构和操作的代码使用Isabelle/HOL定理证明器的模型,并可以正式验证这些高层次的操作的正确性。但剩下的挑战是:我们如何确保这些高级操作准确地反映Java正在做的事情?本文通过应用几种不同类型的差异测试来验证形式模型和Java代码具有相同的语义来解决这个问题。这些验证技术中的许多应该适用于其他正在构建真实代码的正式模型的项目。

英文摘要:

We want to verify the correctness of optimization phases in the GraalVM compiler, which consist of many thousands of lines of complex Java code performing sophisticated graph transformations. We have built high-level models of the data structures and operations of the code using the Isabelle/HOL theorem prover, and can formally verify the correctness of those high-level operations. But the remaining challenge is: how can we be sure that those high-level operations accurately reflect what the Java is doing? This paper addresses that issue by applying several different kinds of differential testing to validate that the formal model and the Java code have the same semantics. Many of these validation techniques should be applicable to other projects that are building formal models of real-world code.

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

↑