summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T21694b.stderr
blob: 2cd41cb17f0b272e041e13e2568b85eecc1adfc0 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115

==================== Tidy Core ====================
Result size of Tidy Core
  = {terms: 44, types: 40, coercions: 0, joins: 2/2}

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
T21694.f1 :: Int
[GblId,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 10 10}]
T21694.f1 = GHC.Types.I# 20#

-- RHS size: {terms: 26, types: 22, coercions: 0, joins: 2/2}
f :: forall {p1} {a} {c} {p2}. p1 -> a -> c -> p2 -> (a, p1, c)
[GblId,
 Arity=4,
 Str=<L><L><L><A>,
 Cpr=1,
 Unf=Unf{Src=InlineStable, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True,
         Guidance=ALWAYS_IF(arity=4,unsat_ok=True,boring_ok=False)
         Tmpl= \ (@p_ax8)
                 (@a_aL5)
                 (@c_aL6)
                 (@p1_aL7)
                 (x_agu [Occ=OnceL1] :: p_ax8)
                 (eta_B0 [Occ=OnceL1] :: a_aL5)
                 (eta1_B1 [Occ=OnceL1] :: c_aL6)
                 _ [Occ=Dead] ->
                 joinrec {
                   j_sLX [InlPrag=[2], Occ=T[1]] :: Int -> (a_aL5, p_ax8, c_aL6)
                   [LclId[JoinId(1)(Just [!])],
                    Arity=1,
                    Str=<S!P(SL)>,
                    Unf=Unf{Src=InlineStable, TopLvl=False, Value=True, ConLike=True,
                            WorkFree=True, Expandable=True,
                            Guidance=ALWAYS_IF(arity=1,unsat_ok=True,boring_ok=False)
                            Tmpl= \ (ds_sM1 [Occ=Once1!] :: Int) ->
                                    case ds_sM1 of { GHC.Types.I# ww_sM3 [Occ=Once1] ->
                                    jump $wj_sM6 ww_sM3
                                    }}]
                   j_sLX (ds_sM1 [Occ=Once1!] :: Int)
                     = case ds_sM1 of { GHC.Types.I# ww_sM3 [Occ=Once1] ->
                       jump $wj_sM6 ww_sM3
                       };
                   $wj_sM6 [InlPrag=[2], Occ=LoopBreakerT[1]]
                     :: GHC.Prim.Int# -> (a_aL5, p_ax8, c_aL6)
                   [LclId[JoinId(1)(Nothing)], Arity=1, Str=<SL>, Unf=OtherCon []]
                   $wj_sM6 (ww_sM3 [Occ=Once1!] :: GHC.Prim.Int#)
                     = case ww_sM3 of ds_X2 [Occ=Once1] {
                         __DEFAULT -> jump j_sLX (GHC.Types.I# (GHC.Prim.-# ds_X2 1#));
                         0# -> (eta_B0, x_agu, eta1_B1)
                       }; } in
                 jump j_sLX T21694.f1}]
f = \ (@p_ax8)
      (@a_aL5)
      (@c_aL6)
      (@p1_aL7)
      (x_agu :: p_ax8)
      (eta_B0 :: a_aL5)
      (eta1_B1 :: c_aL6)
      _ [Occ=Dead] ->
      join {
        exit_X3 [Dmd=S!P(L,L,L)] :: (a_aL5, p_ax8, c_aL6)
        [LclId[JoinId(0)(Nothing)]]
        exit_X3 = (eta_B0, x_agu, eta1_B1) } in
      joinrec {
        $wj_sM6 [InlPrag=[2], Occ=LoopBreaker, Dmd=SCS(!P(L,L,L))]
          :: GHC.Prim.Int# -> (a_aL5, p_ax8, c_aL6)
        [LclId[JoinId(1)(Nothing)], Arity=1, Str=<1L>, Unf=OtherCon []]
        $wj_sM6 (ww_sM3 :: GHC.Prim.Int#)
          = case ww_sM3 of ds_X2 {
              __DEFAULT -> jump $wj_sM6 (GHC.Prim.-# ds_X2 1#);
              0# -> jump exit_X3
            }; } in
      jump $wj_sM6 20#

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

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

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

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

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