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 ID collision between partial eval and AST pruner #700

Merged
merged 1 commit into from May 5, 2023

Conversation

TristonianJones
Copy link
Collaborator

Partial state used to be tracked for every id, even when the id-value pairs
weren't accurate reflections the observed evaluation. The tracking was
fixed in #690, but this resulted in evaluation state which had 'holes' in the
id space that caused a collision between the AST pruner and partial eval
output.

Thanks @charithe for the report and suggested fix.

Closes #699

@TristonianJones TristonianJones merged commit 5b634ac into google:master May 5, 2023
2 checks passed
@TristonianJones TristonianJones deleted the prune-const-fix branch May 5, 2023 17:56
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.

PruneAST overwrites existing nodes and produces an invalid AST
2 participants