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

Function DirectJump

arch/armv7/il.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#define BITMASK(N,O) (((1LL << N) - 1) << O)
13
14static inline ExprId DirectJump(Architecture* arch, LowLevelILFunction& il, uint64_t target, size_t addrSize)
15{
16 BNLowLevelILLabel* label = il.GetLabelForAddress(arch, target);
17 if (label)
18 return il.Goto(*label);
19 else
20 return il.Jump(il.ConstPointer(addrSize, target));
21
22 return 0;
23}
24
25
26static inline ExprId SetRegisterOrBranch(LowLevelILFunction& il, enum Register reg, ExprId expr, uint32_t flags=0)

Callers 1

ConditionalJumpFunction · 0.70

Calls 4

GetLabelForAddressMethod · 0.80
GotoMethod · 0.45
JumpMethod · 0.45
ConstPointerMethod · 0.45

Tested by

no test coverage detected