This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
44 lines
757 B
Text
44 lines
757 B
Text
inductive E1 (n : Nat) where
|
|
| a
|
|
| b
|
|
| c
|
|
|
|
/--
|
|
trace: [Compiler.IR] [result]
|
|
def e1 : u8 :=
|
|
let x_1 : u8 := 2;
|
|
ret x_1
|
|
-/
|
|
#guard_msgs in
|
|
set_option trace.compiler.ir.result true in
|
|
def e1 : E1 7 := .c
|
|
|
|
inductive E2 where
|
|
| a (p : 0 = 0)
|
|
| b (p : 1 = 1)
|
|
| c (p : 0 = 1)
|
|
|
|
/--
|
|
trace: [Compiler.IR] [result]
|
|
def e2 : u8 :=
|
|
let x_1 : u8 := 1;
|
|
ret x_1
|
|
-/
|
|
#guard_msgs in
|
|
set_option trace.compiler.ir.result true in
|
|
def e2 : E2 := .b rfl
|
|
|
|
inductive E3 (m n : Nat) where
|
|
| a (p : 0 = 0)
|
|
| b (p : 1 = 1)
|
|
| c (p : 0 = 0) (q : 1 = 1)
|
|
|
|
/--
|
|
trace: [Compiler.IR] [result]
|
|
def e3 : u8 :=
|
|
let x_1 : u8 := 2;
|
|
ret x_1
|
|
-/
|
|
#guard_msgs in
|
|
set_option trace.compiler.ir.result true in
|
|
def e3 : E3 7 11 := .c rfl rfl
|