dofile("inputs/00_ret.lua")
dofile("inputs/01_mov.lua")
dofile("inputs/02_cbr_br.lua")
dofile("inputs/03_cbr_br.lua")
dofile("inputs/04_cbr_br.lua")
dofile("inputs/05_cbr_br.lua")
dofile("inputs/06_storeglobal.lua")
dofile("inputs/07_loadglobal.lua")
dofile("inputs/08_loadstoreglobal.lua")
dofile("inputs/09_call.lua")
dofile("inputs/10_call.lua")
dofile("inputs/11_call.lua")
dofile("inputs/12_call.lua")
dofile("inputs/13_call.lua")
dofile("inputs/14_iarray.lua")
dofile("inputs/15_iarray_sieve.lua")
dofile("inputs/16_farray.lua")
dofile("inputs/17_iarray_sieve.lua")
dofile("inputs/18_table.lua")
dofile("inputs/19_arith.lua")
dofile("inputs/20_upvals.lua")
dofile("inputs/21_matrixmul.lua")
dofile("inputs/22_cmp.lua")
dofile("inputs/23_arith2.lua")
dofile("inputs/24_arith.lua")
dofile("inputs/25_bits.lua")
dofile("inputs/26_bits.lua")
dofile("inputs/27_fornum.lua")
dofile("inputs/28_fornum.lua")
dofile("inputs/29_if.lua")
dofile("inputs/30_if.lua")
dofile("inputs/31_assign.lua")
dofile("inputs/32_assign.lua")
dofile("inputs/33_assign.lua")
dofile("inputs/34_assign.lua")
dofile("inputs/35_assign.lua")
dofile("inputs/36_assign.lua")
dofile("inputs/37_concat.lua")
dofile("inputs/38_concat.lua")
dofile("inputs/39_concat.lua")
dofile("inputs/40_genericfor.lua")
dofile("inputs/41_upvals.lua")
dofile("inputs/42_dateimpl.lua")
dofile("inputs/43_gauss1.lua")
dofile("inputs/43_gauss2.lua")
dofile("inputs/44_gauss3.lua")
dofile("inputs/45_notequal.lua")
dofile("inputs/46_notequal.lua")
dofile("inputs/47_bug.lua")
dofile("inputs/48_bug.lua")
dofile("inputs/49_bug.lua")
dofile("inputs/50_bug.lua")
dofile("inputs/51_concat.lua")
dofile("inputs/52_local_s.lua")

function runfile(file)
    --local f = compiler.loadfile(file, "--verbose --dump-ir")
    local f = compiler.loadfile(file)
    assert(f and type(f) == 'function')
    f()
end

runfile("inputs/53_ravi_tests.lua")
runfile("inputs/54_embed_C.lua")
runfile("inputs/55_embed_C.lua")
runfile("inputs/56_embed_C.lua")
runfile("inputs/57_embed_C.lua")
runfile("inputs/58_cbr.lua")
runfile("inputs/59_call.lua")
runfile("inputs/60_recurse.lua")
runfile("inputs/61_calls.lua")
runfile("inputs/62_calls.lua")
runfile("inputs/63_calls.lua")
runfile("inputs/64_calls.lua")
runfile("inputs/65_calls.lua")
runfile("inputs/66_calls.lua")
runfile("inputs/67_calls.lua")
runfile("inputs/68_calls.lua")
runfile("inputs/69_binexpr.lua")
runfile("inputs/70_gaussian2.lua")
runfile("inputs/71_indexedload.lua")
runfile("inputs/72_table_construct.lua")
--runfile("inputs/73_table_construct.lua")
runfile("inputs/74_luajit_andor.lua")
runfile("inputs/75_genericfor_locals.lua")
runfile("inputs/76_genericfor_nested.lua")
runfile("inputs/77_luajit_andor_mult.lua")
runfile("inputs/78_repeat.lua")
runfile("inputs/lua-Harness-001-if.t")
runfile("inputs/lua-Harness-002-table.t")
runfile("inputs/lua-Harness-011-while.t")
runfile("inputs/lua-Harness-012-repeat.t")
runfile("inputs/lua-Harness-014-fornum.t")
runfile("inputs/lua-Harness-015-forlist.t")
runfile("inputs/lua-Harness-101-boolean.t")
runfile("inputs/lua-Harness-102-function.t")
runfile("inputs/lua-Harness-103-nil.t")
--runfile("inputs/lua-Harness-104-number.t")
runfile("inputs/lua-Harness-105-string.t")
runfile("inputs/lua-Harness-106-table.t")
runfile("inputs/lua-Harness-108-userdata.t")
runfile("inputs/lua-Harness-200-examples.t")
runfile("inputs/lua-Harness-201-assign.t")
--runfile("inputs/lua-Harness-202-expr.t")
runfile("inputs/lua-Harness-211-scope.t")
--runfile("inputs/lua-Harness-212-function.t")
runfile("inputs/lua-Harness-213-closure.t")
runfile("inputs/lua-Harness-221-table.t")
runfile("inputs/lua-Harness-222-constructor.t")
runfile("inputs/lua-Harness-223-iterator.t")
runfile("inputs/lua-Harness-231-metatable.t")
runfile("inputs/lua-Harness-232-object.t")

print 'SUCCESS'

