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

Method is_same_op_as

rust/src/low_level_il/expression.rs:486–493  ·  view source on GitHub ↗

Determines if the expressions represent the same operation It does not examine the operands for equality.

(&self, other: &Self)

Source from the content-addressed store, hash-verified

484 ///
485 /// It does not examine the operands for equality.
486 pub fn is_same_op_as(&self, other: &Self) -> bool {
487 use self::LowLevelILExpressionKind::*;
488
489 match (self, other) {
490 (&Reg(..), &Reg(..)) => true,
491 _ => self.raw_struct().operation == other.raw_struct().operation,
492 }
493 }
494
495 pub fn as_cmp_op(&self) -> Option<&Operation<'func, A, M, F, operation::Condition>> {
496 use self::LowLevelILExpressionKind::*;

Callers

nothing calls this directly

Calls 1

raw_structMethod · 0.80

Tested by

no test coverage detected