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

==================== Tidy Core ====================
Result size of Tidy Core
  = {terms: 120, types: 47, coercions: 4, joins: 1/1}

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

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

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

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

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

-- RHS size: {terms: 8, types: 3, coercions: 0, joins: 0/0}
f [InlPrag=OPAQUE] :: Int -> Int
[GblId, Arity=1, Str=<1L>, Unf=OtherCon []]
f = / (x :: Int) ->
      case x of { GHC.Types.I# ipv -> GHC.Types.I# (GHC.Prim.+# ipv 1#) }

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

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

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

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

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
lvl4 :: GHC.Prim.Addr#
[GblId, Unf=OtherCon []]
lvl4 = "OpaqueNoRebox3.hs"#

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

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl6 :: Int
[GblId, Unf=OtherCon []]
lvl6 = GHC.Types.I# 33#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl7 :: Int
[GblId, Unf=OtherCon []]
lvl7 = GHC.Types.I# 23#

-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
lvl8 :: Int
[GblId, Unf=OtherCon []]
lvl8 = GHC.Types.I# 28#

-- RHS size: {terms: 8, types: 0, coercions: 0, joins: 0/0}
lvl9 :: GHC.Stack.Types.SrcLoc
[GblId, Unf=OtherCon []]
lvl9 = GHC.Stack.Types.SrcLoc lvl2 lvl3 lvl5 lvl6 lvl7 lvl6 lvl8

-- RHS size: {terms: 4, types: 0, coercions: 0, joins: 0/0}
lvl10 :: GHC.Stack.Types.CallStack
[GblId, Unf=OtherCon []]
lvl10
  = GHC.Stack.Types.PushCallStack
      lvl1 lvl9 GHC.Stack.Types.EmptyCallStack

-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
lvl11 :: GHC.Prim.Addr#
[GblId, Unf=OtherCon []]
lvl11 = "patError"#

-- RHS size: {terms: 4, types: 2, coercions: 4, joins: 0/0}
lvl12 :: Int
[GblId, Str=b, Cpr=b]
lvl12
  = error
      @GHC.Types.LiftedRep
      @Int
      (lvl10
       `cast` (Sym (GHC.Classes.N:IP[0]
                        <"callStack">_N <GHC.Stack.Types.CallStack>_N)
               :: GHC.Stack.Types.CallStack
                  ~R# (?callStack::GHC.Stack.Types.CallStack)))
      (GHC.CString.unpackCString# lvl11)

Rec {
-- RHS size: {terms: 50, types: 13, coercions: 0, joins: 1/1}
g [Occ=LoopBreaker] :: Bool -> Bool -> Bool -> Int -> Int
[GblId, Arity=4, Str=<SL><SL><L><1L>, Unf=OtherCon []]
g = / (w :: Bool) (w1 :: Bool) (w2 :: Bool) (p :: Int) ->
      join {
        fail_ [Dmd=M!P(L)] :: Int
        [LclId[JoinId(0)(Nothing)]]
        fail_
          = case w1 of {
              False ->
                case w2 of {
                  False -> g w GHC.Types.True GHC.Types.False p;
                  True -> f (f p)
                };
              True -> lvl12
            } } in
      case w of {
        False ->
          case w1 of {
            False -> jump fail_;
            True ->
              case w2 of {
                False ->
                  case p of { GHC.Types.I# x -> GHC.Types.I# (GHC.Prim.+# x 1#) };
                True -> jump fail_
              }
          };
        True ->
          case w1 of {
            False -> jump fail_;
            True -> f p
          }
      }
end Rec }