Documentation
Lean
.
Compiler
.
IR
.
SimpCase
Search
return to top
source
Imports
Lean.Compiler.IR.Basic
Lean.Compiler.IR.Format
Imported by
Lean
.
IR
.
ensureHasDefault
Lean
.
IR
.
FnBody
.
simpCase
Lean
.
IR
.
Decl
.
simpCase
source
def
Lean
.
IR
.
ensureHasDefault
(
alts
:
Array
Alt
)
:
Array
Alt
Equations
Instances For
source
partial def
Lean
.
IR
.
FnBody
.
simpCase
(
b
:
FnBody
)
:
FnBody
source
def
Lean
.
IR
.
Decl
.
simpCase
(
d
:
Decl
)
:
Decl
Simplify
case
Remove unreachable branches.
Remove
case
if there is only one branch.
Merge most common branches using
Alt.default
.
Equations
Instances For