Struct test_generation::control_flow_graph::BasicBlock
source · pub struct BasicBlock { /* private fields */ }
Expand description
This represents a basic block in a control flow graph
Implementations§
source§impl BasicBlock
impl BasicBlock
pub fn new() -> BasicBlock
sourcepub fn get_locals_in(&self) -> &HashMap<usize, (AbstractValue, BorrowState)>
pub fn get_locals_in(&self) -> &HashMap<usize, (AbstractValue, BorrowState)>
Get the locals coming into the block
sourcepub fn get_locals_out(&self) -> &HashMap<usize, (AbstractValue, BorrowState)>
pub fn get_locals_out(&self) -> &HashMap<usize, (AbstractValue, BorrowState)>
Get the locals going out of the block
sourcepub fn set_instructions(&mut self, instructions: Vec<Bytecode>)
pub fn set_instructions(&mut self, instructions: Vec<Bytecode>)
Set the list of instructions that comprise the block
Trait Implementations§
source§impl Clone for BasicBlock
impl Clone for BasicBlock
source§fn clone(&self) -> BasicBlock
fn clone(&self) -> BasicBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BasicBlock
impl Debug for BasicBlock
source§impl Default for BasicBlock
impl Default for BasicBlock
source§fn default() -> BasicBlock
fn default() -> BasicBlock
Returns the “default value” for a type. Read more