integer Test_a690 array A_nextFree920 integer A_firstFree330 integer A_maxIndex187 array A_typeId174 integer Test_a690 = new_A197() integer A_firstFree330 = 0 integer A_maxIndex187 = 0 function initGlobals125() { } function main187() { initGlobals125(); Test_a_690 = new_A197(); EXECUTE foo133(); } function config764() { } IS_NATIVE function testSuccess402() { } function foo133() { local integer this157 this_157 = Test_a_690; if (A_typeId_174[this_157] == 0) { if (this_157 == 0) { error129("Nullpointer exception when calling A.bar"); } else { error129("Called A.bar on invalid object."); }; } else { }; testSuccess402(); } function new_A197() returns integer { local integer this416 if (A_firstFree_330 == 0) { if (A_maxIndex_187 < 32768) { A_maxIndex_187 = (A_maxIndex_187 + 1); this_416 = A_maxIndex_187; A_typeId_174[this_416] = 1; } else { error129("Out of memory: Could not create A."); this_416 = 0; }; } else { A_firstFree_330 = (A_firstFree_330 - 1); this_416 = A_nextFree_920[A_firstFree_330]; A_typeId_174[this_416] = 1; }; return this_416; } function error129(string msg212) { $debugPrint101((msg_212 + (" " + #getStackTrace()))); }