summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T4908.stderr
blob: fc7ed19361ee1c75ee6ed8450426395472280943 (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
 
==================== Tidy Core ====================
Result size of Tidy Core
  = {terms: 68, types: 43, coercions: 0, joins: 0/0}
 
-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
T4908.$trModule4 :: Addr#
[GblId,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 20 0}]
T4908.$trModule4 = "main"#
 
-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
T4908.$trModule3 :: TrName
[GblId,
 Cpr=m1,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 10 20}]
T4908.$trModule3 = GHC.Types.TrNameS T4908.$trModule4
 
-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0}
T4908.$trModule2 :: Addr#
[GblId,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 30 0}]
T4908.$trModule2 = "T4908"#
 
-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0}
T4908.$trModule1 :: TrName
[GblId,
 Cpr=m1,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 10 20}]
T4908.$trModule1 = GHC.Types.TrNameS T4908.$trModule2
 
-- RHS size: {terms: 3, types: 0, coercions: 0, joins: 0/0}
T4908.$trModule :: Module
[GblId,
 Cpr=m1,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 10 30}]
T4908.$trModule
  = GHC.Types.Module T4908.$trModule3 T4908.$trModule1
 
Rec {
-- RHS size: {terms: 19, types: 5, coercions: 0, joins: 0/0}
T4908.f_$s$wf [Occ=LoopBreaker] :: Int -> Int# -> Int# -> Bool
[GblId, Arity=3, Str=<L,A><L,1*U><S,1*U>, Unf=OtherCon []]
T4908.f_$s$wf
  = \ (sc :: Int) (sc1 :: Int#) (sc2 :: Int#) ->
      case sc2 of ds {
        __DEFAULT ->
          case sc1 of ds1 {
            __DEFAULT -> T4908.f_$s$wf sc ds1 (-# ds 1#);
            0# -> GHC.Types.True
          };
        0# -> GHC.Types.True
      }
end Rec }
 
-- RHS size: {terms: 24, types: 13, coercions: 0, joins: 0/0}
T4908.$wf [InlPrag=NOUSERINLINE[2]] :: Int# -> (Int, Int) -> Bool
[GblId,
 Arity=2,
 Str=<S,1*U><L,1*U(A,1*U(1*U))>,
 Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True, Guidance=IF_ARGS [30 20] 101 20}]
T4908.$wf
  = \ (ww :: Int#) (w :: (Int, Int)) ->
      case ww of ds {
        __DEFAULT ->
          case w of { (a, b) ->
          case b of { I# ds1 ->
          case ds1 of ds2 {
            __DEFAULT -> T4908.f_$s$wf a ds2 (-# ds 1#);
            0# -> GHC.Types.True
          }
          }
          };
        0# -> GHC.Types.True
      }
 
-- RHS size: {terms: 8, types: 6, coercions: 0, joins: 0/0}
f [InlPrag=NOUSERINLINE[2]] :: Int -> (Int, Int) -> Bool
[GblId,
 Arity=2,
 Str=<S(S),1*U(1*U)><L,1*U(A,1*U(1*U))>,
 Unf=Unf{Src=InlineStable, TopLvl=True, Value=True, ConLike=True,
         WorkFree=True, Expandable=True,
         Guidance=ALWAYS_IF(arity=2,unsat_ok=True,boring_ok=False)
         Tmpl= \ (w [Occ=Once!] :: Int) (w1 [Occ=Once] :: (Int, Int)) ->
                 case w of { I# ww1 [Occ=Once] -> T4908.$wf ww1 w1 }}]
f = \ (w :: Int) (w1 :: (Int, Int)) ->
      case w of { I# ww1 -> T4908.$wf ww1 w1 }
 
 
------ Local rules for imported ids --------
"SC:$wf0" [2]
    forall (sc :: Int) (sc1 :: Int#) (sc2 :: Int#).
      T4908.$wf sc2 (sc, GHC.Types.I# sc1)
      = T4908.f_$s$wf sc sc1 sc2