BasicBlock class
A basic block in the CFG.
Contains a sequence of instructions with:
- Single entry point (first instruction)
- Single exit point (last instruction)
- No internal branches
Constructors
-
BasicBlock({required int id, List<
Instruction> ? instructions, List<BasicBlock> ? predecessors, List<BasicBlock> ? successors})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
final
-
instructions
→ List<
Instruction> -
final
-
predecessors
→ List<
BasicBlock> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
successors
→ List<
BasicBlock> -
final
- terminator → Instruction?
-
The terminator instruction (last instruction).
no setter
Methods
-
addInstruction(
Instruction instruction) → void - Adds an instruction to this block.
-
connectTo(
BasicBlock successor) → void - Connects this block to a successor.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited