Skip to content

Commit cbbeaee

Browse files
committed
tamer?
1 parent 0877819 commit cbbeaee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Lean/Compiler/LCNF/ExtractClosed.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ mutual
7676
partial def shouldExtractLetValue (isRoot : Bool) (v : LetValue) : M Bool := do
7777
match v with
7878
| .lit (.str _) => return true
79+
| .lit (.nat v) => return !isRoot || v >= Nat.pow 2 63
7980
| .lit _ | .erased => return !isRoot
8081
| .const name _ args =>
8182
if (← read).sccDecls.any (·.name == name) then

0 commit comments

Comments
 (0)