Working with Control Flow Graph (CFG)

Data model or structure for CFG - ControlFlowGraphModel

2. get basic block index of a step

Getting the basic block index of a step/instruction.

fn = api.get_function_by_id(fid="/example/src/07_array.cc:main#1")
step = fn.steps[0]
print(step.basicblock_index)

# output
"""
2
"""