pub struct Function {
pub entry: u64,
pub seeds: SeedKinds,
pub blocks: Vec<BlockId>,
pub returns: bool,
pub parts: Vec<u64>,
pub landing_pads: Vec<u64>,
pub part_of: Option<u64>,
pub funclets: Vec<u64>,
}Expand description
A function.
Fields§
§entry: u64Its entry point.
seeds: SeedKindsWhy it is one.
blocks: Vec<BlockId>Its blocks, by address: those reachable from the entry without
passing into another function’s entry, from its landing pads, and
those of its parts.
returns: boolWhether it can return to its caller.
parts: Vec<u64>The entries of the parts of it that recovery first found as
functions of their own and joined into it (cold parts: the
crate’s rule), by address. Their blocks are among
blocks; each part’s entry is a block start.
landing_pads: Vec<u64>Its landing pads, and those of its parts, by address: code only the unwinder enters (from its exception tables).
part_of: Option<u64>For a part of another function that only that function’s landing pads lead to, or a funclet of another function: that function’s entry. Such a part is kept a function of its own (the crate’s rule).
funclets: Vec<u64>The entries of its funclets (Seed::Funclet), by address: each is
a function part_of it.