function loop1
x = 1
count = 0
while x > 0 % first version: x < inf
    count = count + 1
    x = x/2 % first version: x = x*2
end