|
|
|
==================== Tidy Core ==================== |
|
2020-06-03 04:57:26.342845 UTC |
|
|
|
Result size of Tidy Core |
|
= {terms: 113, types: 188, coercions: 115, joins: 1/1} |
|
|
|
-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0} |
|
Main.$trModule4 :: GHC.Prim.Addr# |
|
[GblId, |
|
Caf=NoCafRefs, |
|
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, |
|
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 20 0}] |
|
Main.$trModule4 = "main"# |
|
|
|
-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0} |
|
Main.$trModule3 :: GHC.Types.TrName |
|
[GblId, |
|
Caf=NoCafRefs, |
|
Str=m1, |
|
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, |
|
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 10 20}] |
|
Main.$trModule3 = GHC.Types.TrNameS Main.$trModule4 |
|
|
|
-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0} |
|
Main.$trModule2 :: GHC.Prim.Addr# |
|
[GblId, |
|
Caf=NoCafRefs, |
|
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, |
|
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 20 0}] |
|
Main.$trModule2 = "Main"# |
|
|
|
-- RHS size: {terms: 2, types: 0, coercions: 0, joins: 0/0} |
|
Main.$trModule1 :: GHC.Types.TrName |
|
[GblId, |
|
Caf=NoCafRefs, |
|
Str=m1, |
|
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, |
|
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 10 20}] |
|
Main.$trModule1 = GHC.Types.TrNameS Main.$trModule2 |
|
|
|
-- RHS size: {terms: 3, types: 0, coercions: 0, joins: 0/0} |
|
Main.$trModule :: GHC.Types.Module |
|
[GblId, |
|
Caf=NoCafRefs, |
|
Str=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.$trModule3 Main.$trModule1 |
|
|
|
-- RHS size: {terms: 71, types: 107, coercions: 109, joins: 1/1} |
|
Main.main2 |
|
:: GHC.Prim.State# GHC.Prim.RealWorld |
|
-> (# GHC.Prim.State# GHC.Prim.RealWorld, VU.Vector Int #) |
|
[GblId, |
|
Arity=1, |
|
Caf=NoCafRefs, |
|
Str=<L,U>, |
|
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, |
|
WorkFree=True, Expandable=True, Guidance=IF_ARGS [0] 122 0}] |
|
Main.main2 |
|
= \ (s1_i59o [OS=OneShot] :: GHC.Prim.State# GHC.Prim.RealWorld) -> |
|
case GHC.Prim.newByteArray# |
|
@ (Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)) |
|
4611686018427387896# |
|
(s1_i59o |
|
`cast` ((GHC.Prim.State# |
|
(Sym (Control.Monad.Primitive.D:R:PrimStateST[0] |
|
(Nth:0 |
|
(Nth:2 |
|
(<GHC.Prim.State# GHC.Prim.RealWorld>_R |
|
->_R ((#,#) |
|
<'GHC.Types.TupleRep '[]>_R |
|
<'GHC.Types.LiftedRep>_R |
|
<GHC.Prim.State# GHC.Prim.RealWorld>_R |
|
(Data.Vector.Generic.Base.Mutable |
|
<VU.Vector>_N |
|
(Control.Monad.Primitive.D:R:PrimStateST[0] |
|
<GHC.Prim.RealWorld>_N) |
|
<Int>_N)_R)_R))))))_R |
|
:: GHC.Prim.State# GHC.Prim.RealWorld |
|
~R# GHC.Prim.State# |
|
(Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)))) |
|
of |
|
{ (# ipv_i8aR, ipv1_i8aS #) -> |
|
joinrec { |
|
$s$wfoldlM'_loop_saoo [Occ=LoopBreaker] |
|
:: GHC.Prim.State# GHC.Prim.RealWorld |
|
-> GHC.Prim.Int# |
|
-> GHC.Prim.Int# |
|
-> (# GHC.Prim.State# GHC.Prim.RealWorld, VU.Vector Int #) |
|
[LclId[JoinId(3)], Arity=3, Str=<L,U><L,U><L,U>, Unf=OtherCon []] |
|
$s$wfoldlM'_loop_saoo (sc_saon |
|
:: GHC.Prim.State# GHC.Prim.RealWorld) |
|
(sc1_saol :: GHC.Prim.Int#) |
|
(sc2_saok :: GHC.Prim.Int#) |
|
= case GHC.Prim.<# sc1_saol 576460752303423487# of { |
|
__DEFAULT -> |
|
case GHC.Prim.unsafeFreezeByteArray# |
|
@ (Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)) |
|
ipv1_i8aS |
|
(sc_saon |
|
`cast` ((GHC.Prim.State# |
|
(Sym (Control.Monad.Primitive.D:R:PrimStateST[0] |
|
(Nth:0 |
|
(Nth:2 |
|
(Nth:3 |
|
(<GHC.Prim.State# GHC.Prim.RealWorld>_R |
|
->_R ((#,#) |
|
<'GHC.Types.TupleRep '[]>_R |
|
<'GHC.Types.LiftedRep>_R |
|
<GHC.Prim.State# |
|
GHC.Prim.RealWorld>_R |
|
(Data.Vector.Generic.Base.Mutable |
|
<VU.Vector>_N |
|
(Sym (Control.Monad.Primitive.D:R:PrimStateST[0] |
|
<GHC.Prim.RealWorld>_N)) |
|
<Int>_N)_R)_R)))))))_R |
|
:: GHC.Prim.State# GHC.Prim.RealWorld |
|
~R# GHC.Prim.State# |
|
(Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)))) |
|
of |
|
{ (# ipv2_i88O, ipv3_i88P #) -> |
|
(# ipv2_i88O |
|
`cast` ((GHC.Prim.State# |
|
(Control.Monad.Primitive.D:R:PrimStateST[0] |
|
<GHC.Prim.RealWorld>_N))_R |
|
:: GHC.Prim.State# |
|
(Control.Monad.Primitive.PrimState (GHC.ST.ST GHC.Prim.RealWorld)) |
|
~R# GHC.Prim.State# GHC.Prim.RealWorld), |
|
(Data.Vector.Primitive.Vector @ Int 0# sc2_saok ipv3_i88P) |
|
`cast` (Sym (Data.Vector.Unboxed.Base.N:R:VectorInt[0]) ; Sym (Data.Vector.Unboxed.Base.D:R:VectorInt0[0]) |
|
:: Data.Vector.Primitive.Vector Int ~R# VU.Vector Int) #) |
|
}; |
|
1# -> |
|
case GHC.Prim.<# sc1_saol 40# of { |
|
__DEFAULT -> |
|
case GHC.Prim.unsafeFreezeByteArray# |
|
@ (Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)) |
|
ipv1_i8aS |
|
(sc_saon |
|
`cast` ((GHC.Prim.State# |
|
(Sym (Control.Monad.Primitive.D:R:PrimStateST[0] |
|
(Nth:0 |
|
(Nth:2 |
|
(Nth:3 |
|
(<GHC.Prim.State# |
|
GHC.Prim.RealWorld>_R |
|
->_R ((#,#) |
|
<'GHC.Types.TupleRep '[]>_R |
|
<'GHC.Types.LiftedRep>_R |
|
<GHC.Prim.State# |
|
GHC.Prim.RealWorld>_R |
|
(Data.Vector.Generic.Base.Mutable |
|
<VU.Vector>_N |
|
(Sym (Control.Monad.Primitive.D:R:PrimStateST[0] |
|
<GHC.Prim.RealWorld>_N)) |
|
<Int>_N)_R)_R)))))))_R |
|
:: GHC.Prim.State# GHC.Prim.RealWorld |
|
~R# GHC.Prim.State# |
|
(Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)))) |
|
of |
|
{ (# ipv2_i88O, ipv3_i88P #) -> |
|
(# ipv2_i88O |
|
`cast` ((GHC.Prim.State# |
|
(Control.Monad.Primitive.D:R:PrimStateST[0] |
|
<GHC.Prim.RealWorld>_N))_R |
|
:: GHC.Prim.State# |
|
(Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)) |
|
~R# GHC.Prim.State# GHC.Prim.RealWorld), |
|
(Data.Vector.Primitive.Vector @ Int 0# sc2_saok ipv3_i88P) |
|
`cast` (Sym (Data.Vector.Unboxed.Base.N:R:VectorInt[0]) ; Sym (Data.Vector.Unboxed.Base.D:R:VectorInt0[0]) |
|
:: Data.Vector.Primitive.Vector Int ~R# VU.Vector Int) #) |
|
}; |
|
1# -> |
|
case sc1_saol of wild_X1x { |
|
__DEFAULT -> |
|
jump $s$wfoldlM'_loop_saoo |
|
sc_saon (GHC.Prim.+# wild_X1x 1#) sc2_saok; |
|
1# -> |
|
case GHC.Prim.writeIntArray# |
|
@ (Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)) |
|
ipv1_i8aS |
|
sc2_saok |
|
1# |
|
(sc_saon |
|
`cast` ((GHC.Prim.State# |
|
(Sym (Control.Monad.Primitive.D:R:PrimStateST[0] |
|
<GHC.Prim.RealWorld>_N)))_R |
|
:: GHC.Prim.State# GHC.Prim.RealWorld |
|
~R# GHC.Prim.State# |
|
(Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)))) |
|
of s'#_i8Nc |
|
{ __DEFAULT -> |
|
jump $s$wfoldlM'_loop_saoo |
|
(s'#_i8Nc |
|
`cast` ((GHC.Prim.State# |
|
(Control.Monad.Primitive.D:R:PrimStateST[0] |
|
<GHC.Prim.RealWorld>_N))_R |
|
:: GHC.Prim.State# |
|
(Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST GHC.Prim.RealWorld)) |
|
~R# GHC.Prim.State# GHC.Prim.RealWorld)) |
|
2# |
|
(GHC.Prim.+# sc2_saok 1#) |
|
} |
|
} |
|
} |
|
}; } in |
|
jump $s$wfoldlM'_loop_saoo |
|
(ipv_i8aR |
|
`cast` ((GHC.Prim.State# |
|
(Control.Monad.Primitive.D:R:PrimStateST[0] |
|
(Nth:0 |
|
(Nth:2 |
|
(Nth:3 |
|
(<GHC.Prim.State# GHC.Prim.RealWorld>_R |
|
->_R ((#,#) |
|
<'GHC.Types.TupleRep '[]>_R |
|
<'GHC.Types.LiftedRep>_R |
|
<GHC.Prim.State# GHC.Prim.RealWorld>_R |
|
(Sub (Sym (Data.Vector.Unboxed.Base.D:R:MutableVector[0])) <Control.Monad.Primitive.PrimState |
|
(GHC.ST.ST |
|
GHC.Prim.RealWorld)>_N <Int>_N))_R))))))_R |
|
:: GHC.Prim.State# |
|
(Control.Monad.Primitive.PrimState (GHC.ST.ST GHC.Prim.RealWorld)) |
|
~R# GHC.Prim.State# GHC.Prim.RealWorld)) |
|
0# |
|
0# |
|
} |
|
|
|
-- RHS size: {terms: 16, types: 49, coercions: 3, joins: 0/0} |
|
Main.main1 :: String |
|
[GblId, |
|
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=False, ConLike=False, |
|
WorkFree=False, Expandable=False, Guidance=IF_ARGS [] 100 30}] |
|
Main.main1 |
|
= case GHC.Magic.runRW# |
|
@ ('GHC.Types.TupleRep |
|
'[ 'GHC.Types.TupleRep '[], 'GHC.Types.LiftedRep]) |
|
@ (# GHC.Prim.State# GHC.Prim.RealWorld, VU.Vector Int #) |
|
Main.main2 |
|
of |
|
{ (# ipv1_i5bJ, ipv2_i5bK #) -> |
|
case ipv2_i5bK |
|
`cast` (Data.Vector.Unboxed.Base.D:R:VectorInt0[0] ; Data.Vector.Unboxed.Base.N:R:VectorInt[0] |
|
:: VU.Vector Int ~R# Data.Vector.Primitive.Vector Int) |
|
of |
|
{ Data.Vector.Primitive.Vector ipv_s8vC ipv4_s8vD ipv5_s8vE -> |
|
case GHC.Show.$wshowSignedInt 0# ipv4_s8vD (GHC.Types.[] @ Char) of |
|
{ (# ww5_i4PU, ww6_i4PV #) -> |
|
GHC.Types.: @ Char ww5_i4PU ww6_i4PV |
|
} |
|
} |
|
} |
|
|
|
-- RHS size: {terms: 4, types: 0, coercions: 0, joins: 0/0} |
|
main :: IO () |
|
[GblId, |
|
Arity=1, |
|
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, |
|
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 40 60}] |
|
main |
|
= GHC.IO.Handle.Text.hPutStr' |
|
GHC.IO.Handle.FD.stdout Main.main1 GHC.Types.True |
|
|
|
-- RHS size: {terms: 2, types: 1, coercions: 0, joins: 0/0} |
|
Main.main3 |
|
:: GHC.Prim.State# GHC.Prim.RealWorld |
|
-> (# GHC.Prim.State# GHC.Prim.RealWorld, () #) |
|
[GblId, |
|
Arity=1, |
|
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True, |
|
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 20 60}] |
|
Main.main3 = GHC.TopHandler.runMainIO1 @ () main |
|
|
|
-- RHS size: {terms: 1, types: 0, coercions: 3, joins: 0/0} |
|
:Main.main :: IO () |
|
[GblId, |
|
Arity=1, |
|
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.main3 |
|
`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.main3 |
|
`cast` (Sym (GHC.Types.N:IO[0] <()>_R) |
|
:: (GHC.Prim.State# GHC.Prim.RealWorld |
|
-> (# GHC.Prim.State# GHC.Prim.RealWorld, () #)) |
|
~R# IO ()) |
|
|
|
|