Repository navigation
Closed
Labels
Description
Compiling ebr with -inline -localOptimizations produces this function
Jass
function cyc_MemoryAccessPedestal_closure_impl takes integer funcChoice, integer this_155, integer cb_5, string key, integer parser, integer finalCallback_2 returns nothing
local integer receiver
local integer temp
local integer temp_2
local integer this_156
local integer this_157
local integer LinkedList_LLIterator_next_result
local integer this_158
local player showTo
local integer this_159
local integer LinkedList_LinkedList_staticItr_result
local integer this_160
local integer this_161
local integer list
local integer json
local integer obj_3
local real Json_Json_getReal_result
local real Json_Json_getReal_result_2
local integer Json_Json_getInt_result
local player showTo_2
local integer this_162
local integer this_163
local integer receiver_2
local integer Json_Json_getString_result
local integer this_164
local integer encoded
local player showTo_3
local integer this_165
local integer this_166
local player showTo_4
local integer this_167
local integer this_168
local integer this_169
local boolean andLeft
local integer temp_3
local player showTo_5
local integer this_170
local integer this_171
local player showTo_6
local integer this_172
local integer td_3
local integer bs_5
local player showTo_7
local integer LinkedList_LinkedList_staticItr_result_2
local integer this_173
local integer receiver_3
local player showTo_8
local integer json_2
local integer this_174
local integer this_175
local integer temp_4
local integer temp_5
local integer temp_6
local integer temp_7
local player showTo_9
local integer this_176
local integer this_177
local integer this_178
local integer this_179
local player showTo_10
local integer this_180
local integer list_2
local integer receiver_4
local integer temp_8
local integer temp_9
local player showTo_11
local integer this_181
local integer this_182
local integer LinkedList_LLIterator_next_result_2
local string msg
local player showTo_12
local integer this_183
local player showTo_13
local integer this_184
local integer this_185
local integer this_186
local player showTo_14
local integer this_187
local player showTo_15
local integer this_188
local player showTo_16
local integer this_189
local player showTo_17
local integer cond_result
local integer this_190
local player showTo_18
local integer this_191
local integer list_3
if funcChoice == 0 then
set this_156 = MemoryAccessPedestal_itr[this_116[this_155]]
if LLIterator_typeId[this_156] == 0 then
if this_156 == 0 then
call error("Nullpointer exception when calling LLIterator.hasNext")
else
call error("Called LLIterator.hasNext on invalid object.")
endif
endif
if LLEntry_next[LLIterator_current[this_156]] != LLIterator_dummy[this_156] then
call dispatch_BigString_BigString_BigString_reset(MemoryAccessPedestal_bs[this_116[this_155]])
set this_157 = MemoryAccessPedestal_itr[this_116[this_155]]
if LLIterator_typeId[this_157] == 0 then
if this_157 == 0 then
call error("Nullpointer exception when calling LLIterator.next")
else
call error("Called LLIterator.next on invalid object.")
endif
endif
set LLIterator_current[this_157] = LLEntry_next[LLIterator_current[this_157]]
set LinkedList_LLIterator_next_result = LLEntry_elem[LLIterator_current[this_157]]
set BigSubString_next[LinkedList_LLIterator_next_result] = 0
set temp = MemoryAccessPedestal_listparser[this_116[this_155]]
set receiver = MemoryAccessPedestal_bs[this_116[this_155]]
call dispatch_BigString_BigString_BigString_addSubString(receiver, LinkedList_LLIterator_next_result)
call dispatch_JsonParser_JsonParser_JsonParser_setInput(temp, receiver)
set temp_2 = MemoryAccessPedestal_listparser[this_116[this_155]]
if PayloadCallback_firstFree == 0 then
if PayloadCallback_maxIndex < 32768 then
set PayloadCallback_maxIndex = PayloadCallback_maxIndex + 1
set this_158 = PayloadCallback_maxIndex
set PayloadCallback_typeId[this_158] = 1015
else
call error("Out of memory: Could not create Closure.")
set this_158 = 0
endif
else
set PayloadCallback_firstFree = PayloadCallback_firstFree - 1
set this_158 = PayloadCallback_nextFree[PayloadCallback_firstFree]
set PayloadCallback_typeId[this_158] = 1015
endif
set PayloadCallback_customData[this_158] = 0
set this_113[this_158] = this_116[this_155]
set cb[this_158] = cb_5
if JsonParser_typeId[temp_2] == 0 then
if temp_2 == 0 then
call error("Nullpointer exception when calling JsonParser.parse")
else
call error("Called JsonParser.parse on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(6, temp_2, this_158, null, 0, 0)
else
call texttag_center(FText_tt[MemoryAccessPedestal_ttag[this_116[this_155]]], Entity_pos_x[this_116[this_155]], Entity_pos_y[this_116[this_155]], Entity_pos_z[this_116[this_155]], "|cff0884CEEntites loaded!", 10.)
set showTo = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo, 0., 0., 45., Loglevel_getTag(1) + " - " + "entities loaded")
endif
if CallbackSingle_firstFree == 0 then
if CallbackSingle_maxIndex < 32768 then
set CallbackSingle_maxIndex = CallbackSingle_maxIndex + 1
set this_159 = CallbackSingle_maxIndex
set CallbackSingle_typeId[this_159] = 699
else
call error("Out of memory: Could not create Closure.")
set this_159 = 0
endif
else
set CallbackSingle_firstFree = CallbackSingle_firstFree - 1
set this_159 = CallbackSingle_nextFree[CallbackSingle_firstFree]
set CallbackSingle_typeId[this_159] = 699
endif
set this_115[this_159] = this_116[this_155]
call dispatch_CallbackSingle_ClosureTimers_CallbackSingle_start(this_159, 0.5)
endif
elseif funcChoice == 1 then
call texttag_center(FText_tt[MemoryAccessPedestal_ttag[this_155]], Entity_pos_x[this_155], Entity_pos_y[this_155], Entity_pos_z[this_155], "|cff0884CEloading Entities...", 10.)
if LinkedList_typeId[cb_5] == 0 then
if cb_5 == 0 then
call error("Nullpointer exception when calling LinkedList.staticItr")
else
call error("Called LinkedList.staticItr on invalid object.")
endif
endif
set LinkedList_LinkedList_staticItr_result = LinkedList_staticItr_2(cb_5)
set MemoryAccessPedestal_itr[this_155] = LinkedList_LinkedList_staticItr_result
if PayloadCallback_firstFree == 0 then
if PayloadCallback_maxIndex < 32768 then
set PayloadCallback_maxIndex = PayloadCallback_maxIndex + 1
set this_160 = PayloadCallback_maxIndex
set PayloadCallback_typeId[this_160] = 1014
else
call error("Out of memory: Could not create Closure.")
set this_160 = 0
endif
else
set PayloadCallback_firstFree = PayloadCallback_firstFree - 1
set this_160 = PayloadCallback_nextFree[PayloadCallback_firstFree]
set PayloadCallback_typeId[this_160] = 1014
endif
set PayloadCallback_customData[this_160] = 0
set this_116[this_160] = this_155
if PayloadCallback_typeId[this_160] == 0 then
if this_160 == 0 then
call error("Nullpointer exception when calling PayloadCallback.doStep")
else
call error("Called PayloadCallback.doStep on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(2, this_160, this_160, null, 0, 0)
elseif funcChoice == 2 then
if PayloadCallback_typeId[this_155] == 0 then
if this_155 == 0 then
call error("Nullpointer exception when calling PayloadCallback.onExecute")
else
call error("Called PayloadCallback.onExecute on invalid object.")
endif
endif
if PayloadCallback_typeId[this_155] <= 1012 then
if PayloadCallback_typeId[this_155] <= 1008 then
if PayloadCallback_typeId[this_155] <= 1006 then
if PayloadCallback_typeId[this_155] <= 1005 then
call cyc_MemoryAccessPedestal_closure_impl(15, this_155, cb_5, null, 0, 0)
else
call cyc_MemoryAccessPedestal_closure_impl(14, this_155, cb_5, null, 0, 0)
endif
elseif PayloadCallback_typeId[this_155] <= 1007 then
call LZW_closure_impl_2(this_155, cb_5)
else
call cyc_MemoryAccessPedestal_closure_impl(5, this_155, cb_5, null, 0, 0)
endif
elseif PayloadCallback_typeId[this_155] <= 1010 then
if PayloadCallback_typeId[this_155] <= 1009 then
call LZW_closure_impl_3(this_155, cb_5)
else
call cyc_MemoryAccessPedestal_closure_impl(7, this_155, cb_5, null, 0, 0)
endif
elseif PayloadCallback_typeId[this_155] <= 1011 then
call cyc_MemoryAccessPedestal_closure_impl(11, this_155, cb_5, null, 0, 0)
else
set this_161 = ref[this_155]
set list = JsonParser_outputList[MemoryAccessPedestal_listparser[ref[this_155]]]
if Serializable_typeId[this_161] == 0 then
if this_161 == 0 then
call error("Nullpointer exception when calling MemoryAccessPedestal.loadEntities")
else
call error("Called MemoryAccessPedestal.loadEntities on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(1, this_161, list, null, 0, 0)
endif
elseif PayloadCallback_typeId[this_155] <= 1016 then
if PayloadCallback_typeId[this_155] <= 1014 then
if PayloadCallback_typeId[this_155] <= 1013 then
call cyc_MemoryAccessPedestal_closure_impl(12, this_155, cb_5, null, 0, 0)
else
call cyc_MemoryAccessPedestal_closure_impl(0, this_155, cb_5, null, 0, 0)
endif
elseif PayloadCallback_typeId[this_155] <= 1015 then
call cyc_MemoryAccessPedestal_closure_impl(3, this_155, cb_5, null, 0, 0)
else
call cyc_MemoryAccessPedestal_closure_impl(16, this_155, cb_5, null, 0, 0)
endif
elseif PayloadCallback_typeId[this_155] <= 1018 then
if PayloadCallback_typeId[this_155] <= 1017 then
call cyc_MemoryAccessPedestal_closure_impl(13, this_155, cb_5, null, 0, 0)
else
call cyc_MemoryAccessPedestal_closure_impl(10, this_155, cb_5, null, 0, 0)
endif
endif
elseif funcChoice == 3 then
set json = JsonParser_output[MemoryAccessPedestal_listparser[this_113[this_155]]]
if Json_typeId[json] == 0 then
if json == 0 then
call error("Nullpointer exception when calling Json.getReal")
else
call error("Called Json.getReal on invalid object.")
endif
endif
if Json_typeId[json] == 0 then
if json == 0 then
call error("Nullpointer exception when calling Json.getInt")
else
call error("Called Json.getInt on invalid object.")
endif
endif
set Json_Json_getReal_result = Json_getInt(json, "x") * 1.
if Json_typeId[json] == 0 then
if json == 0 then
call error("Nullpointer exception when calling Json.getReal")
else
call error("Called Json.getReal on invalid object.")
endif
endif
if Json_typeId[json] == 0 then
if json == 0 then
call error("Nullpointer exception when calling Json.getInt")
else
call error("Called Json.getInt on invalid object.")
endif
endif
set Json_Json_getReal_result_2 = Json_getInt(json, "y") * 1.
if Json_typeId[json] == 0 then
if json == 0 then
call error("Nullpointer exception when calling Json.getInt")
else
call error("Called Json.getInt on invalid object.")
endif
endif
set Json_Json_getInt_result = Json_getInt(json, "t")
set obj_3 = newObjectFromId(Entity_owner[this_113[this_155]], Entity_serializeOrigin_x + Json_Json_getReal_result, Entity_serializeOrigin_y + Json_Json_getReal_result_2, Json_Json_getInt_result)
if obj_3 != 0 then
call dispatch_Entity_Entity_Entity_deserialize(obj_3, JsonParser_output[MemoryAccessPedestal_listparser[this_113[this_155]]])
else
set showTo_2 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_2, 0., 0., 45., Loglevel_getTag(1) + " - " + "couldn't fine serializable type")
endif
endif
set this_162 = JsonParser_output[MemoryAccessPedestal_listparser[this_113[this_155]]]
if Json_typeId[this_162] == 0 then
if this_162 == 0 then
call error("Nullpointer exception when calling Json.reset")
else
call error("Called Json.reset on invalid object.")
endif
endif
call Json_reset(this_162)
set this_163 = cb[this_155]
if PayloadCallback_typeId[this_163] == 0 then
if this_163 == 0 then
call error("Nullpointer exception when calling PayloadCallback.doStep")
else
call error("Called PayloadCallback.doStep on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(2, this_163, this_163, null, 0, 0)
elseif funcChoice == 4 then
if Json_typeId[this_155] == 0 then
if this_155 == 0 then
call error("Nullpointer exception when calling Json.getString")
else
call error("Called Json.getString on invalid object.")
endif
endif
set Json_Json_getString_result = Json_getString(this_155, key)
set BigSubString_next[Json_Json_getString_result] = 0
set PayloadCallback_customData[finalCallback_2] = parser
set receiver_2 = new_BigString()
call dispatch_BigString_BigString_BigString_addSubString(receiver_2, Json_Json_getString_result)
call dispatch_JsonParser_JsonParser_JsonParser_setInput(parser, receiver_2)
if Printing_config_DEBUG_LEVEL == 0 then
set this_164 = JsonParser_bigInput[parser]
if BigString_typeId[this_164] == 0 then
if this_164 == 0 then
call error("Nullpointer exception when calling BigString.debugPrint")
else
call error("Called BigString.debugPrint on invalid object.")
endif
endif
call BigString_debugPrint(this_164)
endif
if JsonParser_typeId[parser] == 0 then
if parser == 0 then
call error("Nullpointer exception when calling JsonParser.parseList")
else
call error("Called JsonParser.parseList on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(8, parser, finalCallback_2, null, 0, 0)
elseif funcChoice == 5 then
set showTo_3 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_3, 0., 0., 45., Loglevel_getTag(1) + " - " + "positions encoded")
endif
set encoded = PayloadCallback_customData[cb_5]
if BigString_typeId[encoded] == 0 then
if encoded == 0 then
call error("Nullpointer exception when calling BigString.debugPrint")
else
call error("Called BigString.debugPrint on invalid object.")
endif
endif
call BigString_debugPrint(encoded)
set PayloadCallback_customData[onFinish_9[this_155]] = encoded
set this_165 = onFinish_9[this_155]
if PayloadCallback_typeId[this_165] == 0 then
if this_165 == 0 then
call error("Nullpointer exception when calling PayloadCallback.doStep")
else
call error("Called PayloadCallback.doStep on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(2, this_165, this_165, null, 0, 0)
elseif funcChoice == 6 then
if JsonParser_bigInput[this_155] == 0 then
set andLeft = true
else
set this_166 = JsonParser_bigInput[this_155]
if BigString_typeId[this_166] == 0 then
if this_166 == 0 then
call error("Nullpointer exception when calling BigString.getLength")
else
call error("Called BigString.getLength on invalid object.")
endif
endif
set andLeft = BigString_length[this_166] - BigString_startoffset[this_166] <= 0
endif
if andLeft then
set showTo_4 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_4, 0., 0., 45., Loglevel_getTag(1) + " - " + "skip empty input")
endif
if PayloadCallback_typeId[cb_5] == 0 then
if cb_5 == 0 then
call error("Nullpointer exception when calling PayloadCallback.doStep")
else
call error("Called PayloadCallback.doStep on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(2, cb_5, cb_5, null, 0, 0)
set showTo = null
set showTo_2 = null
set showTo_3 = null
set showTo_4 = null
set showTo_5 = null
set showTo_6 = null
set showTo_7 = null
set showTo_8 = null
set showTo_9 = null
set showTo_10 = null
set showTo_11 = null
set showTo_12 = null
set showTo_13 = null
set showTo_14 = null
set showTo_15 = null
set showTo_16 = null
set showTo_17 = null
set showTo_18 = null
return
endif
set this_167 = JsonParser_bigInput[this_155]
if BigString_typeId[this_167] == 0 then
if this_167 == 0 then
call error("Nullpointer exception when calling BigString.debugPrint")
else
call error("Called BigString.debugPrint on invalid object.")
endif
endif
call BigString_debugPrint(this_167)
set this_168 = JsonParser_output[this_155]
if Json_typeId[this_168] == 0 then
if this_168 == 0 then
call error("Nullpointer exception when calling Json.reset")
else
call error("Called Json.reset on invalid object.")
endif
endif
call Json_reset(this_168)
if SeqCallback_firstFree == 0 then
if SeqCallback_maxIndex < 32768 then
set SeqCallback_maxIndex = SeqCallback_maxIndex + 1
set this_169 = SeqCallback_maxIndex
set SeqCallback_typeId[this_169] = 1092
else
call error("Out of memory: Could not create Closure.")
set this_169 = 0
endif
else
set SeqCallback_firstFree = SeqCallback_firstFree - 1
set this_169 = SeqCallback_nextFree[SeqCallback_firstFree]
set SeqCallback_typeId[this_169] = 1092
endif
set SeqCallback_done[this_169] = false
set SeqCallback_ref[this_169] = null
set this_66[this_169] = this_155
set callback[this_169] = cb_5
call doSeq(this_169)
elseif funcChoice == 7 then
set showTo_5 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_5, 0., 0., 45., Loglevel_getTag(1) + " - " + "on finish decompress")
endif
call dispatch_JsonParser_JsonParser_JsonParser_setInput(MemoryAccessPedestal_parser[ref_4[this_155]], PayloadCallback_customData[cb_5])
set temp_3 = MemoryAccessPedestal_parser[ref_4[this_155]]
if PayloadCallback_firstFree == 0 then
if PayloadCallback_maxIndex < 32768 then
set PayloadCallback_maxIndex = PayloadCallback_maxIndex + 1
set this_170 = PayloadCallback_maxIndex
set PayloadCallback_typeId[this_170] = 1011
else
call error("Out of memory: Could not create Closure.")
set this_170 = 0
endif
else
set PayloadCallback_firstFree = PayloadCallback_firstFree - 1
set this_170 = PayloadCallback_nextFree[PayloadCallback_firstFree]
set PayloadCallback_typeId[this_170] = 1011
endif
set PayloadCallback_customData[this_170] = 0
set ref_3[this_170] = ref_4[this_155]
if JsonParser_typeId[temp_3] == 0 then
if temp_3 == 0 then
call error("Nullpointer exception when calling JsonParser.parse")
else
call error("Called JsonParser.parse on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(6, temp_3, this_170, null, 0, 0)
elseif funcChoice == 8 then
if JsonParser_outputList[this_155] != 0 then
call dispatch_LinkedList_destroyLinkedList(JsonParser_outputList[this_155])
endif
set JsonParser_outputList[this_155] = new_LinkedList()
set this_171 = JsonParser_bigInput[this_155]
if BigString_typeId[this_171] == 0 then
if this_171 == 0 then
call error("Nullpointer exception when calling BigString.getLength")
else
call error("Called BigString.getLength on invalid object.")
endif
endif
if BigString_length[this_171] - BigString_startoffset[this_171] <= 2 then
set showTo_6 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_6, 0., 0., 45., Loglevel_getTag(1) + " - " + "skip empty list")
endif
if PayloadCallback_typeId[cb_5] == 0 then
if cb_5 == 0 then
call error("Nullpointer exception when calling PayloadCallback.doStep")
else
call error("Called PayloadCallback.doStep on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(2, cb_5, cb_5, null, 0, 0)
else
if SeqCallback_firstFree == 0 then
if SeqCallback_maxIndex < 32768 then
set SeqCallback_maxIndex = SeqCallback_maxIndex + 1
set this_172 = SeqCallback_maxIndex
set SeqCallback_typeId[this_172] = 1091
else
call error("Out of memory: Could not create Closure.")
set this_172 = 0
endif
else
set SeqCallback_firstFree = SeqCallback_firstFree - 1
set this_172 = SeqCallback_nextFree[SeqCallback_firstFree]
set SeqCallback_typeId[this_172] = 1091
endif
set SeqCallback_done[this_172] = false
set SeqCallback_ref[this_172] = null
set this_65[this_172] = this_155
set finalCallback[this_172] = cb_5
call doSeq(this_172)
endif
elseif funcChoice == 9 then
set showTo_7 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_7, 0., 0., 45., Loglevel_getTag(1) + " - " + "load tiles2")
endif
call texttag_center(FText_tt[MemoryAccessPedestal_ttag[this_155]], Entity_pos_x[this_155], Entity_pos_y[this_155], Entity_pos_z[this_155], "|cff0884CEloading Tiles...", 10.)
set td_3 = new_TileData()
set bs_5 = new_BigString()
set TileData_owner[td_3] = Entity_owner[this_155]
if LinkedList_typeId[cb_5] == 0 then
if cb_5 == 0 then
call error("Nullpointer exception when calling LinkedList.staticItr")
else
call error("Called LinkedList.staticItr on invalid object.")
endif
endif
set LinkedList_LinkedList_staticItr_result_2 = LinkedList_staticItr_2(cb_5)
if PayloadCallback_firstFree == 0 then
if PayloadCallback_maxIndex < 32768 then
set PayloadCallback_maxIndex = PayloadCallback_maxIndex + 1
set this_173 = PayloadCallback_maxIndex
set PayloadCallback_typeId[this_173] = 1017
else
call error("Out of memory: Could not create Closure.")
set this_173 = 0
endif
else
set PayloadCallback_firstFree = PayloadCallback_firstFree - 1
set this_173 = PayloadCallback_nextFree[PayloadCallback_firstFree]
set PayloadCallback_typeId[this_173] = 1017
endif
set PayloadCallback_customData[this_173] = 0
set itr_3[this_173] = LinkedList_LinkedList_staticItr_result_2
set bs_4[this_173] = bs_5
set this_118[this_173] = this_155
set td_2[this_173] = td_3
if PayloadCallback_typeId[this_173] == 0 then
if this_173 == 0 then
call error("Nullpointer exception when calling PayloadCallback.doStep")
else
call error("Called PayloadCallback.doStep on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(2, this_173, this_173, null, 0, 0)
elseif funcChoice == 10 then
set showTo_8 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_8, 0., 0., 45., Loglevel_getTag(1) + " - " + "doSeq loadTile2s")
endif
set receiver_3 = td[this_155]
set json_2 = JsonParser_output[MemoryAccessPedestal_parser[this_117[this_155]]]
if Serializable_typeId[receiver_3] == 0 then
if receiver_3 == 0 then
call error("Nullpointer exception when calling TileData.deserialize")
else
call error("Called TileData.deserialize on invalid object.")
endif
endif
call TileData_deserialize(receiver_3, json_2)
set this_174 = JsonParser_output[MemoryAccessPedestal_parser[this_117[this_155]]]
if Json_typeId[this_174] == 0 then
if this_174 == 0 then
call error("Nullpointer exception when calling Json.reset")
else
call error("Called Json.reset on invalid object.")
endif
endif
call Json_reset(this_174)
set this_175 = cb1[this_155]
if PayloadCallback_typeId[this_175] == 0 then
if this_175 == 0 then
call error("Nullpointer exception when calling PayloadCallback.doStep")
else
call error("Called PayloadCallback.doStep on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(2, this_175, this_175, null, 0, 0)
elseif funcChoice == 11 then
set showTo_9 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_9, 0., 0., 45., Loglevel_getTag(1) + " - " + "on finish parse")
endif
set this_176 = JsonParser_output[MemoryAccessPedestal_parser[ref_3[this_155]]]
if Json_typeId[this_176] == 0 then
if this_176 == 0 then
call error("Nullpointer exception when calling Json.hasKey")
else
call error("Called Json.hasKey on invalid object.")
endif
endif
if Json_hasKey(this_176, "e") then
set temp_4 = JsonParser_output[MemoryAccessPedestal_parser[ref_3[this_155]]]
set temp_5 = MemoryAccessPedestal_listparser[ref_3[this_155]]
if PayloadCallback_firstFree == 0 then
if PayloadCallback_maxIndex < 32768 then
set PayloadCallback_maxIndex = PayloadCallback_maxIndex + 1
set this_177 = PayloadCallback_maxIndex
set PayloadCallback_typeId[this_177] = 1012
else
call error("Out of memory: Could not create Closure.")
set this_177 = 0
endif
else
set PayloadCallback_firstFree = PayloadCallback_firstFree - 1
set this_177 = PayloadCallback_nextFree[PayloadCallback_firstFree]
set PayloadCallback_typeId[this_177] = 1012
endif
set PayloadCallback_customData[this_177] = 0
set ref[this_177] = ref_3[this_155]
if Json_typeId[temp_4] == 0 then
if temp_4 == 0 then
call error("Nullpointer exception when calling Json.getStringList")
else
call error("Called Json.getStringList on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(4, temp_4, 0, "e", temp_5, this_177)
else
set this_178 = JsonParser_output[MemoryAccessPedestal_parser[ref_3[this_155]]]
if Json_typeId[this_178] == 0 then
if this_178 == 0 then
call error("Nullpointer exception when calling Json.hasKey")
else
call error("Called Json.hasKey on invalid object.")
endif
endif
if Json_hasKey(this_178, "t") then
set temp_6 = JsonParser_output[MemoryAccessPedestal_parser[ref_3[this_155]]]
set temp_7 = MemoryAccessPedestal_listparser[ref_3[this_155]]
if PayloadCallback_firstFree == 0 then
if PayloadCallback_maxIndex < 32768 then
set PayloadCallback_maxIndex = PayloadCallback_maxIndex + 1
set this_179 = PayloadCallback_maxIndex
set PayloadCallback_typeId[this_179] = 1013
else
call error("Out of memory: Could not create Closure.")
set this_179 = 0
endif
else
set PayloadCallback_firstFree = PayloadCallback_firstFree - 1
set this_179 = PayloadCallback_nextFree[PayloadCallback_firstFree]
set PayloadCallback_typeId[this_179] = 1013
endif
set PayloadCallback_customData[this_179] = 0
set ref_2[this_179] = ref_3[this_155]
if Json_typeId[temp_6] == 0 then
if temp_6 == 0 then
call error("Nullpointer exception when calling Json.getStringList")
else
call error("Called Json.getStringList on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(4, temp_6, 0, "t", temp_7, this_179)
endif
endif
elseif funcChoice == 12 then
set showTo_10 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_10, 0., 0., 45., Loglevel_getTag(1) + " - " + "load tiles1")
endif
set this_180 = ref_2[this_155]
set list_2 = JsonParser_outputList[PayloadCallback_customData[cb_5]]
if Serializable_typeId[this_180] == 0 then
if this_180 == 0 then
call error("Nullpointer exception when calling MemoryAccessPedestal.loadTiles")
else
call error("Called MemoryAccessPedestal.loadTiles on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(9, this_180, list_2, null, 0, 0)
elseif funcChoice == 13 then
set showTo_11 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_11, 0., 0., 45., Loglevel_getTag(1) + " - " + "doSeq loadTiles")
endif
set this_181 = itr_3[this_155]
if LLIterator_typeId[this_181] == 0 then
if this_181 == 0 then
call error("Nullpointer exception when calling LLIterator.hasNext")
else
call error("Called LLIterator.hasNext on invalid object.")
endif
endif
if LLEntry_next[LLIterator_current[this_181]] != LLIterator_dummy[this_181] then
call dispatch_BigString_BigString_BigString_reset(bs_4[this_155])
set this_182 = itr_3[this_155]
if LLIterator_typeId[this_182] == 0 then
if this_182 == 0 then
call error("Nullpointer exception when calling LLIterator.next")
else
call error("Called LLIterator.next on invalid object.")
endif
endif
set LLIterator_current[this_182] = LLEntry_next[LLIterator_current[this_182]]
set LinkedList_LLIterator_next_result_2 = LLEntry_elem[LLIterator_current[this_182]]
set BigSubString_next[LinkedList_LLIterator_next_result_2] = 0
if BigSubString_typeId[LinkedList_LLIterator_next_result_2] == 0 then
if LinkedList_LLIterator_next_result_2 == 0 then
call error("Nullpointer exception when calling BigSubString.getCombined")
else
call error("Called BigSubString.getCombined on invalid object.")
endif
endif
set msg = "doSeq loadTiles1: " + BigSubString_getCombined(LinkedList_LLIterator_next_result_2)
set showTo_12 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_12, 0., 0., 45., Loglevel_getTag(1) + " - " + msg)
endif
set temp_8 = MemoryAccessPedestal_parser[this_118[this_155]]
set receiver_4 = bs_4[this_155]
call dispatch_BigString_BigString_BigString_addSubString(receiver_4, LinkedList_LLIterator_next_result_2)
call dispatch_JsonParser_JsonParser_JsonParser_setInput(temp_8, receiver_4)
set temp_9 = MemoryAccessPedestal_parser[this_118[this_155]]
if PayloadCallback_firstFree == 0 then
if PayloadCallback_maxIndex < 32768 then
set PayloadCallback_maxIndex = PayloadCallback_maxIndex + 1
set this_183 = PayloadCallback_maxIndex
set PayloadCallback_typeId[this_183] = 1018
else
call error("Out of memory: Could not create Closure.")
set this_183 = 0
endif
else
set PayloadCallback_firstFree = PayloadCallback_firstFree - 1
set this_183 = PayloadCallback_nextFree[PayloadCallback_firstFree]
set PayloadCallback_typeId[this_183] = 1018
endif
set PayloadCallback_customData[this_183] = 0
set td[this_183] = td_2[this_155]
set this_117[this_183] = this_118[this_155]
set cb1[this_183] = cb_5
if JsonParser_typeId[temp_9] == 0 then
if temp_9 == 0 then
call error("Nullpointer exception when calling JsonParser.parse")
else
call error("Called JsonParser.parse on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(6, temp_9, this_183, null, 0, 0)
else
set showTo_13 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_13, 0., 0., 45., Loglevel_getTag(1) + " - " + "load finished")
endif
call texttag_center(FText_tt[MemoryAccessPedestal_ttag[this_118[this_155]]], Entity_pos_x[this_118[this_155]], Entity_pos_y[this_118[this_155]], Entity_pos_z[this_118[this_155]], "|cffFFBD21load finished!", 10.)
set this_184 = td_2[this_155]
if Serializable_typeId[this_184] == 0 then
if this_184 == 0 then
call error("Nullpointer exception when calling TileData.TileData")
else
call error("Called TileData.TileData on invalid object.")
endif
endif
call destroyTileData(this_184)
call PauseUnit(UnitEntity_actor[this_118[this_155]], false)
endif
set showTo = null
set showTo_2 = null
set showTo_3 = null
set showTo_4 = null
set showTo_5 = null
set showTo_6 = null
set showTo_7 = null
set showTo_8 = null
set showTo_9 = null
set showTo_10 = null
set showTo_11 = null
set showTo_12 = null
set showTo_13 = null
set showTo_14 = null
set showTo_15 = null
set showTo_16 = null
set showTo_17 = null
set showTo_18 = null
return
elseif funcChoice == 14 then
set PayloadCallback_customData[onFinish_4[this_155]] = PayloadCallback_customData[cb_5]
set this_185 = encoder[this_155]
if Encoder_typeId[this_185] == 0 then
if this_185 == 0 then
call error("Nullpointer exception when calling Encoder.Encoder")
else
call error("Called Encoder.Encoder on invalid object.")
endif
endif
call destroyEncoder(this_185)
set this_186 = onFinish_4[this_155]
if PayloadCallback_typeId[this_186] == 0 then
if this_186 == 0 then
call error("Nullpointer exception when calling PayloadCallback.doStep")
else
call error("Called PayloadCallback.doStep on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(2, this_186, this_186, null, 0, 0)
elseif funcChoice == 15 then
set showTo_14 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_14, 0., 0., 45., Loglevel_getTag(1) + " - " + "loaded..")
endif
if ForForceCallback_firstFree == 0 then
if ForForceCallback_maxIndex < 32768 then
set ForForceCallback_maxIndex = ForForceCallback_maxIndex + 1
set this_187 = ForForceCallback_maxIndex
set ForForceCallback_typeId[this_187] = 828
else
call error("Out of memory: Could not create Closure.")
set this_187 = 0
endif
else
set ForForceCallback_firstFree = ForForceCallback_firstFree - 1
set this_187 = ForForceCallback_nextFree[ForForceCallback_firstFree]
set ForForceCallback_typeId[this_187] = 828
endif
set this_37[this_187] = this_40[this_155]
if not try(this_187) then
call error("execute: thread has crashed. caused by:\n| - " + ErrorHandling_lastError)
endif
set showTo_15 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_15, 0., 0., 45., Loglevel_getTag(1) + " - " + "decoded..")
endif
if ForForceCallback_firstFree == 0 then
if ForForceCallback_maxIndex < 32768 then
set ForForceCallback_maxIndex = ForForceCallback_maxIndex + 1
set this_188 = ForForceCallback_maxIndex
set ForForceCallback_typeId[this_188] = 829
else
call error("Out of memory: Could not create Closure.")
set this_188 = 0
endif
else
set ForForceCallback_firstFree = ForForceCallback_firstFree - 1
set this_188 = ForForceCallback_nextFree[ForForceCallback_firstFree]
set ForForceCallback_typeId[this_188] = 829
endif
set this_38[this_188] = this_40[this_155]
if not try(this_188) then
call error("execute: thread has crashed. caused by:\n| - " + ErrorHandling_lastError)
endif
set showTo_16 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_16, 0., 0., 45., Loglevel_getTag(1) + " - " + "claned..")
endif
if ForForceCallback_firstFree == 0 then
if ForForceCallback_maxIndex < 32768 then
set ForForceCallback_maxIndex = ForForceCallback_maxIndex + 1
set this_189 = ForForceCallback_maxIndex
set ForForceCallback_typeId[this_189] = 830
else
call error("Out of memory: Could not create Closure.")
set this_189 = 0
endif
else
set ForForceCallback_firstFree = ForForceCallback_firstFree - 1
set this_189 = ForForceCallback_nextFree[ForForceCallback_firstFree]
set ForForceCallback_typeId[this_189] = 830
endif
set this_39[this_189] = this_40[this_155]
if not try(this_189) then
call error("execute: thread has crashed. caused by:\n| - " + ErrorHandling_lastError)
endif
set showTo_17 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_17, 0., 0., 45., Loglevel_getTag(1) + " - " + "hashed..")
endif
if Encoder_inputhash[this_40[this_155]] == Encoder_comparehash[this_40[this_155]] then
set cond_result = 1
else
set cond_result = 0
endif
set PayloadCallback_customData[onFinishLoad[this_155]] = cond_result
set this_190 = onFinishLoad[this_155]
if PayloadCallback_typeId[this_190] == 0 then
if this_190 == 0 then
call error("Nullpointer exception when calling PayloadCallback.doStep")
else
call error("Called PayloadCallback.doStep on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(2, this_190, this_190, null, 0, 0)
elseif funcChoice == 16 then
set showTo_18 = Player_localPlayer
if Printing_config_DEBUG_LEVEL <= 1 then
call DisplayTimedTextToPlayer(showTo_18, 0., 0., 45., Loglevel_getTag(1) + " - " + "load tiles1")
endif
set this_191 = this_114[this_155]
set list_3 = JsonParser_outputList[PayloadCallback_customData[cb_5]]
if Serializable_typeId[this_191] == 0 then
if this_191 == 0 then
call error("Nullpointer exception when calling MemoryAccessPedestal.loadTiles")
else
call error("Called MemoryAccessPedestal.loadTiles on invalid object.")
endif
endif
call cyc_MemoryAccessPedestal_closure_impl(9, this_191, list_3, null, 0, 0)
endif
set showTo = null
set showTo_2 = null
set showTo_3 = null
set showTo_4 = null
set showTo_5 = null
set showTo_6 = null
set showTo_7 = null
set showTo_8 = null
set showTo_9 = null
set showTo_10 = null
set showTo_11 = null
set showTo_12 = null
set showTo_13 = null
set showTo_14 = null
set showTo_15 = null
set showTo_16 = null
set showTo_17 = null
set showTo_18 = null
endfunction
For example there are 18 showTo variables which could be merged, since they are only used in each of the function choices respectively. I'm fairly certain that this worked before.
Activity
testcase for #747
peq commentedon Oct 26, 2018
The
showTovariable is not inlined because there is an if-statement between definition and use.We would need a more precise analysis to make this work.