array C_nextFree163 integer C_firstFree183 integer C_maxIndex399 array C_typeId173 integer C_firstFree183 = 0 integer C_maxIndex399 = 0 function initGlobals131() { } function main153() { initGlobals131(); if (dispatch_C_test_C_bar783(new_D690()) == 4) { testSuccess210(); } else { }; } function config113() { } IS_NATIVE function testSuccess210() { } function new_D690() returns integer { local integer this208 local integer this125 if (C_firstFree_183 == 0) { if (C_maxIndex_399 < 32768) { C_maxIndex_399 = (C_maxIndex_399 + 1); this_125 = C_maxIndex_399; C_typeId_173[this_125] = 2; } else { error133("Out of memory: Could not create D."); this_125 = 0; }; } else { C_firstFree_183 = (C_firstFree_183 - 1); this_125 = C_nextFree_163[C_firstFree_183]; C_typeId_173[this_125] = 2; }; this_208 = this_125; return this_208; } function error133(string msg818) { $debugPrint947((msg_818 + (" " + #getStackTrace()))); } function dispatch_C_test_C_bar783(integer this143) returns integer { local integer test_C_bar_result350 local integer this933 local integer this165 local integer test_C_foo_result123 if (C_typeId_173[this_143] == 0) { if (this_143 == 0) { error133("Nullpointer exception when calling C.bar"); } else { error133("Called C.bar on invalid object."); }; } else { }; this_933 = this_143; this_165 = this_933; if (C_typeId_173[this_165] == 0) { if (this_165 == 0) { error133("Nullpointer exception when calling C.foo"); } else { error133("Called C.foo on invalid object."); }; } else { }; test_C_foo_result_123 = 3; test_C_bar_result_350 = (test_C_foo_result_123 + 1); return test_C_bar_result_350; }