HaliVer:演绎验证与调度语言的联合
HaliVer: Deductive Verification and Scheduling Languages Join Forces
AI总结:
本文提出 HaliVer,将演绎验证器 Vercors 集成到 Halide 中,用同一规约验证算法及其调度生成的并行优化代码,显著减少标注并证明内存安全与功能正确性。
摘要:
HaliVer 工具将演绎验证集成到广受欢迎的调度语言 Halide 中,该语言用于图像处理流水线和数组计算。HaliVer 使用基于分离逻辑的验证器 Vercors,以验证两类对象的正确性:(1)Halide 算法,以及(2)当优化调度应用于算法时由 Halide 生成的优化并行代码。这使得证明复杂的优化代码正确成为可能,同时减少了提供所需验证标注的工作量。对于这两种方式,均使用同一份规约。我们在由典型 Halide 算法生成的若干优化程序上评估了该工具,使用了 Halide 中除一个之外的所有基本调度指令。在没有标注工作量的情况下,Haliver 证明了几乎所有程序的内存安全性。借助标注,Haliver 还进一步证明了功能正确性性质。我们表明该方法是可行的,并将人工标注工作量降低了一个数量级。
英文摘要:
The HaliVer tool integrates deductive verification into the popular scheduling language Halide, used for image processing pipelines and array computations. HaliVer uses Vercors, a separation logic-based verifier, to verify the correctness of (1) the Halide algorithms and (2) the optimised parallel code produced by \halide when an optimisation schedule is applied to the algorithm. This allows proving complex, optimised code correct while reducing the effort to provide the required verification annotations. For both approaches, the same specification is used. We evaluated the tool on several optimised programs generated from characteristic Halide algorithms, using all but one of the essential scheduling directives available in Halide. Without annotation effort, Haliver proves memory safety in almost all programs. With annotations Haliver, additionally, proves functional correctness properties. We show that the approach is viable and reduces the manual annotation effort by an order of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。