string.rep()
string.rep("x")
string.rep("x", 1.5)
string.rep("x", "2")
string.rep({}, 2)
string.sub()
string.byte("a", {})
string.char("a")
string.char(65.5)
string.format()
string.format(1)
string.format("%d", {})
string.format("%d", "x")
string.format("%s")
string.find()
string.find("a", "b", {})
string.gsub("a")
string.gsub("a", "a")
string.upper()
string.len(1)
string.len(nil)
string.pack()
string.pack("i4")
string.pack("i4", "x")
string.pack("i4", 1.5)
string.unpack()
string.unpack("i4")
math.floor()
math.floor({})
math.max(1, "x")
math.min()
math.abs()
math.sqrt("4")
math.sqrt("x")
math.random({})
math.random(1.5)
math.tointeger()
math.fmod()
math.fmod(1)
math.fmod(1, 0.0)
math.ult(1.5, 2)
table.concat()
table.concat({}, {})
table.insert()
table.remove()
table.remove({}, {})
table.unpack()
table.sort()
table.move()
table.move({}, 1, 2)
utf8.char({})
utf8.len()
utf8.codepoint()
utf8.offset()
utf8.offset("a", 1, 3)
utf8.offset("\x80", 1)
os.time({})
os.time({year=2000})
os.time({year=2000, month=1, day={}})
os.date({})
os.difftime()
setmetatable()
getmetatable()
rawget()
rawget(1)
rawset()
rawlen()
next()
next(1)
pairs()
pairs(1)
ipairs(nil)
select()
select({})
tostring()
type()
tonumber({})
tonumber("1", {})
tonumber(1, 10)
error(1, {})
xpcall()
xpcall(print)
load()
load(nil)
coroutine.create()
coroutine.resume()
coroutine.resume(1)
coroutine.wrap()
coroutine.status()
coroutine.close()
coroutine.close(1)
coroutine.isyieldable(1)
coroutine.running(1)
("x"):bad()
("x").y
local s = "x"; return s:upper(1, 2, 3)
("abc"):sub(2)
("10") + {}
("x") - 1
-"2"
-"x"
"2" ^ "3"
"7" % "2"
"7" / "2"
"7" // "2.0"
"0x10" * 1
"1e1" // 1
"10" < 5
"a" < "b"
"a" < 1
1 < "a"
{} < {}
nil .. "x"
"x" .. {}
"x" .. true
1 & 1.5
1 & "1.5"
1 & "x"
1 & {}
1.5 | 0
2^63 | 0
math.huge | 0
(0/0) | 0
"9223372036854775808" | 0
1 << 64
1 << 63
1 >> -1
-1 >> 1
~0
~1.0
~"1"
3 % -2
-3 % 2
3.5 % -2
-3.5 % 2
5 % math.huge
-5 % math.huge
5.0 // 0
-5 // 0.0
0/0 == 0/0
math.maxinteger + 1 == math.mininteger
math.maxinteger + 1.0
math.mininteger * -1
math.maxinteger // -1
1 == 1.0
math.maxinteger == 2^63
math.maxinteger < 2^63
math.maxinteger + 0.0 == 2^63
2^53 + 1 == 2^53 + 1.0
(2^53 + 1) | 0
-0.0 == 0.0
1/-0.0
(function() local t = {} t[-0.0] = 1 return t[0] end)()
(function() local t = {} t[0/0 == 0/0 and 1 or 2] = 1 return next(t) end)()
(function() local n = 0 for i = math.maxinteger - 2, math.maxinteger do n = n + 1 end return n end)()
(function() local n = 0 for i = math.mininteger, math.mininteger + 2 do n = n + 1 end return n end)()
(function() local n = 0 for i = 1, 3, 0 do n = n + 1 end return n end)()
(function() local n = 0 for i = 1.0, 3 do n = n + 1 end return n, math.type(1.0) end)()
(function() for i = 1, 2 do return math.type(i) end end)()
(function() for i = 1.0, 2 do return math.type(i) end end)()
(function() for i = 1, 2.5 do return math.type(i) end end)()
(function() local n = 0 for i = 1, math.huge do n = n + 1 if n > 3 then break end end return n end)()
(function() local n = 0 for i = 0.1, 0.35, 0.1 do n = n + 1 end return n end)()
(function() for i = "1", 2 do end end)()
(function() for i = 1, "2" do end end)()
(function() for i = 1, 2, "1" do end end)()
(function() local n = 0 for i = 3, 1 do n = n + 1 end return n end)()
(function() local n = 0 for i = math.maxinteger, math.maxinteger - 1, -1 do n = n + 1 end return n end)()
(function() local n = 0 for i = 1, 10, math.maxinteger do n = n + 1 end return n end)()
(function() local n = 0 for i = -1, -10, math.mininteger do n = n + 1 end return n end)()
(function() local n = 0 for i = 1, 0.5 do n = n + 1 end return n end)()
(function() local n = 0 for i = 1, -math.huge, -1 do n = n + 1 if n > 2 then break end end return n end)()
(function() local x <close> = nil return 1 end)()
(function() local x <close> = 1 return 1 end)()
(function() local x <close> = setmetatable({}, {__close=function(o, e) end}) return 1 end)()
(function() do local x <close> = setmetatable({}, {__close=function(o, e) error("in close") end}) end end)()
(function() local x <close> = setmetatable({}, {__close=function(o, e) error("c2") end}) error("orig") end)()
tostring(print):match("^builtin") or tostring(print):match("^function")
tostring({}):match("^table: ") ~= nil
tostring(coroutine.create(print)):match("^thread: ") ~= nil
string.format("%s", nil)
#{1, 2, nil, 4} >= 2
#{n = 1}
select('#', table.unpack({1, nil, 3}, 1, 3))
(function(...) return select('#', ...) end)(nil, nil)
(function(a, ...) local t = {...} return #t, a end)(1, 2, 3)
string.format("%q", 2^63)
string.format("%q", -0.0)
string.format("%q", 1e100)
string.format("%.20s", "x")
string.format("%.3d", 5)
string.format("%+.3e", 0)
string.format("%#g", 1)
string.format("%#x", 0)
string.format("%-5c|", 65)
string.format("%x", 3.0)
string.format("%x", 3.5)
string.format("%c", 3.5)
string.format("%i", math.mininteger)
string.format("%u", 1)
string.format("%.1000f", 1)
string.format("%1000d", 1)
string.format("%0-5d", 1)
string.format("%#5.3s", "abcdef")
string.format("%ld", 1)
string.format("%q", "\u{10FFFF}\127\31")
string.format("%q", "1\0002")