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

Add lowerBounds and upperBounds methods to POSet #3733

Merged
merged 6 commits into from
Oct 20, 2023
Merged

Add lowerBounds and upperBounds methods to POSet #3733

merged 6 commits into from
Oct 20, 2023

Conversation

Scott-Guest
Copy link
Contributor

@Scott-Guest Scott-Guest commented Oct 19, 2023

This PR does the following:

  • Cleans up all the warnings in POSet.scala
  • Adds methods to POSet to compute all lower bounds or upper bounds of a given set of elements.
  • Modifies the least upper bound computation in AddSortInjections.java to use these new methods

This is just to remove some duplication when computing joins and meets in the new type inference engine.

@Scott-Guest Scott-Guest self-assigned this Oct 19, 2023
@Scott-Guest Scott-Guest changed the title Add lowerBounds and upperBounds methods to POSet Add lowerBounds and upperBounds methods to POSet Oct 19, 2023
@Scott-Guest Scott-Guest marked this pull request as ready for review October 19, 2023 20:15
Copy link
Contributor

@Baltoli Baltoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good to me; thanks Scott!

@rv-jenkins rv-jenkins merged commit d18ea8f into develop Oct 20, 2023
8 checks passed
@rv-jenkins rv-jenkins deleted the poset branch October 20, 2023 21:42
@Baltoli Baltoli mentioned this pull request Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants