Trait evmil::analysis::EvmWord

source ·
pub trait EvmWord: Sized + Clone + Debug + From<w256> + Concretizable<Item = w256> + PartialEq {
Show 13 methods // Required methods fn less_than(self, rhs: Self) -> Self; fn equal(self, rhs: Self) -> Self; fn is_zero(self) -> Self; fn add(self, rhs: Self) -> Self; fn sub(self, rhs: Self) -> Self; fn mul(self, rhs: Self) -> Self; fn div(self, rhs: Self) -> Self; fn rem(self, rhs: Self) -> Self; fn and(self, rhs: Self) -> Self; fn or(self, rhs: Self) -> Self; fn xor(self, rhs: Self) -> Self; fn not(self) -> Self; fn havoc(self) -> Self;
}
Expand description

Represents the fundamental unit of computation within the EVM, namely a word. This is intentially left abstract, so that it could be reused across both concrete and abstract semantics.

Required Methods§

source

fn less_than(self, rhs: Self) -> Self

source

fn equal(self, rhs: Self) -> Self

source

fn is_zero(self) -> Self

source

fn add(self, rhs: Self) -> Self

source

fn sub(self, rhs: Self) -> Self

source

fn mul(self, rhs: Self) -> Self

source

fn div(self, rhs: Self) -> Self

source

fn rem(self, rhs: Self) -> Self

source

fn and(self, rhs: Self) -> Self

source

fn or(self, rhs: Self) -> Self

source

fn xor(self, rhs: Self) -> Self

source

fn not(self) -> Self

source

fn havoc(self) -> Self

Object Safety§

This trait is not object safe.

Implementors§