Debian Codegraph @

internal/integration_test/spectest/v2/testdata/return.json

raw
1 {"source_filename": "./return.wast",
2 "commands": [
3 {"type": "module", "line": 3, "filename": "return.0.wasm"},
4 {"type": "assert_return", "line": 224, "action": {"type": "invoke", "field": "type-i32", "args": []}, "expected": []},
5 {"type": "assert_return", "line": 225, "action": {"type": "invoke", "field": "type-i64", "args": []}, "expected": []},
6 {"type": "assert_return", "line": 226, "action": {"type": "invoke", "field": "type-f32", "args": []}, "expected": []},
7 {"type": "assert_return", "line": 227, "action": {"type": "invoke", "field": "type-f64", "args": []}, "expected": []},
8 {"type": "assert_return", "line": 229, "action": {"type": "invoke", "field": "type-i32-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]},
9 {"type": "assert_return", "line": 230, "action": {"type": "invoke", "field": "type-i64-value", "args": []}, "expected": [{"type": "i64", "value": "2"}]},
10 {"type": "assert_return", "line": 231, "action": {"type": "invoke", "field": "type-f32-value", "args": []}, "expected": [{"type": "f32", "value": "1077936128"}]},
11 {"type": "assert_return", "line": 232, "action": {"type": "invoke", "field": "type-f64-value", "args": []}, "expected": [{"type": "f64", "value": "4616189618054758400"}]},
12 {"type": "assert_return", "line": 234, "action": {"type": "invoke", "field": "nullary", "args": []}, "expected": []},
13 {"type": "assert_return", "line": 235, "action": {"type": "invoke", "field": "unary", "args": []}, "expected": [{"type": "f64", "value": "4613937818241073152"}]},
14 {"type": "assert_return", "line": 237, "action": {"type": "invoke", "field": "as-func-first", "args": []}, "expected": [{"type": "i32", "value": "1"}]},
15 {"type": "assert_return", "line": 238, "action": {"type": "invoke", "field": "as-func-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]},
16 {"type": "assert_return", "line": 239, "action": {"type": "invoke", "field": "as-func-last", "args": []}, "expected": []},
17 {"type": "assert_return", "line": 240, "action": {"type": "invoke", "field": "as-func-value", "args": []}, "expected": [{"type": "i32", "value": "3"}]},
18 {"type": "assert_return", "line": 242, "action": {"type": "invoke", "field": "as-block-first", "args": []}, "expected": []},
19 {"type": "assert_return", "line": 243, "action": {"type": "invoke", "field": "as-block-mid", "args": []}, "expected": []},
20 {"type": "assert_return", "line": 244, "action": {"type": "invoke", "field": "as-block-last", "args": []}, "expected": []},
21 {"type": "assert_return", "line": 245, "action": {"type": "invoke", "field": "as-block-value", "args": []}, "expected": [{"type": "i32", "value": "2"}]},
22 {"type": "assert_return", "line": 247, "action": {"type": "invoke", "field": "as-loop-first", "args": []}, "expected": [{"type": "i32", "value": "3"}]},
23 {"type": "assert_return", "line": 248, "action": {"type": "invoke", "field": "as-loop-mid", "args": []}, "expected": [{"type": "i32", "value": "4"}]},
24 {"type": "assert_return", "line": 249, "action": {"type": "invoke", "field": "as-loop-last", "args": []}, "expected": [{"type": "i32", "value": "5"}]},
25 {"type": "assert_return", "line": 251, "action": {"type": "invoke", "field": "as-br-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]},
26 {"type": "assert_return", "line": 253, "action": {"type": "invoke", "field": "as-br_if-cond", "args": []}, "expected": []},
27 {"type": "assert_return", "line": 254, "action": {"type": "invoke", "field": "as-br_if-value", "args": []}, "expected": [{"type": "i32", "value": "8"}]},
28 {"type": "assert_return", "line": 255, "action": {"type": "invoke", "field": "as-br_if-value-cond", "args": []}, "expected": [{"type": "i32", "value": "9"}]},
29 {"type": "assert_return", "line": 257, "action": {"type": "invoke", "field": "as-br_table-index", "args": []}, "expected": [{"type": "i64", "value": "9"}]},
30 {"type": "assert_return", "line": 258, "action": {"type": "invoke", "field": "as-br_table-value", "args": []}, "expected": [{"type": "i32", "value": "10"}]},
31 {"type": "assert_return", "line": 259, "action": {"type": "invoke", "field": "as-br_table-value-index", "args": []}, "expected": [{"type": "i32", "value": "11"}]},
32 {"type": "assert_return", "line": 261, "action": {"type": "invoke", "field": "as-return-value", "args": []}, "expected": [{"type": "i64", "value": "7"}]},
33 {"type": "assert_return", "line": 263, "action": {"type": "invoke", "field": "as-if-cond", "args": []}, "expected": [{"type": "i32", "value": "2"}]},
34 {"type": "assert_return", "line": 264, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "1"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "3"}]},
35 {"type": "assert_return", "line": 265, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]},
36 {"type": "assert_return", "line": 266, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "4"}]},
37 {"type": "assert_return", "line": 267, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "1"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]},
38 {"type": "assert_return", "line": 269, "action": {"type": "invoke", "field": "as-select-first", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "5"}]},
39 {"type": "assert_return", "line": 270, "action": {"type": "invoke", "field": "as-select-first", "args": [{"type": "i32", "value": "1"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "5"}]},
40 {"type": "assert_return", "line": 271, "action": {"type": "invoke", "field": "as-select-second", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]},
41 {"type": "assert_return", "line": 272, "action": {"type": "invoke", "field": "as-select-second", "args": [{"type": "i32", "value": "1"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]},
42 {"type": "assert_return", "line": 273, "action": {"type": "invoke", "field": "as-select-cond", "args": []}, "expected": [{"type": "i32", "value": "7"}]},
43 {"type": "assert_return", "line": 275, "action": {"type": "invoke", "field": "as-call-first", "args": []}, "expected": [{"type": "i32", "value": "12"}]},
44 {"type": "assert_return", "line": 276, "action": {"type": "invoke", "field": "as-call-mid", "args": []}, "expected": [{"type": "i32", "value": "13"}]},
45 {"type": "assert_return", "line": 277, "action": {"type": "invoke", "field": "as-call-last", "args": []}, "expected": [{"type": "i32", "value": "14"}]},
46 {"type": "assert_return", "line": 279, "action": {"type": "invoke", "field": "as-call_indirect-func", "args": []}, "expected": [{"type": "i32", "value": "20"}]},
47 {"type": "assert_return", "line": 280, "action": {"type": "invoke", "field": "as-call_indirect-first", "args": []}, "expected": [{"type": "i32", "value": "21"}]},
48 {"type": "assert_return", "line": 281, "action": {"type": "invoke", "field": "as-call_indirect-mid", "args": []}, "expected": [{"type": "i32", "value": "22"}]},
49 {"type": "assert_return", "line": 282, "action": {"type": "invoke", "field": "as-call_indirect-last", "args": []}, "expected": [{"type": "i32", "value": "23"}]},
50 {"type": "assert_return", "line": 284, "action": {"type": "invoke", "field": "as-local.set-value", "args": []}, "expected": [{"type": "i32", "value": "17"}]},
51 {"type": "assert_return", "line": 285, "action": {"type": "invoke", "field": "as-local.tee-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]},
52 {"type": "assert_return", "line": 286, "action": {"type": "invoke", "field": "as-global.set-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]},
53 {"type": "assert_return", "line": 288, "action": {"type": "invoke", "field": "as-load-address", "args": []}, "expected": [{"type": "f32", "value": "1071225242"}]},
54 {"type": "assert_return", "line": 289, "action": {"type": "invoke", "field": "as-loadN-address", "args": []}, "expected": [{"type": "i64", "value": "30"}]},
55 {"type": "assert_return", "line": 291, "action": {"type": "invoke", "field": "as-store-address", "args": []}, "expected": [{"type": "i32", "value": "30"}]},
56 {"type": "assert_return", "line": 292, "action": {"type": "invoke", "field": "as-store-value", "args": []}, "expected": [{"type": "i32", "value": "31"}]},
57 {"type": "assert_return", "line": 293, "action": {"type": "invoke", "field": "as-storeN-address", "args": []}, "expected": [{"type": "i32", "value": "32"}]},
58 {"type": "assert_return", "line": 294, "action": {"type": "invoke", "field": "as-storeN-value", "args": []}, "expected": [{"type": "i32", "value": "33"}]},
59 {"type": "assert_return", "line": 296, "action": {"type": "invoke", "field": "as-unary-operand", "args": []}, "expected": [{"type": "f32", "value": "1079613850"}]},
60 {"type": "assert_return", "line": 298, "action": {"type": "invoke", "field": "as-binary-left", "args": []}, "expected": [{"type": "i32", "value": "3"}]},
61 {"type": "assert_return", "line": 299, "action": {"type": "invoke", "field": "as-binary-right", "args": []}, "expected": [{"type": "i64", "value": "45"}]},
62 {"type": "assert_return", "line": 301, "action": {"type": "invoke", "field": "as-test-operand", "args": []}, "expected": [{"type": "i32", "value": "44"}]},
63 {"type": "assert_return", "line": 303, "action": {"type": "invoke", "field": "as-compare-left", "args": []}, "expected": [{"type": "i32", "value": "43"}]},
64 {"type": "assert_return", "line": 304, "action": {"type": "invoke", "field": "as-compare-right", "args": []}, "expected": [{"type": "i32", "value": "42"}]},
65 {"type": "assert_return", "line": 306, "action": {"type": "invoke", "field": "as-convert-operand", "args": []}, "expected": [{"type": "i32", "value": "41"}]},
66 {"type": "assert_return", "line": 308, "action": {"type": "invoke", "field": "as-memory.grow-size", "args": []}, "expected": [{"type": "i32", "value": "40"}]},
67 {"type": "assert_invalid", "line": 311, "filename": "return.1.wasm", "text": "type mismatch", "module_type": "binary"},
68 {"type": "assert_invalid", "line": 315, "filename": "return.2.wasm", "text": "type mismatch", "module_type": "binary"},
69 {"type": "assert_invalid", "line": 324, "filename": "return.3.wasm", "text": "type mismatch", "module_type": "binary"},
70 {"type": "assert_invalid", "line": 333, "filename": "return.4.wasm", "text": "type mismatch", "module_type": "binary"},
71 {"type": "assert_invalid", "line": 342, "filename": "return.5.wasm", "text": "type mismatch", "module_type": "binary"},
72 {"type": "assert_invalid", "line": 351, "filename": "return.6.wasm", "text": "type mismatch", "module_type": "binary"},
73 {"type": "assert_invalid", "line": 360, "filename": "return.7.wasm", "text": "type mismatch", "module_type": "binary"},
74 {"type": "assert_invalid", "line": 369, "filename": "return.8.wasm", "text": "type mismatch", "module_type": "binary"},
75 {"type": "assert_invalid", "line": 378, "filename": "return.9.wasm", "text": "type mismatch", "module_type": "binary"},
76 {"type": "assert_invalid", "line": 386, "filename": "return.10.wasm", "text": "type mismatch", "module_type": "binary"},
77 {"type": "assert_invalid", "line": 394, "filename": "return.11.wasm", "text": "type mismatch", "module_type": "binary"},
78 {"type": "assert_invalid", "line": 403, "filename": "return.12.wasm", "text": "type mismatch", "module_type": "binary"},
79 {"type": "assert_invalid", "line": 418, "filename": "return.13.wasm", "text": "type mismatch", "module_type": "binary"},
80 {"type": "assert_invalid", "line": 427, "filename": "return.14.wasm", "text": "type mismatch", "module_type": "binary"},
81 {"type": "assert_invalid", "line": 436, "filename": "return.15.wasm", "text": "type mismatch", "module_type": "binary"},
82 {"type": "assert_invalid", "line": 445, "filename": "return.16.wasm", "text": "type mismatch", "module_type": "binary"},
83 {"type": "assert_invalid", "line": 454, "filename": "return.17.wasm", "text": "type mismatch", "module_type": "binary"},
84 {"type": "assert_invalid", "line": 463, "filename": "return.18.wasm", "text": "type mismatch", "module_type": "binary"},
85 {"type": "assert_invalid", "line": 472, "filename": "return.19.wasm", "text": "type mismatch", "module_type": "binary"},
86 {"type": "assert_invalid", "line": 476, "filename": "return.20.wasm", "text": "type mismatch", "module_type": "binary"}]}