lean4-htt/tests/lean/inlineIssue.lean
Leonardo de Moura 85866fc238 chore: fix and disable some LCNF tests
We still need to port code to the new architecture
2022-08-24 14:12:27 -07:00

19 lines
376 B
Text

import Lean
def f (x : Nat) :=
let g (y z : Nat) := match y with | 0 => x * z * x * y * y | .succ y => y + z
let h (x : Nat) := g x x
h (x+1) +
h (x+2) +
h (x+3) +
h (x+4) +
h (x+5) +
h (x+6) +
h (x+7) +
h (x+8) +
h (x+9)
#eval Lean.Compiler.compile #[``f]
-- set_option trace.Compiler.simp true -- TODO: uncomment
#eval Lean.Compiler.compile #[``f]