// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer tempReturn_integer=0 endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function cyc_bar takes integer funcChoice, integer x returns nothing if funcChoice == 0 then if x > 0 then call cyc_bar(1, x - 1) set tempReturn_integer = 1 + tempReturn_integer return else set tempReturn_integer = 0 return endif elseif funcChoice == 1 then call cyc_bar(0, x) set tempReturn_integer = 1 + tempReturn_integer return endif endfunction function init_Test takes nothing returns nothing call cyc_bar(1, 5) if tempReturn_integer == 11 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_Test() endfunction function config takes nothing returns nothing endfunction