summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T14152a.stderr
blob: 0196c3695d0994e8f2f1a8814990f025fb0d2edd (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222

==================== Tidy Core ====================
Result size of Tidy Core
  = {terms: 156, types: 98, coercions: 4, joins: 3/7}

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
T14152.go3 :: Integer
[GblId,
 Caf=NoCafRefs,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 100 0}]
T14152.go3 = 0

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
T14152.go2 :: Integer
[GblId,
 Caf=NoCafRefs,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 100 0}]
T14152.go2 = 1

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
lvl_r2qm :: GHC.Prim.Addr#
[GblId, Caf=NoCafRefs]
lvl_r2qm = "error"#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl1_r2qn :: [Char]
[GblId]
lvl1_r2qn = GHC.CString.unpackCString# lvl_r2qm

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

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl2_r2qo :: [Char]
[GblId]
lvl2_r2qo = GHC.CString.unpackCString# T14152.$trModule4

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

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl3_r2qp :: [Char]
[GblId]
lvl3_r2qp = GHC.CString.unpackCString# T14152.$trModule2

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
lvl4_r2qq :: GHC.Prim.Addr#
[GblId, Caf=NoCafRefs]
lvl4_r2qq = "T14152a.hs"#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl5_r2qr :: [Char]
[GblId]
lvl5_r2qr = GHC.CString.unpackCString# lvl4_r2qq

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl6_r2qs :: Int
[GblId, Caf=NoCafRefs, Str=m]
lvl6_r2qs = GHC.Types.I# 18#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl7_r2qt :: Int
[GblId, Caf=NoCafRefs, Str=m]
lvl7_r2qt = GHC.Types.I# 20#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl8_r2qu :: Int
[GblId, Caf=NoCafRefs, Str=m]
lvl8_r2qu = GHC.Types.I# 37#

-- RHS size: {terms: 8, types: 0, coercions: 0, joins: 0/0}
lvl9_r2qv :: GHC.Stack.Types.SrcLoc
[GblId, Str=m]
lvl9_r2qv
  = GHC.Stack.Types.SrcLoc
      lvl2_r2qo
      lvl3_r2qp
      lvl5_r2qr
      lvl6_r2qs
      lvl7_r2qt
      lvl6_r2qs
      lvl8_r2qu

-- RHS size: {terms: 4, types: 0, coercions: 0, joins: 0/0}
lvl10_r2qw :: GHC.Stack.Types.CallStack
[GblId, Str=m2]
lvl10_r2qw
  = GHC.Stack.Types.PushCallStack
      lvl1_r2qn lvl9_r2qv GHC.Stack.Types.EmptyCallStack

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
lvl11_r2qx :: GHC.Prim.Addr#
[GblId, Caf=NoCafRefs]
lvl11_r2qx = "dead code"#

-- RHS size: {terms: 5, types: 4, coercions: 4, joins: 0/0}
T14152.go1 :: forall a. a
[GblId, Str=x]
T14152.go1
  = \ (@ a_a2i4) ->
      error
        @ 'GHC.Types.LiftedRep
        @ a_a2i4
        (lvl10_r2qw
         `cast` (Sym (GHC.Classes.N:IP[0]
                          <"callStack">_N <GHC.Stack.Types.CallStack>_N)
                 :: (GHC.Stack.Types.CallStack :: *)
                    ~R# (?callStack::GHC.Stack.Types.CallStack :: Constraint)))
        (GHC.CString.unpackCString# lvl11_r2qx)

-- RHS size: {terms: 90, types: 53, coercions: 0, joins: 3/7}
go :: forall t a. (Num a, Num t, Eq a, Eq t) => t -> a -> a
[GblId,
 Arity=6,
 Str=<L,U(C(C1(U)),A,C(C1(U)),A,A,A,1*C1(U))><L,U(A,C(C1(U)),A,A,A,A,C(U))><L,U(C(C1(U)),A)><S(C(C(S))L),U(C(C1(U)),A)><L,U><L,U>,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True,
         Guidance=IF_ARGS [120 120 30 60 0 0] 582 0}]
go
  = \ (@ t_a2l3)
      (@ a_a2i4)
      ($dNum_a2l7 :: Num a_a2i4)
      ($dNum1_a2l8 :: Num t_a2l3)
      ($dEq_a2l9 :: Eq a_a2i4)
      ($dEq1_a2la :: Eq t_a2l3)
      (eta_B2 :: t_a2l3)
      (eta1_B1 :: a_a2i4) ->
      let {
        lvl12_s2o4 :: a_a2i4
        [LclId]
        lvl12_s2o4 = fromInteger @ a_a2i4 $dNum_a2l7 T14152.go3 } in
      let {
        lvl13_s2oF :: t_a2l3
        [LclId]
        lvl13_s2oF = fromInteger @ t_a2l3 $dNum1_a2l8 T14152.go2 } in
      let {
        lvl14_s2o2 :: t_a2l3
        [LclId]
        lvl14_s2o2 = fromInteger @ t_a2l3 $dNum1_a2l8 T14152.go3 } in
      joinrec {
        go4_s2nB [Occ=LoopBreaker] :: t_a2l3 -> a_a2i4 -> a_a2i4
        [LclId[JoinId(2)], Arity=2, Str=<L,U><L,U>, Unf=OtherCon []]
        go4_s2nB (ds_d2md :: t_a2l3) (y_atn :: a_a2i4)
          = case == @ t_a2l3 $dEq1_a2la ds_d2md lvl14_s2o2 of {
              False ->
                join {
                  $j_s2py [Dmd=<C(S),1*C1(U)>] :: Maybe a_a2i4 -> a_a2i4
                  [LclId[JoinId(1)], Arity=1, Str=<S,U>, Unf=OtherCon []]
                  $j_s2py (thunk_s2nZ [OS=OneShot] :: Maybe a_a2i4)
                    = let {
                        lvl15_s2oG :: t_a2l3
                        [LclId]
                        lvl15_s2oG = - @ t_a2l3 $dNum1_a2l8 ds_d2md lvl13_s2oF } in
                      joinrec {
                        innerGo_s2nO [Occ=LoopBreaker] :: t_a2l3 -> a_a2i4 -> a_a2i4
                        [LclId[JoinId(2)], Arity=2, Str=<L,U><L,U>, Unf=OtherCon []]
                        innerGo_s2nO (ds1_d2mf :: t_a2l3) (y1_ats :: a_a2i4)
                          = case == @ t_a2l3 $dEq1_a2la ds1_d2mf lvl14_s2o2 of {
                              False ->
                                jump innerGo_s2nO
                                  (- @ t_a2l3 $dNum1_a2l8 ds1_d2mf lvl13_s2oF)
                                  (* @ a_a2i4 $dNum_a2l7 y1_ats y1_ats);
                              True ->
                                case thunk_s2nZ of {
                                  Nothing -> T14152.go1 @ a_a2i4;
                                  Just y'_atI ->
                                    jump go4_s2nB lvl15_s2oG (+ @ a_a2i4 $dNum_a2l7 y1_ats y'_atI)
                                }
                            }; } in
                      jump innerGo_s2nO ds_d2md y_atn } in
                case == @ a_a2i4 $dEq_a2l9 y_atn lvl12_s2o4 of {
                  False -> jump $j_s2py (GHC.Base.Just @ a_a2i4 y_atn);
                  True ->
                    jump $j_s2py
                      (GHC.Base.Just @ a_a2i4 (+ @ a_a2i4 $dNum_a2l7 y_atn y_atn))
                };
              True -> y_atn
            }; } in
      jump go4_s2nB eta_B2 eta1_B1

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

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

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