

 Function foo

    line 5 / 11
    1 + max(N, 0)
    O(n^1)
      line 7 / 9
       max(N, 0) × max(N, 0)
      O(n^2)

Total Complexity: O(n^2)
