diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2015-07-02 15:39:12 +0200 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2015-07-02 15:39:12 +0200 |
commit | 44f45f58dc0a169286c9fcfa7d2edbc8bc04673b (patch) | |
tree | cf2c73c4038e511b30c42f6b54889be3d45bfca1 /kernel/csymtable.ml | |
parent | b6320588bdc54f0239a537339a359baa5e4d07d4 (diff) |
More robust pattern matching on structured constants in VM.
Diffstat (limited to 'kernel/csymtable.ml')
-rw-r--r-- | kernel/csymtable.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/csymtable.ml b/kernel/csymtable.ml index b29f06c65..49ab68bea 100644 --- a/kernel/csymtable.ml +++ b/kernel/csymtable.ml @@ -57,11 +57,14 @@ let set_global v = let rec eq_structured_constant c1 c2 = match c1, c2 with | Const_sorts s1, Const_sorts s2 -> Sorts.equal s1 s2 +| Const_sorts _, _ -> false | Const_ind i1, Const_ind i2 -> Univ.eq_puniverses eq_ind i1 i2 +| Const_ind _, _ -> false | Const_b0 t1, Const_b0 t2 -> Int.equal t1 t2 +| Const_b0 _, _ -> false | Const_bn (t1, a1), Const_bn (t2, a2) -> Int.equal t1 t2 && Array.equal eq_structured_constant a1 a2 -| _ -> false +| Const_bn _, _ -> false let rec hash_structured_constant c = let open Hashset.Combine in |