Skip to main content Module missing_events_arithmetic Copy item path Source use super::MissingEventsArithmetic ; π use crate::linter::LateLintPass ; π use crate::linter::LintContext ; π use crate::sol::Severity ; π use crate::sol::SolLint ; π use crate::sol::analysis::dispatched_function ; π use crate::sol::analysis::is_protected ; π use crate::sol::analysis::lhs_local_var ; π use crate::sol::analysis::loop_stmts ; π use crate::sol::analysis::state_lhs_vars ; π use crate::sol::analysis::underlying_var ; π use solar::ast::ContractKind; π use solar::ast::StateMutability; π use solar::data_structures::map::FxIndexSet; π use solar::interface::Span; π 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::ElementaryType; π use solar::sema::hir::Expr; π use solar::sema::hir::ExprKind; π use solar::sema::hir::FunctionId; π use solar::sema::hir::StmtKind; π use solar::sema::hir::TypeKind; π use solar::sema::hir::VariableId; π use solar::sema::hir::Visit; π use std::collections::HashMap ; π use std::collections::HashSet ; π use std::ops::ControlFlow ; π Flow π Paths leaving a statement: those continuing to the next statement and those that returned
(which skip the rest of the body but still run the modifiersβ trailing code). StateWrite π UseAnalyzer π Finds target state variables that flow into arithmetic, following locals and internal calls. WriteAnalyzer π Collects writes to target variables that no later emit on the same path covers. WriteState π Analysis state along one control-flow path. Mode π MISSING_EVENTS_ARITHMETIC is_arithmetic_op π merge π