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
442 B
Text
17 lines
442 B
Text
import Lean.Util.FindExpr
|
|
|
|
/-!
|
|
This test asserts that the compiler will eta contract trivial lambdas instead of lambda lifting
|
|
them.
|
|
-/
|
|
|
|
/--
|
|
trace: [Compiler.lambdaLifting] size: 2
|
|
def test e : Option Lean.Expr :=
|
|
let _f.1 := Lean.Expr.hasMVar;
|
|
let _x.2 := Lean.Expr.findImpl? _f.1 e;
|
|
return _x.2
|
|
-/
|
|
#guard_msgs in
|
|
set_option trace.Compiler.lambdaLifting true in
|
|
def test (e : Lean.Expr) := e.find? (fun e => e.hasMVar)
|