FStarLang/FStar

assert are never extracted even with `--mlish`

Open

#984 aperta il 13 apr 2017

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)F* (258 fork)auto 404
area/error-messagescomponent/extractiongood first issue

Metriche repository

Star
 (3068 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

The function assert is never extracted to OCaml. This is not very nice when using the ocaml-based F* compiler and getting a Failure("Impossible") because an invariant was broken.

It would be nice to extract the assertions when they do correspond to runtime checks as they are in the compiler.

Guida contributor