// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1367
globals
endglobals
native testSuccess takes nothing returns nothing
function initGlobals takes nothing returns nothing
endfunction

function main takes nothing returns nothing
	local integer a
	local integer b
	local integer c
	call initGlobals()
	set a = 0
	set c = 0
	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 config takes nothing returns nothing
endfunction