1
|
1
|
|
2
|
2
|
==================== Tidy Core ====================
|
3
|
|
-Result size of Tidy Core = {terms: 64, types: 40, coercions: 0, joins: 0/0}
|
|
3
|
+Result size of Tidy Core = {terms: 60, types: 34, coercions: 0, joins: 0/0}
|
4
|
4
|
|
5
|
5
|
-- RHS size: {terms: 17, types: 7, coercions: 0, joins: 0/0}
|
6
|
6
|
stuff [InlPrag=NOINLINE] :: Int -> [Int]
|
7
|
7
|
[GblId, Arity=1, Str=<1L>, Unf=OtherCon []]
|
8
|
|
-stuff = \ (i :: Int) -> case i of i1 { GHC.Types.I# ipv -> GHC.Types.: @Int i1 (GHC.Types.: @Int (GHC.Types.I# (GHC.Prim.+# ipv 1#)) (GHC.Types.: @Int (GHC.Types.I# (GHC.Prim.+# ipv 2#)) (GHC.Types.[] @Int))) }
|
|
8
|
+stuff = \ (i :: Int) -> case i of i1 { GHC.Internal.Types.I# ipv -> GHC.Internal.Types.: @Int i1 (GHC.Internal.Types.: @Int (GHC.Internal.Types.I# (GHC.Internal.Prim.+# ipv 1#)) (GHC.Internal.Types.: @Int (GHC.Internal.Types.I# (GHC.Internal.Prim.+# ipv 2#)) (GHC.Internal.Types.[] @Int))) }
|
9
|
9
|
|
10
|
10
|
Rec {
|
11
|
11
|
-- RHS size: {terms: 23, types: 11, coercions: 0, joins: 0/0}
|
12
|
|
-T18793.$wgo1 [InlPrag=[2], Occ=LoopBreaker] :: [Int] -> GHC.Prim.Int# -> GHC.Prim.Int#
|
|
12
|
+T18793.$wgo1 [InlPrag=[2], Occ=LoopBreaker] :: [Int] -> GHC.Internal.Prim.Int# -> GHC.Internal.Prim.Int#
|
13
|
13
|
[GblId[StrictWorker([!])], Arity=2, Str=<1L><L>, Unf=OtherCon []]
|
14
|
14
|
T18793.$wgo1
|
15
|
|
- = \ (ds :: [Int]) (ww :: GHC.Prim.Int#) ->
|
|
15
|
+ = \ (ds :: [Int]) (ww :: GHC.Internal.Prim.Int#) ->
|
16
|
16
|
case ds of {
|
17
|
17
|
[] -> ww;
|
18
|
18
|
: y ys ->
|
19
|
|
- case y of { GHC.Types.I# x ->
|
20
|
|
- case GHC.Prim.># x 42# of {
|
|
19
|
+ case y of { GHC.Internal.Types.I# x ->
|
|
20
|
+ case GHC.Internal.Prim.># x 42# of {
|
21
|
21
|
__DEFAULT -> T18793.$wgo1 ys ww;
|
22
|
|
- 1# -> T18793.$wgo1 ys (GHC.Prim.negateInt# ww)
|
|
22
|
+ 1# -> T18793.$wgo1 ys (GHC.Internal.Prim.negateInt# ww)
|
23
|
23
|
}
|
24
|
24
|
}
|
25
|
25
|
}
|
26
|
26
|
end Rec }
|
27
|
27
|
|
28
|
|
--- RHS size: {terms: 12, types: 6, coercions: 0, joins: 0/0}
|
29
|
|
-T18793.f_go1 [InlPrag=[2]] :: [Int] -> Int -> Int
|
30
|
|
-[GblId,
|
31
|
|
- Arity=2,
|
32
|
|
- Str=<1L><1!P(L)>,
|
33
|
|
- Cpr=1,
|
34
|
|
- Unf=Unf{Src=InlineStable, TopLvl=True, Value=True, ConLike=True, WorkFree=True, Expandable=True, Guidance=ALWAYS_IF(arity=2,unsat_ok=True,boring_ok=False)
|
35
|
|
- Tmpl= \ (ds [Occ=Once1] :: [Int]) (eta [Occ=Once1!, OS=OneShot] :: Int) -> case eta of { GHC.Types.I# ww [Occ=Once1] -> case T18793.$wgo1 ds ww of ww1 [Occ=Once1] { __DEFAULT -> GHC.Types.I# ww1 } }}]
|
36
|
|
-T18793.f_go1 = \ (ds :: [Int]) (eta [OS=OneShot] :: Int) -> case eta of { GHC.Types.I# ww -> case T18793.$wgo1 ds ww of ww1 { __DEFAULT -> GHC.Types.I# ww1 } }
|
37
|
|
-
|
38
|
28
|
-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
|
39
|
29
|
T18793.f2 :: Int
|
40
|
30
|
[GblId, Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 10 10}]
|
41
|
|
-T18793.f2 = GHC.Types.I# 1#
|
|
31
|
+T18793.f2 = GHC.Internal.Types.I# 1#
|
42
|
32
|
|
43
|
33
|
-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
|
44
|
34
|
T18793.f1 :: [Int]
|
45
|
35
|
[GblId, Unf=Unf{Src=<vanilla>, TopLvl=True, Value=False, ConLike=False, WorkFree=False, Expandable=False, Guidance=IF_ARGS [] 20 0}]
|
46
|
36
|
T18793.f1 = stuff T18793.f2
|
47
|
37
|
|
48
|
|
--- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
|
|
38
|
+-- RHS size: {terms: 11, types: 4, coercions: 0, joins: 0/0}
|
49
|
39
|
f :: Int -> Int
|
50
|
|
-[GblId, Arity=1, Str=<1!P(L)>, Cpr=1, Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 20 60}]
|
51
|
|
-f = T18793.f_go1 T18793.f1
|
|
40
|
+[GblId, Arity=1, Str=<1!P(L)>, Cpr=1, Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, WorkFree=True, Expandable=True, Guidance=IF_ARGS [20] 60 10}]
|
|
41
|
+f = \ (eta [OS=OneShot] :: Int) -> case eta of { GHC.Internal.Types.I# ww -> case T18793.$wgo1 T18793.f1 ww of ww1 { __DEFAULT -> GHC.Internal.Types.I# ww1 } }
|
52
|
42
|
|
53
|
43
|
|
54
|
44
|
|