sig
module type BasicType =
sig
type t
val compare : Utilsigs.BasicType.t -> Utilsigs.BasicType.t -> int
val equal : Utilsigs.BasicType.t -> Utilsigs.BasicType.t -> bool
val hash : Utilsigs.BasicType.t -> int
val to_string : Utilsigs.BasicType.t -> string
val pp : Format.formatter -> Utilsigs.BasicType.t -> unit
end
module type OrderedContainer =
sig
type t
val hash : t -> int
val to_string : t -> string
val pp : Format.formatter -> t -> unit
type elt
val empty : t
val is_empty : t -> bool
val mem : elt -> t -> bool
val add : elt -> t -> t
val singleton : elt -> t
val remove : elt -> t -> t
val union : t -> t -> 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 : (elt -> unit) -> t -> unit
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
val for_all : (elt -> bool) -> t -> bool
val exists : (elt -> bool) -> t -> bool
val filter : (elt -> bool) -> t -> t
val partition : (elt -> bool) -> t -> t * t
val cardinal : t -> int
val elements : t -> elt list
val min_elt : t -> elt
val max_elt : t -> elt
val choose : t -> elt
val split : elt -> t -> t * bool * t
val of_list : elt list -> Utilsigs.OrderedContainer.t
val to_list : Utilsigs.OrderedContainer.t -> elt list
val endomap :
(elt -> elt) ->
Utilsigs.OrderedContainer.t -> Utilsigs.OrderedContainer.t
val map_to :
('b -> 'a -> 'a) ->
'a -> (elt -> 'b) -> Utilsigs.OrderedContainer.t -> 'a
val opt_map_to :
('b -> 'a -> 'a) ->
'a -> (elt -> 'b option) -> Utilsigs.OrderedContainer.t -> 'a
val map_to_list : (elt -> 'a) -> Utilsigs.OrderedContainer.t -> 'a list
val weave :
(elt -> 'a -> 'a list) ->
(elt -> 'a -> 'b) ->
('b list -> 'b) -> Utilsigs.OrderedContainer.t -> 'a -> 'b
val find : (elt -> bool) -> Utilsigs.OrderedContainer.t -> elt
val find_opt :
(elt -> bool) -> Utilsigs.OrderedContainer.t -> elt option
val find_map :
(elt -> 'a option) -> Utilsigs.OrderedContainer.t -> 'a option
val union_of_list :
Utilsigs.OrderedContainer.t list -> Utilsigs.OrderedContainer.t
val subsets :
Utilsigs.OrderedContainer.t -> Utilsigs.OrderedContainer.t list
val fixpoint :
(Utilsigs.OrderedContainer.t -> Utilsigs.OrderedContainer.t) ->
Utilsigs.OrderedContainer.t -> Utilsigs.OrderedContainer.t
val del_first :
(elt -> bool) ->
Utilsigs.OrderedContainer.t -> Utilsigs.OrderedContainer.t
val disjoint :
Utilsigs.OrderedContainer.t -> Utilsigs.OrderedContainer.t -> bool
val mk_unifier :
bool ->
bool ->
('a, 'b, elt) Unification.cps_unifier ->
('a, 'b, Utilsigs.OrderedContainer.t) Unification.cps_unifier
end
module type OrderedMap =
sig
type key
type +'a t
val empty : 'a t
val is_empty : 'a t -> bool
val mem : key -> 'a t -> bool
val add : key -> 'a -> 'a t -> 'a t
val singleton : key -> 'a -> 'a t
val remove : key -> 'a t -> 'a t
val merge :
(key -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val iter : (key -> 'a -> unit) -> 'a t -> unit
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val for_all : (key -> 'a -> bool) -> 'a t -> bool
val exists : (key -> 'a -> bool) -> 'a t -> bool
val filter : (key -> 'a -> bool) -> 'a t -> 'a t
val partition : (key -> 'a -> bool) -> 'a t -> 'a t * 'a t
val cardinal : 'a t -> int
val bindings : 'a t -> (key * 'a) list
val min_binding : 'a t -> key * 'a
val max_binding : 'a t -> key * 'a
val choose : 'a t -> key * 'a
val split : key -> 'a t -> 'a t * 'a option * 'a t
val find : key -> 'a t -> 'a
val map : ('a -> 'b) -> 'a t -> 'b t
val mapi : (key -> 'a -> 'b) -> 'a t -> 'b t
val pp :
(Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
val to_string : ('a -> string) -> 'a t -> string
val hash : ('a -> int) -> 'a t -> int
val of_list : (key * 'a) list -> 'a t
val to_list : 'a t -> (key * 'a) list
val endomap : (key * 'a -> key * 'b) -> 'a t -> 'b t
val union : 'a t -> 'a t -> 'a t
val find_map : (key -> 'a -> bool) -> 'a t -> (key * 'a) option
val fixpoint : ('a -> 'a -> bool) -> ('a t -> 'a t) -> 'a t -> 'a t
val submap : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val add_bindings : (key * 'a) list -> 'a t -> 'a t
end
end