// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals endglobals native testSuccess takes nothing returns nothing function bar takes integer x returns integer local integer x_1 if x > 0 then set x_1 = x - 1 return 1 + 1 + bar(x_1) else return 0 endif endfunction function initGlobals takes nothing returns nothing endfunction function main takes nothing returns nothing local integer x call initGlobals() set x = 5 if 1 + bar(x) == 11 then call testSuccess() endif endfunction function config takes nothing returns nothing endfunction