Re-exportsΒ§
use super::InvariantContract;πuse super::shrink::CheckSequenceFailureSite;πuse super::shrink::TerminalFailureSite;πuse super::shrink::sequence_call_failure_site;πuse super::shrink::terminal_failure_site;πuse crate::executors::RawCallResult;πuse crate::executors::RawFailure;πuse crate::inspectors::EdgeCovHit;πuse crate::inspectors::EdgeCoverage;πuse alloy_json_abi::Function;πuse alloy_primitives::Address;πuse alloy_primitives::B256;πuse alloy_primitives::Bytes;πuse alloy_primitives::Selector;πuse alloy_primitives::keccak256;πuse foundry_config::InvariantConfig;πuse foundry_evm_core::decode::ASSERTION_FAILED_PREFIX;πuse foundry_evm_core::decode::EMPTY_REVERT_DATA;πuse foundry_evm_core::decode::RevertDecoder;πuse foundry_evm_core::evm::FoundryEvmNetwork;πuse foundry_evm_fuzz::BasicTxDetails;πuse foundry_evm_fuzz::Reason;πuse foundry_evm_fuzz::invariant::FuzzRunIdentifiedContracts;πuse proptest::test_runner::TestError;πuse std::collections::HashMap;πuse std::fmt;π
StructsΒ§
- Failed
Invariant Case Data - Handler
Assertion Failure - A handler-side assertion bug: a
require/assertinside a fuzzed handler that the campaign reached. Deduped by(reverter, selector)site (Echidna/Medusa semantics), shortest sequence wins on collision. - Invariant
Failures - Stores invariant test failures and revert counts.
- Invariant
RunCtx - Run-scoped references shared by failure-recording paths in an invariant run.
EnumsΒ§
- Failure
Key - Identifies a single entry in the
InvariantFailuresmap. Invariant predicate failures and handler-side assertion bugs share one map keyed by this enum. - Invariant
Fuzz Error
FunctionsΒ§
- handler_
edge_ fingerprint - Edge-coverage fingerprint for a handler-side assertion call. Prefers a pre-merge
edges hash; falls back to
keccak(target || selector)when edge coverage is disabled. - handler_
site_ already_ minimal - True iff there is already a
HandlerAssertionFailureforsiteno longer thancandidate_len. Used to skip inserting a not-strictly-shorter repro. - record_
handler_ πassertion_ bug - Records a handler-side assertion bug (if strictly shorter than the existing repro for
this site) and pops the just-asserted reverted input from
inputs. - snapshot_
edge_ fingerprint - Stable hash of the callβs edge coverage, taken before
merge_edge_coveragezeroes the buffer. ReturnsNonewhen edge coverage is disabled.