blob: 9205542e0f9ffd3fa07291a4da0ed882afe13615 (
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
43
44
45
46
47
48
49
50
|
(module
(type $0 (func (result f32)))
(type $1 (func (param i64) (result f32)))
(type $2 (func (param i32) (result f32)))
(func $yes (param $x i64) (result f32)
(drop
(local.get $x)
)
(f32.const 0)
)
(func $no (param $x i32) (result f32)
(f32.convert_i32_u
(local.get $x)
)
)
(func $yes-unreach (result f32)
(unreachable)
)
(func $no-unreach (result f32)
(f32.convert_i32_u
(unreachable)
)
)
)
(module
(type $0 (func (result f32)))
(type $none_=>_none (func))
(type $2 (func (result i32)))
(table $0 2 2 funcref)
(elem $0 (i32.const 1) $return-f32)
(func $return-f32 (result f32)
(f32.const 3.141590118408203)
)
(func $bad-indirect-call
(drop
(i32.const 1)
)
)
(func $bad-indirect-call-2 (result i32)
(block
(drop
(i64.const 1234)
)
(drop
(i32.const 1)
)
)
(i32.const 0)
)
)
|