diff options
Diffstat (limited to 'testsuite/tests/arityanal/should_compile/Arity04.stderr')
-rw-r--r-- | testsuite/tests/arityanal/should_compile/Arity04.stderr | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testsuite/tests/arityanal/should_compile/Arity04.stderr b/testsuite/tests/arityanal/should_compile/Arity04.stderr new file mode 100644 index 0000000000..5e05c7407d --- /dev/null +++ b/testsuite/tests/arityanal/should_compile/Arity04.stderr @@ -0,0 +1,47 @@ + +==================== Tidy Core ==================== +Result size of Tidy Core = {terms: 39, types: 24, coercions: 0, joins: 0/0} + +-- RHS size: {terms: 8, types: 3, coercions: 0, joins: 0/0} +f4g :: Int -> Int +[GblId, + Arity=1, + Str=<S,1*U(U)>, + Cpr=m1, + Unf=Unf{Src=InlineStable, TopLvl=True, Value=True, ConLike=True, WorkFree=True, Expandable=True, Guidance=ALWAYS_IF(arity=1,unsat_ok=True,boring_ok=False) + Tmpl= \ (y [Occ=Once1!] :: Int) -> case y of { GHC.Types.I# x [Occ=Once1] -> GHC.Types.I# (GHC.Prim.+# x 1#) }}] +f4g = \ (y :: Int) -> case y of { GHC.Types.I# x -> GHC.Types.I# (GHC.Prim.+# x 1#) } + +-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0} +lvl :: Int +[GblId, Unf=OtherCon []] +lvl = GHC.Types.I# 0# + +Rec { +-- RHS size: {terms: 13, types: 4, coercions: 0, joins: 0/0} +F4.$wf4h [InlPrag=NOUSERINLINE[2], Occ=LoopBreaker] :: (Int -> Int) -> GHC.Prim.Int# -> Int +[GblId, Arity=2, Str=<C(S),1*C1(U)><S,1*U>, Unf=OtherCon []] +F4.$wf4h + = \ (w :: Int -> Int) (ww :: GHC.Prim.Int#) -> + case ww of wild { + __DEFAULT -> F4.$wf4h w (GHC.Prim.-# wild 1#); + 0# -> w lvl + } +end Rec } + +-- RHS size: {terms: 8, types: 5, coercions: 0, joins: 0/0} +f4h [InlPrag=NOUSERINLINE[2]] :: (Int -> Int) -> Int -> Int +[GblId, + Arity=2, + Str=<C(S),1*C1(U)><S(S),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=Once1] :: Int -> Int) (w1 [Occ=Once1!] :: Int) -> case w1 of { GHC.Types.I# ww1 [Occ=Once1] -> F4.$wf4h w ww1 }}] +f4h = \ (w :: Int -> Int) (w1 :: Int) -> case w1 of { GHC.Types.I# ww1 -> F4.$wf4h w ww1 } + +-- RHS size: {terms: 3, types: 0, coercions: 0, joins: 0/0} +f4 :: Int +[GblId, Unf=Unf{Src=<vanilla>, TopLvl=True, Value=False, ConLike=False, WorkFree=False, Expandable=False, Guidance=IF_ARGS [] 30 0}] +f4 = F4.$wf4h f4g 9# + + + |