local p="\102\111\114 \105 \061 \049\044 \049\048\044 \049 \100\111\n    \112\114\105\110\116\040\105\041\n\101\110\100\n"local g=require("\046\046\047\098\117\105\108\100\047\076\117\097\117\046\076\117\097\117\067\101\112\116\105\111\110\046\067\111\109\112\105\108\101\114")local F=require("\046\046\047\098\117\105\108\100\047\076\117\097\117\046\076\117\097\117\067\101\112\116\105\111\110\046\086\077")local s=require("\046\046\047\098\117\105\108\100\047\076\117\097\117\046\076\117\097\117\067\101\112\116\105\111\110\046\070\117\108\108")print("\067\111\109\112\105\108\101\114")print(g.luau_compile(p,1,1,0))print(g.luau_compile(p,1,2,0))print(g.luau_compile(p,1,1,1))print(g.luau_compile(p,1,2,1))print("\086\077")local r=g.luau_compile(p,1,2,1)print(F.luau_run(r,"\116\101\115\116",true))print(F.luau_run(r,"\116\101\115\116",false))print("\070\117\108\108")local u=s.luau_compile(p,1,2,1)print(s.luau_compile(p,1,1,0))print(s.luau_compile(p,1,2,0))print(s.luau_compile(p,1,1,1))print(s.luau_compile(p,1,2,1))print(s.luau_run(u,"\116\101\115\116",true))print(s.luau_run(u,"\116\101\115\116",false))print("\n\084\101\115\116 \111\107")
local src = [[
for i = 1, 10, 1 do
    print(i)
end
]]

local Compiler = require("../build/Luau.LuauCeption.Compiler")
local VM = require("../build/Luau.LuauCeption.VM")
local Full = require("../build/Luau.LuauCeption.Full")

print("Compiler")
print(Compiler.luau_compile(src, 1, 1, 0))
print(Compiler.luau_compile(src, 1, 2, 0))
print(Compiler.luau_compile(src, 1, 1, 1))
print(Compiler.luau_compile(src, 1, 2, 1))

print("VM")
local bc = Compiler.luau_compile(src, 1, 2, 1)
print(VM.luau_run(bc, "test", true))
print(VM.luau_run(bc, "test", false))

print("Full")
local bc = Full.luau_compile(src, 1, 2, 1)
print(Full.luau_compile(src, 1, 1, 0))
print(Full.luau_compile(src, 1, 2, 0))
print(Full.luau_compile(src, 1, 1, 1))
print(Full.luau_compile(src, 1, 2, 1))
print(Full.luau_run(bc, "test", true))
print(Full.luau_run(bc, "test", false))

print("\nTest ok")