Commit graph

21 commits

Author SHA1 Message Date
Alexander McCord
201352eedf Consistently use struct. 2024-07-15 16:33:53 -07:00
Alexander McCord
f8be9c62fb This is hot loop. 2024-06-08 19:13:30 -07:00
Alexander McCord
55a547fbbb Clip comment. 2024-06-03 18:38:34 -07:00
Alexander McCord
ee62df2ffb Make a note here. 2024-06-02 09:27:24 -07:00
Alexander McCord
c7adc18911 join should be const. 2024-06-01 20:37:50 -07:00
Alexander McCord
2ef0ccd5e8 Enforce exhaustiveness of make. 2024-06-01 18:03:14 -07:00
Alexander McCord
26f1d18c81 Implement rebuild and show it works. 2024-06-01 16:33:51 -07:00
Alexander McCord
4183c31d23 Implement egraph merging of two ids. 2024-06-01 15:24:35 -07:00
Alexander McCord
4122f3fbcb Implement a basic version of Analysis. Will expand it later. 2024-05-28 08:31:25 -07:00
Alexander McCord
6e996d1899 Start to implement some stuff according to pg 9. 2024-05-27 22:21:04 -07:00
Alexander McCord
bf51d9e613 This really should be an universal reference. 2024-05-27 21:14:18 -07:00
Alexander McCord
994efce30a Let's just call it add. 2024-05-27 20:52:19 -07:00
Alexander McCord
c8a1651c89 Implement Language::operands() which means EGraph is able to canonicalize. 2024-05-27 17:05:02 -07:00
Alexander McCord
d6f553a794 Sketch out Language a little bit. Still WIP. 2024-05-26 13:12:27 -07:00
Alexander McCord
18726c1ed5 This violates ODR. Move implementation to header. 2024-05-26 12:06:24 -07:00
Alexander McCord
603da12809 Just realized DenseHashMap doesn't make sense for Id and L.
We are unlikely to have an "empty" value for both Id and L, so we have to use `std::unordered_map` for now.
2024-05-24 13:26:30 -07:00
Alexander McCord
00a15a9e8c Add part of definition 2.2. 2024-05-24 13:26:25 -07:00
Alexander McCord
dd65db40ee Make sure some things aren't inherited. 2024-05-24 10:49:05 -07:00
Alexander McCord
cf712b316a Rename 3 fields. 2024-05-24 10:48:08 -07:00
Alexander McCord
b44c525f10 Got the type of hashcons wrong. Fixed. 2024-05-24 10:47:35 -07:00
Alexander McCord
2338185296 Definition 2.1.1. 2024-05-18 15:26:57 -07:00