Path 1: 801 calls (0.67)

If (801)

1@only_required_for_messages("too-many-boolean-expressions", "too-many-branches")
2    def visit_if(self, node: nodes.If) -> None:
3        """Increments the branches counter and checks boolean expressions."""
4        self._check_boolean_expressions(node)
5        branches = 1
6        # don't double count If nodes coming from some 'elif'
7        if node.orelse and (
8            len(node.orelse) > 1 or not isinstance(node.orelse[0], astroid.If)
9        ):
10            branches += 1
11        self._inc_branch(node, branches)
12        self._inc_all_stmts(branches)
            

Path 2: 213 calls (0.18)

If (213)

1@only_required_for_messages("too-many-boolean-expressions", "too-many-branches")
2    def visit_if(self, node: nodes.If) -> None:
3        """Increments the branches counter and checks boolean expressions."""
4        self._check_boolean_expressions(node)
5        branches = 1
6        # don't double count If nodes coming from some 'elif'
7        if node.orelse and (
8            len(node.orelse) > 1 or not isinstance(node.orelse[0], astroid.If)
9        ):
10            branches += 1
11        self._inc_branch(node, branches)
12        self._inc_all_stmts(branches)
            

Path 3: 180 calls (0.15)

If (180)

1@only_required_for_messages("too-many-boolean-expressions", "too-many-branches")
2    def visit_if(self, node: nodes.If) -> None:
3        """Increments the branches counter and checks boolean expressions."""
4        self._check_boolean_expressions(node)
5        branches = 1
6        # don't double count If nodes coming from some 'elif'
7        if node.orelse and (
8            len(node.orelse) > 1 or not isinstance(node.orelse[0], astroid.If)
9        ):
10            branches += 1
11        self._inc_branch(node, branches)
12        self._inc_all_stmts(branches)