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
|
(module
(type $0 (func (result i32)))
(type $1 (func))
(memory $0 256 256)
(table $0 481 481 funcref)
(elem (i32.const 0) $0 $0 $0 $2)
(export "f1" (func $1))
(export "f2" (func $2))
(export "f4" (func $3))
(func $0 (; 0 ;) (type $0) (result i32)
(i32.const 1234)
)
(func $1 (; 1 ;) (type $1)
(nop)
)
(func $2 (; 2 ;) (type $0) (result i32)
(i32.store
(i32.const 0)
(i32.const 65530)
)
(i32.load
(i32.const 0)
)
)
(func $3 (; 3 ;) (type $0) (result i32)
(i32.add
(call_indirect (type $0)
(i32.const 3)
)
(call_indirect (type $0)
(i32.const 0)
)
)
)
)
|