Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add a test utility to ensure that none of rules are inferred from the rest of rules #265

Closed
hatoo opened this issue Aug 12, 2023 · 2 comments

Comments

@hatoo
Copy link

hatoo commented Aug 12, 2023

Hi, I've started diving into egg recently and think it's good to test that none of the rules are inferred from the rest.
I don't know that this kind of test is common but I think it's definitely a good to ensure there are no redundant rules.

Since some test utilities like EGraph::check_goals already exist, I think adding more test utilities is reasonable.

here is my example code
I don't know the proper way of getting expr from rewrite though.

@mwillsey
Copy link
Member

Hi there, that's an interesting idea. We did something similar in our paper on rule inference. However, it's a difficult problem and something that I think will be out of scope for the egg library itself.

@hatoo
Copy link
Author

hatoo commented Aug 19, 2023

Thanks, the paper is very interesting 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants