Module Framac_ival.Bottom
Types, monads and utilitary functions for lattices in which the bottom is managed separately from other values.
module Type : sig ... endinclude module type of Type
This monad propagates the `Bottom value if needed.
val is_bottom : 'a or_bottom -> boolval non_bottom : 'a or_bottom -> 'aval pretty :
(Stdlib.Format.formatter -> 'a -> unit) ->
Stdlib.Format.formatter ->
'a or_bottom ->
unitmodule Make_Datatype
(Domain : Datatype_sig.S) :
Datatype_sig.S with type t = Domain.t or_bottomDatatype constructor.
Bounds a semi-lattice.
In a lattice where the elements are lists of non-bottom values, the empty list is the bottom case.
val to_list : 'a or_bottom -> 'a listConversion functions.
val bot_of_list : 'a list -> 'a list or_bottomval list_of_bot : 'a list or_bottom -> 'a listval all : 'a or_bottom list -> 'a listval add_to_list : 'a or_bottom -> 'a list -> 'a listelt >:: list adds elt to the list if it is not bottom.
module Top : sig ... endLattices in which both top and bottom are managed separately