sig
  module type S =
    sig
      type identifiable
      type stringable = identifiable
      val of_string : string -> stringable
      val to_string : stringable -> string
      type comparable = identifiable
      val ( >= ) : comparable -> comparable -> bool
      val ( <= ) : comparable -> comparable -> bool
      val ( = ) : comparable -> comparable -> bool
      val ( > ) : comparable -> comparable -> bool
      val ( < ) : comparable -> comparable -> bool
      val ( <> ) : comparable -> comparable -> bool
      val equal : comparable -> comparable -> bool
      val compare : comparable -> comparable -> int
      val ascending : comparable -> comparable -> int
      val descending : comparable -> comparable -> int
      val min : comparable -> comparable -> comparable
      val max : comparable -> comparable -> comparable
      module Map :
        sig
          type key = comparable
          type +'a t
          module T : sig type 'a key = key type ('a, 'b) t = 'b t end
          type 'a sexpable = 'a t
          val sexp_of_t :
            ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
          val t_of_sexp :
            (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
          val empty : 'a t
          val singleton : key -> '-> 'a t
          val is_empty : 'a t -> bool
          val cardinal : 'a t -> int
          val add : key:key -> data:'-> 'a t -> 'a t
          val add_multi : key:key -> data:'-> 'a list t -> 'a list t
          val change : 'a t -> key -> ('a option -> 'a option) -> 'a t
          val find_exn : 'a t -> key -> 'a
          val find : 'a t -> key -> 'a option
          val remove : 'a t -> key -> 'a t
          val mem : 'a t -> key -> bool
          val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
          val map : f:('-> 'b) -> 'a t -> 'b t
          val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
          val fold :
            f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
          val fold_right :
            f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
          val filter : f:(key:key -> data:'-> bool) -> 'a t -> 'a t
          val filter_map : f:('-> 'b option) -> 'a t -> 'b t
          val filter_mapi :
            f:(key:key -> data:'-> 'b option) -> 'a t -> 'b t
          val compare : ('-> '-> int) -> 'a t -> 'a t -> int
          val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
          val keys : 'a t -> key list
          val has_key : 'a t -> key -> bool
          val data : 'a t -> 'a list
          val of_alist :
            (key * 'a) list -> [ `Duplicate_key of key | `Ok of 'a t ]
          val of_alist_exn : (key * 'a) list -> 'a t
          val of_alist_multi : (key * 'a) list -> 'a list t
          val to_alist : 'a t -> (key * 'a) list
          val combine_alist :
            (key * 'a) list -> init:'-> f:('-> '-> 'b) -> 'b t
          val merge :
            f:(key:key -> 'a option -> 'b option -> 'c option) ->
            'a t -> 'b t -> 'c t
          val min_elt : 'a t -> (key * 'a) option
          val min_elt_exn : 'a t -> key * 'a
          val max_elt : 'a t -> (key * 'a) option
          val max_elt_exn : 'a t -> key * 'a
          val for_all : f:('-> bool) -> 'a t -> bool
          val exists : f:('-> bool) -> 'a t -> bool
          val fold_range_inclusive :
            'a t ->
            min:key ->
            max:key -> init:'-> f:(key:key -> data:'-> '-> 'b) -> 'b
          val range_to_alist : 'a t -> min:key -> max:key -> (key * 'a) list
          val prev_key : 'a t -> key -> key option
          val next_key : 'a t -> key -> key option
          val rank : 'a t -> key -> int option
        end
      module Set :
        sig
          type elt = comparable
          type t
          module T : sig type 'a elt = elt type 'a t = t end
          type sexpable = t
          val sexp_of_t : sexpable -> Sexplib.Sexp.t
          val t_of_sexp : Sexplib.Sexp.t -> sexpable
          val empty : t
          val is_empty : t -> bool
          val mem : t -> elt -> bool
          val add : t -> elt -> t
          val singleton : elt -> t
          val remove : t -> elt -> t
          val union : t -> t -> t
          val union_list : t list -> t
          val inter : t -> t -> t
          val diff : t -> t -> t
          val compare : t -> t -> int
          val equal : t -> t -> bool
          val subset : t -> t -> bool
          val iter : t -> f:(elt -> unit) -> unit
          val fold : t -> init:'-> f:(elt -> '-> 'a) -> 'a
          val fold_until :
            t ->
            init:'->
            f:(elt -> '-> [ `Continue of '| `Stop of 'a ]) -> 'a
          val for_all : t -> f:(elt -> bool) -> bool
          val exists : t -> f:(elt -> bool) -> bool
          val filter : t -> f:(elt -> bool) -> t
          val partition : t -> f:(elt -> bool) -> t * t
          val cardinal : t -> int
          val length : t -> int
          val elements : t -> elt list
          val min_elt : t -> elt option
          val min_elt_exn : t -> elt
          val max_elt : t -> elt option
          val max_elt_exn : t -> elt
          val choose : t -> elt option
          val choose_exn : t -> elt
          val of_list : elt list -> t
          val to_list : t -> elt list
          val of_array : elt array -> t
          val to_array : t -> elt array
          val split : elt -> t -> t * bool * t
          val group_by : t -> equiv:(elt -> elt -> bool) -> t list
          val find : t -> f:(elt -> bool) -> elt option
          val find_exn : t -> f:(elt -> bool) -> elt
          val find_index : t -> int -> elt option
          val remove_index : t -> int -> t
        end
      type hashable = identifiable
      module Hashable : sig type t = hashable end
      val hash : hashable -> int
      module Table :
        sig
          module Key : sig type t = Hashable.t end
          val hashable : Key.t Core_hashtbl_intf.hashable
          type 'a t =
              (Key.t, 'a)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
          val clear :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            unit
          val copy :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
          val invariant :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            unit
          val fold :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            init:'->
            f:(key:'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
               data:'-> '-> 'c) ->
            'c
          val iter :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:(key:'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
               data:'-> unit) ->
            unit
          val existsi :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:(key:'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
               data:'-> bool) ->
            bool
          val exists :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:('-> bool) -> bool
          val length :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            int
          val is_empty :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            bool
          val mem :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'a
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            bool
          val remove :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'a
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            unit
          val remove_one :
            ('a, 'b list)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'a
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            unit
          val replace :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            key:'a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            data:'-> unit
          val change :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'a
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            ('b option -> 'b option) -> unit
          val add_multi :
            ('a, 'b list)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            key:'a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            data:'-> unit
          val map :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:('-> 'c) ->
            ('a, 'c)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
          val mapi :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:(key:'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
               data:'-> 'c) ->
            ('a, 'c)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
          val filter_map :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:('-> 'c option) ->
            ('a, 'c)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
          val filter_mapi :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:(key:'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
               data:'-> 'c option) ->
            ('a, 'c)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
          val filter :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:('-> bool) ->
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
          val filteri :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:(key:'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
               data:'-> bool) ->
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
          val find_or_add :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'a
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            default:(unit -> 'b) -> 'b
          val find :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'a
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            'b option
          val find_exn :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'a
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            'b
          val iter_vals :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:('-> unit) -> unit
          val merge :
            f:(key:'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
               'b option -> 'c option -> 'd option) ->
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            ('a, 'c)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            ('a, 'd)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
          val merge_into :
            f:(key:'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
               '-> 'b option -> 'b option) ->
            src:('a, 'b)
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            dst:('a, 'b)
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            unit
          val keys :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'a
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t
            list
          val data :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'b list
          val filter_inplace :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:('-> bool) -> unit
          val filteri_inplace :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            f:('a
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
               '-> bool) ->
            unit
          val equal :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            ('-> '-> bool) -> bool
          val to_alist :
            ('a, 'b)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            ('a
             Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
             'b)
            list
          val incr :
            ?by:int ->
            ('a, int)
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
            'a
            Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
            unit
          val create :
            (unit ->
             ('a, 'b)
             Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
            Core_hashtbl_intf.with_options
          val of_alist :
            (('a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
              'b)
             list ->
             [ `Duplicate_key of
                 'a
                 Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t
             | `Ok of
                 ('a, 'b)
                 Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ])
            Core_hashtbl_intf.with_options
          val of_alist_exn :
            (('a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
              'b)
             list ->
             ('a, 'b)
             Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
            Core_hashtbl_intf.with_options
          val of_alist_multi :
            (('a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
              'b)
             list ->
             ('a, 'b list)
             Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
            Core_hashtbl_intf.with_options
          val create_mapped :
            (get_key:('->
                      'b
                      Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
             get_data:('-> 'c) ->
             'a list ->
             ('b, 'c)
             Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
            Core_hashtbl_intf.with_options
          val create_with_key :
            (get_key:('->
                      'b
                      Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
             'a list ->
             ('b, 'a)
             Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
            Core_hashtbl_intf.with_options
          val group :
            (get_key:('->
                      'b
                      Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
             get_data:('-> 'c) ->
             combine:('-> '-> 'c) ->
             'a list ->
             ('b, 'c)
             Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
            Core_hashtbl_intf.with_options
          type 'a sexpable = 'a t
          val sexp_of_t :
            ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
          val t_of_sexp :
            (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
          type 'a binable = 'a t
          val bin_size_t : ('a, 'a binable) Bin_prot.Size.sizer1
          val bin_write_t : ('a, 'a binable) Bin_prot.Map_to_safe.writer1
          val bin_write_t_ : ('a, 'a binable) Bin_prot.Unsafe_write_c.writer1
          val bin_read_t : ('a, 'a binable) Bin_prot.Map_to_safe.reader1
          val bin_read_t_ : ('a, 'a binable) Bin_prot.Unsafe_read_c.reader1
          val bin_read_t__ :
            ('a, int -> 'a binable) Bin_prot.Unsafe_read_c.reader1
          val bin_writer_t : ('a, 'a binable) Bin_prot.Type_class.S1.writer
          val bin_reader_t : ('a, 'a binable) Bin_prot.Type_class.S1.reader
          val bin_t : ('a, 'a binable) Bin_prot.Type_class.S1.t
        end
      module Hash_set :
        sig
          type elem = hashable
          type t = elem Hash_set.t
          type sexpable = t
          val sexp_of_t : sexpable -> Sexplib.Sexp.t
          val t_of_sexp : Sexplib.Sexp.t -> sexpable
          type binable = t
          val bin_size_t : binable Bin_prot.Size.sizer
          val bin_write_t : binable Bin_prot.Map_to_safe.writer
          val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
          val bin_read_t : binable Bin_prot.Read_ml.reader
          val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
          val bin_read_t__ : (int -> binable) Bin_prot.Unsafe_read_c.reader
          val bin_writer_t : binable Bin_prot.Type_class.writer
          val bin_reader_t : binable Bin_prot.Type_class.reader
          val bin_t : binable Bin_prot.Type_class.t
          val create : ?growth_allowed:bool -> ?size:int -> unit -> t
          val of_list : elem list -> t
        end
      module Hash_queue :
        sig
          module Key :
            sig
              type t = hashable
              val compare : t -> t -> int
              val hash : t -> int
              type sexpable = t
              val sexp_of_t : sexpable -> Sexplib.Sexp.t
              val t_of_sexp : Sexplib.Sexp.t -> sexpable
            end
          type 'a t
          type 'a container = 'a t
          val length : 'a container -> int
          val is_empty : 'a container -> bool
          val iter : 'a container -> f:('-> unit) -> unit
          val fold : 'a container -> init:'-> f:('-> '-> 'b) -> 'b
          val exists : 'a container -> f:('-> bool) -> bool
          val for_all : 'a container -> f:('-> bool) -> bool
          val find : 'a container -> f:('-> bool) -> 'a option
          val to_list : 'a container -> 'a list
          val to_array : 'a container -> 'a array
          val container : ('a, 'a container) Container.type_class
          val invariant : 'a t -> unit
          val create : unit -> 'a t
          val clear : 'a t -> unit
          val mem : 'a t -> Key.t -> bool
          val lookup : 'a t -> Key.t -> 'a option
          val lookup_exn : 'a t -> Key.t -> 'a
          val enqueue : 'a t -> Key.t -> '-> [ `Key_already_present | `Ok ]
          val enqueue_exn : 'a t -> Key.t -> '-> unit
          val keys : 'a t -> Key.t list
          val dequeue : 'a t -> 'a option
          val dequeue_exn : 'a t -> 'a
          val dequeue_with_key : 'a t -> (Key.t * 'a) option
          val dequeue_with_key_exn : 'a t -> Key.t * 'a
          val dequeue_all : 'a t -> f:('-> unit) -> unit
          val remove : 'a t -> Key.t -> [ `No_such_key | `Ok ]
          val remove_exn : 'a t -> Key.t -> unit
          val replace : 'a t -> Key.t -> '-> [ `No_such_key | `Ok ]
          val replace_exn : 'a t -> Key.t -> '-> unit
          val iteri : 'a t -> f:(key:Key.t -> data:'-> unit) -> unit
          val foldi :
            'a t -> init:'-> f:('-> key:Key.t -> data:'-> 'b) -> 'b
        end
      module Hash_heap :
        sig
          module Key :
            sig
              type t = hashable
              val compare : t -> t -> int
              val hash : t -> int
              type sexpable = t
              val sexp_of_t : sexpable -> Sexplib.Sexp.t
              val t_of_sexp : Sexplib.Sexp.t -> sexpable
            end
          type 'a t
          val create : ?min_size:int -> ('-> '-> int) -> 'a t
          val copy : 'a t -> 'a t
          val push :
            'a t -> key:Key.t -> data:'-> [ `Key_already_present | `Ok ]
          val push_exn : 'a t -> key:Key.t -> data:'-> unit
          val replace : 'a t -> key:Key.t -> data:'-> unit
          val remove : 'a t -> Key.t -> unit
          val mem : 'a t -> Key.t -> bool
          val top : 'a t -> 'a option
          val top_exn : 'a t -> 'a
          val top_with_key : 'a t -> (Key.t * 'a) option
          val top_with_key_exn : 'a t -> Key.t * 'a
          val pop_with_key : 'a t -> (Key.t * 'a) option
          val pop_with_key_exn : 'a t -> Key.t * 'a
          val pop : 'a t -> 'a option
          val pop_exn : 'a t -> 'a
          val cond_pop_with_key :
            'a t -> (key:Key.t -> data:'-> bool) -> (Key.t * 'a) option
          val cond_pop : 'a t -> ('-> bool) -> 'a option
          val find : 'a t -> Key.t -> 'a option
          val find_pop : 'a t -> Key.t -> 'a option
          val find_exn : 'a t -> Key.t -> 'a
          val find_pop_exn : 'a t -> Key.t -> 'a
          val iter : 'a t -> f:(key:Key.t -> data:'-> unit) -> unit
          val iter_vals : 'a t -> f:('-> unit) -> unit
        end
      type sexpable = identifiable
      val sexp_of_t : sexpable -> Sexplib.Sexp.t
      val t_of_sexp : Sexplib.Sexp.t -> sexpable
      type binable = identifiable
      val bin_size_t : binable Bin_prot.Size.sizer
      val bin_write_t : binable Bin_prot.Map_to_safe.writer
      val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
      val bin_read_t : binable Bin_prot.Read_ml.reader
      val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
      val bin_read_t__ : (int -> binable) Bin_prot.Unsafe_read_c.reader
      val bin_writer_t : binable Bin_prot.Type_class.writer
      val bin_reader_t : binable Bin_prot.Type_class.reader
      val bin_t : binable Bin_prot.Type_class.t
      val pp : Format.formatter -> identifiable -> unit
    end
  module Of_stringable_sexpable :
    functor
      (T : sig
             type stringable
             val of_string : string -> stringable
             val to_string : stringable -> string
             type sexpable = stringable
             val sexp_of_t : sexpable -> Sexplib.Sexp.t
             val t_of_sexp : Sexplib.Sexp.t -> sexpable
           end->
      sig
        type identifiable = T.stringable
        type stringable = identifiable
        val of_string : string -> stringable
        val to_string : stringable -> string
        type comparable = identifiable
        val ( >= ) : comparable -> comparable -> bool
        val ( <= ) : comparable -> comparable -> bool
        val ( = ) : comparable -> comparable -> bool
        val ( > ) : comparable -> comparable -> bool
        val ( < ) : comparable -> comparable -> bool
        val ( <> ) : comparable -> comparable -> bool
        val equal : comparable -> comparable -> bool
        val compare : comparable -> comparable -> int
        val ascending : comparable -> comparable -> int
        val descending : comparable -> comparable -> int
        val min : comparable -> comparable -> comparable
        val max : comparable -> comparable -> comparable
        module Map :
          sig
            type key = comparable
            type 'a t = 'Identifiable.Of_stringable_sexpable(T).Map.t
            module T : sig type 'a key = key type ('a, 'b) t = 'b t end
            type 'a sexpable = 'a t
            val sexp_of_t :
              ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
            val t_of_sexp :
              (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
            val empty : 'a t
            val singleton : key -> '-> 'a t
            val is_empty : 'a t -> bool
            val cardinal : 'a t -> int
            val add : key:key -> data:'-> 'a t -> 'a t
            val add_multi : key:key -> data:'-> 'a list t -> 'a list t
            val change : 'a t -> key -> ('a option -> 'a option) -> 'a t
            val find_exn : 'a t -> key -> 'a
            val find : 'a t -> key -> 'a option
            val remove : 'a t -> key -> 'a t
            val mem : 'a t -> key -> bool
            val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
            val map : f:('-> 'b) -> 'a t -> 'b t
            val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
            val fold :
              f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
            val fold_right :
              f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
            val filter : f:(key:key -> data:'-> bool) -> 'a t -> 'a t
            val filter_map : f:('-> 'b option) -> 'a t -> 'b t
            val filter_mapi :
              f:(key:key -> data:'-> 'b option) -> 'a t -> 'b t
            val compare : ('-> '-> int) -> 'a t -> 'a t -> int
            val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
            val keys : 'a t -> key list
            val has_key : 'a t -> key -> bool
            val data : 'a t -> 'a list
            val of_alist :
              (key * 'a) list -> [ `Duplicate_key of key | `Ok of 'a t ]
            val of_alist_exn : (key * 'a) list -> 'a t
            val of_alist_multi : (key * 'a) list -> 'a list t
            val to_alist : 'a t -> (key * 'a) list
            val combine_alist :
              (key * 'a) list -> init:'-> f:('-> '-> 'b) -> 'b t
            val merge :
              f:(key:key -> 'a option -> 'b option -> 'c option) ->
              'a t -> 'b t -> 'c t
            val min_elt : 'a t -> (key * 'a) option
            val min_elt_exn : 'a t -> key * 'a
            val max_elt : 'a t -> (key * 'a) option
            val max_elt_exn : 'a t -> key * 'a
            val for_all : f:('-> bool) -> 'a t -> bool
            val exists : f:('-> bool) -> 'a t -> bool
            val fold_range_inclusive :
              'a t ->
              min:key ->
              max:key -> init:'-> f:(key:key -> data:'-> '-> 'b) -> 'b
            val range_to_alist :
              'a t -> min:key -> max:key -> (key * 'a) list
            val prev_key : 'a t -> key -> key option
            val next_key : 'a t -> key -> key option
            val rank : 'a t -> key -> int option
          end
        module Set :
          sig
            type elt = comparable
            type t = Identifiable.Of_stringable_sexpable(T).Set.t
            module T : sig type 'a elt = elt type 'a t = t end
            type sexpable = t
            val sexp_of_t : sexpable -> Sexplib.Sexp.t
            val t_of_sexp : Sexplib.Sexp.t -> sexpable
            val empty : t
            val is_empty : t -> bool
            val mem : t -> elt -> bool
            val add : t -> elt -> t
            val singleton : elt -> t
            val remove : t -> elt -> t
            val union : t -> t -> t
            val union_list : t list -> t
            val inter : t -> t -> t
            val diff : t -> t -> t
            val compare : t -> t -> int
            val equal : t -> t -> bool
            val subset : t -> t -> bool
            val iter : t -> f:(elt -> unit) -> unit
            val fold : t -> init:'-> f:(elt -> '-> 'a) -> 'a
            val fold_until :
              t ->
              init:'->
              f:(elt -> '-> [ `Continue of '| `Stop of 'a ]) -> 'a
            val for_all : t -> f:(elt -> bool) -> bool
            val exists : t -> f:(elt -> bool) -> bool
            val filter : t -> f:(elt -> bool) -> t
            val partition : t -> f:(elt -> bool) -> t * t
            val cardinal : t -> int
            val length : t -> int
            val elements : t -> elt list
            val min_elt : t -> elt option
            val min_elt_exn : t -> elt
            val max_elt : t -> elt option
            val max_elt_exn : t -> elt
            val choose : t -> elt option
            val choose_exn : t -> elt
            val of_list : elt list -> t
            val to_list : t -> elt list
            val of_array : elt array -> t
            val to_array : t -> elt array
            val split : elt -> t -> t * bool * t
            val group_by : t -> equiv:(elt -> elt -> bool) -> t list
            val find : t -> f:(elt -> bool) -> elt option
            val find_exn : t -> f:(elt -> bool) -> elt
            val find_index : t -> int -> elt option
            val remove_index : t -> int -> t
          end
        type hashable = identifiable
        module Hashable : sig type t = hashable end
        val hash : hashable -> int
        module Table :
          sig
            module Key : sig type t = Hashable.t end
            val hashable : Key.t Core_hashtbl_intf.hashable
            type 'a t =
                (Key.t, 'a)
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val clear :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              unit
            val copy :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val invariant :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              unit
            val fold :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              init:'->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> '-> 'c) ->
              'c
            val iter :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> unit) ->
              unit
            val existsi :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> bool) ->
              bool
            val exists :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> bool) -> bool
            val length :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              int
            val is_empty :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              bool
            val mem :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              bool
            val remove :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              unit
            val remove_one :
              ('a, 'b list)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              unit
            val replace :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              key:'a
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              data:'-> unit
            val change :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              ('b option -> 'b option) -> unit
            val add_multi :
              ('a, 'b list)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              key:'a
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              data:'-> unit
            val map :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> 'c) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val mapi :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> 'c) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filter_map :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> 'c option) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filter_mapi :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> 'c option) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filter :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> bool) ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filteri :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> bool) ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val find_or_add :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              default:(unit -> 'b) -> 'b
            val find :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              'b option
            val find_exn :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              'b
            val iter_vals :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> unit) -> unit
            val merge :
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 'b option -> 'c option -> 'd option) ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'd)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val merge_into :
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 '-> 'b option -> 'b option) ->
              src:('a, 'b)
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              dst:('a, 'b)
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              unit
            val keys :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t
              list
            val data :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'b list
            val filter_inplace :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> bool) -> unit
            val filteri_inplace :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('a
                 Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 '-> bool) ->
              unit
            val equal :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('-> '-> bool) -> bool
            val to_alist :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
               'b)
              list
            val incr :
              ?by:int ->
              ('a, int)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              unit
            val create :
              (unit ->
               ('a, 'b)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val of_alist :
              (('a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
                'b)
               list ->
               [ `Duplicate_key of
                   'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t
               | `Ok of
                   ('a, 'b)
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ])
              Core_hashtbl_intf.with_options
            val of_alist_exn :
              (('a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
                'b)
               list ->
               ('a, 'b)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val of_alist_multi :
              (('a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
                'b)
               list ->
               ('a, 'b list)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val create_mapped :
              (get_key:('->
                        'b
                        Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
               get_data:('-> 'c) ->
               'a list ->
               ('b, 'c)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val create_with_key :
              (get_key:('->
                        'b
                        Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
               'a list ->
               ('b, 'a)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val group :
              (get_key:('->
                        'b
                        Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
               get_data:('-> 'c) ->
               combine:('-> '-> 'c) ->
               'a list ->
               ('b, 'c)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            type 'a sexpable = 'a t
            val sexp_of_t :
              ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
            val t_of_sexp :
              (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
            type 'a binable = 'a t
            val bin_size_t : ('a, 'a binable) Bin_prot.Size.sizer1
            val bin_write_t : ('a, 'a binable) Bin_prot.Map_to_safe.writer1
            val bin_write_t_ :
              ('a, 'a binable) Bin_prot.Unsafe_write_c.writer1
            val bin_read_t : ('a, 'a binable) Bin_prot.Map_to_safe.reader1
            val bin_read_t_ : ('a, 'a binable) Bin_prot.Unsafe_read_c.reader1
            val bin_read_t__ :
              ('a, int -> 'a binable) Bin_prot.Unsafe_read_c.reader1
            val bin_writer_t : ('a, 'a binable) Bin_prot.Type_class.S1.writer
            val bin_reader_t : ('a, 'a binable) Bin_prot.Type_class.S1.reader
            val bin_t : ('a, 'a binable) Bin_prot.Type_class.S1.t
          end
        module Hash_set :
          sig
            type elem = hashable
            type t = elem Hash_set.t
            type sexpable = t
            val sexp_of_t : sexpable -> Sexplib.Sexp.t
            val t_of_sexp : Sexplib.Sexp.t -> sexpable
            type binable = t
            val bin_size_t : binable Bin_prot.Size.sizer
            val bin_write_t : binable Bin_prot.Map_to_safe.writer
            val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
            val bin_read_t : binable Bin_prot.Read_ml.reader
            val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
            val bin_read_t__ : (int -> binable) Bin_prot.Unsafe_read_c.reader
            val bin_writer_t : binable Bin_prot.Type_class.writer
            val bin_reader_t : binable Bin_prot.Type_class.reader
            val bin_t : binable Bin_prot.Type_class.t
            val create : ?growth_allowed:bool -> ?size:int -> unit -> t
            val of_list : elem list -> t
          end
        module Hash_queue :
          sig
            module Key :
              sig
                type t = hashable
                val compare : t -> t -> int
                val hash : t -> int
                type sexpable = t
                val sexp_of_t : sexpable -> Sexplib.Sexp.t
                val t_of_sexp : Sexplib.Sexp.t -> sexpable
              end
            type 'a t =
                'Identifiable.Of_stringable_sexpable(T).Hash_queue.t
            type 'a container = 'a t
            val length : 'a container -> int
            val is_empty : 'a container -> bool
            val iter : 'a container -> f:('-> unit) -> unit
            val fold : 'a container -> init:'-> f:('-> '-> 'b) -> 'b
            val exists : 'a container -> f:('-> bool) -> bool
            val for_all : 'a container -> f:('-> bool) -> bool
            val find : 'a container -> f:('-> bool) -> 'a option
            val to_list : 'a container -> 'a list
            val to_array : 'a container -> 'a array
            val container : ('a, 'a container) Container.type_class
            val invariant : 'a t -> unit
            val create : unit -> 'a t
            val clear : 'a t -> unit
            val mem : 'a t -> Key.t -> bool
            val lookup : 'a t -> Key.t -> 'a option
            val lookup_exn : 'a t -> Key.t -> 'a
            val enqueue :
              'a t -> Key.t -> '-> [ `Key_already_present | `Ok ]
            val enqueue_exn : 'a t -> Key.t -> '-> unit
            val keys : 'a t -> Key.t list
            val dequeue : 'a t -> 'a option
            val dequeue_exn : 'a t -> 'a
            val dequeue_with_key : 'a t -> (Key.t * 'a) option
            val dequeue_with_key_exn : 'a t -> Key.t * 'a
            val dequeue_all : 'a t -> f:('-> unit) -> unit
            val remove : 'a t -> Key.t -> [ `No_such_key | `Ok ]
            val remove_exn : 'a t -> Key.t -> unit
            val replace : 'a t -> Key.t -> '-> [ `No_such_key | `Ok ]
            val replace_exn : 'a t -> Key.t -> '-> unit
            val iteri : 'a t -> f:(key:Key.t -> data:'-> unit) -> unit
            val foldi :
              'a t -> init:'-> f:('-> key:Key.t -> data:'-> 'b) -> 'b
          end
        module Hash_heap :
          sig
            module Key :
              sig
                type t = hashable
                val compare : t -> t -> int
                val hash : t -> int
                type sexpable = t
                val sexp_of_t : sexpable -> Sexplib.Sexp.t
                val t_of_sexp : Sexplib.Sexp.t -> sexpable
              end
            type 'a t = 'Identifiable.Of_stringable_sexpable(T).Hash_heap.t
            val create : ?min_size:int -> ('-> '-> int) -> 'a t
            val copy : 'a t -> 'a t
            val push :
              'a t -> key:Key.t -> data:'-> [ `Key_already_present | `Ok ]
            val push_exn : 'a t -> key:Key.t -> data:'-> unit
            val replace : 'a t -> key:Key.t -> data:'-> unit
            val remove : 'a t -> Key.t -> unit
            val mem : 'a t -> Key.t -> bool
            val top : 'a t -> 'a option
            val top_exn : 'a t -> 'a
            val top_with_key : 'a t -> (Key.t * 'a) option
            val top_with_key_exn : 'a t -> Key.t * 'a
            val pop_with_key : 'a t -> (Key.t * 'a) option
            val pop_with_key_exn : 'a t -> Key.t * 'a
            val pop : 'a t -> 'a option
            val pop_exn : 'a t -> 'a
            val cond_pop_with_key :
              'a t -> (key:Key.t -> data:'-> bool) -> (Key.t * 'a) option
            val cond_pop : 'a t -> ('-> bool) -> 'a option
            val find : 'a t -> Key.t -> 'a option
            val find_pop : 'a t -> Key.t -> 'a option
            val find_exn : 'a t -> Key.t -> 'a
            val find_pop_exn : 'a t -> Key.t -> 'a
            val iter : 'a t -> f:(key:Key.t -> data:'-> unit) -> unit
            val iter_vals : 'a t -> f:('-> unit) -> unit
          end
        type sexpable = identifiable
        val sexp_of_t : sexpable -> Sexplib.Sexp.t
        val t_of_sexp : Sexplib.Sexp.t -> sexpable
        type binable = identifiable
        val bin_size_t : binable Bin_prot.Size.sizer
        val bin_write_t : binable Bin_prot.Map_to_safe.writer
        val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
        val bin_read_t : binable Bin_prot.Read_ml.reader
        val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
        val bin_read_t__ : (int -> binable) Bin_prot.Unsafe_read_c.reader
        val bin_writer_t : binable Bin_prot.Type_class.writer
        val bin_reader_t : binable Bin_prot.Type_class.reader
        val bin_t : binable Bin_prot.Type_class.t
        val pp : Format.formatter -> identifiable -> unit
      end
  module Of_stringable :
    functor (T : Stringable.S->
      sig
        type identifiable = T.stringable
        type stringable = identifiable
        val of_string : string -> stringable
        val to_string : stringable -> string
        type comparable = identifiable
        val ( >= ) : comparable -> comparable -> bool
        val ( <= ) : comparable -> comparable -> bool
        val ( = ) : comparable -> comparable -> bool
        val ( > ) : comparable -> comparable -> bool
        val ( < ) : comparable -> comparable -> bool
        val ( <> ) : comparable -> comparable -> bool
        val equal : comparable -> comparable -> bool
        val compare : comparable -> comparable -> int
        val ascending : comparable -> comparable -> int
        val descending : comparable -> comparable -> int
        val min : comparable -> comparable -> comparable
        val max : comparable -> comparable -> comparable
        module Map :
          sig
            type key = comparable
            type 'a t = 'Identifiable.Of_stringable(T).Map.t
            module T : sig type 'a key = key type ('a, 'b) t = 'b t end
            type 'a sexpable = 'a t
            val sexp_of_t :
              ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
            val t_of_sexp :
              (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
            val empty : 'a t
            val singleton : key -> '-> 'a t
            val is_empty : 'a t -> bool
            val cardinal : 'a t -> int
            val add : key:key -> data:'-> 'a t -> 'a t
            val add_multi : key:key -> data:'-> 'a list t -> 'a list t
            val change : 'a t -> key -> ('a option -> 'a option) -> 'a t
            val find_exn : 'a t -> key -> 'a
            val find : 'a t -> key -> 'a option
            val remove : 'a t -> key -> 'a t
            val mem : 'a t -> key -> bool
            val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
            val map : f:('-> 'b) -> 'a t -> 'b t
            val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
            val fold :
              f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
            val fold_right :
              f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
            val filter : f:(key:key -> data:'-> bool) -> 'a t -> 'a t
            val filter_map : f:('-> 'b option) -> 'a t -> 'b t
            val filter_mapi :
              f:(key:key -> data:'-> 'b option) -> 'a t -> 'b t
            val compare : ('-> '-> int) -> 'a t -> 'a t -> int
            val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
            val keys : 'a t -> key list
            val has_key : 'a t -> key -> bool
            val data : 'a t -> 'a list
            val of_alist :
              (key * 'a) list -> [ `Duplicate_key of key | `Ok of 'a t ]
            val of_alist_exn : (key * 'a) list -> 'a t
            val of_alist_multi : (key * 'a) list -> 'a list t
            val to_alist : 'a t -> (key * 'a) list
            val combine_alist :
              (key * 'a) list -> init:'-> f:('-> '-> 'b) -> 'b t
            val merge :
              f:(key:key -> 'a option -> 'b option -> 'c option) ->
              'a t -> 'b t -> 'c t
            val min_elt : 'a t -> (key * 'a) option
            val min_elt_exn : 'a t -> key * 'a
            val max_elt : 'a t -> (key * 'a) option
            val max_elt_exn : 'a t -> key * 'a
            val for_all : f:('-> bool) -> 'a t -> bool
            val exists : f:('-> bool) -> 'a t -> bool
            val fold_range_inclusive :
              'a t ->
              min:key ->
              max:key -> init:'-> f:(key:key -> data:'-> '-> 'b) -> 'b
            val range_to_alist :
              'a t -> min:key -> max:key -> (key * 'a) list
            val prev_key : 'a t -> key -> key option
            val next_key : 'a t -> key -> key option
            val rank : 'a t -> key -> int option
          end
        module Set :
          sig
            type elt = comparable
            type t = Identifiable.Of_stringable(T).Set.t
            module T : sig type 'a elt = elt type 'a t = t end
            type sexpable = t
            val sexp_of_t : sexpable -> Sexplib.Sexp.t
            val t_of_sexp : Sexplib.Sexp.t -> sexpable
            val empty : t
            val is_empty : t -> bool
            val mem : t -> elt -> bool
            val add : t -> elt -> t
            val singleton : elt -> t
            val remove : t -> elt -> t
            val union : t -> t -> t
            val union_list : t list -> t
            val inter : t -> t -> t
            val diff : t -> t -> t
            val compare : t -> t -> int
            val equal : t -> t -> bool
            val subset : t -> t -> bool
            val iter : t -> f:(elt -> unit) -> unit
            val fold : t -> init:'-> f:(elt -> '-> 'a) -> 'a
            val fold_until :
              t ->
              init:'->
              f:(elt -> '-> [ `Continue of '| `Stop of 'a ]) -> 'a
            val for_all : t -> f:(elt -> bool) -> bool
            val exists : t -> f:(elt -> bool) -> bool
            val filter : t -> f:(elt -> bool) -> t
            val partition : t -> f:(elt -> bool) -> t * t
            val cardinal : t -> int
            val length : t -> int
            val elements : t -> elt list
            val min_elt : t -> elt option
            val min_elt_exn : t -> elt
            val max_elt : t -> elt option
            val max_elt_exn : t -> elt
            val choose : t -> elt option
            val choose_exn : t -> elt
            val of_list : elt list -> t
            val to_list : t -> elt list
            val of_array : elt array -> t
            val to_array : t -> elt array
            val split : elt -> t -> t * bool * t
            val group_by : t -> equiv:(elt -> elt -> bool) -> t list
            val find : t -> f:(elt -> bool) -> elt option
            val find_exn : t -> f:(elt -> bool) -> elt
            val find_index : t -> int -> elt option
            val remove_index : t -> int -> t
          end
        type hashable = identifiable
        module Hashable : sig type t = hashable end
        val hash : hashable -> int
        module Table :
          sig
            module Key : sig type t = Hashable.t end
            val hashable : Key.t Core_hashtbl_intf.hashable
            type 'a t =
                (Key.t, 'a)
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val clear :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              unit
            val copy :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val invariant :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              unit
            val fold :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              init:'->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> '-> 'c) ->
              'c
            val iter :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> unit) ->
              unit
            val existsi :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> bool) ->
              bool
            val exists :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> bool) -> bool
            val length :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              int
            val is_empty :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              bool
            val mem :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              bool
            val remove :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              unit
            val remove_one :
              ('a, 'b list)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              unit
            val replace :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              key:'a
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              data:'-> unit
            val change :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              ('b option -> 'b option) -> unit
            val add_multi :
              ('a, 'b list)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              key:'a
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              data:'-> unit
            val map :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> 'c) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val mapi :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> 'c) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filter_map :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> 'c option) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filter_mapi :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> 'c option) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filter :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> bool) ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filteri :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> bool) ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val find_or_add :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              default:(unit -> 'b) -> 'b
            val find :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              'b option
            val find_exn :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              'b
            val iter_vals :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> unit) -> unit
            val merge :
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 'b option -> 'c option -> 'd option) ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'd)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val merge_into :
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 '-> 'b option -> 'b option) ->
              src:('a, 'b)
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              dst:('a, 'b)
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              unit
            val keys :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t
              list
            val data :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'b list
            val filter_inplace :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> bool) -> unit
            val filteri_inplace :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('a
                 Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 '-> bool) ->
              unit
            val equal :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('-> '-> bool) -> bool
            val to_alist :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
               'b)
              list
            val incr :
              ?by:int ->
              ('a, int)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              unit
            val create :
              (unit ->
               ('a, 'b)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val of_alist :
              (('a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
                'b)
               list ->
               [ `Duplicate_key of
                   'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t
               | `Ok of
                   ('a, 'b)
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ])
              Core_hashtbl_intf.with_options
            val of_alist_exn :
              (('a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
                'b)
               list ->
               ('a, 'b)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val of_alist_multi :
              (('a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
                'b)
               list ->
               ('a, 'b list)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val create_mapped :
              (get_key:('->
                        'b
                        Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
               get_data:('-> 'c) ->
               'a list ->
               ('b, 'c)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val create_with_key :
              (get_key:('->
                        'b
                        Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
               'a list ->
               ('b, 'a)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val group :
              (get_key:('->
                        'b
                        Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
               get_data:('-> 'c) ->
               combine:('-> '-> 'c) ->
               'a list ->
               ('b, 'c)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            type 'a sexpable = 'a t
            val sexp_of_t :
              ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
            val t_of_sexp :
              (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
            type 'a binable = 'a t
            val bin_size_t : ('a, 'a binable) Bin_prot.Size.sizer1
            val bin_write_t : ('a, 'a binable) Bin_prot.Map_to_safe.writer1
            val bin_write_t_ :
              ('a, 'a binable) Bin_prot.Unsafe_write_c.writer1
            val bin_read_t : ('a, 'a binable) Bin_prot.Map_to_safe.reader1
            val bin_read_t_ : ('a, 'a binable) Bin_prot.Unsafe_read_c.reader1
            val bin_read_t__ :
              ('a, int -> 'a binable) Bin_prot.Unsafe_read_c.reader1
            val bin_writer_t : ('a, 'a binable) Bin_prot.Type_class.S1.writer
            val bin_reader_t : ('a, 'a binable) Bin_prot.Type_class.S1.reader
            val bin_t : ('a, 'a binable) Bin_prot.Type_class.S1.t
          end
        module Hash_set :
          sig
            type elem = hashable
            type t = elem Hash_set.t
            type sexpable = t
            val sexp_of_t : sexpable -> Sexplib.Sexp.t
            val t_of_sexp : Sexplib.Sexp.t -> sexpable
            type binable = t
            val bin_size_t : binable Bin_prot.Size.sizer
            val bin_write_t : binable Bin_prot.Map_to_safe.writer
            val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
            val bin_read_t : binable Bin_prot.Read_ml.reader
            val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
            val bin_read_t__ : (int -> binable) Bin_prot.Unsafe_read_c.reader
            val bin_writer_t : binable Bin_prot.Type_class.writer
            val bin_reader_t : binable Bin_prot.Type_class.reader
            val bin_t : binable Bin_prot.Type_class.t
            val create : ?growth_allowed:bool -> ?size:int -> unit -> t
            val of_list : elem list -> t
          end
        module Hash_queue :
          sig
            module Key :
              sig
                type t = hashable
                val compare : t -> t -> int
                val hash : t -> int
                type sexpable = t
                val sexp_of_t : sexpable -> Sexplib.Sexp.t
                val t_of_sexp : Sexplib.Sexp.t -> sexpable
              end
            type 'a t = 'Identifiable.Of_stringable(T).Hash_queue.t
            type 'a container = 'a t
            val length : 'a container -> int
            val is_empty : 'a container -> bool
            val iter : 'a container -> f:('-> unit) -> unit
            val fold : 'a container -> init:'-> f:('-> '-> 'b) -> 'b
            val exists : 'a container -> f:('-> bool) -> bool
            val for_all : 'a container -> f:('-> bool) -> bool
            val find : 'a container -> f:('-> bool) -> 'a option
            val to_list : 'a container -> 'a list
            val to_array : 'a container -> 'a array
            val container : ('a, 'a container) Container.type_class
            val invariant : 'a t -> unit
            val create : unit -> 'a t
            val clear : 'a t -> unit
            val mem : 'a t -> Key.t -> bool
            val lookup : 'a t -> Key.t -> 'a option
            val lookup_exn : 'a t -> Key.t -> 'a
            val enqueue :
              'a t -> Key.t -> '-> [ `Key_already_present | `Ok ]
            val enqueue_exn : 'a t -> Key.t -> '-> unit
            val keys : 'a t -> Key.t list
            val dequeue : 'a t -> 'a option
            val dequeue_exn : 'a t -> 'a
            val dequeue_with_key : 'a t -> (Key.t * 'a) option
            val dequeue_with_key_exn : 'a t -> Key.t * 'a
            val dequeue_all : 'a t -> f:('-> unit) -> unit
            val remove : 'a t -> Key.t -> [ `No_such_key | `Ok ]
            val remove_exn : 'a t -> Key.t -> unit
            val replace : 'a t -> Key.t -> '-> [ `No_such_key | `Ok ]
            val replace_exn : 'a t -> Key.t -> '-> unit
            val iteri : 'a t -> f:(key:Key.t -> data:'-> unit) -> unit
            val foldi :
              'a t -> init:'-> f:('-> key:Key.t -> data:'-> 'b) -> 'b
          end
        module Hash_heap :
          sig
            module Key :
              sig
                type t = hashable
                val compare : t -> t -> int
                val hash : t -> int
                type sexpable = t
                val sexp_of_t : sexpable -> Sexplib.Sexp.t
                val t_of_sexp : Sexplib.Sexp.t -> sexpable
              end
            type 'a t = 'Identifiable.Of_stringable(T).Hash_heap.t
            val create : ?min_size:int -> ('-> '-> int) -> 'a t
            val copy : 'a t -> 'a t
            val push :
              'a t -> key:Key.t -> data:'-> [ `Key_already_present | `Ok ]
            val push_exn : 'a t -> key:Key.t -> data:'-> unit
            val replace : 'a t -> key:Key.t -> data:'-> unit
            val remove : 'a t -> Key.t -> unit
            val mem : 'a t -> Key.t -> bool
            val top : 'a t -> 'a option
            val top_exn : 'a t -> 'a
            val top_with_key : 'a t -> (Key.t * 'a) option
            val top_with_key_exn : 'a t -> Key.t * 'a
            val pop_with_key : 'a t -> (Key.t * 'a) option
            val pop_with_key_exn : 'a t -> Key.t * 'a
            val pop : 'a t -> 'a option
            val pop_exn : 'a t -> 'a
            val cond_pop_with_key :
              'a t -> (key:Key.t -> data:'-> bool) -> (Key.t * 'a) option
            val cond_pop : 'a t -> ('-> bool) -> 'a option
            val find : 'a t -> Key.t -> 'a option
            val find_pop : 'a t -> Key.t -> 'a option
            val find_exn : 'a t -> Key.t -> 'a
            val find_pop_exn : 'a t -> Key.t -> 'a
            val iter : 'a t -> f:(key:Key.t -> data:'-> unit) -> unit
            val iter_vals : 'a t -> f:('-> unit) -> unit
          end
        type sexpable = identifiable
        val sexp_of_t : sexpable -> Sexplib.Sexp.t
        val t_of_sexp : Sexplib.Sexp.t -> sexpable
        type binable = identifiable
        val bin_size_t : binable Bin_prot.Size.sizer
        val bin_write_t : binable Bin_prot.Map_to_safe.writer
        val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
        val bin_read_t : binable Bin_prot.Read_ml.reader
        val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
        val bin_read_t__ : (int -> binable) Bin_prot.Unsafe_read_c.reader
        val bin_writer_t : binable Bin_prot.Type_class.writer
        val bin_reader_t : binable Bin_prot.Type_class.reader
        val bin_t : binable Bin_prot.Type_class.t
        val pp : Format.formatter -> identifiable -> unit
      end
  module Of_sexpable :
    functor (T : Sexpable.S->
      sig
        type identifiable = T.sexpable
        type stringable = identifiable
        val of_string : string -> stringable
        val to_string : stringable -> string
        type comparable = identifiable
        val ( >= ) : comparable -> comparable -> bool
        val ( <= ) : comparable -> comparable -> bool
        val ( = ) : comparable -> comparable -> bool
        val ( > ) : comparable -> comparable -> bool
        val ( < ) : comparable -> comparable -> bool
        val ( <> ) : comparable -> comparable -> bool
        val equal : comparable -> comparable -> bool
        val compare : comparable -> comparable -> int
        val ascending : comparable -> comparable -> int
        val descending : comparable -> comparable -> int
        val min : comparable -> comparable -> comparable
        val max : comparable -> comparable -> comparable
        module Map :
          sig
            type key = comparable
            type 'a t = 'Identifiable.Of_sexpable(T).Map.t
            module T : sig type 'a key = key type ('a, 'b) t = 'b t end
            type 'a sexpable = 'a t
            val sexp_of_t :
              ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
            val t_of_sexp :
              (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
            val empty : 'a t
            val singleton : key -> '-> 'a t
            val is_empty : 'a t -> bool
            val cardinal : 'a t -> int
            val add : key:key -> data:'-> 'a t -> 'a t
            val add_multi : key:key -> data:'-> 'a list t -> 'a list t
            val change : 'a t -> key -> ('a option -> 'a option) -> 'a t
            val find_exn : 'a t -> key -> 'a
            val find : 'a t -> key -> 'a option
            val remove : 'a t -> key -> 'a t
            val mem : 'a t -> key -> bool
            val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
            val map : f:('-> 'b) -> 'a t -> 'b t
            val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
            val fold :
              f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
            val fold_right :
              f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
            val filter : f:(key:key -> data:'-> bool) -> 'a t -> 'a t
            val filter_map : f:('-> 'b option) -> 'a t -> 'b t
            val filter_mapi :
              f:(key:key -> data:'-> 'b option) -> 'a t -> 'b t
            val compare : ('-> '-> int) -> 'a t -> 'a t -> int
            val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
            val keys : 'a t -> key list
            val has_key : 'a t -> key -> bool
            val data : 'a t -> 'a list
            val of_alist :
              (key * 'a) list -> [ `Duplicate_key of key | `Ok of 'a t ]
            val of_alist_exn : (key * 'a) list -> 'a t
            val of_alist_multi : (key * 'a) list -> 'a list t
            val to_alist : 'a t -> (key * 'a) list
            val combine_alist :
              (key * 'a) list -> init:'-> f:('-> '-> 'b) -> 'b t
            val merge :
              f:(key:key -> 'a option -> 'b option -> 'c option) ->
              'a t -> 'b t -> 'c t
            val min_elt : 'a t -> (key * 'a) option
            val min_elt_exn : 'a t -> key * 'a
            val max_elt : 'a t -> (key * 'a) option
            val max_elt_exn : 'a t -> key * 'a
            val for_all : f:('-> bool) -> 'a t -> bool
            val exists : f:('-> bool) -> 'a t -> bool
            val fold_range_inclusive :
              'a t ->
              min:key ->
              max:key -> init:'-> f:(key:key -> data:'-> '-> 'b) -> 'b
            val range_to_alist :
              'a t -> min:key -> max:key -> (key * 'a) list
            val prev_key : 'a t -> key -> key option
            val next_key : 'a t -> key -> key option
            val rank : 'a t -> key -> int option
          end
        module Set :
          sig
            type elt = comparable
            type t = Identifiable.Of_sexpable(T).Set.t
            module T : sig type 'a elt = elt type 'a t = t end
            type sexpable = t
            val sexp_of_t : sexpable -> Sexplib.Sexp.t
            val t_of_sexp : Sexplib.Sexp.t -> sexpable
            val empty : t
            val is_empty : t -> bool
            val mem : t -> elt -> bool
            val add : t -> elt -> t
            val singleton : elt -> t
            val remove : t -> elt -> t
            val union : t -> t -> t
            val union_list : t list -> t
            val inter : t -> t -> t
            val diff : t -> t -> t
            val compare : t -> t -> int
            val equal : t -> t -> bool
            val subset : t -> t -> bool
            val iter : t -> f:(elt -> unit) -> unit
            val fold : t -> init:'-> f:(elt -> '-> 'a) -> 'a
            val fold_until :
              t ->
              init:'->
              f:(elt -> '-> [ `Continue of '| `Stop of 'a ]) -> 'a
            val for_all : t -> f:(elt -> bool) -> bool
            val exists : t -> f:(elt -> bool) -> bool
            val filter : t -> f:(elt -> bool) -> t
            val partition : t -> f:(elt -> bool) -> t * t
            val cardinal : t -> int
            val length : t -> int
            val elements : t -> elt list
            val min_elt : t -> elt option
            val min_elt_exn : t -> elt
            val max_elt : t -> elt option
            val max_elt_exn : t -> elt
            val choose : t -> elt option
            val choose_exn : t -> elt
            val of_list : elt list -> t
            val to_list : t -> elt list
            val of_array : elt array -> t
            val to_array : t -> elt array
            val split : elt -> t -> t * bool * t
            val group_by : t -> equiv:(elt -> elt -> bool) -> t list
            val find : t -> f:(elt -> bool) -> elt option
            val find_exn : t -> f:(elt -> bool) -> elt
            val find_index : t -> int -> elt option
            val remove_index : t -> int -> t
          end
        type hashable = identifiable
        module Hashable : sig type t = hashable end
        val hash : hashable -> int
        module Table :
          sig
            module Key : sig type t = Hashable.t end
            val hashable : Key.t Core_hashtbl_intf.hashable
            type 'a t =
                (Key.t, 'a)
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val clear :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              unit
            val copy :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val invariant :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              unit
            val fold :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              init:'->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> '-> 'c) ->
              'c
            val iter :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> unit) ->
              unit
            val existsi :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> bool) ->
              bool
            val exists :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> bool) -> bool
            val length :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              int
            val is_empty :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              bool
            val mem :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              bool
            val remove :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              unit
            val remove_one :
              ('a, 'b list)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              unit
            val replace :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              key:'a
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              data:'-> unit
            val change :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              ('b option -> 'b option) -> unit
            val add_multi :
              ('a, 'b list)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              key:'a
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              data:'-> unit
            val map :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> 'c) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val mapi :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> 'c) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filter_map :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> 'c option) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filter_mapi :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> 'c option) ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filter :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> bool) ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val filteri :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 data:'-> bool) ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val find_or_add :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              default:(unit -> 'b) -> 'b
            val find :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              'b option
            val find_exn :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              'b
            val iter_vals :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> unit) -> unit
            val merge :
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 'b option -> 'c option -> 'd option) ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'c)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'd)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t
            val merge_into :
              f:(key:'a
                     Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 '-> 'b option -> 'b option) ->
              src:('a, 'b)
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              dst:('a, 'b)
                  Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              unit
            val keys :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t
              list
            val data :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'b list
            val filter_inplace :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('-> bool) -> unit
            val filteri_inplace :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              f:('a
                 Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
                 '-> bool) ->
              unit
            val equal :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('-> '-> bool) -> bool
            val to_alist :
              ('a, 'b)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              ('a
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
               'b)
              list
            val incr :
              ?by:int ->
              ('a, int)
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ->
              'a
              Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t ->
              unit
            val create :
              (unit ->
               ('a, 'b)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val of_alist :
              (('a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
                'b)
               list ->
               [ `Duplicate_key of
                   'a
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t
               | `Ok of
                   ('a, 'b)
                   Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t ])
              Core_hashtbl_intf.with_options
            val of_alist_exn :
              (('a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
                'b)
               list ->
               ('a, 'b)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val of_alist_multi :
              (('a
                Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t *
                'b)
               list ->
               ('a, 'b list)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val create_mapped :
              (get_key:('->
                        'b
                        Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
               get_data:('-> 'c) ->
               'a list ->
               ('b, 'c)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val create_with_key :
              (get_key:('->
                        'b
                        Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
               'a list ->
               ('b, 'a)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            val group :
              (get_key:('->
                        'b
                        Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).Key1.t) ->
               get_data:('-> 'c) ->
               combine:('-> '-> 'c) ->
               'a list ->
               ('b, 'c)
               Core_hashtbl_intf.Monomorphic(Hashable.Hashtbl)(Hashable).T.t)
              Core_hashtbl_intf.with_options
            type 'a sexpable = 'a t
            val sexp_of_t :
              ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
            val t_of_sexp :
              (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
            type 'a binable = 'a t
            val bin_size_t : ('a, 'a binable) Bin_prot.Size.sizer1
            val bin_write_t : ('a, 'a binable) Bin_prot.Map_to_safe.writer1
            val bin_write_t_ :
              ('a, 'a binable) Bin_prot.Unsafe_write_c.writer1
            val bin_read_t : ('a, 'a binable) Bin_prot.Map_to_safe.reader1
            val bin_read_t_ : ('a, 'a binable) Bin_prot.Unsafe_read_c.reader1
            val bin_read_t__ :
              ('a, int -> 'a binable) Bin_prot.Unsafe_read_c.reader1
            val bin_writer_t : ('a, 'a binable) Bin_prot.Type_class.S1.writer
            val bin_reader_t : ('a, 'a binable) Bin_prot.Type_class.S1.reader
            val bin_t : ('a, 'a binable) Bin_prot.Type_class.S1.t
          end
        module Hash_set :
          sig
            type elem = hashable
            type t = elem Hash_set.t
            type sexpable = t
            val sexp_of_t : sexpable -> Sexplib.Sexp.t
            val t_of_sexp : Sexplib.Sexp.t -> sexpable
            type binable = t
            val bin_size_t : binable Bin_prot.Size.sizer
            val bin_write_t : binable Bin_prot.Map_to_safe.writer
            val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
            val bin_read_t : binable Bin_prot.Read_ml.reader
            val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
            val bin_read_t__ : (int -> binable) Bin_prot.Unsafe_read_c.reader
            val bin_writer_t : binable Bin_prot.Type_class.writer
            val bin_reader_t : binable Bin_prot.Type_class.reader
            val bin_t : binable Bin_prot.Type_class.t
            val create : ?growth_allowed:bool -> ?size:int -> unit -> t
            val of_list : elem list -> t
          end
        module Hash_queue :
          sig
            module Key :
              sig
                type t = hashable
                val compare : t -> t -> int
                val hash : t -> int
                type sexpable = t
                val sexp_of_t : sexpable -> Sexplib.Sexp.t
                val t_of_sexp : Sexplib.Sexp.t -> sexpable
              end
            type 'a t = 'Identifiable.Of_sexpable(T).Hash_queue.t
            type 'a container = 'a t
            val length : 'a container -> int
            val is_empty : 'a container -> bool
            val iter : 'a container -> f:('-> unit) -> unit
            val fold : 'a container -> init:'-> f:('-> '-> 'b) -> 'b
            val exists : 'a container -> f:('-> bool) -> bool
            val for_all : 'a container -> f:('-> bool) -> bool
            val find : 'a container -> f:('-> bool) -> 'a option
            val to_list : 'a container -> 'a list
            val to_array : 'a container -> 'a array
            val container : ('a, 'a container) Container.type_class
            val invariant : 'a t -> unit
            val create : unit -> 'a t
            val clear : 'a t -> unit
            val mem : 'a t -> Key.t -> bool
            val lookup : 'a t -> Key.t -> 'a option
            val lookup_exn : 'a t -> Key.t -> 'a
            val enqueue :
              'a t -> Key.t -> '-> [ `Key_already_present | `Ok ]
            val enqueue_exn : 'a t -> Key.t -> '-> unit
            val keys : 'a t -> Key.t list
            val dequeue : 'a t -> 'a option
            val dequeue_exn : 'a t -> 'a
            val dequeue_with_key : 'a t -> (Key.t * 'a) option
            val dequeue_with_key_exn : 'a t -> Key.t * 'a
            val dequeue_all : 'a t -> f:('-> unit) -> unit
            val remove : 'a t -> Key.t -> [ `No_such_key | `Ok ]
            val remove_exn : 'a t -> Key.t -> unit
            val replace : 'a t -> Key.t -> '-> [ `No_such_key | `Ok ]
            val replace_exn : 'a t -> Key.t -> '-> unit
            val iteri : 'a t -> f:(key:Key.t -> data:'-> unit) -> unit
            val foldi :
              'a t -> init:'-> f:('-> key:Key.t -> data:'-> 'b) -> 'b
          end
        module Hash_heap :
          sig
            module Key :
              sig
                type t = hashable
                val compare : t -> t -> int
                val hash : t -> int
                type sexpable = t
                val sexp_of_t : sexpable -> Sexplib.Sexp.t
                val t_of_sexp : Sexplib.Sexp.t -> sexpable
              end
            type 'a t = 'Identifiable.Of_sexpable(T).Hash_heap.t
            val create : ?min_size:int -> ('-> '-> int) -> 'a t
            val copy : 'a t -> 'a t
            val push :
              'a t -> key:Key.t -> data:'-> [ `Key_already_present | `Ok ]
            val push_exn : 'a t -> key:Key.t -> data:'-> unit
            val replace : 'a t -> key:Key.t -> data:'-> unit
            val remove : 'a t -> Key.t -> unit
            val mem : 'a t -> Key.t -> bool
            val top : 'a t -> 'a option
            val top_exn : 'a t -> 'a
            val top_with_key : 'a t -> (Key.t * 'a) option
            val top_with_key_exn : 'a t -> Key.t * 'a
            val pop_with_key : 'a t -> (Key.t * 'a) option
            val pop_with_key_exn : 'a t -> Key.t * 'a
            val pop : 'a t -> 'a option
            val pop_exn : 'a t -> 'a
            val cond_pop_with_key :
              'a t -> (key:Key.t -> data:'-> bool) -> (Key.t * 'a) option
            val cond_pop : 'a t -> ('-> bool) -> 'a option
            val find : 'a t -> Key.t -> 'a option
            val find_pop : 'a t -> Key.t -> 'a option
            val find_exn : 'a t -> Key.t -> 'a
            val find_pop_exn : 'a t -> Key.t -> 'a
            val iter : 'a t -> f:(key:Key.t -> data:'-> unit) -> unit
            val iter_vals : 'a t -> f:('-> unit) -> unit
          end
        type sexpable = identifiable
        val sexp_of_t : sexpable -> Sexplib.Sexp.t
        val t_of_sexp : Sexplib.Sexp.t -> sexpable
        type binable = identifiable
        val bin_size_t : binable Bin_prot.Size.sizer
        val bin_write_t : binable Bin_prot.Map_to_safe.writer
        val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
        val bin_read_t : binable Bin_prot.Read_ml.reader
        val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
        val bin_read_t__ : (int -> binable) Bin_prot.Unsafe_read_c.reader
        val bin_writer_t : binable Bin_prot.Type_class.writer
        val bin_reader_t : binable Bin_prot.Type_class.reader
        val bin_t : binable Bin_prot.Type_class.t
        val pp : Format.formatter -> identifiable -> unit
      end
end