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.
17 lines
465 B
Text
17 lines
465 B
Text
|
|
-- A refexive type, with multiple parameters to make sure
|
|
-- we get the order right
|
|
|
|
inductive N : Type where
|
|
| cons : (Nat -> Bool → N) -> N
|
|
|
|
|
|
-- set_option trace.Elab.definition.structural true
|
|
mutual
|
|
def f : N -> List Nat → List Bool → Nat
|
|
| .cons a, _, _ => g (a 32 true) [true] [1] + 1
|
|
termination_by structural n => n
|
|
def g : N -> List Bool → List Nat → Nat
|
|
| .cons a, _, _ => f (a 42 false) [1] [true] + 1
|
|
termination_by structural n => n
|
|
end
|