Struct disassemble::BasicBlock [] [src]

pub struct BasicBlock<'f> {
    pub id: usize,
    pub name: Option<String>,
    pub instructions: Vec<&'f Box<Instruction>>,
    pub in_edges: Vec<BasicBlockEdge<'f>>,
    pub out_edges: Vec<BasicBlockEdge<'f>>,
}

A basic block is a sequence of instructions with no inward-bound branches except to the entry point and no outward-bound branches except at the exit.

Fields

The ID # for this basic block. This is artificial information and not something from the disassembly.

The name of the basic block. Not all blocks have meaningful names.

The instructions within this basic block.

The basic blocks that point to this one.

The basic blocks which can be exited to from this one.

Methods

impl<'f> BasicBlock<'f>
[src]

Construct a new BasicBlock.

Add an edge that points to this basic block.

Add an edge that points from this basic block to another.

Trait Implementations

impl<'f> Debug for BasicBlock<'f>
[src]

Formats the value using the given formatter.