Open amosr opened 10 months ago
Thanks Amos.
noextract
is confusing and the documentation on the wiki is out of date and should be updated.See this: https://github.com/FStarLang/FStar/pull/2090
noextract
results in a definition not being extract for --codegen OCaml, but not for --codegen krml
If you really want to skip this for Karamel, you can write
[@@noextract_to "krml"]
let rec_and_repeat ...
We should update the wiki.
Thanks Nik! The noextract_to
attribute gets me out of trouble. (I ended up needing both noextract and noextract_to.)
(I ended up needing both noextract and noextract_to.)
Yes, I also recently hit this. I had to read into the source code of FStar.Extraction.ML.Modul: https://github.com/FStarLang/FStar/blob/ff87ff54356a0d79da894383d1715f6f801afd4b/src/extraction/FStar.Extraction.ML.Modul.fst#L699-L720
I came across an error when defining a tactic that uses a local recursive definition as well as repeat. The
--codegen krml
extraction fails with a "this should not happen" error below. The minimised program is contrived but it happened for a real program, too.Error message:
The file
ExtractWithTac.fst
: