-
Notifications
You must be signed in to change notification settings - Fork 237
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 for limited extraction of indexed effects #2851
Conversation
28be491
to
5165d09
Compare
Hi Aseem, I tried this out a bit. It fails for me when extracting $ ./bin/fstar.exe examples/layeredeffects/LL.fst --codegen OCaml
Extracted module FStar.Pervasives.Native
Extracted module FStar.Monotonic.Pure
Unexpected error; please file a bug report, ideally with a minimized version of the source program that triggered the error.
Failure("This should not happen (should have been handled at Tm_abs level for effect LL.EXN)") Removing the |
Thanks for testing Guido, much appreciated! This The reason I had added I have now removed this With this change, LL also works. It had a double reify, and normalizer was getting stuck. I also added DM4F_layered5 which is also double layered. Added these two to the CI. |
The PR adds limited support for extraction of indexed effects. See this wiki page for details:
https://github.com/FStarLang/FStar/wiki/Indexed-effects#reification-and-extraction
and https://github.com/FStarLang/FStar/tree/_aseem_indexed_effects_extraction/examples/layeredeffects/extraction for some examples.