Commit d4a6a7fe authored by David Feuer's avatar David Feuer Committed by Ben Gamari
Browse files

Fix expected result from T13143

Reviewers: austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D3260
parent d118807d
......@@ -4,16 +4,15 @@ Result size of Tidy Core
= {terms: 73, types: 50, coercions: 0, joins: 0/0}
Rec {
-- RHS size: {terms: 3, types: 4, coercions: 0, joins: 0/0}
T13143.$wf [InlPrag=NOINLINE] :: forall a. GHC.Prim.Void# -> a
[GblId, Arity=1, Str=<B,A>b]
T13143.$wf = \ (@ a) _ [Occ=Dead] -> lvl @ a
-- RHS size: {terms: 3, types: 3, coercions: 0, joins: 0/0}
lvl :: forall a. a
[GblId, Str=b]
lvl = \ (@ a) -> T13143.$wf @ a GHC.Prim.void#
-- RHS size: {terms: 3, types: 4, coercions: 0, joins: 0/0}
T13143.$wf [InlPrag=NOINLINE, Occ=LoopBreaker]
:: forall a. GHC.Prim.Void# -> a
[GblId, Arity=1, Str=<B,A>b]
T13143.$wf = \ (@ a) _ [Occ=Dead] -> lvl @ a
end Rec }
-- RHS size: {terms: 3, types: 4, coercions: 0, joins: 0/0}
......@@ -68,8 +67,8 @@ T13143.$trModule :: GHC.Types.Module
Str=m,
Unf=Unf{Src=<vanilla>, TopLvl=True, Value=True, ConLike=True,
WorkFree=True, Expandable=True, Guidance=IF_ARGS [] 10 30}]
T13143.$trModule =
GHC.Types.Module T13143.$trModule3 T13143.$trModule1
T13143.$trModule
= GHC.Types.Module T13143.$trModule3 T13143.$trModule1
-- RHS size: {terms: 2, types: 1, coercions: 0, joins: 0/0}
lvl1 :: Int
......@@ -81,20 +80,20 @@ Rec {
T13143.$wg [InlPrag=[0], Occ=LoopBreaker]
:: Bool -> Bool -> GHC.Prim.Int# -> GHC.Prim.Int#
[GblId, Arity=3, Str=<S,1*U><S,1*U><S,U>]
T13143.$wg =
\ (w :: Bool) (w1 :: Bool) (ww :: GHC.Prim.Int#) ->
case w of {
False ->
case w1 of {
False -> T13143.$wg GHC.Types.False GHC.Types.True ww;
True -> GHC.Prim.+# ww 1#
};
True ->
case w1 of {
False -> T13143.$wg GHC.Types.True GHC.Types.True ww;
True -> case lvl1 of wild2 { }
}
}
T13143.$wg
= \ (w :: Bool) (w1 :: Bool) (ww :: GHC.Prim.Int#) ->
case w of {
False ->
case w1 of {
False -> T13143.$wg GHC.Types.False GHC.Types.True ww;
True -> GHC.Prim.+# ww 1#
};
True ->
case w1 of {
False -> T13143.$wg GHC.Types.True GHC.Types.True ww;
True -> case lvl1 of wild2 { }
}
}
end Rec }
-- RHS size: {terms: 14, types: 6, coercions: 0, joins: 0/0}
......@@ -111,11 +110,10 @@ g [InlPrag=INLINE[0]] :: Bool -> Bool -> Int -> Int
case w2 of { GHC.Types.I# ww1 [Occ=Once] ->
case T13143.$wg w w1 ww1 of ww2 { __DEFAULT -> GHC.Types.I# ww2 }
}}]
g =
\ (w :: Bool) (w1 :: Bool) (w2 :: Int) ->
case w2 of { GHC.Types.I# ww1 ->
case T13143.$wg w w1 ww1 of ww2 { __DEFAULT -> GHC.Types.I# ww2 }
}
g = \ (w :: Bool) (w1 :: Bool) (w2 :: Int) ->
case w2 of { GHC.Types.I# ww1 ->
case T13143.$wg w w1 ww1 of ww2 { __DEFAULT -> GHC.Types.I# ww2 }
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment