lean4-htt/tests/lean/4089.lean
Henrik Böving c3779bc8d5
refactor: reset reuse pass to LCNF (#12315)
This PR migrates the IR ResetReuse pass to LCNF.
2026-02-05 15:54:46 +00:00

12 lines
284 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

set_option trace.Compiler.resetReuse true
def f : Nat × Nat → Nat × Nat
| (a, b) => (b, a)
def Sigma.toProd : (_ : α) × β → α × β
| ⟨a, b⟩ => (a, b)
def foo : List (Nat × Nat) → List Nat
| [] => []
| x :: xs => match x with
| (a, _) => a :: foo xs