Add missing subsume uses in egraph rules #7879
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I took a quick pass over the egraph rules to look for cases that violate our new guidelines about when
subsume
is required. There were a few cases wheresubsume
was needed, and though I believe those instances were benign I think they're worth adding to make sure we're following the spirit of our new guidelines.I've also added some clarifying text about constants in the text of guideline 2, to make it more obvious that cases where we discard constants are okay without
subsume
.