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

Support false_elim #502

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Support false_elim #502

merged 2 commits into from
Dec 4, 2024

Conversation

msprotz
Copy link
Contributor

@msprotz msprotz commented Dec 4, 2024

I'm quite surprised we never needed this before. I found it useful to document that a particular branch is statically unreachable, via the use of false_elim. Some other parts of HACL* do:

      let () = false_elim () in
      LowStar.Failure.failwith "statically unreachable"

which is slightly overkill, so I added support for false_elim, extracting as a regular call to KRML_ERROR, with a notice that the code was provably unreachable

@msprotz msprotz enabled auto-merge December 4, 2024 22:21
@msprotz msprotz merged commit 96572bc into master Dec 4, 2024
2 checks passed
@msprotz msprotz deleted the protz_false_elim branch December 4, 2024 22:52
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