Module SetDomain.Reverse

Reverses lattice order of a set domain while keeping the set operations same.

Parameters

module Base : S

Signature

include module type of struct include Base end
include Lattice.S
include Lattice.PO
include Printable.S
type elt = Base.elt
val empty : unit -> {t}46
val is_empty : {t}46 -> bool
val mem : elt -> {t}46 -> bool
val add : elt -> {t}46 -> {t}46
val singleton : elt -> {t}46
val remove : elt -> {t}46 -> {t}46

See Set.S.remove.

NB! On set abstractions this is a strong removal, i.e. all subsumed elements are also removed.

val union : {t}46 -> {t}46 -> {t}46
val inter : {t}46 -> {t}46 -> {t}46
val diff : {t}46 -> {t}46 -> {t}46

See Set.S.diff.

NB! On set abstractions this is a strong removal, i.e. all subsumed elements are also removed.

val subset : {t}46 -> {t}46 -> bool
val disjoint : {t}46 -> {t}46 -> bool
val iter : (elt -> unit) -> {t}46 -> unit

See Set.S.iter.

On set abstractions this iterates only over canonical elements, not all subsumed elements.

val map : (elt -> elt) -> {t}46 -> {t}46

See Set.S.map.

On set abstractions this maps only canonical elements, not all subsumed elements.

val fold : (elt -> 'a -> 'a) -> {t}46 -> 'a -> 'a

See Set.S.fold.

On set abstractions this folds only over canonical elements, not all subsumed elements.

val for_all : (elt -> bool) -> {t}46 -> bool

See Set.S.for_all.

On set abstractions this checks only canonical elements, not all subsumed elements.

val exists : (elt -> bool) -> {t}46 -> bool

See Set.S.exists.

On set abstractions this checks only canonical elements, not all subsumed elements.

val filter : (elt -> bool) -> {t}46 -> {t}46

See Set.S.filter.

On set abstractions this filters only canonical elements, not all subsumed elements.

val partition : (elt -> bool) -> {t}46 -> {t}46 * {t}46

See Set.S.partition.

On set abstractions this partitions only canonical elements, not all subsumed elements.

val cardinal : {t}46 -> int

See Set.S.cardinal.

On set abstractions this counts only canonical elements, not all subsumed elements.

val elements : {t}46 -> elt list

See Set.S.elements.

On set abstractions this lists only canonical elements, not all subsumed elements.

val of_list : elt list -> {t}46
val min_elt : {t}46 -> elt

See Set.S.min_elt.

On set abstractions this chooses only a canonical element, not any subsumed element.

val max_elt : {t}46 -> elt

See Set.S.max_elt.

On set abstractions this chooses only a canonical element, not any subsumed element.

val choose : {t}46 -> elt

See Set.S.choose.

On set abstractions this chooses only a canonical element, not any subsumed element.

include sig ... end
type t = Base.t
val equal : t -> t -> bool
val hash : t -> int
val compare : t -> t -> int
val show : t -> string
val pretty : unit -> t -> Printable.Pretty.doc
val to_yojson : t -> Yojson.Safe.t
val tag : t -> int
val relift : t -> t
val widen : Base.t -> Base.t -> Base.t
val narrow : Base.t -> Base.t -> Base.t
val bot : unit -> Base.t
val is_bot : Base.t -> bool
val top : unit -> Base.t
val is_top : Base.t -> bool
val leq : Base.t -> Base.t -> bool
val join : Base.t -> Base.t -> Base.t
val meet : Base.t -> Base.t -> Base.t
val name : unit -> string
val pretty_diff : unit -> (t * t) -> Lattice.Pretty.doc
val printXml : 'a BatInnerIO.output -> Base.t -> unit
val arbitrary : unit -> Base.t QCheck.arbitrary