// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer array Pair_nextFree integer Pair_firstFree=0 integer Pair_maxIndex=0 integer array Pair_a endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function error takes string msg returns nothing call BJDebugMsg(msg + "\n" + "") endfunction function init_test takes nothing returns nothing local integer a = 2 local integer this local integer this_1 local integer this_2 local integer a_1 local integer this_3 local integer a_2 if Pair_firstFree == 0 then if Pair_maxIndex < 32768 then set Pair_maxIndex = Pair_maxIndex + 1 set this_1 = Pair_maxIndex else call error("Out of memory: Could not create OtherPair.") set this_1 = 0 endif else set Pair_firstFree = Pair_firstFree - 1 set this_1 = Pair_nextFree[Pair_firstFree] endif set this = this_1 set this_2 = this set a_1 = a set this_3 = this_2 set a_2 = a_1 set Pair_a[this_3] = a_2 if Pair_a[this] == 2 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction