package goblint

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Lattice.S
include Lattice.PO
include Printable.S
type t
val equal : t -> t -> bool
val hash : t -> int
val compare : t -> t -> int
val show : t -> string
val pretty : unit -> t -> Goblint_lib.Printable.Pretty.doc
val printXml : 'a BatInnerIO.output -> t -> unit
val name : unit -> string
val to_yojson : t -> Yojson.Safe.t
val tag : t -> int

Unique ID, given by HConsed, for context identification in witness

val arbitrary : unit -> t QCheck.arbitrary
val relift : t -> t
val leq : t -> t -> bool
val join : t -> t -> t
val meet : t -> t -> t
val widen : t -> t -> t

widen x y assumes leq x y. Solvers guarantee this by calling widen old (join old new).

val narrow : t -> t -> t
val pretty_diff : unit -> (t * t) -> Goblint_lib.Lattice.Pretty.doc

If leq x y = false, then pretty_diff () (x, y) should explain why.

val bot : unit -> t
val is_bot : t -> bool
val top : unit -> t
val is_top : t -> bool
include FloatArith with type t := t
val neg : t -> t

Negating a float value: -x

val add : t -> t -> t

Negating a float value: -x

Addition: x + y

val sub : t -> t -> t

Addition: x + y

Subtraction: x - y

val mul : t -> t -> t

Subtraction: x - y

Multiplication: x * y

val div : t -> t -> t

Multiplication: x * y

Division: x / y

val fabs : t -> t

unary functions

fabs(x)

val acos : t -> t

fabs(x)

acos(x)

val asin : t -> t

acos(x)

asin(x)

val atan : t -> t

asin(x)

atan(x)

val cos : t -> t

atan(x)

cos(x)

val sin : t -> t

cos(x)

sin(x)

val tan : t -> t

sin(x)

tan(x)

val lt : t -> t -> IntDomain.IntDomTuple.t

Comparison operators

Less than: x < y

val gt : t -> t -> IntDomain.IntDomTuple.t

Less than: x < y

Greater than: x > y

val le : t -> t -> IntDomain.IntDomTuple.t

Greater than: x > y

Less than or equal: x <= y

val ge : t -> t -> IntDomain.IntDomTuple.t

Less than or equal: x <= y

Greater than or equal: x >= y

val eq : t -> t -> IntDomain.IntDomTuple.t

Greater than or equal: x >= y

Equal to: x == y

val ne : t -> t -> IntDomain.IntDomTuple.t

Equal to: x == y

Not equal to: x != y

val isfinite : t -> IntDomain.IntDomTuple.t

unary functions returning int

__builtin_isfinite(x)

val isinf : t -> IntDomain.IntDomTuple.t

__builtin_isfinite(x)

__builtin_isinf(x)

val isnan : t -> IntDomain.IntDomTuple.t

__builtin_isinf(x)

__builtin_isnan(x)

val isnormal : t -> IntDomain.IntDomTuple.t

__builtin_isnan(x)

__builtin_isnormal(x)

val signbit : t -> IntDomain.IntDomTuple.t

__builtin_isnormal(x)

__builtin_signbit(x)

val of_const : float -> t
val of_interval : (float * float) -> t
val of_string : string -> t
val of_int : IntDomain.IntDomTuple.t -> t
val ending : float -> t
val starting : float -> t
val ending_before : float -> t
val starting_after : float -> t
val minimal : t -> float option
val maximal : t -> float option
val is_exact : t -> bool
OCaml

Innovation. Community. Security.