August 20, 2025
Conference Paper

HEC: Equivalence Verification Checking for Code Transformation via Equality Saturation

Abstract

In modern computing systems, compilation employs numerous optimization techniques to enhance code performance. Source-to-source code transformations, which include control flow and datapath transformations, have been widely used in High-Level Synthesis (HLS) and compiler optimization. While researchers actively investigate methods to improve performance with source-to-source code transformations, they often overlook the significance of verifying their correctness. Current tools cannot provide a holistic verification of these transformations. This paper introduces HEC, a framework for equivalence checking that leverages the e-graph data structure to comprehensively verify functional equivalence between programs. \name utilizes the MLIR as its frontend and integrates MLIR into the e-graph framework. Through the combination of dynamic and static e-graph rewriting, HEC facilitates the validation of comprehensive code transformations.

Published: August 20, 2025

Citation

Yin J., Z. Song, N. Bohm Agostini, A. Tumeo, and C. Yu. 2025. HEC: Equivalence Verification Checking for Code Transformation via Equality Saturation. In Proceedings of the 2025 USENIX Annual Technical Conference (ATC 2025), July 7-9, 2025, Boston, MA, 1181 - 1196. Berkeley, California:USENIX Association. PNNL-SA-211091.

Research topics