Add find_variants to Extractor#530
Conversation
|
As discussed with @oflatt and @Alex-Fischman. Unsure on the correct return type for |
CodSpeed Performance ReportMerging #530 will not alter performanceComparing Summary
|
|
I think that it's fine to not return a |
FTRobbin
left a comment
There was a problem hiding this comment.
Looks good to me since it is mostly moving code from egraph to extractor.
But I don't understand the error message extract_variants should be called after extractor initialization. It seems to be an impossible reason unless there is some extractor initialization happening somewhere else.
|
@bksaiki Can you confirm that you don't need this PR merged for the next month-ish? You're just upstreaming a change that herbie-egglog would like? I would rather wait to merge this until the new backend is in; it seems just as easy to do this in the new backend as it is in this PR, and it will avoid merge conflicts. |
|
Not high priority |
|
The new extractor in #571 will support this. It sounds like Herbie is not using this PR, so are we okay to close? OTOH if you do want it we can merge it before the new backend. |
|
Closing after confirming in-person. |
The
EGraphtype implementsextractandextract_variants, but the extractor only implementsfind_best. Addsfind_variantstoExtractorwhich is basically a copy of the originalextract_variantsfunction.