Skip to main content Module function_selector_collision Copy item path Source use super::FunctionSelectorCollision ; π use crate::linter::LateLintPass ; π use crate::linter::LintContext ; π use crate::sol::Severity ; π use crate::sol::SolLint ; π use crate::sol::analysis::arg_for_param ; π use crate::sol::analysis::branch_always_exits ; π use crate::sol::analysis::expr_is_address ; π use crate::sol::analysis::is_address_cast ; π use crate::sol::analysis::is_require_or_assert ; π use crate::sol::analysis::ty_contract_id ; π use alloy_primitives::Selector; π use solar::ast::LitKind; π use solar::ast::UnOpKind; π use solar::interface::data_structures::Never; π use solar::interface::kw; π use solar::interface::sym; π use solar::sema::Gcx; π use solar::sema::builtins::Builtin; π use solar::sema::hir; π use solar::sema::hir::BinOpKind; π use solar::sema::hir::ContractId; π use solar::sema::hir::ContractKind; π use solar::sema::hir::Expr; π use solar::sema::hir::ExprKind; π use solar::sema::hir::LoopSource; π use solar::sema::hir::Stmt; π use solar::sema::hir::StmtKind; π use solar::sema::hir::VariableId; π use solar::sema::hir::Visit; π use std::collections::HashMap ; π use std::collections::HashSet ; π use std::ops::ControlFlow ; π CalldataInput π A parameter that initially holds the full msg.data: the fallbackβs own, or one of the
modifier-th applied modifier (the same modifier may be applied several times). Continuation π What _ resumes: the rest of the modifier chain and the function body. DelegateTarget π DelegateTargetCollector π LoopControl π PathState π SelectorFilter π The msg.sig constraints known to hold on a path. MAX_LOOP_PATH_STATES π Path-state cap above which selector constraints are widened to βany selectorβ. FUNCTION_SELECTOR_COLLISION dedup π delegated_contract π The statically typed implementation contract of a proxy-style <addr>.delegatecall(<full calldata>), with the calldata input that must be unmodified for the forwarding to be complete. extend_unique π full_calldata_source π Some(None) for msg.data, Some(Some(input)) for a known full-calldata input, None
otherwise.lvalue_contains_var π selector_guard π msg.sig == F.selector / msg.sig != F.selector as (selector, matches).typed_contract_behind_address_cast π