array A_nextFree627 integer A_firstFree628 integer A_maxIndex466 array A_foo_0110 array A_foo_1424 array A_foo_2120 array A_foo_3197 array A_foo_4756 array A_foo_5377 array A_foo_6804 array A_foo_7763 array A_foo_8210 array A_foo_9131 array A_foo_10138 array A_foo_11654 array A_foo_12153 array A_foo_13322 array A_foo_14486 array A_foo_15138 array A_foo_16196 array A_foo_17389 array A_foo_18204 array A_foo_19360 integer test_x785 = 4 integer test_y162 = 5 integer test_z108 = (test_x_785 * (10 + (- test_y_162))) integer A_firstFree628 = 0 integer A_maxIndex466 = 0 function initGlobals105() { A_firstFree_628 = 0; A_maxIndex_466 = 0; } function main165() { initGlobals105(); init_test957(); } function config110() { } function init_test957() { local integer a852 a_852 = new_A106(); A_foo_set138(a_852, 13, 42); if (A_foo_get862(a_852, 13) == 42) { testSuccess124(); } else { }; } IS_NATIVE function testSuccess124() { } function A_init646(integer this121) { } function new_A106() returns integer { local integer this115 this_115 = alloc_A172(); construct_A746(this_115); return this_115; } function construct_A746(integer this142) { A_init646(this_142); } function alloc_A172() returns integer { local integer this137 if (A_firstFree_628 == 0) { if (A_maxIndex_466 < 32768) { A_maxIndex_466 = (A_maxIndex_466 + 1); this_137 = A_maxIndex_466; } else { error129("Out of memory: Could not create A."); this_137 = 0; }; } else { A_firstFree_628 = (A_firstFree_628 - 1); this_137 = A_nextFree_627[A_firstFree_628]; }; return this_137; } function error129(string msg814) { $debugPrint209((msg_814 + (" " + #getStackTrace()))); } function A_foo_set138(integer instanceId272, integer arrayIndex650, integer value904) { if ((arrayIndex_650 < 0) or (arrayIndex_650 >= 20)) { error129("Index out of Bounds"); } else { if (arrayIndex_650 <= 9) { if (arrayIndex_650 <= 4) { if (arrayIndex_650 <= 2) { if (arrayIndex_650 <= 1) { if (arrayIndex_650 <= 0) { A_foo_0_110[instanceId_272] = value_904; } else { A_foo_1_424[instanceId_272] = value_904; }; } else { A_foo_2_120[instanceId_272] = value_904; }; } else { if (arrayIndex_650 <= 3) { A_foo_3_197[instanceId_272] = value_904; } else { A_foo_4_756[instanceId_272] = value_904; }; }; } else { if (arrayIndex_650 <= 7) { if (arrayIndex_650 <= 6) { if (arrayIndex_650 <= 5) { A_foo_5_377[instanceId_272] = value_904; } else { A_foo_6_804[instanceId_272] = value_904; }; } else { A_foo_7_763[instanceId_272] = value_904; }; } else { if (arrayIndex_650 <= 8) { A_foo_8_210[instanceId_272] = value_904; } else { A_foo_9_131[instanceId_272] = value_904; }; }; }; } else { if (arrayIndex_650 <= 14) { if (arrayIndex_650 <= 12) { if (arrayIndex_650 <= 11) { if (arrayIndex_650 <= 10) { A_foo_10_138[instanceId_272] = value_904; } else { A_foo_11_654[instanceId_272] = value_904; }; } else { A_foo_12_153[instanceId_272] = value_904; }; } else { if (arrayIndex_650 <= 13) { A_foo_13_322[instanceId_272] = value_904; } else { A_foo_14_486[instanceId_272] = value_904; }; }; } else { if (arrayIndex_650 <= 17) { if (arrayIndex_650 <= 16) { if (arrayIndex_650 <= 15) { A_foo_15_138[instanceId_272] = value_904; } else { A_foo_16_196[instanceId_272] = value_904; }; } else { A_foo_17_389[instanceId_272] = value_904; }; } else { if (arrayIndex_650 <= 18) { A_foo_18_204[instanceId_272] = value_904; } else { A_foo_19_360[instanceId_272] = value_904; }; }; }; }; }; } function A_foo_get862(integer index1501, integer index2160) returns integer { local integer returnVal154 if ((index2_160 < 0) or (index2_160 >= 20)) { error129("Index out of Bounds"); } else { if (index2_160 <= 9) { if (index2_160 <= 4) { if (index2_160 <= 2) { if (index2_160 <= 1) { if (index2_160 <= 0) { returnVal_154 = A_foo_0_110[index1_501]; } else { returnVal_154 = A_foo_1_424[index1_501]; }; } else { returnVal_154 = A_foo_2_120[index1_501]; }; } else { if (index2_160 <= 3) { returnVal_154 = A_foo_3_197[index1_501]; } else { returnVal_154 = A_foo_4_756[index1_501]; }; }; } else { if (index2_160 <= 7) { if (index2_160 <= 6) { if (index2_160 <= 5) { returnVal_154 = A_foo_5_377[index1_501]; } else { returnVal_154 = A_foo_6_804[index1_501]; }; } else { returnVal_154 = A_foo_7_763[index1_501]; }; } else { if (index2_160 <= 8) { returnVal_154 = A_foo_8_210[index1_501]; } else { returnVal_154 = A_foo_9_131[index1_501]; }; }; }; } else { if (index2_160 <= 14) { if (index2_160 <= 12) { if (index2_160 <= 11) { if (index2_160 <= 10) { returnVal_154 = A_foo_10_138[index1_501]; } else { returnVal_154 = A_foo_11_654[index1_501]; }; } else { returnVal_154 = A_foo_12_153[index1_501]; }; } else { if (index2_160 <= 13) { returnVal_154 = A_foo_13_322[index1_501]; } else { returnVal_154 = A_foo_14_486[index1_501]; }; }; } else { if (index2_160 <= 17) { if (index2_160 <= 16) { if (index2_160 <= 15) { returnVal_154 = A_foo_15_138[index1_501]; } else { returnVal_154 = A_foo_16_196[index1_501]; }; } else { returnVal_154 = A_foo_17_389[index1_501]; }; } else { if (index2_160 <= 18) { returnVal_154 = A_foo_18_204[index1_501]; } else { returnVal_154 = A_foo_19_360[index1_501]; }; }; }; }; }; return returnVal_154; }