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

Fix rebuilding and extraction bugs for EqSort containers #191

Merged
merged 21 commits into from
Aug 21, 2023

Conversation

yihozhang
Copy link
Collaborator

@yihozhang yihozhang commented Aug 15, 2023

This small PR should fix #165. There might be other bugs (especially memory leaks) with containers.

Update: this PR also contains some other fixes and changes.

  1. Extraction for containers (and primitives) is working correctly now.
  2. Extractor is exposed and used in the Sort trait.

@mwillsey mwillsey marked this pull request as draft August 16, 2023 21:19
@mwillsey
Copy link
Member

Looks like this is still in progress. Converted to draft.

@yihozhang yihozhang marked this pull request as ready for review August 16, 2023 23:01
@yihozhang
Copy link
Collaborator Author

@mwillsey It should be ready for review now. The last time I pushed the tests are passing locally but not in CI. The bug should now be fixed.

@mwillsey
Copy link
Member

There seem to be conflicts. Can you merge main into this branch?

@yihozhang yihozhang changed the title Fix rebuilding bugs for EqSort containers Fix rebuilding and extraction bugs for EqSort containers Aug 17, 2023
@yihozhang
Copy link
Collaborator Author

@mwillsey done

@oflatt
Copy link
Member

oflatt commented Aug 18, 2023

Good changes!
Does this PR contain the test cases I sent in slack to you?

@yihozhang
Copy link
Collaborator Author

@oflatt Yeah it had the tests from #165 and I just added the test case you sent to me, though for the extraction used in test cases, there's no way of doing correctness checks besides manually staring at the output.

@oflatt
Copy link
Member

oflatt commented Aug 21, 2023

Maybe we should add stronger extraction tests in the future, for example at least checking that the cost stayed the same. But for now good work! We should merge this

@mwillsey mwillsey merged commit f93adcb into egraphs-good:main Aug 21, 2023
3 checks passed
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.

Container rebuild bug
3 participants