// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function init_test takes nothing returns nothing local integer a = 0 local integer c = 0 local integer b loop exitwhen c >= 1000 set b = a + 2 - 1 if b < a then set c = c + b else set c = c - b endif set a = b * 4 set b = a + 1 set a = (b - 1) / 2 exitwhen a >= 20 endloop if c == -26 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction