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

FStarC.Range: always use basenames #3758

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

mtzguido
Copy link
Member

In #3740 we discovered a nasty perf bug caused by trying to resolve filenames in ranges to actual files, triggering the removal of that feature and moving that logic to error reporting.

Given that, there is no reason to store full paths in ranges, and we can just save the basenames of files. This also gets us closer to reproducible, location-independent checked files, which we currently lack.

For instance, we now don't have any absolute paths (and privacy leaks!) in the stage2 checked files.

$ strings stage1/fstarc.checked/* | grep guido | wc
9709 9709 664844
$ strings stage2/fstarc.checked/* | grep guido | wc
0 0 0

The --ext fstar:no_absolute_paths option is retained, but only affects how we print out the ranges, not their internals or what goes into checked files.

In FStarLang#3740 we discovered a nasty perf bug caused by trying to resolve
filenames in ranges to actual files, triggering the removal of that
feature and moving that logic to error reporting.

Given that, there is no reason to store full paths in ranges, and we
can just save the basenames of files. This also gets us closer to
reproducible, location-independent checked files, which we currently
lack.

For instance, we now don't have any absolute paths (and privacy leaks!)
in the stage2 checked files.

$ strings stage1/fstarc.checked/* | grep guido | wc
   9709    9709  664844
$ strings stage2/fstarc.checked/* | grep guido | wc
      0       0       0

The --ext fstar:no_absolute_paths option is retained, but only affects
how we print out the ranges, not their internals or what goes into
checked files.
@mtzguido mtzguido merged commit d5e2783 into FStarLang:master Feb 15, 2025
9 checks passed
@mtzguido mtzguido deleted the range_basename branch February 15, 2025 05:34
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