package bap-std
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=9c126781385d2fa9b8edab22e62b25c70bf2f99f6ec78abb7e5e36d63cfa4174
md5=5abd9b3628b43f797326034f31ca574f
doc/bap/Bap/Std/Reconstructor/index.html
Module Std.Reconstructor
Reconstructor is responsible for reconstructing symbol table from a CFG. It should partition a CFG into a set of possibly intersecting functions. See Symtab
module for more information about symbol table and functions.
type t = reconstructor
default name roots
builds a reconstructor from a given function, that maps addresses to function names (see Symbolizer
) and a list of known function starts. The reconstructor will extend the list of function starts with destinations of call instructions found in the CFG. Also, the reconstructor treats every node without input edges as a function start. For each function start builds a function using the following definition of a function:
Function is built from the entry block and every block that is reachable from it without using calls.
of_blocks
produces a reconstructor from a serialized sequence of blocks. Each element of the sequence is deconstructed as (name,ba,ea)
, where name
is a subroutine name, ba
is a virtual address of a block start, and ea
is an address of the block end.
module Factory : Source.Factory.S with type t = t
a factory of reconstructors