Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/linking2.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/linking2.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "name": "Mm",
8 "filename": "linking2.0.wasm",
9 "module_type": "binary"
10 },
11 {
12 "type": "register",
13 "line": 12,
14 "name": "Mm",
15 "as": "Mm"
16 },
17 {
18 "type": "module",
19 "line": 14,
20 "name": "Pm",
21 "filename": "linking2.1.wasm",
22 "module_type": "binary"
23 },
24 {
25 "type": "assert_return",
26 "line": 22,
27 "action": {
28 "type": "invoke",
29 "module": "Pm",
30 "field": "grow",
31 "args": [
32 {
33 "type": "i32",
34 "value": "0"
35 }
36 ]
37 },
38 "expected": [
39 {
40 "type": "i32",
41 "value": "1"
42 }
43 ]
44 },
45 {
46 "type": "assert_return",
47 "line": 23,
48 "action": {
49 "type": "invoke",
50 "module": "Pm",
51 "field": "grow",
52 "args": [
53 {
54 "type": "i32",
55 "value": "2"
56 }
57 ]
58 },
59 "expected": [
60 {
61 "type": "i32",
62 "value": "1"
63 }
64 ]
65 },
66 {
67 "type": "assert_return",
68 "line": 24,
69 "action": {
70 "type": "invoke",
71 "module": "Pm",
72 "field": "grow",
73 "args": [
74 {
75 "type": "i32",
76 "value": "0"
77 }
78 ]
79 },
80 "expected": [
81 {
82 "type": "i32",
83 "value": "3"
84 }
85 ]
86 },
87 {
88 "type": "assert_return",
89 "line": 25,
90 "action": {
91 "type": "invoke",
92 "module": "Pm",
93 "field": "grow",
94 "args": [
95 {
96 "type": "i32",
97 "value": "1"
98 }
99 ]
100 },
101 "expected": [
102 {
103 "type": "i32",
104 "value": "3"
105 }
106 ]
107 },
108 {
109 "type": "assert_return",
110 "line": 26,
111 "action": {
112 "type": "invoke",
113 "module": "Pm",
114 "field": "grow",
115 "args": [
116 {
117 "type": "i32",
118 "value": "1"
119 }
120 ]
121 },
122 "expected": [
123 {
124 "type": "i32",
125 "value": "4"
126 }
127 ]
128 },
129 {
130 "type": "assert_return",
131 "line": 27,
132 "action": {
133 "type": "invoke",
134 "module": "Pm",
135 "field": "grow",
136 "args": [
137 {
138 "type": "i32",
139 "value": "0"
140 }
141 ]
142 },
143 "expected": [
144 {
145 "type": "i32",
146 "value": "5"
147 }
148 ]
149 },
150 {
151 "type": "assert_return",
152 "line": 28,
153 "action": {
154 "type": "invoke",
155 "module": "Pm",
156 "field": "grow",
157 "args": [
158 {
159 "type": "i32",
160 "value": "1"
161 }
162 ]
163 },
164 "expected": [
165 {
166 "type": "i32",
167 "value": "-1"
168 }
169 ]
170 },
171 {
172 "type": "assert_return",
173 "line": 29,
174 "action": {
175 "type": "invoke",
176 "module": "Pm",
177 "field": "grow",
178 "args": [
179 {
180 "type": "i32",
181 "value": "0"
182 }
183 ]
184 },
185 "expected": [
186 {
187 "type": "i32",
188 "value": "5"
189 }
190 ]
191 }
192 ]
193 }