Debian Codegraph @

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

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/br_on_non_null.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "br_on_non_null.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_trap",
12 "line": 49,
13 "action": {
14 "type": "invoke",
15 "field": "unreachable",
16 "args": []
17 },
18 "text": "unreachable"
19 },
20 {
21 "type": "assert_return",
22 "line": 51,
23 "action": {
24 "type": "invoke",
25 "field": "nonnullable-f",
26 "args": []
27 },
28 "expected": [
29 {
30 "type": "i32",
31 "value": "7"
32 }
33 ]
34 },
35 {
36 "type": "assert_return",
37 "line": 52,
38 "action": {
39 "type": "invoke",
40 "field": "nullable-null",
41 "args": []
42 },
43 "expected": [
44 {
45 "type": "i32",
46 "value": "-1"
47 }
48 ]
49 },
50 {
51 "type": "assert_return",
52 "line": 53,
53 "action": {
54 "type": "invoke",
55 "field": "nullable-f",
56 "args": []
57 },
58 "expected": [
59 {
60 "type": "i32",
61 "value": "7"
62 }
63 ]
64 },
65 {
66 "type": "assert_return",
67 "line": 54,
68 "action": {
69 "type": "invoke",
70 "field": "nullable2-null",
71 "args": []
72 },
73 "expected": [
74 {
75 "type": "i32",
76 "value": "-2"
77 }
78 ]
79 },
80 {
81 "type": "assert_return",
82 "line": 55,
83 "action": {
84 "type": "invoke",
85 "field": "nullable2-f",
86 "args": []
87 },
88 "expected": [
89 {
90 "type": "i32",
91 "value": "7"
92 }
93 ]
94 },
95 {
96 "type": "module",
97 "line": 57,
98 "filename": "br_on_non_null.1.wasm",
99 "module_type": "binary"
100 },
101 {
102 "type": "module",
103 "line": 65,
104 "filename": "br_on_non_null.2.wasm",
105 "module_type": "binary"
106 },
107 {
108 "type": "assert_return",
109 "line": 86,
110 "action": {
111 "type": "invoke",
112 "field": "args-null",
113 "args": [
114 {
115 "type": "i32",
116 "value": "3"
117 }
118 ]
119 },
120 "expected": [
121 {
122 "type": "i32",
123 "value": "3"
124 }
125 ]
126 },
127 {
128 "type": "assert_return",
129 "line": 87,
130 "action": {
131 "type": "invoke",
132 "field": "args-f",
133 "args": [
134 {
135 "type": "i32",
136 "value": "3"
137 }
138 ]
139 },
140 "expected": [
141 {
142 "type": "i32",
143 "value": "9"
144 }
145 ]
146 },
147 {
148 "type": "assert_invalid",
149 "line": 92,
150 "filename": "br_on_non_null.3.wasm",
151 "module_type": "binary",
152 "text": "type mismatch"
153 }
154 ]
155 }