array A_nextFree210 integer A_firstFree569 integer A_maxIndex275 integer wurst_stack_depth785 array wurst_stack468 array A_foo_0137 array A_foo_1158 array A_foo_2196 array A_foo_3789 array A_foo_4661 integer A_firstFree569 = 0 integer A_maxIndex275 = 0 integer wurst_stack_depth785 = 0 function initGlobals395() { } function main276() { initGlobals395(); init_test151("when calling init_test in testMultiArray, line 1"); } function config164() { } function init_test151(string __wurst_stackPos163) { local integer this465 wurst_stack_468[wurst_stack_depth_785] = __wurst_stackPos_163; wurst_stack_depth_785 = (wurst_stack_depth_785 + 1); wurst_stack_468[wurst_stack_depth_785] = "when calling new_A in testMultiArray, line 6"; wurst_stack_depth_785 = (wurst_stack_depth_785 + 1); wurst_stack_468[wurst_stack_depth_785] = "when calling alloc_A in testMultiArray, line 3"; wurst_stack_depth_785 = (wurst_stack_depth_785 + 1); if (A_firstFree_569 == 0) { if (A_maxIndex_275 < 32768) { A_maxIndex_275 = (A_maxIndex_275 + 1); this_465 = A_maxIndex_275; } else { error203("Out of memory: Could not create A.", "when calling error in testMultiArray, line 3"); this_465 = 0; }; } else { A_firstFree_569 = (A_firstFree_569 - 1); this_465 = A_nextFree_210[A_firstFree_569]; }; wurst_stack_depth_785 = ((wurst_stack_depth_785 - 1) - 1); A_foo_set210(this_465, 3, 6, "when writing array A_foo in testMultiArray, line 7"); if (A_foo_get167(this_465, 3, "when reading array A_foo in in testMultiArray, line 8") == 6) { testSuccess192(); } else { }; wurst_stack_depth_785 = (wurst_stack_depth_785 - 1); } IS_NATIVE function testSuccess192() { } function error203(string msg208, string __wurst_stackPos574) { local integer stacktraceIndex192 local integer stacktraceLimit619 wurst_stack_468[wurst_stack_depth_785] = __wurst_stackPos_574; wurst_stack_depth_785 = (wurst_stack_depth_785 + 1); __wurst_stackPos_574 = ""; stacktraceIndex_192 = wurst_stack_depth_785; stacktraceLimit_619 = 0; loop { stacktraceIndex_192 = (stacktraceIndex_192 - 1); stacktraceLimit_619 = (stacktraceLimit_619 + 1); exitwhen ((stacktraceLimit_619 > 20) or (stacktraceIndex_192 < 0)); __wurst_stackPos_574 = (__wurst_stackPos_574 + (" " + wurst_stack_468[stacktraceIndex_192])); }; $debugPrint168((msg_208 + (" " + __wurst_stackPos_574))); wurst_stack_depth_785 = (wurst_stack_depth_785 - 1); } function A_foo_set210(integer instanceId123, integer arrayIndex462, integer value573, string stackPos765) { if ((arrayIndex_462 < 0) or (arrayIndex_462 >= 5)) { error203("Index out of Bounds", stackPos_765); } else { if (arrayIndex_462 <= 2) { if (arrayIndex_462 <= 1) { if (arrayIndex_462 <= 0) { A_foo_0_137[instanceId_123] = value_573; } else { A_foo_1_158[instanceId_123] = value_573; }; } else { A_foo_2_196[instanceId_123] = value_573; }; } else { if (arrayIndex_462 <= 3) { A_foo_3_789[instanceId_123] = value_573; } else { A_foo_4_661[instanceId_123] = value_573; }; }; }; } function A_foo_get167(integer index1122, integer index2560, string stackPos293) returns integer { local integer returnVal132 if ((index2_560 < 0) or (index2_560 >= 5)) { error203("Index out of Bounds", stackPos_293); } else { if (index2_560 <= 2) { if (index2_560 <= 1) { if (index2_560 <= 0) { returnVal_132 = A_foo_0_137[index1_122]; } else { returnVal_132 = A_foo_1_158[index1_122]; }; } else { returnVal_132 = A_foo_2_196[index1_122]; }; } else { if (index2_560 <= 3) { returnVal_132 = A_foo_3_789[index1_122]; } else { returnVal_132 = A_foo_4_661[index1_122]; }; }; }; return returnVal_132; }