// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer test_putCount=0 integer newParent_return_a_a=0 integer newParent_return_a_b=0 integer newParent_return_a_c=0 integer newParent_return_a_d=0 integer newParent_return_index=0 integer randomOperations_return_a_a=0 integer randomOperations_return_a_b=0 integer randomOperations_return_a_c=0 integer randomOperations_return_a_d=0 integer randomOperations_return_index=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 newParent takes integer i returns integer set newParent_return_a_a = 0 set newParent_return_a_b = 0 set newParent_return_a_c = 0 set newParent_return_a_d = 0 set newParent_return_index = i return newParent_return_a_a endfunction function print takes integer x returns nothing call println(I2S(x)) 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 randomOperations takes integer t_a_a, integer t_a_b, integer t_a_c, integer t_a_d, integer t_index, integer wval returns integer local integer tuple_temp = t_a_a local integer tuple_temp_1 = t_a_b local integer tuple_temp_2 = t_a_c local integer tuple_temp_3 = t_a_d local integer tuple_temp_4 = t_index local integer some_a_a = tuple_temp local integer some_a_b = tuple_temp_1 local integer some_a_c = tuple_temp_2 local integer some_a_d = tuple_temp_3 local integer some_index = tuple_temp_4 local integer tuple_temp_5 = child_put(some_a_a, some_a_b, some_a_c, some_a_d, t_index, wval) local integer tuple_temp_6 = child_put_return_b local integer tuple_temp_7 = child_put_return_c local integer tuple_temp_8 = child_put_return_d set some_a_a = tuple_temp_5 set some_a_b = tuple_temp_6 set some_a_c = tuple_temp_7 set some_a_d = tuple_temp_8 set randomOperations_return_a_a = some_a_a set randomOperations_return_a_b = some_a_b set randomOperations_return_a_c = some_a_c set randomOperations_return_a_d = some_a_d set randomOperations_return_index = some_index return randomOperations_return_a_a endfunction function init_test takes nothing returns nothing local integer t_a_a local integer t_a_b local integer t_a_c local integer t_a_d local integer tuple_temp local integer tuple_temp_1 local integer tuple_temp_2 local integer tuple_temp_3 set test_putCount = 0 set tuple_temp = randomOperations(newParent(GetRandomInt(0, 3)), newParent_return_a_b, newParent_return_a_c, newParent_return_a_d, newParent_return_index, 100) set tuple_temp_1 = randomOperations_return_a_b set tuple_temp_2 = randomOperations_return_a_c set tuple_temp_3 = randomOperations_return_a_d set t_a_a = tuple_temp set t_a_b = tuple_temp_1 set t_a_c = tuple_temp_2 set t_a_d = tuple_temp_3 call print(t_a_a) call print(t_a_b) call print(t_a_c) call print(t_a_d) call print(test_putCount) 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