lean4-htt/tests/elab/newdo.lean.out.expected
Garmelon 08eb78a5b2
chore: switch to new test/bench suite (#12590)
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.
2026-02-25 13:51:53 +00:00

29 lines
733 B
Text

(let x := 0;
do
let e ←
tryCatch
(if true = true then
let x := 10;
match h : x with
| 2 => EarlyReturnT.return ⟨x, ⋯⟩
| x_1 => EarlyReturnT.return 0
else
let x := 5;
ExceptT.run (pure () x))
fun e =>
let x := x + 1;
ExceptT.run (pure () x)
EarlyReturn.runK e (fun r => pure r) fun p =>
let __r := p.fst;
let x := p.snd;
pure ⟨3, ⋯⟩).run.run : Except String (Fin 17)
let x := 0;
have __do_jp := fun __r x => do
let r ← pure x
pure r;
if true = true then
let x := x + 1;
__do_jp PUnit.unit x
else do
let __r ← pure ()
__do_jp __r x : ?m Nat