// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer test_putCount=0 integer child_put_return_a=0 integer child_put_return_b=0 integer child_put_return_c=0 integer child_put_return_d=0 endglobals native println takes string s returns nothing native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function child_put takes integer this_a, integer this_b, integer this_c, integer this_d, integer i, integer num returns integer set test_putCount = test_putCount + 1 if i == 0 then set child_put_return_a = num set child_put_return_b = this_b set child_put_return_c = this_c set child_put_return_d = this_d return child_put_return_a elseif i == 1 then set child_put_return_a = this_a set child_put_return_b = num set child_put_return_c = this_b set child_put_return_d = this_d return child_put_return_a elseif i == 2 then set child_put_return_a = this_a set child_put_return_b = this_b set child_put_return_c = num set child_put_return_d = this_d return child_put_return_a else set child_put_return_a = this_a set child_put_return_b = this_b set child_put_return_c = this_b set child_put_return_d = num return child_put_return_a endif endfunction function init_test takes nothing returns nothing local integer i = GetRandomInt(0, 3) local integer tuple_temp = 0 local integer tuple_temp_1 = 0 local integer tuple_temp_2 = 0 local integer tuple_temp_3 = 0 local integer tuple_temp_4 = i local integer t_a_a_1 = tuple_temp local integer t_a_b_1 = tuple_temp_1 local integer t_a_c_1 = tuple_temp_2 local integer t_a_d_1 = tuple_temp_3 local integer t_index = tuple_temp_4 local integer wval = 100 local integer tuple_temp_5 = t_a_a_1 local integer tuple_temp_6 = t_a_b_1 local integer tuple_temp_7 = t_a_c_1 local integer tuple_temp_8 = t_a_d_1 local integer tuple_temp_9 = t_index local integer some_a_a = tuple_temp_5 local integer some_a_b = tuple_temp_6 local integer some_a_c = tuple_temp_7 local integer some_a_d = tuple_temp_8 local integer some_index = tuple_temp_9 local integer tuple_temp_10 = child_put(some_a_a, some_a_b, some_a_c, some_a_d, t_index, wval) local integer tuple_temp_11 = child_put_return_b local integer tuple_temp_12 = child_put_return_c local integer tuple_temp_13 = child_put_return_d local integer t_a_a local integer t_a_b local integer t_a_c local integer t_a_d local integer x local integer x_1 local integer x_2 local integer x_3 local integer x_4 local integer tuple_temp_14 local integer tuple_temp_15 local integer tuple_temp_16 local integer tuple_temp_17 set some_a_a = tuple_temp_10 set some_a_b = tuple_temp_11 set some_a_c = tuple_temp_12 set some_a_d = tuple_temp_13 set tuple_temp_14 = some_a_a set tuple_temp_15 = some_a_b set tuple_temp_16 = some_a_c set tuple_temp_17 = some_a_d set t_a_a = tuple_temp_14 set t_a_b = tuple_temp_15 set t_a_c = tuple_temp_16 set t_a_d = tuple_temp_17 set x = t_a_a call println(I2S(x)) set x_1 = t_a_b call println(I2S(x_1)) set x_2 = t_a_c call println(I2S(x_2)) set x_3 = t_a_d call println(I2S(x_3)) set x_4 = test_putCount call println(I2S(x_4)) if test_putCount == 1 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction