Equality Saturation as an Abstract Interpretation
Abstract
Equality saturation is typically described as a technique for exploring program transformations without destructive edits, allowing the simultaneous exploration of many rewriting paths. This perspective is adequate for describing optimizers over term languages, but struggles to encompass important extensions, such as representing contextual rewrites or reasoning about programs with control flow. We instead propose to view equality saturation as an abstract interpretation, where the abstract domain represents variables as symbolic values conforming to a conjunction of equality constraints, and rewriting constitutes a local decreasing iteration that adds new equalities into the conjunction. This perspective affords a natural description of a flow-sensitive equality saturation and applies to programs with unstructured control flow. Standard abstract domains can be combined with equality saturation - we show that e-class analysis, a previously proposed analysis framework for e-graphs, constitutes adding analysis constraints over symbolic values into our domain. We describe how our abstract domain can be efficiently represented using versioned e-graphs. We implement equality saturation as an abstract interpretation in a prototype tool - we demonstrate its analysis capabilities on example programs and its efficiency due to a formulation of relational versioned equality saturation.
Create a lesson
Related papers
Validating Concurrent Correctness Witnesses with Ghosts by Thread-Modular Abstract Interpretation (Extended Version)
Shared title terminologycs.PLMichael Schwarz, Zhendong Ang, Umang Mathur
Verified Implementation of the Next-gen Borrow Checking Algorithm for Rust via Abstract Interpretation
Shared title terminologycs.PLJinhua Wu, Yuting Wang, Zhemin Chen
Detecting Empty Abstractions and Pruning Dead Paths in the Linux eBPF Verifier with Abstract Step Functions
Shared title terminologycs.PLHarishankar Vishwanatha, Srinivas Narayana, Santosh Nagarakatte
Statically Typed Purely Functional Definitional Interpreters for {\it Essentials of Programming Languages}
Shared title terminologycs.PLKwanghoon Choi
A Nonlinear Abstract Domain for Bayesian Neural Networks
Shared title terminologycs.PLQiuhan Gu, Gagandeep Singh
Retargetable Compilation for Tensor Kernels via a Unified Layout Abstraction
Shared title terminologycs.PLLikai Ma, Renze Chen, Tianqi Li et al.