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

Add reveal_at_least, a more clever form of reveal #1167

Merged
merged 1 commit into from Mar 22, 2022

Conversation

JasonGross
Copy link
Collaborator

Depth determines which indices get expanded, but all references to the
same index get expanded if they appear in the output.

This is because Joel's latest examples require a rewriting pass that
needs either uneven revealing or the ability to check expression
equality modulo the dag in the middle of rewriting.
#1134 (comment)
Roughly the issue is that if we want to turn a + 4 * a into 5 * a,
we need to reveal enough structure to see 4 * a, but we need to see
that the two instances of a are the same (e.g., if a is an ExprRef
pointing to b|c, and we reveal uniformly, then we need to recognize
b|c + 4 * a)

Depth determines which indices get expanded, but all references to the
same index get expanded if they appear in the output.

This is because Joel's latest examples require a rewriting pass that
needs either uneven revealing or the ability to check expression
equality modulo the dag in the middle of rewriting.
mit-plv#1134 (comment)
Roughly the issue is that if we want to turn `a + 4 * a` into `5 * a`,
we need to reveal enough structure to see `4 * a`, but we need to see
that the two instances of `a` are the same (e.g., if `a` is an ExprRef
pointing to `b|c`, and we reveal uniformly, then we need to recognize
`b|c + 4 * a`)
@JasonGross
Copy link
Collaborator Author

Windows CI failed with the periodic “Terminate Batch Job (Y/N)?”, see e.g., https://github.community/t/windows-github-action-randomly-freezes/16690/3
Everything seems to have built fine other than that, though.

@JasonGross JasonGross merged commit 93ceed7 into mit-plv:master Mar 22, 2022
@JasonGross JasonGross deleted the reveal-at-least branch March 22, 2022 23:59
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.

None yet

1 participant