

 Function foo

    line 4 / 7
    1 + max(0, (n - x))
    O(n^1)
    line 8 / 11
    1 + max(0, (m - x))
    O(n^1)

Total Complexity: O(n^1)
