Hello, thanks for adding this API!
I'm trying to run the tests on my machine but they seem to fail when I include tests that have a single variable on the right-hand-side. For example, the rewrite rule https://github.com/egraphs-good/snake-egg/blob/c593d6aeb45ac8047facd9ffcb63f59a84bfd996/snake_egg/tests/test_simple.py#L27 causes the following error when I run make test
:
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "Rewrite add-0 refers to unbound var ?a"', src/core.rs:88:63
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
File "/Users/fmora/Documents/software/snake-egg/snake_egg/tests/test_simple.py", line 27, in <module>
Rewrite(Add(a, 0), a, name="add-0"),
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: "Rewrite add-0 refers to unbound var ?a"
make: *** [test] Error 1
When I comment out all the rewrite rules in the test set that have a single variable on the rhs, this error goes away. Have you seen this before? Do you know what is going on?
Thank you!!