Debian Codegraph @

tests/snapshots/testsuite/ref_func.wast.json

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