将 E-Graph 与抽象解释相结合
Combining E-Graphs with Abstract Interpretation
AI总结:
本文提出将 e-graph 等价性饱和与抽象解释紧密耦合,利用抽象性质启用条件重写规则,并通过等价聚类提升抽象精度,同时给出区间算术实现并在 FPBench 上验证。
摘要:
E-graph 是一种紧凑表示等价表达式的数据结构,通过重复应用重写规则来构建。在实际应用中,条件重写规则通常至关重要,但其应用需要在构建 e-graph 时检测某个条件在应用域中是否有效。检测条件的有效性等同于证明程序的一种性质。抽象解释是获取此类性质的通用方法,传统上用于静态分析工具。我们证明,抽象解释与 e-graph 分析能够通过紧密集成自然地相互增强,原因在于:(i)等价表达式的 e-graph 聚类会引发抽象的自然精度提升;(ii)精确的抽象允许应用更深层的重写规则,从而可能带来更高的精度。我们发展了这一直觉背后的理论,并给出了一个示例性的区间算术实现,将其应用于 FPBench 测试套件。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。