-
Notifications
You must be signed in to change notification settings - Fork 150
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
Refactor rule parsing #4699
Merged
Merged
Refactor rule parsing #4699
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
e6fc73b
Fix pattern order
tothtamas28 024b059
Skip `\equals` simplifications
tothtamas28 026e08b
Strengthen filter condition
tothtamas28 7ae6fb1
Make `SimpliRule.lhs` an `App`
tothtamas28 e2e7293
Rename `_extract_ensures` to `_extract_condition`
tothtamas28 e8bc49e
Strengthen signature
tothtamas28 65dcac8
Replace `AssertionError` by `ValueError`
tothtamas28 2e7186c
Strengthen pattern
tothtamas28 3c49f03
Remove vacuous cases
tothtamas28 5a4485c
Match requires clause using `_extract_condition`
tothtamas28 0465031
Remove special case for error
tothtamas28 069d38b
Remove spurious case
tothtamas28 88ca3b0
Combine `_extract_lhs` and `_extract_rhs`
tothtamas28 a275957
Slide `return` statement
tothtamas28 490eb7b
Extract function `_extract_rhs`
tothtamas28 d5772b3
Consolidate cases
tothtamas28 47d9b10
Combine `_extract_args` and `_extract_rhs`
tothtamas28 c61dc47
Rename `_get_patterns` to `_extract_args`
tothtamas28 c62709e
Remove comments referring to LLVM Backend code
tothtamas28 d99531a
Strengthen pattern
tothtamas28 c5e5ac7
Add logging
tothtamas28 058b0aa
Nest function
tothtamas28 226fa8b
Extract subclass `AppRule`
tothtamas28 c0b3c84
Add `EqualsRule` and `CeilRule`
tothtamas28 86d1ca9
Freeze data classes
tothtamas28 d71f6f6
Adjust test
tothtamas28 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course this relies on the order of arguments being consistent with the order of
\in
clauses... (before and after your change), but that's probably OK...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. But since everything else also relies on a particular structure of terms, I'll just keep it this way until it causes issues.