package mopsa

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Top - Top element

Types

type 'a with_top =
  1. | TOP
  2. | Nt of 'a
    (*

    Add a top element to a type.

    *)

Operator lifting

val top_lift1 : ('a -> 'b) -> 'a0 with_top -> 'b0 with_top
val top_lift2 : ('a -> 'b -> 'c) -> 'a0 with_top -> 'b0 with_top -> 'c0 with_top
val top_absorb1 : ('a -> 'b with_top) -> 'a0 with_top -> 'b0 with_top
val top_absorb2 : ('a -> 'b -> 'c with_top) -> 'a0 with_top -> 'b0 with_top -> 'c0 with_top
val top_neutral2 : ('a -> 'a -> 'a) -> 'a0 with_top -> 'a1 with_top -> 'a2 with_top
val top_apply : ('b -> 'a) -> 'a0 -> 'b0 with_top -> 'a1
val top_apply2 : 'a -> 'a0 -> ('b -> 'b -> 'a1) -> 'b0 with_top -> 'b1 with_top -> 'a2
val top_equal : ('a -> 'b -> bool) -> 'a0 with_top -> 'b0 with_top -> bool
val top_included : ('a -> 'b -> bool) -> 'a0 with_top -> 'b0 with_top -> bool
val top_compare : ('a -> 'a -> int) -> 'a0 with_top -> 'a1 with_top -> int
val top_dfl1 : 'c -> ('a -> 'c0) -> 'a0 with_top -> 'c1
val top_dfl2 : 'c -> ('a -> 'b -> 'c0) -> 'a0 with_top -> 'b0 with_top -> 'c1

Exceptions

exception Found_TOP
val raise_top : unit -> 'a
val catch_top : ('a -> 'b) -> 'a0 -> 'b0 -> 'b1
val detop : 'a with_top -> 'a0
val retop : ('a -> 'b) -> 'a0 -> 'b0 with_top
val exn_to_top : ('a -> 'b) -> 'a -> 'b with_top
val top_to_exn : 'a with_top -> 'a

Printing

val top_string : string
val top_to_string : ('a -> string) -> 'b with_top -> string
val top_print : (out_channel -> 'a -> unit) -> out_channel -> 'b with_top -> unit
val top_fprint : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'b with_top -> unit
val top_bprint : (Buffer.t -> 'a -> unit) -> Buffer.t -> 'b with_top -> unit
OCaml

Innovation. Community. Security.