summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T18328.stderr
blob: 78e3430b8832cb9dc51dd9c07f5fe66f296446fd (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

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

-- RHS size: {terms: 38, types: 23, coercions: 0, joins: 1/1}
T18328.$wf [InlPrag=[2]]
  :: forall {a}. GHC.Prim.Int# -> [a] -> [a] -> [a]
[GblId,
 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#) (w :: [a]) (w1 :: [a]) ->
      join {
        $wj [InlPrag=NOINLINE, Dmd=ML] :: forall {p}. [a]
        [LclId[JoinId(1)]]
        $wj (@p)
          = case ww of {
              __DEFAULT -> ++ @a w (++ @a w (++ @a w w1));
              3# -> ++ @a w (++ @a w (++ @a w (++ @a w w1)))
            } } in
      case ww of {
        __DEFAULT -> ++ @a w w1;
        1# -> jump $wj @Integer;
        2# -> jump $wj @Integer;
        3# -> jump $wj @Integer
      }

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

-- 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