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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
{"source_filename": "./global.wast",
"commands": [
{"type": "module", "line": 3, "filename": "global.0.wasm"},
{"type": "assert_return", "line": 196, "action": {"type": "invoke", "field": "get-a", "args": []}, "expected": [{"type": "i32", "value": "4294967294"}]},
{"type": "assert_return", "line": 197, "action": {"type": "invoke", "field": "get-b", "args": []}, "expected": [{"type": "i64", "value": "18446744073709551611"}]},
{"type": "assert_return", "line": 198, "action": {"type": "invoke", "field": "get-r", "args": []}, "expected": [{"type": "externref", "value": "null"}]},
{"type": "assert_return", "line": 199, "action": {"type": "invoke", "field": "get-mr", "args": []}, "expected": [{"type": "externref", "value": "null"}]},
{"type": "assert_return", "line": 200, "action": {"type": "invoke", "field": "get-x", "args": []}, "expected": [{"type": "i32", "value": "4294967284"}]},
{"type": "assert_return", "line": 201, "action": {"type": "invoke", "field": "get-y", "args": []}, "expected": [{"type": "i64", "value": "18446744073709551601"}]},
{"type": "assert_return", "line": 202, "action": {"type": "invoke", "field": "get-z1", "args": []}, "expected": [{"type": "i32", "value": "666"}]},
{"type": "assert_return", "line": 203, "action": {"type": "invoke", "field": "get-z2", "args": []}, "expected": [{"type": "i64", "value": "666"}]},
{"type": "assert_return", "line": 205, "action": {"type": "invoke", "field": "get-3", "args": []}, "expected": [{"type": "f32", "value": "3225419776"}]},
{"type": "assert_return", "line": 206, "action": {"type": "invoke", "field": "get-4", "args": []}, "expected": [{"type": "f64", "value": "13839561654909534208"}]},
{"type": "assert_return", "line": 207, "action": {"type": "invoke", "field": "get-7", "args": []}, "expected": [{"type": "f32", "value": "3243245568"}]},
{"type": "assert_return", "line": 208, "action": {"type": "invoke", "field": "get-8", "args": []}, "expected": [{"type": "f64", "value": "13847442954257432576"}]},
{"type": "assert_return", "line": 210, "action": {"type": "invoke", "field": "set-x", "args": [{"type": "i32", "value": "6"}]}, "expected": []},
{"type": "assert_return", "line": 211, "action": {"type": "invoke", "field": "set-y", "args": [{"type": "i64", "value": "7"}]}, "expected": []},
{"type": "assert_return", "line": 213, "action": {"type": "invoke", "field": "set-7", "args": [{"type": "f32", "value": "1090519040"}]}, "expected": []},
{"type": "assert_return", "line": 214, "action": {"type": "invoke", "field": "set-8", "args": [{"type": "f64", "value": "4621256167635550208"}]}, "expected": []},
{"type": "assert_return", "line": 216, "action": {"type": "invoke", "field": "get-x", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 217, "action": {"type": "invoke", "field": "get-y", "args": []}, "expected": [{"type": "i64", "value": "7"}]},
{"type": "assert_return", "line": 218, "action": {"type": "invoke", "field": "get-7", "args": []}, "expected": [{"type": "f32", "value": "1090519040"}]},
{"type": "assert_return", "line": 219, "action": {"type": "invoke", "field": "get-8", "args": []}, "expected": [{"type": "f64", "value": "4621256167635550208"}]},
{"type": "assert_return", "line": 221, "action": {"type": "invoke", "field": "set-7", "args": [{"type": "f32", "value": "1090519040"}]}, "expected": []},
{"type": "assert_return", "line": 222, "action": {"type": "invoke", "field": "set-8", "args": [{"type": "f64", "value": "4621256167635550208"}]}, "expected": []},
{"type": "assert_return", "line": 223, "action": {"type": "invoke", "field": "set-mr", "args": [{"type": "externref", "value": "10"}]}, "expected": []},
{"type": "assert_return", "line": 225, "action": {"type": "invoke", "field": "get-x", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 226, "action": {"type": "invoke", "field": "get-y", "args": []}, "expected": [{"type": "i64", "value": "7"}]},
{"type": "assert_return", "line": 227, "action": {"type": "invoke", "field": "get-7", "args": []}, "expected": [{"type": "f32", "value": "1090519040"}]},
{"type": "assert_return", "line": 228, "action": {"type": "invoke", "field": "get-8", "args": []}, "expected": [{"type": "f64", "value": "4621256167635550208"}]},
{"type": "assert_return", "line": 229, "action": {"type": "invoke", "field": "get-mr", "args": []}, "expected": [{"type": "externref", "value": "10"}]},
{"type": "assert_return", "line": 231, "action": {"type": "invoke", "field": "as-select-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 232, "action": {"type": "invoke", "field": "as-select-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]},
{"type": "assert_return", "line": 233, "action": {"type": "invoke", "field": "as-select-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]},
{"type": "assert_return", "line": 235, "action": {"type": "invoke", "field": "as-loop-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 236, "action": {"type": "invoke", "field": "as-loop-mid", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 237, "action": {"type": "invoke", "field": "as-loop-last", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 239, "action": {"type": "invoke", "field": "as-if-condition", "args": []}, "expected": [{"type": "i32", "value": "2"}]},
{"type": "assert_return", "line": 240, "action": {"type": "invoke", "field": "as-if-then", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 241, "action": {"type": "invoke", "field": "as-if-else", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 243, "action": {"type": "invoke", "field": "as-br_if-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 244, "action": {"type": "invoke", "field": "as-br_if-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]},
{"type": "assert_return", "line": 246, "action": {"type": "invoke", "field": "as-br_table-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 247, "action": {"type": "invoke", "field": "as-br_table-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]},
{"type": "assert_return", "line": 249, "action": {"type": "invoke", "field": "as-call_indirect-first", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 250, "action": {"type": "invoke", "field": "as-call_indirect-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]},
{"type": "assert_trap", "line": 251, "action": {"type": "invoke", "field": "as-call_indirect-last", "args": []}, "text": "undefined element", "expected": [{"type": "i32"}]},
{"type": "assert_return", "line": 253, "action": {"type": "invoke", "field": "as-store-first", "args": []}, "expected": []},
{"type": "assert_return", "line": 254, "action": {"type": "invoke", "field": "as-store-last", "args": []}, "expected": []},
{"type": "assert_return", "line": 255, "action": {"type": "invoke", "field": "as-load-operand", "args": []}, "expected": [{"type": "i32", "value": "1"}]},
{"type": "assert_return", "line": 256, "action": {"type": "invoke", "field": "as-memory.grow-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]},
{"type": "assert_return", "line": 258, "action": {"type": "invoke", "field": "as-call-value", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 260, "action": {"type": "invoke", "field": "as-return-value", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 261, "action": {"type": "invoke", "field": "as-drop-operand", "args": []}, "expected": []},
{"type": "assert_return", "line": 262, "action": {"type": "invoke", "field": "as-br-value", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 264, "action": {"type": "invoke", "field": "as-local.set-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 265, "action": {"type": "invoke", "field": "as-local.tee-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 266, "action": {"type": "invoke", "field": "as-global.set-value", "args": []}, "expected": [{"type": "i32", "value": "6"}]},
{"type": "assert_return", "line": 268, "action": {"type": "invoke", "field": "as-unary-operand", "args": []}, "expected": [{"type": "i32", "value": "0"}]},
{"type": "assert_return", "line": 269, "action": {"type": "invoke", "field": "as-binary-operand", "args": []}, "expected": [{"type": "i32", "value": "36"}]},
{"type": "assert_return", "line": 270, "action": {"type": "invoke", "field": "as-compare-operand", "args": []}, "expected": [{"type": "i32", "value": "1"}]},
{"type": "assert_invalid", "line": 273, "filename": "global.1.wasm", "text": "global is immutable", "module_type": "binary"},
{"type": "assert_invalid", "line": 278, "filename": "global.2.wasm", "text": "global is immutable", "module_type": "binary"},
{"type": "module", "line": 283, "filename": "global.3.wasm"},
{"type": "module", "line": 284, "filename": "global.4.wasm"},
{"type": "assert_invalid", "line": 287, "filename": "global.5.wasm", "text": "constant expression required", "module_type": "binary"},
{"type": "assert_invalid", "line": 292, "filename": "global.6.wasm", "text": "constant expression required", "module_type": "binary"},
{"type": "assert_invalid", "line": 297, "filename": "global.7.wasm", "text": "constant expression required", "module_type": "binary"},
{"type": "assert_invalid", "line": 302, "filename": "global.8.wasm", "text": "constant expression required", "module_type": "binary"},
{"type": "assert_invalid", "line": 307, "filename": "global.9.wasm", "text": "constant expression required", "module_type": "binary"},
{"type": "assert_invalid", "line": 312, "filename": "global.10.wasm", "text": "constant expression required", "module_type": "binary"},
{"type": "assert_invalid", "line": 317, "filename": "global.11.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 322, "filename": "global.12.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 327, "filename": "global.13.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 332, "filename": "global.14.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 337, "filename": "global.15.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 342, "filename": "global.16.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 347, "filename": "global.17.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 352, "filename": "global.18.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 356, "filename": "global.19.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 361, "filename": "global.20.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 366, "filename": "global.21.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 371, "filename": "global.22.wasm", "text": "constant expression required", "module_type": "binary"},
{"type": "module", "line": 375, "filename": "global.23.wasm"},
{"type": "assert_malformed", "line": 379, "filename": "global.24.wasm", "text": "malformed mutability", "module_type": "binary"},
{"type": "assert_malformed", "line": 392, "filename": "global.25.wasm", "text": "malformed mutability", "module_type": "binary"},
{"type": "module", "line": 405, "filename": "global.26.wasm"},
{"type": "assert_malformed", "line": 409, "filename": "global.27.wasm", "text": "malformed mutability", "module_type": "binary"},
{"type": "assert_malformed", "line": 421, "filename": "global.28.wasm", "text": "malformed mutability", "module_type": "binary"},
{"type": "assert_invalid", "line": 435, "filename": "global.29.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 440, "filename": "global.30.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 448, "filename": "global.31.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 456, "filename": "global.32.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 466, "filename": "global.33.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 471, "filename": "global.34.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 479, "filename": "global.35.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 487, "filename": "global.36.wasm", "text": "unknown global", "module_type": "binary"},
{"type": "assert_invalid", "line": 497, "filename": "global.37.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 506, "filename": "global.38.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 516, "filename": "global.39.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 526, "filename": "global.40.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 536, "filename": "global.41.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 546, "filename": "global.42.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 556, "filename": "global.43.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 566, "filename": "global.44.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 576, "filename": "global.45.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 585, "filename": "global.46.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 594, "filename": "global.47.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_invalid", "line": 604, "filename": "global.48.wasm", "text": "type mismatch", "module_type": "binary"},
{"type": "assert_malformed", "line": 622, "filename": "global.49.wat", "text": "duplicate global", "module_type": "text"},
{"type": "assert_malformed", "line": 626, "filename": "global.50.wat", "text": "duplicate global", "module_type": "text"},
{"type": "assert_malformed", "line": 630, "filename": "global.51.wat", "text": "duplicate global", "module_type": "text"}]}
|