MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / avoid_instr

Function avoid_instr

python/examples/angr_plugin.py:124–132  ·  view source on GitHub ↗
(bv, addr)

Source from the content-addressed store, hash-verified

122
123
124def avoid_instr(bv, addr):
125 # Highlight the instruction in red
126 blocks = bv.get_basic_blocks_at(addr)
127 for block in blocks:
128 block.set_auto_highlight(HighlightColor(HighlightStandardColor.RedHighlightColor, alpha=128))
129 block.function.set_auto_instr_highlight(addr, HighlightStandardColor.RedHighlightColor)
130
131 # Add the instruction to the list associated with the current view
132 bv.session_data.angr_avoid.add(addr)
133
134
135def solve(bv):

Callers

nothing calls this directly

Calls 5

HighlightColorClass · 0.90
get_basic_blocks_atMethod · 0.80
set_auto_highlightMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected