Skip to main content

Module edge

Module edge 

Source

Re-exportsยง

use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_primitives::map::Entry; ๐Ÿ”’
use alloy_primitives::map::HashMap; ๐Ÿ”’
use core::fmt; ๐Ÿ”’
use core::hash::Hash; ๐Ÿ”’
use core::hash::Hash; ๐Ÿ”’
use core::hash::Hasher; ๐Ÿ”’
use evm2::Inspector; ๐Ÿ”’
use evm2::InspectorConfig; ๐Ÿ”’
use evm2::OpcodeSet; ๐Ÿ”’
use evm2::interpreter::Interpreter; ๐Ÿ”’
use evm2::interpreter::op as opcode; ๐Ÿ”’
use foundry_evm_core::edgecov::InstrumentedEdgeHit; ๐Ÿ”’
use foundry_evm_core::edgecov::MAX_CMP_LOG_SITES; ๐Ÿ”’
use foundry_evm_core::edgecov::MAX_CMP_OBSERVATIONS_PER_SITE; ๐Ÿ”’
use foundry_evm_core::utils::opcodes; ๐Ÿ”’

Structsยง

CmpOperands
A comparison operand pair captured during execution.
CmpSiteKey ๐Ÿ”’
EdgeCovConfig
Configuration for EdgeCovInspector.
EdgeCovHit
EdgeCovInspector
An Inspector that tracks edge coverage. Covered edges will not wrap to zero e.g. a loop edge hit more than 255 will still be retained.
EdgeIndexMap
EdgeKey
Identity of a control-flow edge: the jump at pc in the code running at address to jump_dest, optionally split by call depth.
PackedEdge ๐Ÿ”’
An EdgeKey in 64 bits: the index of its address among those of the execution, its depth, its pc and its jump destination.

Enumsยง

EdgeCovKind
Edge coverage collection kind.
EdgeCoverage

Constantsยง

CMP_OPCODES ๐Ÿ”’
The instructions at which the inspector records comparison operands.
EDGE_OPCODES ๐Ÿ”’
The instructions at which the inspector records an edge.
FNV_OFFSET_BASIS ๐Ÿ”’
FNV_PRIME ๐Ÿ”’
MAX_EDGE_COUNT
Default capacity for the hitcount buffer.

Functionsยง

hash_bytes ๐Ÿ”’