aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/existential.lua
blob: b594218419fb4bfa7268da00b7b8475b7a130c12 (plain)
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
if f1 ~= nil then
	f1()
end
if f2 ~= nil then
	f2("arg0", 123)
end
local x
if tab ~= nil then
	x = tab.value
end
print((function()
	if abc ~= nil then
		local _obj_0 = abc["hello world"]
		if _obj_0 ~= nil then
			return _obj_0.xyz
		end
		return nil
	end
	return nil
end)())
if print and (x ~= nil) then
	print(x)
end
if self ~= nil then
	self:func(998)
end
do
	local _with_0
	if abc ~= nil then
		local _obj_0 = abc()
		local _obj_1 = _obj_0.func
		if _obj_1 ~= nil then
			_with_0 = _obj_1(_obj_0)
		end
	end
	if (function()
		local _obj_0 = _with_0.p
		if _obj_0 ~= nil then
			return _obj_0(_with_0, "abc")
		end
		return nil
	end)() then
		return 123
	end
end
do
	local _des_0
	if a ~= nil then
		local _obj_0 = a["if"]
		if _obj_0 ~= nil then
			local _obj_1 = _obj_0["then"]
			if _obj_1 ~= nil then
				local _obj_2 = _obj_1(_obj_0, 123)
				if _obj_2 ~= nil then
					_des_0 = _obj_2((function()
						if self ~= nil then
							return self["function"](self, 998)
						end
						return nil
					end)())
				end
			end
		end
	end
	if _des_0 then
		x = _des_0.x
		print(x)
	end
end
local res = ((function()
	local _call_0 = b["function"]
	local _obj_0 = _call_0["do"](_call_0)
	local _obj_1 = _obj_0["while"]
	if _obj_1 ~= nil then
		local _call_1 = _obj_1(_obj_0, "OK")
		local _base_0 = _call_1["if"](_call_1, "def", 998)
		local _fn_0 = _base_0.f
		return _fn_0 and function(...)
			return _fn_0(_base_0, ...)
		end
	end
	return nil
end)() ~= nil)
print(res)
local solipsism
if (mind ~= nil) and not (world ~= nil) then
	solipsism = true
end
local speed = 0
speed = speed or 15
local footprints = yeti or "bear"
local major = 'Computer Science'
if not (major ~= nil) then
	signUpForClass('Introduction to Wines')
end
if (window ~= nil) then
	local environment = 'browser (probably)'
end
local zip
local _obj_0 = lottery.drawWinner
if _obj_0 ~= nil then
	local _obj_1 = _obj_0().address
	if _obj_1 ~= nil then
		zip = _obj_1.zipcode
	end
end
local len = (function()
	if utf8 ~= nil then
		return utf8.len
	end
	return nil
end)() or (function()
	if string ~= nil then
		return string.len
	end
	return nil
end)() or function(o)
	return #o
end
local a
if tb1 ~= nil then
	local _obj_1 = tb1["end"]
	if _obj_1 ~= nil then
		a = _obj_1(tb1, 123 + (function()
			if tb2 ~= nil then
				return tb2["then"](tb2, 456)
			end
			return nil
		end)())
	end
end
local b = ((function()
	if tb1 ~= nil then
		local _base_0 = tb1
		local _fn_0 = _base_0["end"]
		return _fn_0 and function(...)
			return _fn_0(_base_0, ...)
		end
	end
	return nil
end)() ~= nil) or (function()
	if tb2 ~= nil then
		local _base_0 = tb2
		local _fn_0 = _base_0["then"]
		return _fn_0 and function(...)
			return _fn_0(_base_0, ...)
		end
	end
	return nil
end)()
do
	local _with_0 = io.open("test.txt", "w")
	if _with_0 ~= nil then
		_with_0:write("hello")
		_with_0:close()
	end
end
if tb ~= nil then
	local _obj_1 = getmetatable(tb).__a
	if _obj_1 ~= nil then
		_obj_1(123)
	end
end
do
	local _with_0
	local _obj_1 = getmetatable(tb)
	if _obj_1 ~= nil then
		_with_0 = getmetatable(_obj_1).__index
	end
	if _with_0 ~= nil then
		_with_0.a = 1
	end
end
return nil