Practical Formal Verification for MLIR Programs

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Tucker, Emily, Pouchet, Louis-Noël, Hunhoff, Erika, Neuendorffer, Stephen, Wang, Erwei
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913083097612288
author Tucker, Emily
Pouchet, Louis-Noël
Hunhoff, Erika
Neuendorffer, Stephen
Wang, Erwei
author_facet Tucker, Emily
Pouchet, Louis-Noël
Hunhoff, Erika
Neuendorffer, Stephen
Wang, Erwei
contents Optimizing compilers have become a cornerstone for high-performance program generation in research and industry. Optimizations, including those implemented manually by a user and those target-specific and non-target-specific, are used to transform programs to achieve good performance. Although these optimizations are necessary for performance, assessing their correctness has remained a major challenge; the risk of incorrect code being deployed increases with unproven optimization flows. In this work, we target the formal verification of correctness of a transformed program by computing whether a pair of programs are semantically equivalent, one being a transformed version of the other. We restrict the class of programs supported to enable a hybrid concrete-symbolic interpretation approach to equivalence, which in turn is mostly agnostic to how the programs are implemented (syntax, schedule, storage, etc.). This approach can show equivalence in linear time with respect to the operations executed by the programs. We develop a verifier for a meaningful subset of MLIR, and report on the verification of the AMD MLIR-AIR and MLIR-AIE toolchains, as well as the standard mlir-opt on hundreds of benchmarks variants.
format Preprint
id arxiv_https___arxiv_org_abs_2605_01124
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Practical Formal Verification for MLIR Programs
Tucker, Emily
Pouchet, Louis-Noël
Hunhoff, Erika
Neuendorffer, Stephen
Wang, Erwei
Programming Languages
Optimizing compilers have become a cornerstone for high-performance program generation in research and industry. Optimizations, including those implemented manually by a user and those target-specific and non-target-specific, are used to transform programs to achieve good performance. Although these optimizations are necessary for performance, assessing their correctness has remained a major challenge; the risk of incorrect code being deployed increases with unproven optimization flows. In this work, we target the formal verification of correctness of a transformed program by computing whether a pair of programs are semantically equivalent, one being a transformed version of the other. We restrict the class of programs supported to enable a hybrid concrete-symbolic interpretation approach to equivalence, which in turn is mostly agnostic to how the programs are implemented (syntax, schedule, storage, etc.). This approach can show equivalence in linear time with respect to the operations executed by the programs. We develop a verifier for a meaningful subset of MLIR, and report on the verification of the AMD MLIR-AIR and MLIR-AIE toolchains, as well as the standard mlir-opt on hundreds of benchmarks variants.
title Practical Formal Verification for MLIR Programs
topic Programming Languages
url https://arxiv.org/abs/2605.01124