blob: b5519a57157c5d1a3b0ea6fd4499e1c9ebca7d2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2012 *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
type t = int
external equal : int -> int -> bool = "%eq"
external compare : int -> int -> int = "caml_int_compare"
let hash i = i land 0x3FFFFFFF
module Self =
struct
type t = int
let compare = compare
end
module Set = Set.Make(Self)
module Map = CMap.Make(Self)
module List = struct
let mem = List.memq
let assoc = List.assq
let mem_assoc = List.mem_assq
let remove_assoc = List.remove_assq
end
|