remedy-lua 0.1.2

A Lua 5.4 superset in safe Rust for running untrusted scripts: exact fuel, memory and depth limits, an incremental collector, an optional typed dialect and a capability-based host API.
Documentation
local g1 = (math.tointeger(tonumber("10")) or -1)
local g2 = 'Luahello'
local g3 = false
__seg(1, function(p4, p5, p6)
if __enter() then return end
__emit(math.type(g1))
p6 = (string.len)(p4)
return select(-2, g3, p5), select(2, pcall(function() local f, e = load("return 0x", "=chunk") if not f then return e end return f(5, 6) end))
end)
__seg(2, function()
if __enter() then return end
local function f7(p8, p9)
if __enter() then return end
__emit((setmetatable({v = 79410}, {__mod = function(a, b) if __enter() then return end return __tag(b) end, __idiv = function(a, b) if __enter() then return end return __tag(b) end, __eq = function() return nil end, __add = function(a, b) if __enter() then return end return "r" end})).n, p8)
for k10, x11 in next, {1, 2}, nil, setmetatable({}, {__close = function(o, e) __emit("for-close", "fc12", e) end}) do
__emit(math.type((f7(f7(nil), nil, f7()))))
end
if ({4611686018427387904, 0x7fffffffffffffff,["1e A Bk"] = g1, [4] = 7; string.byte("abc", 1, -1)}) then
do local co14 = coroutine.wrap(function(p15, p16, p17, ...)
do
local c18 <close> = setmetatable({v = "c18"}, {__close = function(o, e) __emit("close", __tag(o), e) end})
print(nil)
if not ((string.find(('A B\z  
   hello)z9\059a') .. 'A B\'\x00', "%f[%W]*.%f[%W]%b()$") or 0)) then assert(false, "assert msg") end
end
__emit(f7)
__emit((6.02e23), (select(2, 0.1, string.byte("xyz", 1, 3))))
local y19 = coroutine.yield((f7 '日本 " k'))
return {}
end)
for i = 1, 2 do __emit("wrap", pcall(co14, i)) end
end
elseif math.ult(0 >> (34402), 8) then
function Gf23(p20, p21, p22, ...)
if __enter() then return end
for k24, x25 in next, {1, 2}, nil, setmetatable({}, {__close = function(o, e) __emit("for-close", "fc26", e) end}) do
do local co28 = coroutine.wrap(function(p29, ...)
local w30 = 0
while w30 < 1 and (true) do
w30 = w30 + 1
for k32, x33 in __spairs({name = select(2, pcall(function() local f, e = load("x = ", "=chunk") if not f then return e end return f(5, 6) end)); #(os.date("!%j %a %b %p", 2764979986)), #{(g1) ~ (0x10000000000000000), (g1) & 9, (utf8.len("[\"Lua") or -1)}, (math.tointeger(0.1) or 0), math.min(((7) >> (5)) >> ((utf8.len([[%d
]]) or -1)), (string.char(94)):len())}) do
local v35, v36 = 6.02e23, ("0x10" | 0) + ((math.tointeger(tonumber(" 42 ")) or -1))
end
local w37 = 0
repeat
w37 = w37 + 1
local v39 = not (f7 "\nk\161A B\u{10FFFF}_\r")
until w37 >= 4 or (x25 ~= ({}))
__emit({}, f7)
end
__emit(g3, {})
p9 = p22
__emit(g2, p20, not (table.pack()) and ((4) - (p29)) or (("0x.8" * (g1)) ^ 1e3))
return ...
end)
for i = 1, 4 do __emit("wrap", pcall(co28, i)) end
end
f7()
end
end
local v40, v41, v42 = 52.46, f7, not ((f7))
end
return (f7)(g1, setmetatable({v = 0X67}, {__bnot = function(a) if __enter() then return end return __tag(a) end, __shl = function(a, b) if __enter() then return end return "r" end, __tostring = function() return 42 end, __le = function() return nil end}), 4, string.byte("xyz", 1, 3))
end
f7()
f7 = f7
end, select(2, g1, (g3), false))
return g3, g2, g1