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
|
(module
(type $0 (func (result i32)))
(type $1 (func))
(memory $0 256 256)
(table $0 354 354 i31ref)
(elem $0 (table $0) (i32.const 0) i31ref (item (ref.i31
(i32.const 0)
)) (item (ref.i31
(i32.const 42)
)))
(export "f1" (func $0))
(export "f2" (func $1))
(export "f4" (func $2))
(export "f5" (func $3))
(func $0
)
(func $1 (result i32)
(i32.store
(i32.const 0)
(i32.const 65530)
)
(i32.load
(i32.const 0)
)
)
(func $2 (result i32)
(i32.add
(call $1)
(i32.const 1234)
)
)
(func $3 (result i32)
(i31.get_u
(table.get $0
(i32.const 1)
)
)
)
)
|