Ticket #45343: loops.lua

File loops.lua, 190 bytes (added by macports.jgonggrijp@…, 10 years ago)

example of a script on which luajit does not crash

Line 
1local i = 1
2while i < 100000 do
3    local j = i
4    while j > 1 do
5        if j % 2 == 0
6        then j = j / 2
7        else j = j * 3 + 1
8        end
9    end
10    i = i + 1
11end
12print("end")