summaryrefslogtreecommitdiff
path: root/testsuite/tests/arityanal/should_compile/Arity08.stderr
blob: 1f2f6c0fa49a1ba5a900b5284eb000ffa8af0a46 (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

==================== Tidy Core ====================
Result size of Tidy Core = {terms: 23, types: 20, coercions: 0, joins: 0/0}

-- RHS size: {terms: 20, types: 11, coercions: 0, joins: 0/0}
f8f :: forall {p}. Num p => Bool -> p -> p -> p
[GblId,
 Arity=4,
 Str=<L,U(C(C1(U)),A,1*C1(C1(U)),A,A,A,A)><S,1*U><L,U><L,U>,
 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) ($dNum :: Num p) (b [Occ=Once1!] :: Bool) (x :: p) (y [Occ=Once2] :: p) ->
                 case b of {
                   False -> + @p $dNum (+ @p $dNum x y) (* @p $dNum x x);
                   True -> y
                 }}]
f8f
  = \ (@p) ($dNum :: Num p) (b :: Bool) (x :: p) (y :: p) ->
      case b of {
        False -> + @p $dNum (+ @p $dNum x y) (* @p $dNum x x);
        True -> y
      }

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