Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
80d19100
Commit
80d19100
authored
Sep 05, 1997
by
simonm
Browse files
[project @ 1997-09-05 14:11:05 by simonm]
Mondo commit to get tests working.
parent
e3f0d880
Changes
432
Expand all
Hide whitespace changes
Inline
Side-by-side
ghc/tests/Makefile
View file @
80d19100
TOP
=
.
.
TOP
=
.
include
$(TOP)/mk/boilerplate.mk
SUBDIRS
=
reader rename simplCore typecheck deSugar printing ccall deriving programs
SUBDIRS
=
ccall deriving deSugar printing reader rename simplCore typecheck
#programs
include
$(TOP)/mk/target.mk
...
...
ghc/tests/ccall/Makefile
0 → 100644
View file @
80d19100
TOP
=
..
include
$(TOP)/mk/boilerplate.mk
SUBDIRS
=
should_compile should_fail
include
$(TOP)/mk/target.mk
ghc/tests/ccall/should_compile/Makefile
View file @
80d19100
TOP
=
../..
/..
TOP
=
../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/should_compile.mk
HS_SRCS
=
$(
wildcard
*
.hs
)
SRC_RUNTEST_OPTS
+=
-o1
$*
.stdout
-o2
$*
.stderr
-x
0
HC_OPTS
+=
-dcore-lint
-fglasgow-exts
cc002_RUNTEST_OPTS
=
-x
1
cc004_RUNTEST_OPTS
=
-x
1
cc007_RUNTEST_OPTS
=
-x
1
# Note that these tests are still in a state of flux... don't believe errors
# they report. In fact, these aren't really very good tests at all...
...
...
@@ -21,12 +15,4 @@ cc005_HC_OPTS = -fvia-C -ddump-stg -ddump-flatC
cc006_HC_OPTS
=
-fvia-C
-ddump-stg
-ddump-flatC
cc007_HC_OPTS
=
-fvia-C
-ddump-stg
-ddump-flatC
%.o
:
%.hs
%.o
:
%.hs
$(RUNTEST)
$(HC)
$(RUNTEST_OPTS)
$(HC_OPTS)
-c
$<
-o
$@
-osuf
$(
subst
.,,
$(
suffix
$@
))
all
::
$(HS_OBJS)
include
$(TOP)/mk/target.mk
ghc/tests/ccall/should_compile/cc001.stderr
View file @
80d19100
...
...
@@ -2,332 +2,261 @@
================================================================================
Typechecked:
{- nonrec -}
{- nonrec -}
{- nonrec -}
d.Fractional_a16j =
PrelNum.$d23{-rtW,p-}
fromRational_a16o =
PrelNum.fromRational{-8T,p-}
PrelBase.Float{-3c,p-}
d.Fractional_a16j
lit_a16r =
fromRational_a16o
1.0000000000000000
d.Fractional_a16n =
PrelNum.$d14{-rtM,p-}
fromRational_a16q =
PrelNum.fromRational{-8T,p-}
PrelBase.Double{-3a,p-}
d.Fractional_a16n
lit_a16p =
fromRational_a16q
2.0000000000000000
{- nonrec -}
AbsBinds [] [] [([], c{-r5,x-}, c_a15h)]
c_a15h
x1_r4l x2_r4n x3_r4p x4_r4r
= STBase.ST{-5G,p-}{i}
[GHC.RealWorld{-3s,p-}, PrelBase.Float{-3c,p-}]
_ccall_ c
x1_r4l x2_r4n x3_r4p x4_r4r
{- nonrec -}
{- nonrec -}
AbsBinds [] [] [([], b{-r3,x-}, b_a15F)]
b_a15F
x_r4j = STBase.ST{-5G,p-}{i}
[GHC.RealWorld{-3s,p-}, PrelBase.Int{-3g,p-}]
_ccall_ b
x_r4j
{- nonrec -}
{- nonrec -}
AbsBinds [] [] [([], a{-r1,x-}, a_a15R)]
a_a15R
= STBase.ST{-5G,p-}{i}
[GHC.RealWorld{-3s,p-}, PrelBase.Int{-3g,p-}]
_ccall_ a
{- nonrec -}
{- nonrec -}
AbsBinds [] [] [([], d{-r7,x-}, d_a15Y)]
d_a15Y
= STBase.thenPrimIO{-r4w,p-}
[PrelBase.Int{-3g,p-}, PrelBase.Float{-3c,p-}]
a{-r1,x-}
(\ x_r4t -> STBase.thenPrimIO{-r4w,p-}
[PrelBase.Int{-3g,p-}, PrelBase.Float{-3c,p-}]
(b{-r3,x-}
x_r4t)
(\ y_r4v -> c{-r5,x-}
y_r4v 'f' lit_a16r lit_a16p))
{- nonrec -}
AbsBinds [] [] [([], c{-r5,x-}, c_aZc)]
c_aZc x1_r4l x2_r4m x3_r4n x4_r4o
= STBase.ST{-5G,w-}{i}
[GHC.RealWorld{-3s,W-}, PrelBase.Float{-3c,W-}] _ccall_ c
x1_r4l x2_r4m x3_r4n x4_r4o
AbsBinds [] [] [([], b{-r3,x-}, b_aZE)]
b_aZE x_r4j
= STBase.ST{-5G,w-}{i}
[GHC.RealWorld{-3s,W-}, PrelBase.Int{-3g,W-}] _ccall_ b x_r4j
AbsBinds [] [] [([], a{-r1,x-}, a_aZR)]
a_aZR
= STBase.ST{-5G,w-}{i}
[GHC.RealWorld{-3s,W-}, PrelBase.Int{-3g,W-}] _ccall_ a
AbsBinds [] [] [([], d{-r7,x-}, d_aZY)]
d_aZY
= STBase.thenPrimIO{-r4t,p-}
[PrelBase.Int{-3g,W-}, PrelBase.Float{-3c,W-}]
a{-r1,x-}
(\ x_r4q
-> STBase.thenPrimIO{-r4t,p-}
[PrelBase.Int{-3g,W-}, PrelBase.Float{-3c,W-}]
(b{-r3,x-} x_r4q)
(\ y_r4s -> c{-r5,x-} y_r4s 'f' lit_a10r lit_a10t))
d.Fractional_a10l = PrelNum.$d23{-rsg,p-}
fromRational_a10q =
PrelNum.fromRational{-8T,p-} PrelBase.Float{-3c,W-}
d.Fractional_a10l
lit_a10r = fromRational_a10q 1.0000000000000000
d.Fractional_a10p = PrelNum.$d14{-rs6,p-}
fromRational_a10s =
PrelNum.fromRational{-8T,p-} PrelBase.Double{-3a,W-}
d.Fractional_a10p
lit_a10t = fromRational_a10s 2.0000000000000000
================================================================================
Desugared:
Rec {
d.Fractional_a16j ::
{PrelNum.Fractional{-26,p-} PrelBase.Float{-3c,p-}}
{-# L #-}
d.Fractional_a16j =
PrelNum.$d23{-rtW,p-}
fromRational_a16o ::
PrelNum.Rational{-3r,p-} -> PrelBase.Float{-3c,p-}
{-# L #-}
fromRational_a16o =
PrelNum.fromRational{-8T,p-}
_@_ PrelBase.Float{-3c,p-} d.Fractional_a16j
lit_a16r ::
PrelBase.Float{-3c,p-}
{-# L #-}
lit_a16r =
fromRational_a16o
_rational_ 1 1
d.Fractional_a16n ::
{PrelNum.Fractional{-26,p-} PrelBase.Double{-3a,p-}}
{-# L #-}
d.Fractional_a16n =
PrelNum.$d14{-rtM,p-}
fromRational_a16q ::
PrelNum.Rational{-3r,p-} -> PrelBase.Double{-3a,p-}
{-# L #-}
fromRational_a16q =
PrelNum.fromRational{-8T,p-}
_@_ PrelBase.Double{-3a,p-} d.Fractional_a16n
lit_a16p ::
PrelBase.Double{-3a,p-}
{-# L #-}
lit_a16p =
fromRational_a16q
_rational_ 2 1
c_a15h ::
PrelBase.Int{-3g,p-}
-> PrelBase.Char{-38,p-}
-> PrelBase.Float{-3c,p-}
-> PrelBase.Double{-3a,p-}
-> STBase.PrimIO{-3P,p-} PrelBase.Float{-3c,p-}
c_aZc :: PrelBase.Int{-3g,W-}
-> PrelBase.Char{-38,W-}
-> PrelBase.Float{-3c,W-}
-> PrelBase.Double{-3a,W-}
-> STBase.PrimIO{-3P,W-} PrelBase.Float{-3c,W-}
{-# L #-}
c_a15h =
\ x1_r4l ::
PrelBase.Int{-3g,p-}
c_aZc =
\ x1_r4l :: PrelBase.Int{-3g,W-}
{-# L #-}
x1_r4l x2_r4n ::
PrelBase.Char{-38,p-}
x1_r4l x2_r4m :: PrelBase.Char{-38,W-}
{-# L #-}
x2_r4n x3_r4p ::
PrelBase.Float{-3c,p-}
x2_r4m x3_r4n :: PrelBase.Float{-3c,W-}
{-# L #-}
x3_r4p x4_r4r ::
PrelBase.Double{-3a,p-}
x3_r4n x4_r4o :: PrelBase.Double{-3a,W-}
{-# L #-}
x4_r4
r
->
x4_r4
o
->
let {
ds_d1et ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
-> (PrelBase.Float{-3c,p-}, STBase.State{-3M,p-} GHC.RealWorld{-3s,p-})
ds_d17v :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
-> (PrelBase.Float{-3c,W-}, STBase.State{-3M,W-} GHC.RealWorld{-3s,W-})
{-# L #-}
ds_d1et =
\ ds_d1ez ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
ds_d17v =
\ ds_d17B :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
{-# L #-}
ds_d1
ez
->
case ds_d1
ez
of { STBase.S#{-5D,
p
-}{i} ds_d1
eI
->
case x1_r4l of { PrelBase.I#{-5b,
p
-}{i} ds_d1
eR
->
case x2_r4
n
of { PrelBase.C#{-54,
p
-}{i} ds_d1
f0
->
case x3_r4
p
of { PrelBase.F#{-59,
p
-}{i} ds_d1
f
9 ->
case x4_r4
r
of { PrelBase.D#{-56,
p
-}{i} ds_d1
fw
->
ds_d1
7B
->
case ds_d1
7B
of { STBase.S#{-5D,
w
-}{i} ds_d1
8A
->
case x1_r4l of { PrelBase.I#{-5b,
w
-}{i} ds_d1
8J
->
case x2_r4
m
of { PrelBase.C#{-54,
w
-}{i} ds_d1
8S
->
case x3_r4
n
of { PrelBase.F#{-59,
w
-}{i} ds_d19
1
->
case x4_r4
o
of { PrelBase.D#{-56,
w
-}{i} ds_d1
9o
->
case
_ccall_ c [(STBase.StateAndFloat#{-3C,
p
-} GHC.RealWorld{-3s,
p
-}) (GHC.State#{-3L,
p
-} GHC.RealWorld{-3s,
p
-}) GHC.Int#{-3f,
p
-} GHC.Char#{-37,
p
-} GHC.Float#{-3b,
p
-} GHC.Double#{-39,
p
-}]!
ds_d1
eI
ds_d1
eR
ds_d1
f0
ds_d1
f
9 ds_d1
fw
_ccall_ c [(STBase.StateAndFloat#{-3C,
W
-} GHC.RealWorld{-3s,
W
-}) (GHC.State#{-3L,
W
-} GHC.RealWorld{-3s,
W
-}) GHC.Int#{-3f,
W
-} GHC.Char#{-37,
W
-} GHC.Float#{-3b,
W
-} GHC.Double#{-39,
W
-}]!
ds_d1
8A
ds_d1
8J
ds_d1
8S
ds_d19
1
ds_d1
9o
of {
STBase.StateAndFloat#{-5u,
p
-}{i} ds_d1
fZ
ds_d1
fX
->
STBase.StateAndFloat#{-5u,
w
-}{i} ds_d1
9R
ds_d1
9P
->
let {
ds_d1fO ::
PrelBase.Float{-3c,p-}
ds_d19G :: PrelBase.Float{-3c,W-}
{-# L #-}
ds_d1fO =
PrelBase.F#{-59,p-}{i}
{ds_d1fX} } in
ds_d19G =
PrelBase.F#{-59,w-}{i} {ds_d19P} } in
let {
ds_d1fS ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
ds_d19K :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
{-# L #-}
ds_d1fS =
STBase.S#{-5D,p-}{i}
{_@_ GHC.RealWorld{-3s,p-} ds_d1fZ}
ds_d19K =
STBase.S#{-5D,w-}{i} {_@_ GHC.RealWorld{-3s,W-} ds_d19R}
} in
PrelTup.(,){-62,
p
-}{i}
{_@_ PrelBase.Float{-3c,
p
-}
_@_ (STBase.State{-3M,
p
-} GHC.RealWorld{-3s,
p
-})
ds_d1
fO
ds_d1
fS
};};};};};};}
PrelTup.(,){-62,
w
-}{i}
{_@_ PrelBase.Float{-3c,
W
-}
_@_ (STBase.State{-3M,
W
-} GHC.RealWorld{-3s,
W
-})
ds_d1
9G
ds_d1
9K
};};};};};};}
} in
STBase.ST{-5G,p-}{i}
_@_ GHC.RealWorld{-3s,p-} _@_ PrelBase.Float{-3c,p-} ds_d1et
c{-r5,x-} ::
PrelBase.Int{-3g,p-}
-> PrelBase.Char{-38,p-}
-> PrelBase.Float{-3c,p-}
-> PrelBase.Double{-3a,p-}
-> STBase.PrimIO{-3P,p-} PrelBase.Float{-3c,p-}
STBase.ST{-5G,w-}{i}
_@_ GHC.RealWorld{-3s,W-} _@_ PrelBase.Float{-3c,W-} ds_d17v
c{-r5,x-} :: PrelBase.Int{-3g,W-}
-> PrelBase.Char{-38,W-}
-> PrelBase.Float{-3c,W-}
-> PrelBase.Double{-3a,W-}
-> STBase.PrimIO{-3P,W-} PrelBase.Float{-3c,W-}
{-# L #-}
c{-r5,x-} =
c_a
15h
b_a
15F
::
PrelBase.Int{-3g,p-}
-> STBase.PrimIO{-3P,
p
-} PrelBase.Int{-3g,
p
-}
c_a
Zc
b_a
ZE
::
PrelBase.Int{-3g,W-}
-> STBase.PrimIO{-3P,
W
-} PrelBase.Int{-3g,
W
-}
{-# L #-}
b_a15F =
\ x_r4j ::
PrelBase.Int{-3g,p-}
b_aZE =
\ x_r4j :: PrelBase.Int{-3g,W-}
{-# L #-}
x_r4j ->
let {
ds_d1gj ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
-> (PrelBase.Int{-3g,p-}, STBase.State{-3M,p-} GHC.RealWorld{-3s,p-})
ds_d1ab :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
-> (PrelBase.Int{-3g,W-}, STBase.State{-3M,W-} GHC.RealWorld{-3s,W-})
{-# L #-}
ds_d1gj =
\ ds_d1gp ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
ds_d1ab =
\ ds_d1ah :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
{-# L #-}
ds_d1
gp
->
case ds_d1
gp
of { STBase.S#{-5D,
p
-}{i} ds_d1
gy
->
case x_r4j of { PrelBase.I#{-5b,
p
-}{i} ds_d1
gM
->
ds_d1
ah
->
case ds_d1
ah
of { STBase.S#{-5D,
w
-}{i} ds_d1
aq
->
case x_r4j of { PrelBase.I#{-5b,
w
-}{i} ds_d1
aE
->
case
_ccall_ b [(STBase.StateAndInt#{-3D,
p
-} GHC.RealWorld{-3s,
p
-}) (GHC.State#{-3L,
p
-} GHC.RealWorld{-3s,
p
-}) GHC.Int#{-3f,
p
-}]!
ds_d1
gy
ds_d1
gM
_ccall_ b [(STBase.StateAndInt#{-3D,
W
-} GHC.RealWorld{-3s,
W
-}) (GHC.State#{-3L,
W
-} GHC.RealWorld{-3s,
W
-}) GHC.Int#{-3f,
W
-}]!
ds_d1
aq
ds_d1
aE
of {
STBase.StateAndInt#{-5v,
p
-}{i} ds_d1
hf
ds_d1
hd
->
STBase.StateAndInt#{-5v,
w
-}{i} ds_d1
b7
ds_d1
b5
->
let {
ds_d1h4 ::
PrelBase.Int{-3g,p-}
ds_d1aW :: PrelBase.Int{-3g,W-}
{-# L #-}
ds_d1h4 =
PrelBase.I#{-5b,p-}{i}
{ds_d1hd} } in
ds_d1aW =
PrelBase.I#{-5b,w-}{i} {ds_d1b5} } in
let {
ds_d1h8 ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
ds_d1b0 :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
{-# L #-}
ds_d1h8 =
STBase.S#{-5D,p-}{i}
{_@_ GHC.RealWorld{-3s,p-} ds_d1hf}
ds_d1b0 =
STBase.S#{-5D,w-}{i} {_@_ GHC.RealWorld{-3s,W-} ds_d1b7}
} in
PrelTup.(,){-62,
p
-}{i}
{_@_ PrelBase.Int{-3g,
p
-}
_@_ (STBase.State{-3M,
p
-} GHC.RealWorld{-3s,
p
-})
ds_d1
h4
ds_d1
h8
};};};}
PrelTup.(,){-62,
w
-}{i}
{_@_ PrelBase.Int{-3g,
W
-}
_@_ (STBase.State{-3M,
W
-} GHC.RealWorld{-3s,
W
-})
ds_d1
aW
ds_d1
b0
};};};}
} in
STBase.ST{-5G,
p
-}{i}
_@_ GHC.RealWorld{-3s,
p
-} _@_ PrelBase.Int{-3g,
p
-} ds_d1
gj
b{-r3,x-} ::
PrelBase.Int{-3g,p-}
-> STBase.PrimIO{-3P,
p
-} PrelBase.Int{-3g,
p
-}
STBase.ST{-5G,
w
-}{i}
_@_ GHC.RealWorld{-3s,
W
-} _@_ PrelBase.Int{-3g,
W
-} ds_d1
ab
b{-r3,x-} ::
PrelBase.Int{-3g,W-}
-> STBase.PrimIO{-3P,
W
-} PrelBase.Int{-3g,
W
-}
{-# L #-}
b{-r3,x-} =
b_a15F
a_a15R ::
STBase.PrimIO{-3P,p-} PrelBase.Int{-3g,p-}
b_aZE
a_aZR :: STBase.PrimIO{-3P,W-} PrelBase.Int{-3g,W-}
{-# L #-}
a_a
15
R =
a_a
Z
R =
let {
ds_d1hy ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
-> (PrelBase.Int{-3g,p-}, STBase.State{-3M,p-} GHC.RealWorld{-3s,p-})
ds_d1bq :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
-> (PrelBase.Int{-3g,W-}, STBase.State{-3M,W-} GHC.RealWorld{-3s,W-})
{-# L #-}
ds_d1hy =
\ ds_d1hE ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
ds_d1bq =
\ ds_d1bw :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
{-# L #-}
ds_d1
hE
->
case ds_d1
hE
of { STBase.S#{-5D,
p
-}{i} ds_d1
hP
->
ds_d1
bw
->
case ds_d1
bw
of { STBase.S#{-5D,
w
-}{i} ds_d1
bH
->
case
_ccall_ a [(STBase.StateAndInt#{-3D,
p
-} GHC.RealWorld{-3s,
p
-}) (GHC.State#{-3L,
p
-} GHC.RealWorld{-3s,
p
-})]!
ds_d1
hP
_ccall_ a [(STBase.StateAndInt#{-3D,
W
-} GHC.RealWorld{-3s,
W
-}) (GHC.State#{-3L,
W
-} GHC.RealWorld{-3s,
W
-})]!
ds_d1
bH
of {
STBase.StateAndInt#{-5v,
p
-}{i} ds_d1
ii
ds_d1
ig
->
STBase.StateAndInt#{-5v,
w
-}{i} ds_d1
ca
ds_d1
c8
->
let {
ds_d1i7 ::
PrelBase.Int{-3g,p-}
ds_d1bZ :: PrelBase.Int{-3g,W-}
{-# L #-}
ds_d1i7 =
PrelBase.I#{-5b,p-}{i}
{ds_d1ig} } in
ds_d1bZ =
PrelBase.I#{-5b,w-}{i} {ds_d1c8} } in
let {
ds_d1ib ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
ds_d1c3 :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
{-# L #-}
ds_d1ib =
STBase.S#{-5D,p-}{i}
{_@_ GHC.RealWorld{-3s,p-} ds_d1ii}
ds_d1c3 =
STBase.S#{-5D,w-}{i} {_@_ GHC.RealWorld{-3s,W-} ds_d1ca}
} in
PrelTup.(,){-62,
p
-}{i}
{_@_ PrelBase.Int{-3g,
p
-}
_@_ (STBase.State{-3M,
p
-} GHC.RealWorld{-3s,
p
-})
ds_d1
i7
ds_d1
ib
};};}
PrelTup.(,){-62,
w
-}{i}
{_@_ PrelBase.Int{-3g,
W
-}
_@_ (STBase.State{-3M,
W
-} GHC.RealWorld{-3s,
W
-})
ds_d1
bZ
ds_d1
c3
};};}
} in
STBase.ST{-5G,p-}{i}
_@_ GHC.RealWorld{-3s,p-} _@_ PrelBase.Int{-3g,p-} ds_d1hy
a{-r1,x-} ::
STBase.PrimIO{-3P,p-} PrelBase.Int{-3g,p-}
STBase.ST{-5G,w-}{i}
_@_ GHC.RealWorld{-3s,W-} _@_ PrelBase.Int{-3g,W-} ds_d1bq
a{-r1,x-} :: STBase.PrimIO{-3P,W-} PrelBase.Int{-3g,W-}
{-# L #-}
a{-r1,x-} =
a_a15R
d_a15Y ::
STBase.PrimIO{-3P,p-} PrelBase.Float{-3c,p-}
a_aZR
d_aZY :: STBase.PrimIO{-3P,W-} PrelBase.Float{-3c,W-}
{-# L #-}
d_a
15
Y =
d_a
Z
Y =
let {
ds_d1iE ::
PrelBase.Int{-3g,p-}
-> STBase.PrimIO{-3P,p-} PrelBase.Float{-3c,p-}
ds_d1cw :: PrelBase.Int{-3g,W-}
-> STBase.PrimIO{-3P,W-} PrelBase.Float{-3c,W-}
{-# L #-}
ds_d1iE =
\ x_r4t ::
PrelBase.Int{-3g,p-}
ds_d1cw =
\ x_r4q :: PrelBase.Int{-3g,W-}
{-# L #-}
x_r4
t
->
x_r4
q
->
let {
ds_d1iT ::
STBase.PrimIO{-3P,p-} PrelBase.Int{-3g,p-}
ds_d1cL :: STBase.PrimIO{-3P,W-} PrelBase.Int{-3g,W-}
{-# L #-}
ds_d1iT =
b{-r3,x-}
x_r4t } in
ds_d1cL =
b{-r3,x-} x_r4q } in
let {
ds_d1iX ::
PrelBase.Int{-3g,p-}
-> STBase.PrimIO{-3P,p-} PrelBase.Float{-3c,p-}
ds_d1cP :: PrelBase.Int{-3g,W-}
-> STBase.PrimIO{-3P,W-} PrelBase.Float{-3c,W-}
{-# L #-}
ds_d1iX =
\ y_r4v ::
PrelBase.Int{-3g,p-}
ds_d1cP =
\ y_r4s :: PrelBase.Int{-3g,W-}
{-# L #-}
y_r4v ->
let {
ds_d1jf ::
PrelBase.Char{-38,p-}
{-# L #-}
ds_d1jf =
PrelBase.C#{-54,p-}{i}
{'f'}
} in
c{-r5,x-}
y_r4v ds_d1jf lit_a16r lit_a16p
y_r4s ->
(let {
ds_d1df :: PrelBase.Char{-38,W-}
{-# L #-}
ds_d1df =
PrelBase.C#{-54,w-}{i} {'f'}
} in c{-r5,x-} y_r4s ds_d1df)
lit_a10r lit_a10t
} in
STBase.thenPrimIO{-r4
w
,p-}
_@_ PrelBase.Int{-3g,
p
-} _@_ PrelBase.Float{-3c,
p
-} ds_d1
iT
ds_d1
iX
STBase.thenPrimIO{-r4
t
,p-}
_@_ PrelBase.Int{-3g,
W
-} _@_ PrelBase.Float{-3c,
W
-} ds_d1
cL
ds_d1
cP
} in
STBase.thenPrimIO{-r4
w
,p-}
_@_ PrelBase.Int{-3g,
p
-}
_@_ PrelBase.Float{-3c,
p
-}
STBase.thenPrimIO{-r4
t
,p-}
_@_ PrelBase.Int{-3g,
W
-}
_@_ PrelBase.Float{-3c,
W
-}
a{-r1,x-}
ds_d1iE
d{-r7,x-} ::
STBase.PrimIO{-3P,p-} PrelBase.Float{-3c,p-}
ds_d1cw
d{-r7,x-} :: STBase.PrimIO{-3P,W-} PrelBase.Float{-3c,W-}
{-# L #-}
d{-r7,x-} =
d_a15Y
d_aZY
d.Fractional_a10l :: {PrelNum.Fractional{-26,p-} PrelBase.Float{-3c,W-}}
{-# L #-}
d.Fractional_a10l =
PrelNum.$d23{-rsg,p-}
fromRational_a10q :: PrelNum.Rational{-3r,p-}
-> PrelBase.Float{-3c,W-}
{-# L #-}
fromRational_a10q =
PrelNum.fromRational{-8T,p-}
_@_ PrelBase.Float{-3c,W-} d.Fractional_a10l
lit_a10r :: PrelBase.Float{-3c,W-}
{-# L #-}
lit_a10r =
fromRational_a10q _rational_ 1 1
d.Fractional_a10p :: {PrelNum.Fractional{-26,p-} PrelBase.Double{-3a,W-}}
{-# L #-}
d.Fractional_a10p =
PrelNum.$d14{-rs6,p-}
fromRational_a10s :: PrelNum.Rational{-3r,p-}
-> PrelBase.Double{-3a,W-}
{-# L #-}
fromRational_a10s =
PrelNum.fromRational{-8T,p-}
_@_ PrelBase.Double{-3a,W-} d.Fractional_a10p
lit_a10t :: PrelBase.Double{-3a,W-}
{-# L #-}
lit_a10t =
fromRational_a10s _rational_ 2 1
end Rec }
NOTE: Simplifier still going after 4 iterations; bailing out.
ghc/tests/ccall/should_compile/cc003.stderr
View file @
80d19100
...
...
@@ -2,114 +2,95 @@
================================================================================
Typechecked:
{- nonrec -}
{- nonrec -}
AbsBinds [] [] [([], fubar{-r1,x-}, fubar_aZa)]
fubar_aZa
= STBase.seqPrimIO{-r46,p-}
[PrelBase.(){-40,p-}, PrelBase.Int{-3g,p-}]
(STBase.ST{-5G,p-}{i}
[GHC.RealWorld{-3s,p-}, PrelBase.(){-40,p-}]
_ccall_ f)
(STBase.ST{-5G,p-}{i}
[GHC.RealWorld{-3s,p-}, PrelBase.Int{-3g,p-}]
_ccall_ b)
{- nonrec -}
AbsBinds [] [] [([], fubar{-r1,x-}, fubar_aTQ)]
fubar_aTQ
= STBase.seqPrimIO{-r46,p-}
[PrelBase.(){-40,W-}, PrelBase.Int{-3g,W-}]
(STBase.ST{-5G,w-}{i}
[GHC.RealWorld{-3s,W-}, PrelBase.(){-40,W-}] _ccall_ f)
(STBase.ST{-5G,w-}{i}
[GHC.RealWorld{-3s,W-}, PrelBase.Int{-3g,W-}] _ccall_ b)
================================================================================
Desugared:
fubar_aZa ::
STBase.PrimIO{-3P,
p
-} PrelBase.Int{-3g,
p
-}
Rec {
fubar_aTQ ::
STBase.PrimIO{-3P,
W
-} PrelBase.Int{-3g,
W
-}
{-# L #-}
fubar_aZa =
let { ds_d110 ::
STBase.ST{-3O,p-} GHC.RealWorld{-3s,p-} PrelBase.(){-40,p-}
fubar_aTQ =
let { ds_dVM :: STBase.PrimIO{-3P,W-} PrelBase.(){-40,W-}
{-# L #-}
ds_d
110
=
ds_d
VM
=
let {
ds_d11g ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
-> (PrelBase.(){-40,p-}, STBase.State{-3M,p-} GHC.RealWorld{-3s,p-})
ds_dW2 :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
-> (PrelBase.(){-40,W-}, STBase.State{-3M,W-} GHC.RealWorld{-3s,W-})
{-# L #-}
ds_d11g =
\ ds_d11m ::
STBase.State{-3M,p-} GHC.RealWorld{-3s,p-}
ds_dW2 =
\ ds_dW8 :: STBase.State{-3M,W-} GHC.RealWorld{-3s,W-}
{-# L #-}
ds_d