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.7.1.tbz
sha256=2f990f80ebd06b71af4fde46c6a248eb74d52c6f46be63bdf97d99f72589db13
sha512=38d93ae20ae58e10027eb0f7669d3ab960ddc640526018fc94008ccd6cb63ec99030d0ee39dfb9cbd0d5e144db4615c9027bd2adcb197fc75676c45dbb54f836
doc/src/binsec.sse/script.ml.html
Source file script.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
(**************************************************************************) (* This file is part of BINSEC. *) (* *) (* Copyright (C) 2016-2022 *) (* CEA (Commissariat à l'énergie atomique et aux énergies *) (* alternatives) *) (* *) (* you can redistribute it and/or modify it under the terms of the GNU *) (* Lesser General Public License as published by the Free Software *) (* Foundation, version 2.1. *) (* *) (* It is distributed in the hope that it will be useful, *) (* but WITHOUT ANY WARRANTY; without even the implied warranty of *) (* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *) (* GNU Lesser General Public License for more details. *) (* *) (* See the GNU Lesser General Public License version 2.1 *) (* for more details (enclosed in the file licenses/LGPLv2.1). *) (* *) (**************************************************************************) open Types module Expr = struct include Dba.Expr let neg = uminus let succ e = add e (constant (Bitvector.create Z.one (size_of e))) end module LValue = Dba.LValue module Instr = struct type t = | Assign of LValue.t * Expr.t | Undef of LValue.t | Nondet of LValue.t | Assume of Expr.t | Assert of Expr.t | It of Expr.t * string | Goto of string | Jump of Expr.t | Label of string | Halt let assign loc value = Assign (loc, value) let undef loc = Undef loc let nondet loc = Nondet loc let assume test = Assume test let dynamic_assert test = Assert test let conditional_jump test target = It (test, target) let goto target = Goto target let dynamic_jump target = Jump target let label name = Label name let halt = Halt let pp_list ppf hunk = Format.pp_open_vbox ppf 0; Format.pp_open_vbox ppf 2; List.iter (fun instr -> match instr with | Assign (lval, rval) -> Format.fprintf ppf "@ @[<hov>%a := %a@]" Dba_printer.Ascii.pp_lhs lval Dba_printer.Ascii.pp_bl_term rval | Undef lval -> Format.fprintf ppf "@ @[<hov>%a := \\undef@]" Dba_printer.Ascii.pp_lhs lval | Nondet lval -> Format.fprintf ppf "@ @[<hov>%a := \\nondet@]" Dba_printer.Ascii.pp_lhs lval | Assume test -> Format.fprintf ppf "@ @[<hov>assume %a@]" Dba_printer.Ascii.pp_bl_term test | Assert test -> Format.fprintf ppf "@ @[<hov>assert %a]" Dba_printer.Ascii.pp_bl_term test | It (test, target) -> Format.fprintf ppf "@ @[<hov>if %a@ goto %s@]" Dba_printer.Ascii.pp_bl_term test target | Goto target -> Format.fprintf ppf "@ goto %s" target | Jump target -> Format.fprintf ppf "@ @[<hov>jump %a@]" Dba_printer.Ascii.pp_bl_term target | Label name -> Format.fprintf ppf "@]@ @[<v 2>%s:" name | Halt -> Format.fprintf ppf "@ halt") hunk; Format.pp_close_box ppf (); Format.pp_close_box ppf () end module Directive = struct type t = | Cut of Expr.t option | Assume of Expr.t | Assert of Expr.t | Reach of int * Expr.t option * Output.t list | Enumerate of int * Expr.t end type t = | Start_from of Expr.t * Instr.t list | Start_from_core of Instr.t list | Load_sections of string list | Load_data of Expr.t | Import_symbols of (string * Dba.Var.Tag.attribute) list * string | Stub of Expr.t list * Instr.t list | Init of Instr.t list | Directive of Expr.t * Directive.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>