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

Display bound variables in serialized e-graph #376

Open
saulshanabrook opened this issue May 10, 2024 · 0 comments
Open

Display bound variables in serialized e-graph #376

saulshanabrook opened this issue May 10, 2024 · 0 comments

Comments

@saulshanabrook
Copy link
Member

Currently variables created with let bindings don't show up in the e-graph. Previously, they had shown as constants unified with their values.

I believe @oflatt had suggested instead treating them like metadata on e-classes. Seems like a nice idea! So we could modify the e-class to somehow show all the labels at the top. There is a place in graphviz to add a cluster label. Previously I had added types to it, so we could use that instead for labels.

We would also have to modify the serialization format to store the labels.

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

No branches or pull requests

1 participant