package apron

  1. Overview
  2. Docs
type t = {
  1. mutable texpr0 : Texpr0.t;
  2. mutable env : Environment.t;
}
type unop = Texpr0.unop =
  1. | Neg
  2. | Cast
  3. | Sqrt
type binop = Texpr0.binop =
  1. | Add
  2. | Sub
  3. | Mul
  4. | Div
  5. | Mod
  6. | Pow
type typ = Texpr0.typ =
  1. | Real
  2. | Int
  3. | Single
  4. | Double
  5. | Extended
  6. | Quad
type round = Texpr0.round =
  1. | Near
  2. | Zero
  3. | Up
  4. | Down
  5. | Rnd
type expr =
  1. | Cst of Coeff.t
  2. | Var of Var.t
  3. | Unop of unop * expr * typ * round
  4. | Binop of binop * expr * expr * typ * round
val of_expr : Environment.t -> expr -> t
val copy : t -> t
val of_linexpr : Linexpr1.t -> t
val to_expr : t -> expr
val cst : Environment.t -> Coeff.t -> t
val var : Environment.t -> Var.t -> t
val unop : Texpr0.unop -> t -> Texpr0.typ -> Texpr0.round -> t
val binop : Texpr0.binop -> t -> t -> Texpr0.typ -> Texpr0.round -> t
val is_interval_cst : t -> bool
val is_interval_linear : t -> bool
val is_interval_polynomial : t -> bool
val is_interval_polyfrac : t -> bool
val is_scalar : t -> bool
val extend_environment : t -> Environment.t -> t
val extend_environment_with : t -> Environment.t -> unit
val get_texpr0 : t -> Texpr0.t
val get_env : t -> Environment.t
val string_of_unop : unop -> string
val string_of_binop : binop -> string
val string_of_typ : typ -> string
val string_of_round : round -> string
val print_unop : Format.formatter -> unop -> unit
val print_binop : Format.formatter -> binop -> unit
val print_typ : Format.formatter -> typ -> unit
val print_round : Format.formatter -> round -> unit
val print_expr : Format.formatter -> expr -> unit
val print : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.