summaryrefslogtreecommitdiff
path: root/testsuite/tests/stranal/should_compile/T18903.stderr
blob: 8c0427b235289749cc87227fa416babb54cb9b4f (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

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

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

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

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

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

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

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

-- RHS size: {terms: 65, types: 42, coercions: 0, joins: 0/2}
h :: Int -> Int
[GblId,
 Arity=1,
 Str=<1!P(SL)>,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [20] 217 10}]
h = \ (m :: Int) ->
      case m of wild { GHC.Types.I# ds ->
      let {
        $wg [InlPrag=NOINLINE, Dmd=MCM(!P(M!L,1!L))]
          :: GHC.Prim.Int# -> (# Int, Int #)
        [LclId, Arity=1, Str=<1L>, Unf=OtherCon []]
        $wg
          = \ (ww [OS=OneShot] :: GHC.Prim.Int#) ->
              case ww of ds1 {
                __DEFAULT ->
                  (# GHC.Types.I# (GHC.Prim.*# 2# ds1),
                     case ds1 of wild1 {
                       __DEFAULT ->
                         let {
                           c1# :: GHC.Prim.Int#
                           [LclId]
                           c1# = GHC.Prim.andI# 1# (GHC.Prim.<# wild1 0#) } in
                         case GHC.Prim.quotInt# (GHC.Prim.-# 2# c1#) wild1 of wild2
                         { __DEFAULT ->
                         GHC.Types.I# (GHC.Prim.-# wild2 c1#)
                         };
                       0# -> GHC.Real.divZeroError @Int
                     } #);
                1# -> (# wild, T18903.h1 #)
              } } in
      case ds of ds1 {
        __DEFAULT ->
          case $wg ds1 of { (# ww, ww1 #) ->
          case ww of { GHC.Types.I# x ->
          case ww1 of { GHC.Types.I# y -> GHC.Types.I# (GHC.Prim.+# x y) }
          }
          };
        1# -> T18903.h1;
        2# -> case $wg 2# of { (# ww, ww1 #) -> ww1 }
      }
      }