diff options
| author | Arnaud Spiwack | 2016-06-15 19:19:58 +0200 |
|---|---|---|
| committer | Arnaud Spiwack | 2016-06-15 19:22:40 +0200 |
| commit | 4d239ab9f096843dc1c78744dfc9b316ab49d6d9 (patch) | |
| tree | 7c5f1ef4a58575566b36a4b1f58f4acb26f95396 /stm | |
| parent | d4f3a1a807d474050a4e91e16ff7813f1db7f537 (diff) | |
Allow `Pretyping.search_guard` to not check guard
This is a minimal modification to the pretyping interface which allows
for toplevel fixed points to be accepted by the pretyper.
Toplevel co-fixed points are accepted without this. However (co-)fixed
point _nested_ inside a `Definition` or a `Fixpoint` are always checked
for guardedness by the pretyper.
Diffstat (limited to 'stm')
| -rw-r--r-- | stm/lemmas.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/lemmas.ml b/stm/lemmas.ml index c766f3fab3..1d591e1be8 100644 --- a/stm/lemmas.ml +++ b/stm/lemmas.ml @@ -76,7 +76,7 @@ let adjust_guardness_conditions const = function List.fold_left (fun e (_,c,cb,_) -> add c cb e) env l) env (Declareops.uniquize_side_effects eff) in let indexes = - search_guard Loc.ghost env + search_guard ~tflags:{Declarations.check_guarded=true} Loc.ghost env possible_indexes fixdecls in (mkFix ((indexes,0),fixdecls), ctx), eff | _ -> (body, ctx), eff) } |
