Skip to content

Merge Match/Unify modules #3810

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

Merged
merged 7 commits into from
Apr 15, 2024
Merged

Conversation

goodlyrottenapple
Copy link
Contributor

Fixes #3785 by merging the two versions of our matching algorithm, one used in matching rewrite rules and another matching function/simplification rules. This is a first pass which mostly just merges the two algorithms, prserving most of the divergent behaviour under the Rewrite/Eval MatchType flag. A followup refactor should clean up this code further.

This PR is a port of runtimeverification/hs-backend-booster#573 where the development and testing happened.

@goodlyrottenapple goodlyrottenapple merged commit b0d4ee9 into master Apr 15, 2024
@goodlyrottenapple goodlyrottenapple deleted the sam/unify-match-refactor branch April 15, 2024 16:01
goodlyrottenapple added a commit that referenced this pull request Apr 29, 2024
This is a followup to #3810 which:
- removes the bidirectional matching code and `IsNotMatch` as the
substitution produced by this code will always be a matching one
- re-factor the list and map matching code adding comments describing
the match cases in more detail

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Jost Berthold <[email protected]>
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

Successfully merging this pull request may close these issues.

Merge our unification and matching algorithms
2 participants