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.
23 lines
711 B
Text
23 lines
711 B
Text
[Compiler.saveMono] size: 17
|
|
def sefFn e f : Expr :=
|
|
cases e : Expr
|
|
| Lean.Expr.app._impl data fn.1 arg.2 =>
|
|
jp _jp.3 _y.4 : Expr :=
|
|
cases _y.4 : Expr
|
|
| Bool.false =>
|
|
let _x.5 := Expr.app._override f arg.2;
|
|
return _x.5
|
|
| Bool.true =>
|
|
return e;
|
|
let _x.6 := ptrAddrUnsafe ◾ fn.1;
|
|
let _x.7 := ptrAddrUnsafe ◾ f;
|
|
let _x.8 := USize.decEq _x.6 _x.7;
|
|
cases _x.8 : Expr
|
|
| Bool.false =>
|
|
goto _jp.3 _x.8
|
|
| Bool.true =>
|
|
let _x.9 := ptrAddrUnsafe ◾ arg.2;
|
|
let _x.10 := USize.decEq _x.9 _x.9;
|
|
goto _jp.3 _x.10
|
|
| _ =>
|
|
return e
|