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
//! The binbun engine: one loaded executable as a program database
//! ([`Database`]), what joins the loader, the type library, control-flow
//! recovery, lifting and decompilation.
//!
//! - [`analysis`]: an image's seeds, what is known about its imports, the
//! decoder for its machine, and recovery itself, computed jumps and
//! calls resolved through the pointer slots they load or their tables
//! ([`analysis::resolve`]); [`corrections`]: the user's corrections of
//! what recovery finds (code, data, functions' bounds), as its seeds.
//! - [`target`]: the image's architecture and calling convention, as L1,
//! lowering and the differential check need them.
//! - [`lift`]: recovered functions in SSA form (L1); [`summary`]: what
//! they do to registers and the stack, callees first; [`funclets`]: the
//! funclets of Microsoft x64 exception handlers built into their
//! functions' L1.
//! - [`decompile`]: the pipeline from L1 to L2 and C, with the image's
//! data ([`data`], [`memory`]) and its imports' prototypes
//! ([`prototypes`]), and its debug information where given ([`debug`]).
//! - [`classes`]: the C++ classes an image's run-time type information
//! shows (virtual tables, `type_info` objects), which name the structs
//! that are them.
//! - [`eval`]: how well recovery found the functions the file states, and
//! how much of the code lifts.
//! - [`references`]: every reference to an address, from code (calls,
//! jumps, reads, writes, addresses taken, from L1's constants) and from
//! data (relocated or scanned pointers), indexed by target and by
//! function; [`strings`]: the string literals of the image's data, those
//! referred to and those found by scanning.
//! - [`calls`]: the call graph, paths through it (by calls, or along
//! which a parameter's value goes on), and call sites' known argument
//! values.
//! - [`run`]: one function run from a named example state, the values
//! of each C statement and machine instruction recorded.
//! - [`profile`]: processor profiles, what one microarchitecture does
//! where the architecture leaves a value undefined, for runs and
//! verification.
//! - [`queries`]: what the reading view shows beside a function's C: its
//! verification against L1 on demand, why its variables have their
//! types and names, where a value comes from and goes.
//! - [`stages`]: one function through every stage of decompilation
//! (machine code, L1 after each pass, L2 after each pass, the C), each
//! line's instructions and change, for an IR viewer.
//! - [`signatures`]: library signatures: packs made from static
//! libraries, objects and linked files with symbols, and a binary's
//! functions named by matching them.
//! - [`user`]: the user's types (prototypes, globals, frame and register
//! variables), read from C, over every other declaration.
//! - [`cfg`]: architecture-neutral control-flow recovery: basic blocks,
//! functions and which calls return, over any memory.
//! - [`listing`]: the continuous listing of an image in the usual
//! disassembler layout: every mapped byte as lines of role-tagged tokens
//! over a 64-bit line space.
//! - [`graph`]: graphs of a binary as disassemblers draw them: a function's
//! blocks and edges with their listing lines, and a layered layout with
//! orthogonal edges for any graph of sized nodes.
pub use ;