pub struct Expr { /* private fields */ }Expand description
Representation of an expression tree (ex. add(2, sub(9, 4)))
Implementations§
Source§impl Expr
impl Expr
Sourcepub fn call_value() -> Self
pub fn call_value() -> Self
Create an Expr representing callvalue (0x34).
Sourcepub fn call_data_size() -> Self
pub fn call_data_size() -> Self
Create an Expr representing calldatasize (0x36).
Sourcepub fn return_data_size() -> Self
pub fn return_data_size() -> Self
Create an Expr representing returndatasize (0x3d).
Sourcepub fn difficulty() -> Self
pub fn difficulty() -> Self
Create an Expr representing difficulty (0x44).
Sourcepub fn self_balance() -> Self
pub fn self_balance() -> Self
Create an Expr representing selfbalance (0x47).
Sourcepub fn create(value: &Self, offset: &Self, length: &Self) -> Self
pub fn create(value: &Self, offset: &Self, length: &Self) -> Self
Create an Expr representing create (0xf0).
Sourcepub fn create2(value: &Self, offset: &Self, length: &Self, salt: &Self) -> Self
pub fn create2(value: &Self, offset: &Self, length: &Self, salt: &Self) -> Self
Create an Expr representing create2 (0xf5).
Sourcepub fn call_code(
gas: &Self,
addr: &Self,
value: &Self,
args_offset: &Self,
args_len: &Self,
ret_offset: &Self,
ret_len: &Self,
) -> Self
pub fn call_code( gas: &Self, addr: &Self, value: &Self, args_offset: &Self, args_len: &Self, ret_offset: &Self, ret_len: &Self, ) -> Self
Create an Expr representing callcode (0xf2).
Sourcepub fn call(
gas: &Self,
addr: &Self,
value: &Self,
args_offset: &Self,
args_len: &Self,
ret_offset: &Self,
ret_len: &Self,
) -> Self
pub fn call( gas: &Self, addr: &Self, value: &Self, args_offset: &Self, args_len: &Self, ret_offset: &Self, ret_len: &Self, ) -> Self
Create an Expr representing call (0xf1).
Sourcepub fn static_call(
gas: &Self,
addr: &Self,
args_offset: &Self,
args_len: &Self,
ret_offset: &Self,
ret_len: &Self,
) -> Self
pub fn static_call( gas: &Self, addr: &Self, args_offset: &Self, args_len: &Self, ret_offset: &Self, ret_len: &Self, ) -> Self
Create an Expr representing staticcall (0xfa).
Sourcepub fn delegate_call(
gas: &Self,
addr: &Self,
args_offset: &Self,
args_len: &Self,
ret_offset: &Self,
ret_len: &Self,
) -> Self
pub fn delegate_call( gas: &Self, addr: &Self, args_offset: &Self, args_len: &Self, ret_offset: &Self, ret_len: &Self, ) -> Self
Create an Expr representing delegatecall (0xf4).
Sourcepub fn add_mod(&self, add: &Self, modulo: &Self) -> Self
pub fn add_mod(&self, add: &Self, modulo: &Self) -> Self
Create an Expr representing addmod (0x08).
Sourcepub fn mul_mod(&self, mul: &Self, modulo: &Self) -> Self
pub fn mul_mod(&self, mul: &Self, modulo: &Self) -> Self
Create an Expr representing mulmod (0x09).
Sourcepub fn keccak256(offset: &Self, len: &Self) -> Self
pub fn keccak256(offset: &Self, len: &Self) -> Self
Create an Expr representing keccak256 (0x20).
Sourcepub fn sign_extend(&self, b: &Self) -> Self
pub fn sign_extend(&self, b: &Self) -> Self
Create an Expr representing signextend (0x0b).
Sourcepub fn block_hash(&self) -> Self
pub fn block_hash(&self) -> Self
Create an Expr representing blockhash (0x40).
Sourcepub fn call_data_load(&self) -> Self
pub fn call_data_load(&self) -> Self
Create an Expr representing calldataload (0x35).
Sourcepub fn ext_code_size(&self) -> Self
pub fn ext_code_size(&self) -> Self
Create an Expr representing extcodesize (0x3b).
Sourcepub fn ext_code_hash(&self) -> Self
pub fn ext_code_hash(&self) -> Self
Create an Expr representing extcodehash (0x3f).