summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T18328.stderr
blob: e5c039d595de1c4052d0a2bb1ccf8eb21f8fb166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92

==================== Tidy Core ====================
Result size of Tidy Core
  = {terms: 69, types: 55, coercions: 0, joins: 1/1}

-- RHS size: {terms: 42, types: 25, coercions: 0, joins: 1/1}
T18328.$wf [InlPrag=[2]]
  :: forall {a}. GHC.Prim.Int# -> [a] -> [a] -> [a]
[GblId[StrictWorker([~, !])],
 Arity=3,
 Str=<SL><SL><ML>,
 Unf=Unf{Src=<vanilla>, TopLvl=True,
         Value=True, ConLike=True, WorkFree=True, Expandable=True,
         Guidance=IF_ARGS [176 0 0] 306 0}]
T18328.$wf
  = \ (@a) (ww :: GHC.Prim.Int#) (ys :: [a]) (eta :: [a]) ->
      join {
        $wj [InlPrag=NOINLINE, Dmd=MC(1,L)] :: forall {p}. (# #) -> [a]
        [LclId[JoinId(2)(Nothing)], Arity=1, Str=<A>, Unf=OtherCon []]
        $wj (@p) _ [Occ=Dead, OS=OneShot]
          = case ww of {
              __DEFAULT -> ++ @a ys (++ @a ys (++ @a ys eta));
              3# -> ++ @a ys (++ @a ys (++ @a ys (++ @a ys eta)))
            } } in
      case ww of {
        __DEFAULT -> ++ @a ys eta;
        1# -> jump $wj @Integer GHC.Prim.(##);
        2# -> jump $wj @Integer GHC.Prim.(##);
        3# -> jump $wj @Integer GHC.Prim.(##)
      }

-- RHS size: {terms: 11, types: 9, coercions: 0, joins: 0/0}
f [InlPrag=[2]] :: forall a. Int -> [a] -> [a] -> [a]
[GblId,
 Arity=3,
 Str=<1!P(SL)><SL><ML>,
 Unf=Unf{Src=StableSystem, TopLvl=True,
         Value=True, ConLike=True, WorkFree=True, Expandable=True,
         Guidance=ALWAYS_IF(arity=3,unsat_ok=True,boring_ok=False)
         Tmpl= \ (@a)
                 (x [Occ=Once1!] :: Int)
                 (ys [Occ=Once1] :: [a])
                 (eta [Occ=Once1] :: [a]) ->
                 case x of { GHC.Types.I# ww [Occ=Once1] ->
                 T18328.$wf @a ww ys eta
                 }}]
f = \ (@a) (x :: Int) (ys :: [a]) (eta :: [a]) ->
      case x of { GHC.Types.I# ww -> T18328.$wf @a ww ys eta }

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
T18328.$trModule4 :: GHC.Prim.Addr#
[GblId,
 Unf=Unf{Src=<vanilla>, TopLvl=True,
         Value=True, ConLike=True, WorkFree=True, Expandable=True,
         Guidance=IF_ARGS [] 20 0}]
T18328.$trModule4 = "main"#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
T18328.$trModule3 :: GHC.Types.TrName
[GblId,
 Unf=Unf{Src=<vanilla>, TopLvl=True,
         Value=True, ConLike=True, WorkFree=True, Expandable=True,
         Guidance=IF_ARGS [] 10 10}]
T18328.$trModule3 = GHC.Types.TrNameS T18328.$trModule4

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
T18328.$trModule2 :: GHC.Prim.Addr#
[GblId,
 Unf=Unf{Src=<vanilla>, TopLvl=True,
         Value=True, ConLike=True, WorkFree=True, Expandable=True,
         Guidance=IF_ARGS [] 30 0}]
T18328.$trModule2 = "T18328"#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
T18328.$trModule1 :: GHC.Types.TrName
[GblId,
 Unf=Unf{Src=<vanilla>, TopLvl=True,
         Value=True, ConLike=True, WorkFree=True, Expandable=True,
         Guidance=IF_ARGS [] 10 10}]
T18328.$trModule1 = GHC.Types.TrNameS T18328.$trModule2

-- RHS size: {terms: 3, types: 0, coercions: 0, joins: 0/0}
T18328.$trModule :: GHC.Types.Module
[GblId,
 Unf=Unf{Src=<vanilla>, TopLvl=True,
         Value=True, ConLike=True, WorkFree=True, Expandable=True,
         Guidance=IF_ARGS [] 10 10}]
T18328.$trModule
  = GHC.Types.Module T18328.$trModule3 T18328.$trModule1