diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2017-03-24 15:50:21 +0100 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2017-04-27 15:15:42 +0200 |
commit | 051f2c1be929a46a0713b47b072bb5be0a7558d0 (patch) | |
tree | 9071a28a89d83bb6cffb82d0a3a3716b10a00e4f /engine/uState.ml | |
parent | bc6de5aa4e00dfc19c4866de4876f6213546fa5c (diff) |
Fast path when checking equality of universe levels in UState.
We export the relevant level equality function in UGraph which is way faster
than checking that each one is smaller than the other as universes.
Diffstat (limited to 'engine/uState.ml')
-rw-r--r-- | engine/uState.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/uState.ml b/engine/uState.ml index 353d8976d..e27d0536d 100644 --- a/engine/uState.ml +++ b/engine/uState.ml @@ -148,7 +148,7 @@ let process_universe_constraints ctx cstrs = instantiate_variable l' r vars else if is_local r' then instantiate_variable r' l vars - else if not (UGraph.check_eq univs l r) then + else if not (UGraph.check_eq_level univs l' r') then (* Two rigid/global levels, none of them being local, one of them being Prop/Set, disallow *) if Univ.Level.is_small l' || Univ.Level.is_small r' then |