Created
May 19, 2017 16:28
-
-
Save snoyberg/2210c4f67c5d91186501d8a8d3c570e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==================== Tidy Core ==================== | |
2017-05-19 16:27:11.440179 UTC | |
Result size of Tidy Core = {terms: 68, types: 66, coercions: 9} | |
-- RHS size: {terms: 2, types: 0, coercions: 0} | |
Main.$trModule1 :: GHC.Types.TrName | |
[GblId, | |
Caf=NoCafRefs, | |
Str=DmdType m1, | |
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, | |
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 30 20}] | |
Main.$trModule1 = GHC.Types.TrNameS "Main"# | |
-- RHS size: {terms: 2, types: 0, coercions: 0} | |
Main.$trModule2 :: GHC.Types.TrName | |
[GblId, | |
Caf=NoCafRefs, | |
Str=DmdType m1, | |
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, | |
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 30 20}] | |
Main.$trModule2 = GHC.Types.TrNameS "main"# | |
-- RHS size: {terms: 3, types: 0, coercions: 0} | |
Main.$trModule :: GHC.Types.Module | |
[GblId, | |
Caf=NoCafRefs, | |
Str=DmdType m, | |
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, | |
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 10 30}] | |
Main.$trModule = GHC.Types.Module Main.$trModule2 Main.$trModule1 | |
Rec { | |
-- RHS size: {terms: 45, types: 31, coercions: 0} | |
Main.main_$s$wconsume_loop [Occ=LoopBreaker] | |
:: GHC.Prim.State# GHC.Prim.RealWorld | |
-> GHC.Prim.Int# -> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) | |
[GblId, Arity=2, Str=DmdType <S,U><S,U>] | |
Main.main_$s$wconsume_loop = | |
\ (sc_savi [OS=OneShot] :: GHC.Prim.State# GHC.Prim.RealWorld) | |
(sc1_savh :: GHC.Prim.Int#) -> | |
case GHC.Prim.tagToEnum# @ Bool (GHC.Prim.<=# sc1_savh 10#) | |
of _ [Occ=Dead] { | |
False -> (# sc_savi, GHC.Tuple.() #); | |
True -> | |
case GHC.Prim.remInt# sc1_savh 2# of _ [Occ=Dead] { | |
__DEFAULT -> | |
case GHC.IO.Handle.Text.hPutStr2 | |
GHC.IO.Handle.FD.stdout | |
(case GHC.Show.$wshowSignedInt | |
0# (GHC.Prim.*# sc1_savh 2#) (GHC.Types.[] @ Char) | |
of _ [Occ=Dead] { (# ww5_a9Pv, ww6_a9Pw #) -> | |
GHC.Types.: @ Char ww5_a9Pv ww6_a9Pw | |
}) | |
GHC.Types.True | |
sc_savi | |
of _ [Occ=Dead] { (# ipv_X77v, ipv1_X77x #) -> | |
Main.main_$s$wconsume_loop ipv_X77v (GHC.Prim.+# sc1_savh 1#) | |
}; | |
0# -> Main.main_$s$wconsume_loop sc_savi (GHC.Prim.+# sc1_savh 1#) | |
} | |
} | |
end Rec } | |
-- RHS size: {terms: 4, types: 2, coercions: 0} | |
Main.main1 | |
:: GHC.Prim.State# GHC.Prim.RealWorld | |
-> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) | |
[GblId, | |
Arity=1, | |
Str=DmdType, | |
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, | |
WorkFree=True, Expandable=True, | |
Guidance=ALWAYS_IF(arity=1,unsat_ok=True,boring_ok=True)}] | |
Main.main1 = | |
\ (w_sahn [OS=OneShot] :: GHC.Prim.State# GHC.Prim.RealWorld) -> | |
Main.main_$s$wconsume_loop w_sahn 1# | |
-- RHS size: {terms: 1, types: 0, coercions: 3} | |
main :: IO () | |
[GblId, | |
Arity=1, | |
Str=DmdType, | |
Unf=Unf{Src=InlineStable, TopLvl=True, Value=True, ConLike=True, | |
WorkFree=True, Expandable=True, | |
Guidance=ALWAYS_IF(arity=0,unsat_ok=True,boring_ok=True) | |
Tmpl= Main.main1 | |
`cast` (Sym (GHC.Types.N:IO[0] <()>_R) | |
:: ((GHC.Prim.State# GHC.Prim.RealWorld | |
-> (# GHC.Prim.State# GHC.Prim.RealWorld, () #)) :: *) | |
~R# | |
(IO () :: *))}] | |
main = | |
Main.main1 | |
`cast` (Sym (GHC.Types.N:IO[0] <()>_R) | |
:: ((GHC.Prim.State# GHC.Prim.RealWorld | |
-> (# GHC.Prim.State# GHC.Prim.RealWorld, () #)) :: *) | |
~R# | |
(IO () :: *)) | |
-- RHS size: {terms: 2, types: 1, coercions: 3} | |
Main.main2 | |
:: GHC.Prim.State# GHC.Prim.RealWorld | |
-> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) | |
[GblId, | |
Arity=1, | |
Str=DmdType, | |
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, | |
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 20 60}] | |
Main.main2 = | |
GHC.TopHandler.runMainIO1 | |
@ () | |
(Main.main1 | |
`cast` (Sym (GHC.Types.N:IO[0] <()>_R) | |
:: ((GHC.Prim.State# GHC.Prim.RealWorld | |
-> (# GHC.Prim.State# GHC.Prim.RealWorld, () #)) :: *) | |
~R# | |
(IO () :: *))) | |
-- RHS size: {terms: 1, types: 0, coercions: 3} | |
:Main.main :: IO () | |
[GblId, | |
Arity=1, | |
Str=DmdType, | |
Unf=Unf{Src=InlineStable, TopLvl=True, Value=True, ConLike=True, | |
WorkFree=True, Expandable=True, | |
Guidance=ALWAYS_IF(arity=0,unsat_ok=True,boring_ok=True) | |
Tmpl= Main.main2 | |
`cast` (Sym (GHC.Types.N:IO[0] <()>_R) | |
:: ((GHC.Prim.State# GHC.Prim.RealWorld | |
-> (# GHC.Prim.State# GHC.Prim.RealWorld, () #)) :: *) | |
~R# | |
(IO () :: *))}] | |
:Main.main = | |
Main.main2 | |
`cast` (Sym (GHC.Types.N:IO[0] <()>_R) | |
:: ((GHC.Prim.State# GHC.Prim.RealWorld | |
-> (# GHC.Prim.State# GHC.Prim.RealWorld, () #)) :: *) | |
~R# | |
(IO () :: *)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment