mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
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.
13 lines
458 B
Plaintext
13 lines
458 B
Plaintext
[Compiler.saveBase] size: 9
|
|
def test a.1 : ST.Out lcAny UInt32 :=
|
|
let _x.2 := 42;
|
|
let _x.3 := @ST.Prim.mkRef _ _ _x.2 a.1;
|
|
cases _x.3 : ST.Out lcAny UInt32
|
|
| ST.Out.mk val.4 state.5 =>
|
|
let _x.6 := 10;
|
|
let _x.7 := @ST.Prim.Ref.set _ _ val.4 _x.6 state.5;
|
|
cases _x.7 : ST.Out lcAny UInt32
|
|
| ST.Out.mk val.8 state.9 =>
|
|
let _x.10 := @ST.Prim.Ref.get _ _ val.4 state.9;
|
|
return _x.10
|