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

Move id field out of ProductionReference into TypeInferencer #3828

Merged
merged 4 commits into from
Nov 27, 2023

Conversation

Scott-Guest
Copy link
Contributor

@Scott-Guest Scott-Guest commented Nov 24, 2023

The id field of ProductionReference is only used by TypeInferencer, so this PR removes the field and instead stores it as a Map<ProductionReference, Integer> within TypeInferencer.

This is useful for testing the new type inference algorithm - both algorithms can be run back-to-back on the same term to compare results, with them each tracking the id internally rather than mutating the input and storing conflicting ids.

Additionally, I formatted treeNodes.scala and fixed all IntelliJ warnings.

@Scott-Guest Scott-Guest changed the title Clean up treeNodes.scala Move id field out of ProductionReference into TypeInferencer Nov 25, 2023
@Scott-Guest Scott-Guest self-assigned this Nov 25, 2023
@Scott-Guest Scott-Guest marked this pull request as ready for review November 26, 2023 18:35
@rv-jenkins rv-jenkins merged commit 60e3dec into develop Nov 27, 2023
8 checks passed
@rv-jenkins rv-jenkins deleted the tree-nodes branch November 27, 2023 18: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.

5 participants