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)

include sig ... end
val dest_of_sexp : Sexplib.Sexp.t -> dest
val sexp_of_dest : dest -> Sexplib.Sexp.t
type dests = dest list
include sig ... end
val dests_of_sexp : Sexplib.Sexp.t -> dests
val sexp_of_dests : dests -> Sexplib.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.

module Factory : Source.Factory.S with type t = t