def f(a, b, c):
    if b:
        pass
    elif a:
        pass
    else:
        c = <selection>1
        if b:
            a = 3
        else:
            b</selection> = 4
