Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/table_grow.wast/60.print

raw
1 (module
2 (type (;0;) (func (param i32) (result i32)))
3 (type (;1;) (func (param i32 i32) (result funcref)))
4 (table $t (;0;) 10 funcref)
5 (export "grow" (func 0))
6 (export "check-table-null" (func 1))
7 (elem (;0;) declare func 1)
8 (func (;0;) (type 0) (param i32) (result i32)
9 ref.null func
10 local.get 0
11 table.grow $t
12 )
13 (func (;1;) (type 1) (param i32 i32) (result funcref)
14 (local funcref)
15 ref.func 1
16 local.set 2
17 block ;; label = @1
18 loop ;; label = @2
19 local.get 0
20 table.get $t
21 local.set 2
22 local.get 2
23 ref.is_null
24 i32.eqz
25 br_if 1 (;@1;)
26 local.get 0
27 local.get 1
28 i32.ge_u
29 br_if 1 (;@1;)
30 local.get 0
31 i32.const 1
32 i32.add
33 local.set 0
34 local.get 0
35 local.get 1
36 i32.le_u
37 br_if 0 (;@2;)
38 end
39 end
40 local.get 2
41 )
42 )