// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer test_x=0 code ref_function_bar=null integer tempReturn_integer=0 endglobals native do takes code c returns nothing function cyc_blub takes integer funcChoice returns nothing if funcChoice == 0 then if test_x > 0 then call cyc_blub(1) call do(ref_function_bar) set test_x = test_x - 1 set tempReturn_integer = 1 return else set tempReturn_integer = 2 return endif elseif funcChoice == 1 then if test_x > 0 then call cyc_blub(0) call do(ref_function_bar) set test_x = test_x - 1 set tempReturn_integer = 1 return else set tempReturn_integer = 2 return endif endif endfunction function bar_proxy takes nothing returns integer call cyc_blub(1) return tempReturn_integer endfunction function initGlobals takes nothing returns nothing set ref_function_bar = function bar_proxy endfunction function init_test takes nothing returns nothing set test_x = 20 call do(ref_function_bar) call do(ref_function_bar) endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction