-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cleanup from terms PR #176
Cleanup from terms PR #176
Conversation
This reverts commit c578a77.
@@ -45,6 +45,20 @@ impl MapSort { | |||
} | |||
} | |||
|
|||
impl MapSort { | |||
pub fn presort_names() -> Vec<Symbol> { |
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.
Presort names is so bad bad but I'm not sure how else to get presort names
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.
Took a quick pass here.
src/sort/vec.rs
Outdated
@@ -69,21 +83,8 @@ impl Sort for VecSort { | |||
result | |||
} | |||
|
|||
fn canonicalize(&self, value: &mut Value, unionfind: &UnionFind) -> bool { |
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.
Why is this getting backed out? Don't we still want to canonicalize vectors?
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.
Oof, good catch, it shouldn't be backed out.
We really need better testing for containers
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.
Actually apparently container rebuilding is just completely broken in main, see #165.
I'll restore the canonicalize code though
In egraphs-good#176 the `ExtractCommand` is now created with `query-extract` instead of `extract`.
This PR:
Sorry all these changes are together, it was tough to get them from my terms PR.