Skip to main content Module runtime Copy item path Source use super::abi ::*; π use super ::*; π address π bool π bytes π calldata π cheatcodes π control π cx π evm π executor_view π expr π folded_slots π Registration of constant-folded mapping slots as concrete Keccak preimages. hashcons π memory π precompiles π solver π Solver orchestration, query scheduling, caching, and model validation. state π symbols π word π AccessRecord π AssumeNoRevert π CallFrame π CallMock π CallMockOutcome π ExecutorView Network-independent, read-only view of a concrete Foundry executor. ExpectedCall π ExpectedCreate π ExpectedEmit π ExpectedEmitChecks π ExpectedRevert π ExpressionDigests π Structural digests that identify expressions in stable symbol names. ExpressionFoldCache π Results from one deterministic bottom-up expression fold. FoldedContract π FoldedSlots π Candidate keys and storage layouts of the deployed contracts, kept to resolve the nested level
of a folded mapping slot on demand. FunctionMock π ModelEvaluator π Evaluates hash-consed expressions once per model. NoopModel π PathState π SmtLibSubprocessSolver π StorageMappingKey π StorageWrite π SymBoolExpr π SymBytes π SymCalldata π SymCode π SymCx π SymCxCache π SymExpr π SymMemory π SymReturnData π SymStack π Symbol π SymbolicBlock π SymbolicBranchTarget One comparison site from a fuzz branch frontier to target during symbolic execution. SymbolicLog π SymbolicMappingProvenance π SymbolicMemoryWrite π SymbolicPrank π SymbolicReplayStorageSlot π SymbolicRunInput SymbolicSnapshot π A vm.snapshotState entry: the world state with the block environment and gas price, which
Forge restores together. SymbolicStorageHook π SymbolicWorld π SymbolicWorldState π World data shared copy-on-write by branched paths and snapshots. UnfoldedNodeCounter π UnknownCall π One call into code the equivalence check does not know, with its inputs and its fresh results. BoundedCopySize π BranchFeasibility π CallKind π CheatcodeOutcome π CreateKind π DigestNode π ExpectedRevertData π GuardedOpcode π PersistentWrite π A cheatcode write that survives a revert of the frame that made it, see
PathState::replay_persistent_writes . StepOutcome π SymBinOp π SymBoolExprKind π SymBytesKind π SymCmpOp π SymExprKind π SymTernOp π SymbolicError Error returned by the internal symbolic executor. MAX_BITWISE_BOOL_WORD_VISITS π MAX_BOUND_ANALYSIS_VISITS π MAX_BRANCHLESS_REWRITE_NODES π MAX_BRANCHLESS_REWRITE_UNFOLDED_NODES π MAX_CONSTANT_DIFFERENCE_VISITS π MAX_CONSTANT_ITE_EQ_NODES π Bounds both the number of distinct word nodes inspected by constant-ITE equality expansion and
the unfolded size of the Boolean expression it could produce. MAX_CONSTANT_ITE_EQ_UNFOLDED_NODES π MAX_NESTED_MAPPING_HASHES π SECP256K1_ORDER π Order of the secp256k1 curve, the exclusive bound of a valid signature scalar. STORAGE_LAYOUT_OFFSET_BITS π SymbolicModelLookup π abi_bytes_return π abi_bytes_return_with_len π abi_concrete_bytes_return π abi_concrete_value_return π abi_static_input_size π accesses_return_data π active_precompiles π Returns the canonical precompiles active under spec_id. address_word π artifact_code π artifact_json_fallback_paths π Returns fallback paths for symbolic artifact lookup. artifact_json_path π assertion_message_condition π Returns the condition under which symbolic revert data is an Error(string) whose message
contains the assertion prefix, validated like is_revert_assertion_failure: the encoded length
must be concrete and within the data, the concrete bytes must decode as UTF-8 and contain the
prefix on their own, and every symbolic byte must be ASCII so the message stays valid UTF-8. assertion_revert_condition π Returns the condition under which symbolic revert data is an assertion failure: a
Panic(0x01) or an Error(string) whose message contains the assertion prefix. byte_expr π Returns the byte extraction expression for a symbolic word. byte_word π byte_word_dynamic π cancelled_difference_minuend π Returns a for the sum (a - b) + b in either operand order. cheatcode_error_revert_condition π clz_word π Returns the number of leading zero bits in value, or 256 when it is zero. cmp_upper_bound_usize π Returns the constant upper bound a comparison places on expr, when it fits a usize. complete_cheatcode_call π compute_create2_address_word π compute_create_address_word π concrete_expr_bytes π context_forces_masked_expr π create2_address_word π create2_hash_address_word π Builds keccak256(0xff ++ deployer ++ salt ++ init_code_hash) cut to an address. decode_cheatcode_args π deployer_identity π Identifies a deployer in a stable address symbol name. derive_private_key π derive_private_key_with_language π dyn_address π dyn_address_array π dyn_bool π dyn_bytes π dyn_bytes32_array π dyn_potential_revert π dyn_potential_reverts π dyn_string π dyn_string_array π ecrecover_signature_well_formed π Returns whether a 128-byte ECRECOVER input is a well-formed signature: v is 27 or 28 and r
and s are in [1, n). The precompile returns no data otherwise. env_var π Reads an environment variable like Forgeβs envOr cheatcodes: None only when it is not
set, and an error when it is not valid unicode. error_string_return_data π euclidean_sum_dividend π Returns a for the Euclidean sum (a / d) * d + a % d in either operand order. eval_model_constraints π execute_precompile π Executes a canonical precompile on concrete input with at most gas gas. execute_symbolic_precompile π exp_expr_for_concrete_exponent π first_symbolic_opcode π Returns the first opcode position that holds a symbolic byte, skipping concrete push data. foundry_cheatcode_min_input_size π hex_nibble_ascii π is_assertion_revert π is_full_word_array_assertion π is_precompile_for_spec π Returns whether address is a canonical precompile active under spec_id. is_revert_assertion_failure π keccak_word π keccak_word_with_len π key_fits π Returns whether key is a value of the mapping key type ty as abi.encode pads it. low_masked_source π low_masked_source_any π mapping_preimage π Returns keccak(key . slot) and its 64-byte preimage. mask_bits π mask_low_bits π masked_expr_matches π modexp_gas π Returns the gas the modexp precompile for spec_id charges for these lengths and leading
exponent word, as EIP-198, EIP-2565 (Berlin) and EIP-7883 (Osaka) define it. parse_env_array π parse_env_value π past_deadline π power_of_two_shift π precompile_call_gas π Returns the most gas a gasleft() call gives a precompile in a transaction with gas_limit
gas: 63/64 of the gas left (EIP-150), plus the value transfer stipend when it sends value. precompile_gas_fits π Returns whether a precompile whose cost lies between min_cost and max_cost fits in
gas, or None when that depends on symbolic input. precompile_number π precompile_number_for_spec π private_key_address π private_key_signer π push_ascii π push_hex_byte π push_hex_word π push_immediates π Returns the right-aligned values of the PUSH immediates in code. read_abi_address_arg π read_abi_address_or_symbolic_slot_arg π read_abi_address_word_arg π Reads an address argument as a word, pinned to its constant when path constraints force one. read_abi_address_word_or_symbolic_slot_arg π read_abi_bool_arg π read_abi_bytes4_words_arg π read_abi_concrete_word_arg π read_abi_constrained_address_arg π read_abi_constrained_word_arg π read_abi_dynamic_bytes_arg π read_abi_dynamic_return_data_arg π read_abi_string_arg π read_abi_symbolic_dynamic_byte_exprs_arg π read_abi_symbolic_dynamic_bytes_arg π read_abi_symbolic_dynamic_bytes_array_arg π read_abi_u32_arg π read_abi_u64_arg π read_abi_word_arg π record_mapping_preimage π Records keccak(key . slot) with its preimage and returns the hash. record_preimage_bytes π recorded_logs_json_return_data π recorded_logs_return_data π register_expected_call π Registers an expected call using the concrete cheatcodeβs keyed-additive semantics. revert_cheatcode_call π Completes a cheatcode call that reverts with return_data, which can be the reverter of a
pending vm.expectRevert or vm.assumeNoRevert, including one this frame set. rounded_product_operands π Returns (a, d) for the rounded product (a / d) * d in either operand order. shift_left π sign_compact_hash_words π sign_hash_words π signextend π signextend_word π signextend_word_dynamic π stable_symbol π storage_mapping_key_eq π storage_offset_is_large π Returns the condition under which a storage layout offset is too large to assume no aliasing. storage_slots_abi_array π symbolic_create2_address_word π symbolic_create_address_word π symbolic_fixed_len_precompile_output π symbolic_hash_word_with_len π symbolic_input_word_range π Returns the smallest and largest big-endian values of the len input bytes at offset,
taking each symbolic byte as 0x00 and 0xff and each byte past input_len as zero. symbolic_modexp_precompile π symbolic_storage_symbol π symbolic_vm_cheatcode_min_input_size π visit_unique π Visits reachable word nodes in depth-first, left-to-right order until the visitor breaks. vm_params π Returns the parameter types of a Vm cheatcode from its generated ABI signature. walk_mapping_slots π Calls hash for every candidate key that fits the key type of the mapping at slot, descending
into struct members and levels - 1 nested mapping levels through the returned hash. Returns
false when hash stopped the walk. word_from_extracted_bytes π word_to_address π SymbolicModel π SymbolicVars π