Enum p8n_types::Operation

source ·
pub enum Operation {
Show 25 variants Add(ValueValue), Subtract(ValueValue), Multiply(ValueValue), DivideUnsigned(ValueValue), DivideSigned(ValueValue), ShiftLeft(ValueValue), ShiftRightUnsigned(ValueValue), ShiftRightSigned(ValueValue), Modulo(ValueValue), And(ValueValue), InclusiveOr(ValueValue), ExclusiveOr(ValueValue), Equal(ValueValue), LessOrEqualUnsigned(ValueValue), LessOrEqualSigned(ValueValue), LessUnsigned(ValueValue), LessSigned(ValueValue), ZeroExtend(usizeValue), SignExtend(usizeValue), Move(Value), Initialize(StrRefusize), Select(usizeusizeValue), Assume(ConstraintValue), Load(SegmentEndianessusizeValue), Phi(ValueValueValue),
}
Expand description

A RREIL operation.

Variants

Add(ValueValue)

Integer addition

Subtract(ValueValue)

Integer subtraction

Multiply(ValueValue)

Unsigned integer multiplication

DivideUnsigned(ValueValue)

Unsigned integer division

DivideSigned(ValueValue)

Signed integer division

ShiftLeft(ValueValue)

Bitwise left shift

ShiftRightUnsigned(ValueValue)

Bitwise logical right shift

ShiftRightSigned(ValueValue)

Bitwise arithmetic right shift

Modulo(ValueValue)

Integer modulo

And(ValueValue)

Bitwise logical and

InclusiveOr(ValueValue)

Bitwise logical or

ExclusiveOr(ValueValue)

Bitwise logical xor

Equal(ValueValue)

Compare both operands for equality and returns 1 or 0

LessOrEqualUnsigned(ValueValue)

Returns 1 if the first operand is less than or equal to the second and 0 otherwise. Comparison assumes unsigned values.

LessOrEqualSigned(ValueValue)

Returns 1 if the first operand is less than or equal to the second and 0 otherwise. Comparison assumes signed values.

LessUnsigned(ValueValue)

Returns 1 if the first operand is less than the second and 0 otherwise. Comparison assumes unsigned values.

LessSigned(ValueValue)

Returns 1 if the first operand is less than the second and 0 otherwise. Comparison assumes signed values.

ZeroExtend(usizeValue)

Zero extends the operand.

SignExtend(usizeValue)

Sign extends the operand.

Move(Value)

Copies the operand without modification.

Initialize(StrRefusize)

Initializes a global variable.

Select(usizeusizeValue)

Copies only the range [self.0, self.0 + self.1] of bits from the operand.

Assume(ConstraintValue)

Asserts that the second operand is constraint by the first.

Load(SegmentEndianessusizeValue)

Reads a memory cell

Phi(ValueValueValue)

SSA Phi function

Implementations

Returns references values that are read by the operation.

Returns mutables references values that are read by the operation.

Executes a RREIL operation returning the result.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.