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

Function sorted_basic_blocks

plugins/warp/src/lib.rs:69–77  ·  view source on GitHub ↗

Basic blocks sorted from high to low.

(func: &BNFunction)

Source from the content-addressed store, hash-verified

67
68/// Basic blocks sorted from high to low.
69pub fn sorted_basic_blocks(func: &BNFunction) -> Vec<BNRef<BNBasicBlock<NativeBlock>>> {
70 let mut basic_blocks = func
71 .basic_blocks()
72 .iter()
73 .map(|bb| bb.clone())
74 .collect::<Vec<_>>();
75 basic_blocks.sort_by_key(|f| f.start_index());
76 basic_blocks
77}
78
79pub fn function_guid<A: Architecture, M: FunctionMutability>(
80 func: &BNFunction,

Callers 1

function_guidFunction · 0.85

Calls 5

mapMethod · 0.80
start_indexMethod · 0.80
iterMethod · 0.45
basic_blocksMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected