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

Extraction drops calls to divergent functions #3473

Open
gebner opened this issue Sep 12, 2024 · 0 comments
Open

Extraction drops calls to divergent functions #3473

gebner opened this issue Sep 12, 2024 · 0 comments
Assignees

Comments

@gebner
Copy link
Contributor

gebner commented Sep 12, 2024

module Div2

let rec uhoh t : Div t (requires True) (ensures fun _ -> False) = uhoh t

let foo (x: option nat) : Dv string =
  uhoh unit;
  coerce_eq () x

let _ = String.length (foo None) // crash 🎉

I haven't debugged this one yet. FWIW, the bug seems to be related to the final type argument. If I change it to uhoh t (), then the call to uhoh is extracted correctly.

gebner added a commit to FStarLang/pulse that referenced this issue Sep 12, 2024
nikswamy added a commit that referenced this issue Oct 2, 2024
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

No branches or pull requests

2 participants