def complexity
import bend-lint-pack@0.1.1.0/complexity/cyclomatic.bend as Cyclomaticimport Base
61# 1 + Mat - Efq; never below 1.
62def complexity(t: Tally) -> U32:
63 match t:
64 case Tally{+mats, efqs}:
65 U32.add(1, U32.sub(mats, U32.min(mats, efqs)))