package binsec
Semantic analysis of binary executables
Install
Dune Dependency
Authors
-
AAdel Djoudi
-
BBenjamin Farinier
-
CChakib Foulani
-
DDorian Lesbre
-
FFrédéric Recoules
-
GGuillaume Girol
-
JJosselin Feist
-
LLesly-Ann Daniel
-
MManh-Dung Nguyen
-
MMathéo Vergnolle
-
MMathilde Ollivier
-
MMatthieu Lemerre
-
OOlivier Nicole
-
RRichard Bonichon
-
RRobin David
-
SSébastien Bardin
-
SSoline Ducousso
-
TTa Thanh Dinh
-
YYaëlle Vinçont
Maintainers
Sources
binsec-0.6.2.tbz
sha256=11c5335f413cca0773ec8fd7804adeb2ae960fff834c35f7eb510c43dad51092
sha512=7d706de9c98a97017ef07d317552917f76ff771b95d1cf76ad6986558244a822ea72bdc89981689fb9b63837468ef378f30ff659a7e2578d0285ce5f037b6022
doc/binsec.sse/Se/Sexpr/Expr/index.html
Module Sexpr.Expr
type nonrec size = Binsec.Term.size
type 'a op = 'a Binsec.Term.operator =
| Not : Binsec.Term.unary op
| Sext : size -> Binsec.Term.unary op
| Uext : size -> Binsec.Term.unary op
| Restrict : int interval -> Binsec.Term.unary op
| Plus : Binsec.Term.binary op
| Minus : _ op
| Mul : Binsec.Term.binary op
| Udiv : Binsec.Term.binary op
| Umod : Binsec.Term.binary op
| Sdiv : Binsec.Term.binary op
| Smod : Binsec.Term.binary op
| Or : Binsec.Term.binary op
| And : Binsec.Term.binary op
| Xor : Binsec.Term.binary op
| Concat : Binsec.Term.binary op
| Lsl : Binsec.Term.binary op
| Lsr : Binsec.Term.binary op
| Asr : Binsec.Term.binary op
| Rol : Binsec.Term.binary op
| Ror : Binsec.Term.binary op
| Eq : Binsec.Term.binary op
| Diff : Binsec.Term.binary op
| Ule : Binsec.Term.binary op
| Ult : Binsec.Term.binary op
| Uge : Binsec.Term.binary op
| Ugt : Binsec.Term.binary op
| Sle : Binsec.Term.binary op
| Slt : Binsec.Term.binary op
| Sge : Binsec.Term.binary op
| Sgt : Binsec.Term.binary op
type ('k, 'l, 'a, 'b) term = private ('k, 'l, 'a, 'b) Binsec.Term.t =
| Var : {
hash : int;
size : size;
name : string;
label : 'a;
} -> (Binsec.Term.exp, _, 'a, _) term
| Load : {
hash : int;
len : size;
dir : endianness;
addr : (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term;
label : 'b;
} -> (Binsec.Term.exp, _, 'a, 'b) term
| Cst : Binsec.Bitvector.t -> (_, Binsec.Term.exp, _, _) term
| Unary : {
hash : int;
size : size;
f : Binsec.Term.unary Binsec.Term.operator;
x : (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term;
} -> (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term
| Binary : {
hash : int;
size : size;
f : Binsec.Term.binary Binsec.Term.operator;
x : (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term;
y : (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term;
} -> (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term
| Ite : {
hash : int;
size : size;
c : (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term;
t : (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term;
e : (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term;
} -> (Binsec.Term.exp, Binsec.Term.exp, 'a, 'b) term
type t = (Binsec.Term.exp, Binsec.Term.exp, string, Memory.t) term
Constructors
val load : size -> endianness -> t -> Memory.t -> t
load nbytes endianness addr label
val constant : Binsec.Bitvector.t -> t
constant bv
creates a constant expression from the bitvector bv
.
val unary : Binsec.Term.unary op -> t -> t
unary f x
creates a unary application of f
on x
.
val binary : Binsec.Term.binary op -> t -> t -> t
binary f x y
creates a binary application of f
on x
and y
.
shift_(left|right) e q
shifts expression e
by quantity q
, padding with zeroes
restrict lo hi e
creates Dba.ExprUnary(Restrict(lo, hi), e)
if hi >= lo && lo >=0
.
Specific constants
val zeros : int -> t
zeros n
creates a constant expression of value 0 with length n
val ones : int -> t
ones n
creates a constant expression of value 1 with length n
. I.e.; it has (n - 1) zeros in binary.
val one : t
val zero : t
Utils
*
val hash : t -> int
hash t
returns the hash of t
in constant time.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page