package codex
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=bc7266a140c6886add673ede90e335d3
sha512=8da42c0ff2c1098c5f9cb2b5b43b306faf7ac93b8f5ae00c176918cee761f249ff45b29309f31a05bbcf6312304f86a0d5a000eb3f1094d3d3c2b9b4c7f5c386
doc/codex.framac_ival/Framac_ival/Abstract_interp/Int/index.html
Module Abstract_interp.IntSource
include module type of Integer with type t = Z.t
Euclidean division (that returns a positive rem). Implemented by Z.ediv
Equivalent to C division if both operands are positive. Equivalent to a floored division if b > 0 (rounds downwards), otherwise rounds upwards. Note: it is possible that e_div (-a) b <> e_div a (-b).
Remainder of the Euclidean division (always positive). Implemented by Z.erem
e_div_rem a b returns (e_div a b, e_rem a b). Implemented by Z.ediv_rem
Remainder 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
round_up_to_r m r modu is the smallest number n such that n>=m and n = r modulo modu
round_down_to_r m r modu is the largest number n such that n<=m and n = r modulo modu
Print binary format. Digits are output by blocs of 4 bits separated by ~sep with at least ~nbits total bits. If nbits is non positive, it will be ignored.
Positive values are prefixed with "0b" and negative values are printed as their 2-complement (lnot) with prefix "1b".
Print hexadecimal format. Digits are output by blocs of 16 bits (4 hex digits) separated by ~sep with at least ~nbits total bits. If nbits is non positive, it will be ignored.
Positive values are preffixed with "0x" and negative values are printed as their 2-complement (lnot) with prefix "1x".