package bap-std

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Brancher is responsible for resolving destinations of branch instructions.

type t = brancher
type dest = addr option * edge

destination target (if known) and edge classification (see edge)

val dest_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> dest
val sexp_of_dest : dest -> Ppx_sexp_conv_lib.Sexp.t
type dests = dest list
val dests_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> dests
val sexp_of_dests : dests -> Ppx_sexp_conv_lib.Sexp.t
val create : (mem -> Disasm_expert.Basic.full_insn -> dests) -> t

create resolve creates a brancher from resolve function, that accepts a memory region, occupied by an instruction, the instruction itself and returns a list of destination.

val of_bil : arch -> t

of_bil arch creates a brancher that will use a BIL code to statically deduce the instruction destinations.

val resolve : t -> mem -> Disasm_expert.Basic.full_insn -> dests

resolve brancher mem insn returns a list of destinations of the instruction insn, that occupies memory region mem.

val provide : t -> unit
module Factory : Source.Factory.S with type t = t
OCaml

Innovation. Community. Security.