This generates some semi-random egraphs, runs extractors on them, checks that the extractions are valid, then checks that
the optimal extractions all have the same cost, and then checks that there are no extractions cheaper than the optimal extractions.
I'm happy to improve this. I've not done automated testing in Rust before, so it's easy for me to believe there are better ways.
This generates some semi-random egraphs, runs extractors on them, checks that the extractions are valid, then checks that the optimal extractions all have the same cost, and then checks that there are no extractions cheaper than the optimal extractions.
I'm happy to improve this. I've not done automated testing in Rust before, so it's easy for me to believe there are better ways.