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

SMTEncoding: prevent hash inconsistencies due to filepaths #3652

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

mtzguido
Copy link
Member

@mtzguido mtzguido commented Jan 5, 2025

The string_of_range call in this function may depend on absolute
filepaths, and be inconsistent across different systems or different
F* install within a single system. Noticed this due to a failing proof
in FStar.Math.Fermat. Looking at the SMT queries for runs of F* in
different directories, the hashes for many Tm_refine_ terms differed.

With this change, there is no difference between the two SMT2 files
(modulo comments) for each run.

The string_of_range call in this function may depend on absolute
filepaths, and be inconsistent across different systems or different
F* install within a single system. Noticed this due to a failing proof
in FStar.Math.Fermat. Looking at the SMT queries for runs of F* in
different directories, the hashes for many Tm_refine_ terms differed.

With this change, there is no difference between the two SMT2 files
(modulo comments) for each run.
@mtzguido
Copy link
Member Author

mtzguido commented Jan 6, 2025

@mtzguido mtzguido enabled auto-merge January 6, 2025 09:05
@mtzguido mtzguido merged commit 01154db into FStarLang:master Jan 6, 2025
3 checks passed
@mtzguido mtzguido deleted the smt branch January 6, 2025 09:19
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