package frama-c

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t = 'a or_top
module Operators : sig ... end

Operators

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 join : ('a -> 'a -> 'a t) -> 'a t -> 'a t -> 'a t

Lattice operators

val narrow : ('a -> 'a -> 'a) -> 'a t -> 'a t -> 'a t
val iter : ('a -> unit) -> 'a t -> unit
val bind : ('a -> 'b t) -> 'a t -> 'b t
val fold : top:'b -> ('a -> 'b) -> 'a t -> 'b
val map : ('a -> 'b) -> 'a t -> 'b t
val zip : 'a t -> 'b t -> ('a * 'b) t

Combination

val to_option : 'a t -> 'a option

Conversion

val of_option : 'a option -> 'a t
OCaml

Innovation. Community. Security.