package smtml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | Neg
    (*

    Negation.

    *)
  2. | Not
    (*

    Logical NOT.

    *)
  3. | Clz
    (*

    Count leading zeros.

    *)
  4. | Ctz
    (*

    Count trailing zeros.

    *)
  5. | Abs
    (*

    Absolute value.

    *)
  6. | Sqrt
    (*

    Square root.

    *)
  7. | Is_nan
    (*

    Check if NaN.

    *)
  8. | Ceil
    (*

    Ceiling.

    *)
  9. | Floor
    (*

    Floor.

    *)
  10. | Trunc
    (*

    Truncate.

    *)
  11. | Nearest
    (*

    Round to nearest integer.

    *)
  12. | Head
    (*

    Get the head of a list.

    *)
  13. | Tail
    (*

    Get the tail of a list.

    *)
  14. | Reverse
    (*

    Reverse a list.

    *)
  15. | Length
    (*

    Get the length of a list.

    *)
  16. | Trim
    (*

    Trim whitespace (uninterpreted).

    *)
  17. | Regexp_star
    (*

    Kleene star.

    *)
  18. | Regexp_loop of int * int
    (*

    Loop with a range.

    *)
  19. | Regexp_plus
    (*

    Kleene plus.

    *)
  20. | Regexp_opt
    (*

    Optional.

    *)
  21. | Regexp_comp
    (*

    Complement.

    *)

The type t represents unary operations.

val equal : t -> t -> bool

equal op1 op2 checks if unary operations op1 and op2 are equal.

val pp : t Fmt.t

pp fmt op pretty-prints the unary operation op using the formatter fmt.

OCaml

Innovation. Community. Security.