binaryninja.basicblock.BasicBlock

class BasicBlock(handle, view=None)[source]
__init__(handle, view=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(handle[, view])

Initialize self.

get_disassembly_text([settings])

get_disassembly_text returns a list of binaryninja.function.DisassemblyTextLine objects for the current basic block.

get_iterated_dominance_frontier(blocks)

mark_recent_use()

set_auto_highlight(color)

set_auto_highlight highlights the current BasicBlock with the supplied color.

set_user_highlight(color)

set_user_highlight highlights the current BasicBlock with the supplied color

Attributes

annotations

List of automatic annotations for the start of this block (read-only)

arch

Basic block architecture (read-only)

can_exit

Whether basic block can return or is tagged as ‘No Return’ (read-only)

disassembly_text

disassembly_text property which returns a list of binaryninja.function.DisassemblyTextLine objects for the current basic block.

dominance_frontier

Dominance frontier for this basic block (read-only)

dominator_tree_children

List of child blocks in the dominator tree for this basic block (read-only)

dominators

List of dominators for this basic block (read-only)

end

Basic block end (read-only)

function

Basic block function (read-only)

has_undetermined_outgoing_edges

Whether basic block has undetermined outgoing edges (read-only)

highlight

Gets or sets the highlight color for basic block

immediate_dominator

Immediate dominator of this basic block (read-only)

immediate_post_dominator

Immediate dominator of this basic block (read-only)

incoming_edges

List of basic block incoming edges (read-only)

index

Basic block index in list of blocks for the function (read-only)

instruction_count

is_il

Whether the basic block contains IL

is_low_level_il

Whether the basic block contains Low Level IL

is_medium_level_il

Whether the basic block contains Medium Level IL

length

Basic block length (read-only)

outgoing_edges

List of basic block outgoing edges (read-only)

post_dominance_frontier

Post dominance frontier for this basic block (read-only)

post_dominator_tree_children

List of child blocks in the post dominator tree for this basic block (read-only)

post_dominators

List of dominators for this basic block (read-only)

source_block

Basic block source block (read-only)

start

Basic block start (read-only)

strict_dominators

List of strict dominators for this basic block (read-only)

view

Binary view that contains the basic block (read-only)