FStarLang/FStar

assert are never extracted even with `--mlish`

Open

#984 ouverte le 13 avr. 2017

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)F* (258 forks)auto 404
area/error-messagescomponent/extractiongood first issue

Métriques du dépôt

Stars
 (3 068 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur