diff options
| author | Maxime Dénès | 2018-01-17 15:16:39 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2018-01-17 15:16:39 +0100 |
| commit | d4f965678dcffb836fb9cf8790e3e969d3bfc364 (patch) | |
| tree | 5f3afebbfc26d2215d331c6c61e5e425d5b2f82d /checker/mod_checking.ml | |
| parent | e77fa3a6226926cca7893c4fbc620bcf2372698e (diff) | |
| parent | 20481a3f3405f04b47c7865ca2788a6f63660443 (diff) | |
Merge PR #6584: Implement the strategy mechanism in the checker
Diffstat (limited to 'checker/mod_checking.ml')
| -rw-r--r-- | checker/mod_checking.ml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/checker/mod_checking.ml b/checker/mod_checking.ml index 4357a690ef..7685863eab 100644 --- a/checker/mod_checking.ml +++ b/checker/mod_checking.ml @@ -26,6 +26,9 @@ let refresh_arity ar = let check_constant_declaration env kn cb = Flags.if_verbose Feedback.msg_notice (str " checking cst:" ++ prcon kn); + (** Locally set the oracle for further typechecking *) + let oracle = env.env_conv_oracle in + let env = Environ.set_oracle env cb.const_typing_flags.conv_oracle in (** [env'] contains De Bruijn universe variables *) let env' = match cb.const_universes with @@ -53,8 +56,12 @@ let check_constant_declaration env kn cb = conv_leq envty j ty) | None -> () in - if constant_is_polymorphic cb then add_constant kn cb env - else add_constant kn cb env' + let env = + if constant_is_polymorphic cb then add_constant kn cb env + else add_constant kn cb env' + in + (** Reset the value of the oracle *) + Environ.set_oracle env oracle (** {6 Checking modules } *) |
