Skip to main content

Module equivalence

Module equivalence 

Source

Re-exportsΒ§

use alloy_dyn_abi::DynSolValue; πŸ”’
use alloy_json_abi::Function; πŸ”’
use alloy_network::TransactionBuilder; πŸ”’
use alloy_primitives::Address; πŸ”’
use alloy_primitives::B256; πŸ”’
use alloy_primitives::Bytes; πŸ”’
use alloy_primitives::KECCAK256_EMPTY; πŸ”’
use alloy_primitives::Log; πŸ”’
use alloy_primitives::TxKind; πŸ”’
use alloy_primitives::U256; πŸ”’
use alloy_primitives::hex; πŸ”’
use alloy_primitives::hex; πŸ”’
use alloy_primitives::map::HashMap; πŸ”’
use clap::Parser; πŸ”’
use clap::ValueHint; πŸ”’
use evm2::EvmFeatures; πŸ”’
use evm2::bytecode::Bytecode; πŸ”’
use evm2::interpreter::InstrStop; πŸ”’
use eyre::Result; πŸ”’
use eyre::WrapErr; πŸ”’
use eyre::bail; πŸ”’
use foundry_common::sh_println; πŸ”’
use foundry_common::shell; πŸ”’
use foundry_config::Config; πŸ”’
use foundry_config::SymbolicStorageLayout; πŸ”’
use foundry_evm::backend::Backend; πŸ”’
use foundry_evm::constants::CALLER; πŸ”’
use foundry_evm::constants::TEST_CONTRACT_ADDRESS; πŸ”’
use foundry_evm::core::evm::EthEvmNetwork; πŸ”’
use foundry_evm::executors::Executor; πŸ”’
use foundry_evm::executors::ExecutorBuilder; πŸ”’
use foundry_evm::opts::EvmOpts; πŸ”’
use foundry_evm_symbolic::ExecutorView; πŸ”’
use foundry_evm_symbolic::SymbolicEquivalenceEnv; πŸ”’
use foundry_evm_symbolic::SymbolicEquivalenceInput; πŸ”’
use foundry_evm_symbolic::SymbolicEquivalenceResult; πŸ”’
use foundry_evm_symbolic::SymbolicExecutor; πŸ”’
use foundry_evm_symbolic::SymbolicStats; πŸ”’
use foundry_evm_symbolic::SymbolicStorageAssignment; πŸ”’
use serde_json::json; πŸ”’
use std::collections::BTreeSet; πŸ”’
use std::path::PathBuf; πŸ”’

StructsΒ§

AccountMap πŸ”’
Maps the accounts that stand for the symbolic address and sender to the model’s choices.
ConcreteRun πŸ”’
One concrete run of either contract on the counterexample.
EquivalenceArgs
CLI arguments for forge equivalence.

FunctionsΒ§

describe πŸ”’
env_json πŸ”’
final_account πŸ”’
Returns an account’s nonce and code hash after run, falling back to the shared pre-state.
final_balance πŸ”’
Returns an account’s balance after run, falling back to the shared pre-state.
final_slot πŸ”’
Returns a slot’s value after run, falling back to the shared pre-state.
format_value πŸ”’
log_json πŸ”’
prepare_replay πŸ”’
Puts the counterexample’s pre-state and block environment into the concrete executor.
print_logs πŸ”’
print_stats πŸ”’
read_code πŸ”’
Reads hex bytecode from a flag or a file.
replay πŸ”’
Runs code at the counterexample’s address on calldata without committing state.