array Person_nextFree208 integer Person_firstFree141 integer Person_maxIndex185 array Person_typeId178 array Person_name134 integer wurst_stack_depth177 array wurst_stack164 integer Person_firstFree141 = 0 integer Person_maxIndex185 = 0 integer wurst_stack_depth177 = 0 function initGlobals161() { } function main740() { initGlobals161(); init_test622("when calling init_test in Classes_method_implicit.wurst, line 1"); } function config113() { } function init_test622(string __wurst_stackPos139) { local integer p645 wurst_stack_164[wurst_stack_depth_177] = __wurst_stackPos_139; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); p_645 = new_Person191("peq", "when calling new_Person in Classes_method_implicit.wurst, line 25"); wurst_stack_164[wurst_stack_depth_177] = "when calling getName in Classes_method_implicit.wurst, line 26"; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); if (Person_typeId_178[p_645] == 0) { if (p_645 == 0) { error169("Nullpointer exception when calling Person.getName", "when calling error in Classes_method_implicit.wurst, line 14"); } else { error169("Called Person.getName on invalid object.", "when calling error in Classes_method_implicit.wurst, line 14"); }; } else { }; __wurst_stackPos_139 = Person_name_134[p_645]; wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); if (__wurst_stackPos_139 != "peq") { testFail146("name != peq"); } else { wurst_stack_164[wurst_stack_depth_177] = "when calling setName in Classes_method_implicit.wurst, line 29"; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); if (Person_typeId_178[p_645] == 0) { if (p_645 == 0) { error169("Nullpointer exception when calling Person.setName", "when calling error in Classes_method_implicit.wurst, line 10"); } else { error169("Called Person.setName on invalid object.", "when calling error in Classes_method_implicit.wurst, line 10"); }; } else { }; Person_name_134[p_645] = "Frotty"; wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); wurst_stack_164[wurst_stack_depth_177] = "when calling getName in Classes_method_implicit.wurst, line 30"; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); if (Person_typeId_178[p_645] == 0) { if (p_645 == 0) { error169("Nullpointer exception when calling Person.getName", "when calling error in Classes_method_implicit.wurst, line 14"); } else { error169("Called Person.getName on invalid object.", "when calling error in Classes_method_implicit.wurst, line 14"); }; } else { }; __wurst_stackPos_139 = Person_name_134[p_645]; wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); if (__wurst_stackPos_139 == "Frotty") { testSuccess201(); } else { testFail146("name != Frotty."); }; }; wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); } IS_NATIVE function testFail146(string msg434) { } IS_NATIVE function testSuccess201() { } function new_Person191(string n168, string __wurst_stackPos560) returns integer { local integer this869 wurst_stack_164[wurst_stack_depth_177] = __wurst_stackPos_560; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); wurst_stack_164[wurst_stack_depth_177] = "when calling alloc_Person in Classes_method_implicit.wurst, line 18"; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); if (Person_firstFree_141 == 0) { if (Person_maxIndex_185 < 32768) { Person_maxIndex_185 = (Person_maxIndex_185 + 1); this_869 = Person_maxIndex_185; Person_typeId_178[this_869] = 1; } else { error169("Out of memory: Could not create Person.", "when calling error in Classes_method_implicit.wurst, line 7"); this_869 = 0; }; } else { Person_firstFree_141 = (Person_firstFree_141 - 1); this_869 = Person_nextFree_208[Person_firstFree_141]; Person_typeId_178[this_869] = 1; }; wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); Person_name_134[this_869] = n_168; wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); return this_869; } function error169(string msg367, string __wurst_stackPos905) { local integer stacktraceIndex204 local integer stacktraceLimit850 wurst_stack_164[wurst_stack_depth_177] = __wurst_stackPos_905; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); __wurst_stackPos_905 = ""; stacktraceIndex_204 = wurst_stack_depth_177; stacktraceLimit_850 = 0; loop { stacktraceIndex_204 = (stacktraceIndex_204 - 1); stacktraceLimit_850 = (stacktraceLimit_850 + 1); exitwhen ((stacktraceLimit_850 > 20) or (stacktraceIndex_204 < 0)); __wurst_stackPos_905 = (__wurst_stackPos_905 + (" " + wurst_stack_164[stacktraceIndex_204])); }; $debugPrint197((msg_367 + (" " + __wurst_stackPos_905))); wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); }