def body_fun(state):
    (i, num, arr, out) = state
    return (lax.add(i, 1), num, arr, inner_loop(i, arr, out))
def body_fun(state):
    (i, num, arr, out) = state
    return (lax.add(i, 1), num, arr, inner_loop(i, arr, out))