Copyright © Inria 2023-2024
Integers agumented with -\infty and +\infty (for testing purposes only). Integer over- and under-flows are not supported.
type t = | MInf| PInf| Int of int
val compare : t -> t -> intval equal : t -> t -> boolval hash_fold : Base.Hash.state -> t -> Base.Hash.state"Lesser or equal" test on integers
val pp : Stdlib.Format.formatter -> t -> unitComputes the opposite of an integer
Multiplication of integers. Always returns 0 if one of the arguments is 0.
Predecessor of an integer. The predecessors of PInf and MInf are themselves.
Successor of an integer. The successors of PInf and MInf are themselves.
val minimum : t -> t -> tval maximum : t -> t -> t