blob: 67e0ad6a0d88de017e141aafd23a58a218bd84e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
(module
(type $0 (func (param i32 i32) (result i32)))
(type $1 (func (param i32)))
(type $2 (func (param i32 i64 f32 f64)))
(type $3 (func (param i32 f32 f64)))
(type $4 (func (param i32 f32 f64) (result i64)))
(memory $0 256 256)
(export "add" (func $add))
(export "no_return" (func $no-return))
(export "types" (func $types))
(export "types2" (func $types2))
(export "types3" (func $types3))
(func $add (param $x i32) (param $y i32) (result i32)
(i32.add
(local.get $x)
(local.get $y)
)
)
(func $unexported (param $x i32) (param $y i32) (result i32)
(i32.add
(local.get $x)
(local.get $y)
)
)
(func $no-return (param $x i32)
(drop
(i32.add
(local.get $x)
(local.get $x)
)
)
)
(func $types (param $x i32) (param $y i64) (param $z f32) (param $w f64)
(nop)
)
(func $types2 (param $x i32) (param $z f32) (param $w f64)
(nop)
)
(func $types3 (param $x i32) (param $z f32) (param $w f64) (result i64)
(i64.const 1)
)
)
|