array Person_nextFree197 integer Person_firstFree647 integer Person_maxIndex148 array Person_typeId414 array Person_name211 integer wurst_stack_depth808 array wurst_stack112 integer Person_firstFree647 = 0 integer Person_maxIndex148 = 0 integer wurst_stack_depth808 = 0 function initGlobals178() { } function main178() { initGlobals178(); init_test664("when calling init_test in Classes_method_implicit.wurst, line 1"); } function config552() { } function init_test664(string __wurst_stackPos125) { local integer p350 wurst_stack_112[wurst_stack_depth_808] = __wurst_stackPos_125; wurst_stack_depth_808 = (wurst_stack_depth_808 + 1); p_350 = new_Person149("peq", "when calling new_Person in Classes_method_implicit.wurst, line 25"); wurst_stack_112[wurst_stack_depth_808] = "when calling getName in Classes_method_implicit.wurst, line 26"; wurst_stack_depth_808 = (wurst_stack_depth_808 + 1); if (Person_typeId_414[p_350] == 0) { if (p_350 == 0) { error106("Nullpointer exception when calling Person.getName", "when calling error in Classes_method_implicit.wurst, line 14"); } else { error106("Called Person.getName on invalid object.", "when calling error in Classes_method_implicit.wurst, line 14"); }; } else { }; __wurst_stackPos_125 = Person_name_211[p_350]; wurst_stack_depth_808 = (wurst_stack_depth_808 - 1); if (__wurst_stackPos_125 != "peq") { testFail565("name != peq"); } else { wurst_stack_112[wurst_stack_depth_808] = "when calling setName in Classes_method_implicit.wurst, line 29"; wurst_stack_depth_808 = (wurst_stack_depth_808 + 1); if (Person_typeId_414[p_350] == 0) { if (p_350 == 0) { error106("Nullpointer exception when calling Person.setName", "when calling error in Classes_method_implicit.wurst, line 10"); } else { error106("Called Person.setName on invalid object.", "when calling error in Classes_method_implicit.wurst, line 10"); }; } else { }; Person_name_211[p_350] = "Frotty"; wurst_stack_depth_808 = (wurst_stack_depth_808 - 1); wurst_stack_112[wurst_stack_depth_808] = "when calling getName in Classes_method_implicit.wurst, line 30"; wurst_stack_depth_808 = (wurst_stack_depth_808 + 1); if (Person_typeId_414[p_350] == 0) { if (p_350 == 0) { error106("Nullpointer exception when calling Person.getName", "when calling error in Classes_method_implicit.wurst, line 14"); } else { error106("Called Person.getName on invalid object.", "when calling error in Classes_method_implicit.wurst, line 14"); }; } else { }; __wurst_stackPos_125 = Person_name_211[p_350]; wurst_stack_depth_808 = (wurst_stack_depth_808 - 1); if (__wurst_stackPos_125 == "Frotty") { testSuccess594(); } else { testFail565("name != Frotty."); }; }; wurst_stack_depth_808 = (wurst_stack_depth_808 - 1); } IS_NATIVE function testFail565(string msg116) { } IS_NATIVE function testSuccess594() { } function new_Person149(string n812, string __wurst_stackPos100) returns integer { local integer this115 wurst_stack_112[wurst_stack_depth_808] = __wurst_stackPos_100; wurst_stack_depth_808 = (wurst_stack_depth_808 + 1); wurst_stack_112[wurst_stack_depth_808] = "when calling alloc_Person in Classes_method_implicit.wurst, line 18"; wurst_stack_depth_808 = (wurst_stack_depth_808 + 1); if (Person_firstFree_647 == 0) { if (Person_maxIndex_148 < 32768) { Person_maxIndex_148 = (Person_maxIndex_148 + 1); this_115 = Person_maxIndex_148; Person_typeId_414[this_115] = 1; } else { error106("Out of memory: Could not create Person.", "when calling error in Classes_method_implicit.wurst, line 7"); this_115 = 0; }; } else { Person_firstFree_647 = (Person_firstFree_647 - 1); this_115 = Person_nextFree_197[Person_firstFree_647]; Person_typeId_414[this_115] = 1; }; wurst_stack_depth_808 = (wurst_stack_depth_808 - 1); Person_name_211[this_115] = n_812; wurst_stack_depth_808 = (wurst_stack_depth_808 - 1); return this_115; } function error106(string msg134, string __wurst_stackPos128) { local integer stacktraceIndex138 local integer stacktraceLimit205 wurst_stack_112[wurst_stack_depth_808] = __wurst_stackPos_128; wurst_stack_depth_808 = (wurst_stack_depth_808 + 1); __wurst_stackPos_128 = ""; stacktraceIndex_138 = wurst_stack_depth_808; stacktraceLimit_205 = 0; loop { stacktraceIndex_138 = (stacktraceIndex_138 - 1); stacktraceLimit_205 = (stacktraceLimit_205 + 1); exitwhen ((stacktraceLimit_205 > 20) or (stacktraceIndex_138 < 0)); __wurst_stackPos_128 = (__wurst_stackPos_128 + (" " + wurst_stack_112[stacktraceIndex_138])); }; $debugPrint274((msg_134 + (" " + __wurst_stackPos_128))); wurst_stack_depth_808 = (wurst_stack_depth_808 - 1); }