Skip to main content

Module live

Module live 

Source
Expand description

Bounded, asynchronous assistance for an invariant campaign. Candidates are executed by the ordinary campaign before they can contribute coverage or failures.

Re-exportsยง

use super::RecordedCallSequence; ๐Ÿ”’
use crate::EVM_THREAD_STACK_SIZE; ๐Ÿ”’
use crate::executors::EarlyExit; ๐Ÿ”’
use crate::executors::EvmExecutionCancellation; ๐Ÿ”’
use crate::executors::Executor; ๐Ÿ”’
use crate::executors::fuzz::FuzzBranchFrontier; ๐Ÿ”’
use crate::executors::fuzz::FuzzFrontierRecorder; ๐Ÿ”’
use crate::executors::fuzz::comparison_result; ๐Ÿ”’
use crate::inspectors::CmpOperands; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::map::HashSet; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use foundry_config::SymbolicConfig; ๐Ÿ”’
use foundry_evm_core::evm::FoundryEvmNetwork; ๐Ÿ”’
use foundry_evm_fuzz::BasicTxDetails; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use std::collections::VecDeque; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::atomic::AtomicBool; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use std::sync::mpsc; ๐Ÿ”’
use std::sync::mpsc::Receiver; ๐Ÿ”’
use std::sync::mpsc::SyncSender; ๐Ÿ”’
use std::thread; ๐Ÿ”’
use std::thread::JoinHandle; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use std::time::Instant; ๐Ÿ”’

Structsยง

LiveInvariantSolution
A solver response. The campaign re-executes the candidate using its own predicate policy.
LiveInvariantSolver
One solver thread, 32 retained frontiers, and one slot in each channel.
LiveInvariantStats
Counters for the live worker, separate from bounded symbolic verification results.

Constantsยง

MAX_CALLDATA_BYTES ๐Ÿ”’
MAX_CALLS ๐Ÿ”’
MAX_OBSERVED_OUTCOMES ๐Ÿ”’
Distinct comparison outcomes remembered to select solve targets. Real targets reach far more outcomes than frontier_limit in their first sequence, so this bound is separate from the submission budget.
MAX_PENDING ๐Ÿ”’

Functionsยง

outcome ๐Ÿ”’
Identifies one side of a comparison site.

Type Aliasesยง

Outcome ๐Ÿ”’
One side of a comparison site: address, pc, opcode, and result.