integer test_at179 array AssistTimestamps_nextFree155 integer AssistTimestamps_firstFree147 integer AssistTimestamps_maxIndex196 array AssistTimestamps_vals_0164 array AssistTimestamps_vals_1624 array AssistTimestamps_vals_2174 array AssistTimestamps_vals_3142 array AssistTimestamps_vals_4185 array AssistTimestamps_vals_5155 array AssistTimestamps_vals_6205 array AssistTimestamps_vals_7144 array AssistTimestamps_vals_8191 array AssistTimestamps_vals_9606 array AssistTimestamps_vals_10167 array AssistTimestamps_vals_11192 integer test_at179 = new_AssistTimestamps160() integer AssistTimestamps_firstFree147 = 0 integer AssistTimestamps_maxIndex196 = 0 function initGlobals681() { } function main206() { initGlobals681(); test_at_179 = new_AssistTimestamps160(); AssistTimestamps_vals_set915(test_at_179, 3, 42); if (AssistTimestamps_vals_get194(test_at_179, 4) == 0) { testSuccess163(); } else { }; } function config179() { } IS_NATIVE function testSuccess163() { } function new_AssistTimestamps160() returns integer { local integer this322 if (AssistTimestamps_firstFree_147 == 0) { if (AssistTimestamps_maxIndex_196 < 32768) { AssistTimestamps_maxIndex_196 = (AssistTimestamps_maxIndex_196 + 1); this_322 = AssistTimestamps_maxIndex_196; } else { error180("Out of memory: Could not create AssistTimestamps."); this_322 = 0; }; } else { AssistTimestamps_firstFree_147 = (AssistTimestamps_firstFree_147 - 1); this_322 = AssistTimestamps_nextFree_155[AssistTimestamps_firstFree_147]; }; return this_322; } function error180(string msg110) { $debugPrint134((msg_110 + (" " + #getStackTrace()))); } function AssistTimestamps_vals_set915(integer instanceId203, integer arrayIndex131, integer value999) { if ((arrayIndex_131 < 0) or (arrayIndex_131 >= 12)) { error180("Index out of Bounds"); } else { if (arrayIndex_131 <= 5) { if (arrayIndex_131 <= 2) { if (arrayIndex_131 <= 1) { if (arrayIndex_131 <= 0) { AssistTimestamps_vals_0_164[instanceId_203] = value_999; } else { AssistTimestamps_vals_1_624[instanceId_203] = value_999; }; } else { AssistTimestamps_vals_2_174[instanceId_203] = value_999; }; } else { if (arrayIndex_131 <= 4) { if (arrayIndex_131 <= 3) { AssistTimestamps_vals_3_142[instanceId_203] = value_999; } else { AssistTimestamps_vals_4_185[instanceId_203] = value_999; }; } else { AssistTimestamps_vals_5_155[instanceId_203] = value_999; }; }; } else { if (arrayIndex_131 <= 8) { if (arrayIndex_131 <= 7) { if (arrayIndex_131 <= 6) { AssistTimestamps_vals_6_205[instanceId_203] = value_999; } else { AssistTimestamps_vals_7_144[instanceId_203] = value_999; }; } else { AssistTimestamps_vals_8_191[instanceId_203] = value_999; }; } else { if (arrayIndex_131 <= 10) { if (arrayIndex_131 <= 9) { AssistTimestamps_vals_9_606[instanceId_203] = value_999; } else { AssistTimestamps_vals_10_167[instanceId_203] = value_999; }; } else { AssistTimestamps_vals_11_192[instanceId_203] = value_999; }; }; }; }; } function AssistTimestamps_vals_get194(integer index1204, integer index2179) returns integer { local integer returnVal184 if ((index2_179 < 0) or (index2_179 >= 12)) { error180("Index out of Bounds"); } else { if (index2_179 <= 5) { if (index2_179 <= 2) { if (index2_179 <= 1) { if (index2_179 <= 0) { returnVal_184 = AssistTimestamps_vals_0_164[index1_204]; } else { returnVal_184 = AssistTimestamps_vals_1_624[index1_204]; }; } else { returnVal_184 = AssistTimestamps_vals_2_174[index1_204]; }; } else { if (index2_179 <= 4) { if (index2_179 <= 3) { returnVal_184 = AssistTimestamps_vals_3_142[index1_204]; } else { returnVal_184 = AssistTimestamps_vals_4_185[index1_204]; }; } else { returnVal_184 = AssistTimestamps_vals_5_155[index1_204]; }; }; } else { if (index2_179 <= 8) { if (index2_179 <= 7) { if (index2_179 <= 6) { returnVal_184 = AssistTimestamps_vals_6_205[index1_204]; } else { returnVal_184 = AssistTimestamps_vals_7_144[index1_204]; }; } else { returnVal_184 = AssistTimestamps_vals_8_191[index1_204]; }; } else { if (index2_179 <= 10) { if (index2_179 <= 9) { returnVal_184 = AssistTimestamps_vals_9_606[index1_204]; } else { returnVal_184 = AssistTimestamps_vals_10_167[index1_204]; }; } else { returnVal_184 = AssistTimestamps_vals_11_192[index1_204]; }; }; }; }; return returnVal_184; }