Module Pulselib__ZSafe

include module type of sig ... end
type t = Z.t
exception Overflow
val zero : t
val one : t
val minus_one : t
val of_int : int -> t
val of_int32 : int32 -> t
val of_int64 : int64 -> t
val of_nativeint : nativeint -> t
val of_float : float -> t
val of_string : string -> t
val of_substring : string -> pos:int -> len:int -> t
val of_string_base : int -> string -> t
val of_substring_base : int -> string -> pos:int -> len:int -> t
val succ : t -> t
val pred : t -> t
val abs : t -> t
val neg : t -> t
val add : t -> t -> t
val sub : t -> t -> t
val mul : t -> t -> t
val div : t -> t -> t
val rem : t -> t -> t
val div_rem : t -> t -> t * t
val cdiv : t -> t -> t
val fdiv : t -> t -> t
val ediv_rem : t -> t -> t * t
val ediv : t -> t -> t
val erem : t -> t -> t
val divexact : t -> t -> t
val logand : t -> t -> t
val logor : t -> t -> t
val logxor : t -> t -> t
val lognot : t -> t
val shift_left : t -> int -> t
val shift_right : t -> int -> t
val shift_right_trunc : t -> int -> t
val numbits : t -> int
val trailing_zeros : t -> int
val testbit : t -> int -> bool
val popcount : t -> int
val hamdist : t -> t -> int
val to_int : t -> int
val to_int32 : t -> int32
val to_int64 : t -> int64
val to_nativeint : t -> nativeint
val to_float : t -> float
val to_string : t -> string
val format : string -> t -> string
val fits_int : t -> bool
val fits_int32 : t -> bool
val fits_int64 : t -> bool
val fits_nativeint : t -> bool
val print : t -> unit
val output : Stdlib.out_channel -> t -> unit
val sprint : unit -> t -> string
val bprint : Stdlib.Buffer.t -> t -> unit
val pp_print : Stdlib.Format.formatter -> t -> unit
val compare : t -> t -> int
val equal : t -> t -> bool
val leq : t -> t -> bool
val geq : t -> t -> bool
val lt : t -> t -> bool
val gt : t -> t -> bool
val sign : t -> int
val min : t -> t -> t
val max : t -> t -> t
val is_even : t -> bool
val is_odd : t -> bool
val hash : t -> int
val gcd : t -> t -> t
val gcdext : t -> t -> t * t * t
val lcm : t -> t -> t
val powm : t -> t -> t -> t
val powm_sec : t -> t -> t -> t
val invert : t -> t -> t
val probab_prime : t -> int -> int
val nextprime : t -> t
val pow : t -> int -> t
val sqrt : t -> t
val sqrt_rem : t -> t * t
val root : t -> int -> t
val perfect_power : t -> bool
val perfect_square : t -> bool
val log2 : t -> int
val log2up : t -> int
val size : t -> int
val extract : t -> int -> int -> t
val signed_extract : t -> int -> int -> t
val to_bits : t -> string
val of_bits : string -> t
val (~-) : t -> t
val (~+) : t -> t
val (+) : t -> t -> t
val (-) : t -> t -> t
val (*) : t -> t -> t
val (/) : t -> t -> t
val (/>) : t -> t -> t
val (/<) : t -> t -> t
val (/|) : t -> t -> t
val (mod) : t -> t -> t
val (land) : t -> t -> t
val (lor) : t -> t -> t
val (lxor) : t -> t -> t
val (~!) : t -> t
val (lsl) : t -> int -> t
val (asr) : t -> int -> t
val (~$) : int -> t
val (**) : t -> int -> t
module Compare = Z.Compare
val version : string
val round_to_float : t -> bool -> float
val protect : ('a -> 'b) -> 'a -> 'b option

None instead of throwing Division_by_zero | Invalid_argument _ | Z.Overflow

val yojson_of_t : t -> Ppx_yojson_conv_lib.Yojson.Safe.t
val div : t -> t -> t option
val rem : t -> t -> t option
val div_rem : t -> t -> (t * t) option
val cdiv : t -> t -> t option
val fdiv : t -> t -> t option
val ediv_rem : t -> t -> (t * t) option
val ediv : t -> t -> t option
val erem : t -> t -> t option
val divexact : t -> t -> t option
val gcd : t -> t -> t option
val gcdext : t -> t -> (t * t * t) option
val lcm : t -> t -> t option
val powm : t -> t -> (t -> t) option
val powm_sec : t -> t -> (t -> t) option
val invert : t -> t -> t option
val (/) : t -> t -> t option
val (/>) : t -> t -> t option
val (/<) : t -> t -> t option
val (/|) : t -> t -> t option
val (mod) : t -> t -> t option