Frama-C API - Integer
This module is deprecated, use Z instead. Extension of Zarith module Z.
type t = Z.tRemainder of the truncated division towards 0 (like in C99). Implemented by Z.rem
c_div_rem a b returns (c_div a b, c_rem a b). Implemented by Z.div_rem
val is_zero : t -> boolval is_one : t -> boolval is_even : t -> boolval zero : tval one : tval two : tval four : tval eight : tval sixteen : tval thirtytwo : tval onethousand : tval billion_one : tval minus_one : tval max_int64 : tval min_int64 : tval two_power_32 : tval two_power_64 : tval of_int : int -> tval of_int64 : Stdlib.Int64.t -> tval of_int32 : Stdlib.Int32.t -> tval to_int_exn : t -> intval to_int64_exn : t -> int64val to_int32_exn : t -> int32val to_int_opt : t -> int optionReturns Some i if the number can be converted to an int, or None otherwise.
val to_int64_opt : t -> int64 optionReturns Some i if the number can be converted to an int64, or None otherwise.
val to_int32_opt : t -> int32 optionReturns Some i if the number can be converted to an int32, or None otherwise.
val to_float : t -> floatval of_float : float -> tval two_power_of_int : int -> tval power_int_positive_int_opt : int -> int -> t optionval popcount : t -> intval hash : t -> intval to_string : t -> stringval of_string : string -> tval pretty : t Pretty_utils.formatterPrints the integer in decimal format. See also pretty_hex.
val pretty_hex : t Pretty_utils.formatterPrints the integer in hexadecimal format (replaces hexa optional argument of pretty from older versions).
val pp_bin : ?nbits:int -> ?sep:string -> t Pretty_utils.formatterval pp_hex : ?nbits:int -> ?sep:string -> t Pretty_utils.formatter