Re-exportsยง
use super::FailureKey;๐use super::InvariantFailureMetrics;๐use super::InvariantFailures;๐use super::InvariantFuzzError;๐use super::InvariantFuzzTestResult;๐use super::InvariantMetrics;๐use crate::executors::EarlyExit;๐use crate::executors::EvmExecutionCancellation;๐use alloy_primitives::Address;๐use alloy_primitives::I256;๐use alloy_primitives::Selector;๐use eyre::Result;๐use eyre::ensure;๐use foundry_evm_coverage::HitMaps;๐use foundry_evm_fuzz::BasicTxDetails;๐use std::collections::HashMap;๐use std::collections::HashSet;๐use std::sync::Arc;๐use std::sync::Mutex;๐use std::sync::atomic::AtomicBool;๐use std::sync::atomic::AtomicU32;๐use std::sync::atomic::AtomicU64;๐use std::sync::atomic::Ordering;๐use std::time::Duration;๐use std::time::Instant;๐
Structsยง
- Campaign
Failure ๐Metrics - Invariant
Campaign Aggregator - Merges worker outputs back into one logical invariant campaign result.
- Invariant
Campaign Spec - Immutable plan-level description for an invariant campaign.
- Invariant
Campaign State - Shared state used only to coordinate invariant worker execution.
- Invariant
Worker Output - Output produced by one invariant worker.
- Invariant
Worker Plan - Static assignment of a contiguous logical run range to one worker.
Functionsยง
- ensure_
outputs_ ๐cover_ campaign - ensure_
worker_ ๐ids_ are_ valid - fold_
outputs ๐ - handler_
error_ ๐sequence_ len - merge_
handler_ ๐errors - Deduplicates handler assertion failures by site, keeping the shorter reproducer.
Equal-length reproducers keep the one already inserted, which is the earlier logical worker
because the caller folds worker outputs in
first_global_runorder. - merge_
metrics ๐ - Adds worker-local selector metrics into the logical campaign totals.
- merge_
optimization ๐ - Keeps the best optimization value, using logical run order to break ties.