package binsec
Install
dune-project
Dependency
Authors
-
AAdel Djoudi
-
BBenoit Boero
-
BBenjamin Farinier
-
CChakib Foulani
-
DDorian Lesbre
-
FFrédéric Recoules
-
GGuillaume Girol
-
JJosselin Feist
-
LLesly-Ann Daniel
-
MMahmudul Faisal Al Ameen
-
MManh-Dung Nguyen
-
MMathéo Vergnolle
-
MMatthieu Lemerre
-
NNicolas Bellec
-
OOlivier Nicole
-
RRichard Bonichon
-
RRobin David
-
SSébastien Bardin
-
SSoline Ducousso
-
TTa Thanh Dinh
-
YYaëlle Vinçont
-
YYanis Sellami
Maintainers
Sources
sha256=93f6fe439d486b166062ef6dd92c4ce3aa0947b5e18b1c3aa7de2fc3003aa6d9
sha512=98feb2b0a3f0a33fe912e9885311dd1c051768c707437f8ef038a8489fec019960142b588c6973eb8f726a14d9b2a1b4c765d915539911cb9f6ed6da9f1e51f2
doc/binsec.base/Binsec_base/Term/Bv/index.html
Module Term.BvSource
include Bitvector.Common with type t = Bitvector.t
compare t t' returns the structural comparison of t and t'.
The result is not sorted according to the values of t and t', thus, they can be of different sizes.
It is useful for key comparison for structures like `Set` or `Map`.
ucompare t t' returns the comparison of the unsigned values of t and t'.
It is equivalent of Z.compare (value_of t) (value_of t').
The bitvector t and t' should be of the same size.
scompare t t' returns the comparison of the signed values of t and t'.
It is equivalent of Z.compare (signed_of t) (signed_of t').
The bitvector t and t' should be of the same size.
fill lo hi n returns a bitvector of size n where bits from lo to hi are set to one. By default, lo is equal to zero and hi is equal to n. Raise Invalid_argument if lo or hi have incoherent values.
is_zeros t (resp. is_ones t) checks if it exists n such that t is equal to zeros n (resp. ones n)
max_ubv n (resp. max_sbv n) returns a bitvector of size n containing the biggest possible unsigned (resp. signed) value for its size
is_max_ubv t (resp. is_max_sbv t) returns true if t is a bitvector containing the biggest possible unsigned (resp. signed) value for its size, or returns false otherwise
include Sigs.COMPARISON with type t := t and type boolean = bool
include Sigs.ARITHMETIC with type t := t
is_neg t (resp. is_pos t) returns true if the signed interpretation of t is strictly negative (resp. strictly positive)