gemini-2.5-pro| input-price: 1.25 output-price: 10 max-context-length: 200_000 (cost: $0.12) · Anfrage: 2025-07-15T13:03:58.715764

Generated by rs-summarizer Version unbekannt

Abstract:

This paper introduces egglog, a fixpoint reasoning system that unifies the capabilities of Datalog and equality saturation (EqSat). The system is motivated by the complementary weaknesses of the two paradigms: Datalog struggles with efficient equational reasoning, while EqSat lacks support for rich, compositional analyses. egglog addresses this by providing a Datalog-like language that incorporates a built-in, extensible notion of equality and uninterpreted functions. A key technical innovation is the use of merge expressions, a novel mechanism for resolving functional dependency violations that arise when terms are unified, enabling both congruence closure (like EqSat) and lattice-based reasoning (like advanced Datalog systems).

The authors evaluate egglog by reimplementing two real-world applications: a unification-based pointer analysis originally in Datalog and a floating-point optimizer (Herbie) based on EqSat. The results demonstrate that the egglog versions are significantly faster (e.g., a 4.96x speedup for the pointer analysis), are simpler to implement, and fix soundness bugs present in the original systems by enabling the sound application of conditional rewrite rules.

Better Together: A Unified System for Analysis and Optimization

Summary Rating: No ratings yet
Article Rating: No ratings yet

Source