fn count_modifier_invocations(hir: &Hir<'_>) -> HashMap<FunctionId, usize>Expand description
Counts, for every modifier of the unit, the functions that invoke it. Invocations live in each function’s resolved modifier list, where base-constructor calls carry a contract id and stay out of the count.