Skip to main content

Module campaign

Module campaign 

Source

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ยง

CampaignFailureMetrics ๐Ÿ”’
InvariantCampaignAggregator
Merges worker outputs back into one logical invariant campaign result.
InvariantCampaignSpec
Immutable plan-level description for an invariant campaign.
InvariantCampaignState
Shared state used only to coordinate invariant worker execution.
InvariantWorkerOutput
Output produced by one invariant worker.
InvariantWorkerPlan
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_run order.
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.