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

Method apply_to_flow_graph

python/renderlayer.py:297–313  ·  view source on GitHub ↗

Apply this Render Layer to a Flow Graph, potentially modifying its nodes, their edges, their lines, and their lines' content. .. note:: If you override this function, you will need to call the ``super()`` \ implementation if you want to use the higher level ``apply_to_X_level_il_block`` \

(self, graph: 'binaryninja.FlowGraph')

Source from the content-addressed store, hash-verified

295 return lines
296
297 def apply_to_flow_graph(self, graph: 'binaryninja.FlowGraph') -> None:
298 """
299 Apply this Render Layer to a Flow Graph, potentially modifying its nodes,
300 their edges, their lines, and their lines' content.
301
302 .. note:: If you override this function, you will need to call the ``super()`` \
303 implementation if you want to use the higher level ``apply_to_X_level_il_block`` \
304 functionality.
305
306 :param graph: Graph to modify
307 """
308 pass
309 for i, node in enumerate(graph.nodes):
310 lines = node.lines
311 if node.basic_block is not None and isinstance(node.basic_block, binaryninja.BasicBlock):
312 lines = self.apply_to_block(node.basic_block, lines)
313 node.lines = lines
314
315 def apply_to_linear_view_object(
316 self,

Callers 1

_apply_to_flow_graphMethod · 0.95

Calls 1

apply_to_blockMethod · 0.95

Tested by

no test coverage detected