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

Fixing a normalizer inefficiency #3222

Merged
merged 7 commits into from
Mar 15, 2024
Merged

Conversation

mtzguido
Copy link
Member

PR #3072 fixed issue #2155 by adding a check
to make sure that, when trying to reuse a memoized value,
we check the current normalizer configuration matches the one used when the value was memoized.

Using physical equality is too strict/brittle, as a recent example of
normalization time blowup reveals. Instead, attempt using physical
equality but if that fails, compare the steps of both configs along
with delta_level and the normalize_pure_lets field. These 3 are
the only fields that can change and actually affect reduction, with
the steps being the more important one.

As a bonus I added more instances for deq, so =? can be used on ids, lidents, delta_depth, and steps.

I'll run a local everest build to see if this breaks anything.

Using physical equality is too strict/brittle, as a recent example of
normalization time blowup reveals. Instead, attempt using physical
equality but if that fails, compare the *steps* of both configs along
with delta_level and the normalize_pure_lets field. These 3 are
the only fields that can change and actually affect reduction, with
the steps being the more important one.
@mtzguido
Copy link
Member Author

Got a local green. merging.

@mtzguido mtzguido merged commit 704382c into FStarLang:master Mar 15, 2024
2 checks passed
@mtzguido mtzguido deleted the norm_memo_cfg branch March 15, 2024 14:51
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.

1 participant