slotted_egraphs/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#![allow(unused_imports)]

use std::hash::Hash;
use std::fmt::Debug;
use std::error::Error;
use std::sync::Arc;
use std::ops::Deref;

pub type HashMap<K, V> = fnv::FnvHashMap<K, V>;
pub type HashSet<T> = fnv::FnvHashSet<T>;

// Whether to enable invariant-checks.
#[cfg(feature = "checks")]
const CHECKS: bool = true;
#[cfg(not(feature = "checks"))]
const CHECKS: bool = false;

mod types;
pub use types::*;

mod parse;
pub use parse::*;

mod lang;
pub use lang::*;

mod slotmap;
pub use slotmap::*;

mod debug;

mod egraph;
pub use egraph::*;

mod extract;
pub use extract::*;

mod pattern;
pub use pattern::*;

mod group;
use group::*;