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

Method source_reg

rust/src/low_level_il/operation.rs:431–450  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

429 }
430
431 pub fn source_reg(&self) -> LowLevelILRegister<A::Register> {
432 let raw_id = self.op.operands[0] as u32;
433
434 if raw_id >= 0x8000_0000 {
435 LowLevelILRegister::Temp(raw_id & 0x7fff_ffff)
436 } else {
437 self.function
438 .arch()
439 .register_from_id(RegisterId(raw_id))
440 .map(LowLevelILRegister::ArchReg)
441 .unwrap_or_else(|| {
442 log::error!(
443 "got garbage register from LLIL_REG @ 0x{:x}",
444 self.op.address
445 );
446
447 LowLevelILRegister::Temp(0)
448 })
449 }
450 }
451}
452
453impl<A, M, F> Debug for Operation<'_, A, M, F, Reg>

Callers 5

check_expressionFunction · 0.80
fmtMethod · 0.80
test_llil_infoFunction · 0.80
basic_block_guidFunction · 0.80

Calls 3

mapMethod · 0.80
register_from_idMethod · 0.45
archMethod · 0.45

Tested by 1

test_llil_infoFunction · 0.64