Combining e-graphs with abstract interpretation
File(s)2205.14989v1.pdf (314.31 KB)
Preprint
Author(s)
Coward, Samuel
Constantinides, George A
Drane, Theo
Type
Preprint
Abstract
E-graphs are a data structure that compactly represents equivalent expressions. They are constructed via the repeated application of rewrite rules. Often in practical applications, conditional rewrite rules are crucial, but their application requires the detection -- at the time the e-graph is being built -- that a condition is valid in the domain of application. Detecting condition validity amounts to proving a property of the program. Abstract interpretation is a general method to learn such properties, traditionally used in static analysis tools. We demonstrate that abstract interpretation and e-graph analysis naturally reinforce each other through a tight integration because (i) the e-graph clustering of equivalent expressions induces natural precision refinement of abstractions and (ii) precise abstractions allow the application of deeper rewrite rules (and hence potentially even greater precision). We develop the theory behind this intuition and present an exemplar interval arithmetic implementation, which we apply to the FPBench suite.
Date Issued
2022-05-30
Date Acceptance
2023-04-25
Citation
SOAP 2023: Proceedings of the 12th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, 2022, pp.1-7
ISBN
979-8-4007-0170-2
Publisher
ACM
Start Page
1
End Page
7
Journal / Book Title
SOAP 2023: Proceedings of the 12th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis
Copyright Statement
Copyright © 2022 The Author(s). This work is licensed under a Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/).
License URL
Identifier
http://arxiv.org/abs/2203.09191v1
Source
State of the Art in Program Analysis (SOAP) 2023
Subjects
cs.CL
cs.LO
cs.LO
Publication Status
Published
Start Date
2023-06-17
Finish Date
2023-06-17
Coverage Spatial
Orlando, Florida, USA
Date Publish Online
2023-06