package binsec

  1. Overview
  2. Docs

doc/binsec_kernel_dba/Binsec_kernel_dba/Dba/index.html

Module Binsec_kernel_dba.DbaSource

Definition of DBA type

Sourcetype size = int
Sourcetype endianness = Binsec_base.Basic_types.endianness =
  1. | LittleEndian
  2. | BigEndian
Sourcetype id = int

An id is a local identifier which characterizes an atomic instruction inside a Dba.block

Sourcetype address = {
  1. base : Binsec_base.Virtual_address.t;
  2. id : id;
}

A DBA address is the association of a DBA block address represented by base and a unique id. The first element of a block has id 0.

Sourcetype addresses = address list
Sourcetype 'a jump_target =
  1. | JInner of 'a
    (*

    Jump inside the same block, to a label

    *)
  2. | JOuter of address
    (*

    Jump outside the block to its first element

    *)
Sourcetype tag =
  1. | Default
  2. | Call of address
  3. | Return
    (*

    For call address of return site

    *)
Sourcetype state =
  1. | OK
  2. | KO
  3. | Undecoded of string
    (*

    Stop because of unanticipated string of bytes *

    *)
  4. | Unsupported of string
    (*

    Stop because instr is not supported by Binsec *

    *)
Sourcemodule Unary_op : sig ... end
Sourcemodule Binary_op : sig ... end
Sourcemodule Var : sig ... end
Sourcemodule Expr : sig ... end
Sourcetype exprs = Expr.t list
Sourcetype printable =
  1. | Exp of Expr.t
  2. | Str of string
Sourcemodule LValue : sig ... end
Sourcemodule Tag : sig ... end
Sourcemodule Jump_target : sig ... end
Sourcemodule Instr : sig ... end