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.
翻译:我们想要验证GraalVM编译器中优化阶段的正确性。 GraalVM 编译器由数千条复杂的 Java 代码组成,进行复杂的图形转换。我们用Isabelle/HOL Theorem 验证器建立了该代码的数据结构和操作的高级模型,并可以正式验证这些高级操作的正确性。但剩下的挑战是:我们如何确保这些高级操作准确反映Java 正在做什么?本文通过使用几种不同的不同测试来解决这个问题,以验证正式模型和 Java 代码具有相同的语义。 许多这些验证技术应该适用于正在建立真实世界代码正式模型的其他项目。