diff options
author | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2014-11-02 19:55:59 +0100 |
---|---|---|
committer | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2014-11-02 19:57:31 +0100 |
commit | 2c26c287cc36dcbecb4b41ca3a7a3f58bff07ac2 (patch) | |
tree | 8bf1e2c5f495cdabfd38474a3fd5e92d06c987a2 /pretyping/locusops.ml | |
parent | ab2afa67a5b4a8254add3294f52cabaa6c7e80a0 (diff) |
Fixing 1177da327 (reorganization of the test for generic selection of
occurrences: some uniformisation was not appropriate for "change").
Diffstat (limited to 'pretyping/locusops.ml')
-rw-r--r-- | pretyping/locusops.ml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pretyping/locusops.ml b/pretyping/locusops.ml index cc19f01f8..c5b9c6790 100644 --- a/pretyping/locusops.ml +++ b/pretyping/locusops.ml @@ -107,6 +107,17 @@ let clause_with_generic_occurrences cls = | None -> true | Some hyps -> List.for_all + (function ((AllOccurrences,_),_) -> true | _ -> false) hyps in + let concl = match cls.concl_occs with + | AllOccurrences | NoOccurrences -> true + | _ -> false in + hyps && concl + +let clause_with_generic_context_selection cls = + let hyps = match cls.onhyps with + | None -> true + | Some hyps -> + List.for_all (function ((AllOccurrences,_),InHyp) -> true | _ -> false) hyps in let concl = match cls.concl_occs with | AllOccurrences | NoOccurrences -> true |