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.
24 lines
532 B
Text
24 lines
532 B
Text
/-!
|
|
Test that PackMutual isn't confused when a recursive call has more arguments than is packed
|
|
into the unary argument, which can happen if the return type is a function type.
|
|
-/
|
|
|
|
mutual
|
|
inductive A : Type
|
|
| baseA : A
|
|
| fromB : B → A
|
|
|
|
inductive B : Type
|
|
| fromA : A → B
|
|
end
|
|
|
|
mutual
|
|
def foo : B → Prop
|
|
| .fromA a => bar a 0
|
|
termination_by x => sizeOf x
|
|
|
|
def bar : A → Nat → Prop
|
|
| .baseA => (fun _ => True)
|
|
| .fromB b => (fun (c : Nat) => ∃ (t : Nat), foo b)
|
|
termination_by x => sizeOf x
|
|
end
|