Frama-C:
Plug-ins:
Libraries:

Frama-C API - Top

include Monad.S_with_product with type 'a t = 'a or_top
type 'a t = 'a or_top
val return : 'a -> 'a t
val flatten : 'a t t -> 'a t
val map : ('a -> 'b) -> 'a t -> 'b t
val bind : ('a -> 'b t) -> 'a t -> 'b t
val product : 'a t -> 'b t -> ('a * 'b) t
module Operators : sig ... end

Datatype constructor

val is_top : 'a t -> bool

Access

val non_top : 'a t -> 'a
val value : top:'a -> 'a t -> 'a
val hash : ('a -> int) -> 'a t -> int

Datatype

val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val pretty_top : Stdlib.Format.formatter -> unit

Pretty-printing

val pretty : (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a t -> unit
val is_included : ('a -> 'b -> bool) -> 'a t -> 'b t -> bool

Lattice operators

val join : ('a -> 'a -> 'a t) -> 'a t -> 'a t -> 'a t
val narrow : ('a -> 'a -> 'a) -> 'a t -> 'a t -> 'a t
val iter : ('a -> unit) -> 'a t -> unit
val to_option : 'a t -> 'a option

Conversion

val of_option : 'a option -> 'a t