1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
|
local _module_0 = setmetatable({ }, { })
local a, b, c = 223, 343, 123
_module_0["a"], _module_0["b"], _module_0["c"] = a, b, c
local cool = "dad"
_module_0["cool"] = cool
local d, e, f = 3, 2, 1
_module_0[#_module_0 + 1] = d
_module_0[#_module_0 + 1] = e
_module_0[#_module_0 + 1] = f
local Something
do
local _class_0
local _base_0 = {
umm = "cool"
}
if _base_0.__index == nil then
_base_0.__index = _base_0
end
_class_0 = setmetatable({
__init = function() end,
__base = _base_0,
__name = "Something"
}, {
__index = _base_0,
__call = function(cls, ...)
local _self_0 = setmetatable({ }, _base_0)
cls.__init(_self_0, ...)
return _self_0
end
})
_base_0.__class = _class_0
Something = _class_0
end
_module_0["Something"] = Something
if this then
_module_0[#_module_0 + 1] = 232
else
_module_0[#_module_0 + 1] = 4343
end
local What
if this then
What = 232
else
What = 4343
end
_module_0["What"] = What
local y
y = function()
local hallo = 3434
end
_module_0["y"] = y
do
local _with_0 = tmp
local j = 2000
_module_0[#_module_0 + 1] = _with_0
end
local cbVal
do
local h = 100
cbVal = f(function(x)
return x(h)
end)
end
_module_0["cbVal"] = cbVal
local yy
yy = function()
local h = 100
local k = 100
end
_module_0["yy"] = yy
do
local _exp_0 = h
if 100 == _exp_0 or 150 == _exp_0 then
_module_0[#_module_0 + 1] = 200
elseif 200 == _exp_0 then
_module_0[#_module_0 + 1] = 300
else
_module_0[#_module_0 + 1] = 0
end
end
local Constant
do
local _exp_0 = value
if "good" == _exp_0 then
Constant = 1
elseif "better" == _exp_0 then
Constant = 2
elseif "best" == _exp_0 then
Constant = 3
end
end
_module_0["Constant"] = Constant
local item = func(123)
_module_0["item"] = item
_module_0[#_module_0 + 1] = x
f((function()
if a then
return b
end
end)())
f((function()
return 123
end)())
f((function()
if b == a then
return c
end
end)())
f((function()
local _accum_0 = { }
local _len_0 = 1
for i = 1, 10 do
_accum_0[_len_0] = i
_len_0 = _len_0 + 1
end
return _accum_0
end)())
f((function()
local _accum_0 = { }
local _len_0 = 1
for i = 1, 10 do
_accum_0[_len_0] = i
_len_0 = _len_0 + 1
end
return _accum_0
end)())
f((function()
local _tbl_0 = { }
for k, v in pairs(tb) do
_tbl_0[k] = v
end
return _tbl_0
end)())
f((function()
local _accum_0 = { }
local _len_0 = 1
for k, v in pairs(tb) do
_accum_0[_len_0] = {
k,
v
}
_len_0 = _len_0 + 1
end
return _accum_0
end)())
f((function()
local _accum_0 = { }
local _len_0 = 1
while a do
_accum_0[_len_0] = true
_len_0 = _len_0 + 1
end
return _accum_0
end)())
f((function()
a.b = 123
return a
end)())
f((function()
if a ~= nil then
return a.b
end
return nil
end)())
f((function()
local _base_0 = a
local _fn_0 = _base_0.b
return _fn_0 and function(...)
return _fn_0(_base_0, ...)
end
end)())
f((function()
local A
do
local _class_0
local _base_0 = { }
if _base_0.__index == nil then
_base_0.__index = _base_0
end
_class_0 = setmetatable({
__init = function() end,
__base = _base_0,
__name = "A"
}, {
__index = _base_0,
__call = function(cls, ...)
local _self_0 = setmetatable({ }, _base_0)
cls.__init(_self_0, ...)
return _self_0
end
})
_base_0.__class = _class_0
A = _class_0
return _class_0
end
end)())
local _ = tostring((function()
if a then
return b
end
end)())
_ = tostring((function()
return 123
end)())
_ = tostring((function()
if b == a then
return c
end
end)())
_ = tostring((function()
local _accum_0 = { }
local _len_0 = 1
for i = 1, 10 do
_accum_0[_len_0] = i
_len_0 = _len_0 + 1
end
return _accum_0
end)())
_ = tostring((function()
local _accum_0 = { }
local _len_0 = 1
for i = 1, 10 do
_accum_0[_len_0] = i
_len_0 = _len_0 + 1
end
return _accum_0
end)())
_ = tostring((function()
local _tbl_0 = { }
for k, v in pairs(tb) do
_tbl_0[k] = v
end
return _tbl_0
end)())
_ = tostring((function()
local _accum_0 = { }
local _len_0 = 1
for k, v in pairs(tb) do
_accum_0[_len_0] = {
k,
v
}
_len_0 = _len_0 + 1
end
return _accum_0
end)())
_ = tostring((function()
local _accum_0 = { }
local _len_0 = 1
while a do
_accum_0[_len_0] = true
_len_0 = _len_0 + 1
end
return _accum_0
end)())
_ = tostring((function()
a.b = 123
return a
end)())
_ = tostring((function()
if a ~= nil then
return a.b
end
return nil
end)())
_ = tostring((function()
local _base_0 = a
local _fn_0 = _base_0.b
return _fn_0 and function(...)
return _fn_0(_base_0, ...)
end
end)())
_ = tostring((function()
local A
do
local _class_0
local _base_0 = { }
if _base_0.__index == nil then
_base_0.__index = _base_0
end
_class_0 = setmetatable({
__init = function() end,
__base = _base_0,
__name = "A"
}, {
__index = _base_0,
__call = function(cls, ...)
local _self_0 = setmetatable({ }, _base_0)
cls.__init(_self_0, ...)
return _self_0
end
})
_base_0.__class = _class_0
A = _class_0
return _class_0
end
end)())
local v1, v2, v3, v4, v5
v1 = 1
v2 = 2
_module_0["v2"] = v2
do
local _class_0
local _base_0 = { }
if _base_0.__index == nil then
_base_0.__index = _base_0
end
_class_0 = setmetatable({
__init = function() end,
__base = _base_0,
__name = "v4"
}, {
__index = _base_0,
__call = function(cls, ...)
local _self_0 = setmetatable({ }, _base_0)
cls.__init(_self_0, ...)
return _self_0
end
})
_base_0.__class = _class_0
v4 = _class_0
v3 = _class_0
end
_module_0["v3"] = v3
v5 = 5
getmetatable(_module_0)["abc"] = 1
getmetatable(_module_0).__name = "export"
getmetatable(_module_0).__call = function(self)
return { }
end
_module_0["a-b-c-x"] = 123
return _module_0
|