Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
b8a31ed10eeabaca678ab303ec3f4d7d5a817841
/
.
/
tests
/
lean
/
CompilerProvokeFloatLet.lean
blob: 13d8e5324273fed9aeda24ed44f5642b43693f9c [
file
]
set_option trace
.
Compiler
.
floatLetIn
true
in
def
provokeFloatLet
(
x y
:
Nat
)
(
cond
:
Bool
)
:
Nat
:=
let
a
:=
x
^
y
let
b
:=
x
+
y
let
c
:=
x
-
y
let
dual
:=
x
*
y
if
cond
then
match dual
with
|
0
=>
a
|
_
+
1
=>
c
else
b
+
dual