wa-lang.org/wazero@v1.0.2/internal/integration_test/spectest/v1/testdata/br.json (about) 1 {"source_filename": "./br.wast", 2 "commands": [ 3 {"type": "module", "line": 3, "filename": "br.0.wasm"}, 4 {"type": "assert_return", "line": 334, "action": {"type": "invoke", "field": "type-i32", "args": []}, "expected": []}, 5 {"type": "assert_return", "line": 335, "action": {"type": "invoke", "field": "type-i64", "args": []}, "expected": []}, 6 {"type": "assert_return", "line": 336, "action": {"type": "invoke", "field": "type-f32", "args": []}, "expected": []}, 7 {"type": "assert_return", "line": 337, "action": {"type": "invoke", "field": "type-f64", "args": []}, "expected": []}, 8 {"type": "assert_return", "line": 339, "action": {"type": "invoke", "field": "type-i32-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 9 {"type": "assert_return", "line": 340, "action": {"type": "invoke", "field": "type-i64-value", "args": []}, "expected": [{"type": "i64", "value": "2"}]}, 10 {"type": "assert_return", "line": 341, "action": {"type": "invoke", "field": "type-f32-value", "args": []}, "expected": [{"type": "f32", "value": "1077936128"}]}, 11 {"type": "assert_return", "line": 342, "action": {"type": "invoke", "field": "type-f64-value", "args": []}, "expected": [{"type": "f64", "value": "4616189618054758400"}]}, 12 {"type": "assert_return", "line": 344, "action": {"type": "invoke", "field": "as-block-first", "args": []}, "expected": []}, 13 {"type": "assert_return", "line": 345, "action": {"type": "invoke", "field": "as-block-mid", "args": []}, "expected": []}, 14 {"type": "assert_return", "line": 346, "action": {"type": "invoke", "field": "as-block-last", "args": []}, "expected": []}, 15 {"type": "assert_return", "line": 347, "action": {"type": "invoke", "field": "as-block-value", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 16 {"type": "assert_return", "line": 349, "action": {"type": "invoke", "field": "as-loop-first", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 17 {"type": "assert_return", "line": 350, "action": {"type": "invoke", "field": "as-loop-mid", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 18 {"type": "assert_return", "line": 351, "action": {"type": "invoke", "field": "as-loop-last", "args": []}, "expected": [{"type": "i32", "value": "5"}]}, 19 {"type": "assert_return", "line": 353, "action": {"type": "invoke", "field": "as-br-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 20 {"type": "assert_return", "line": 355, "action": {"type": "invoke", "field": "as-br_if-cond", "args": []}, "expected": []}, 21 {"type": "assert_return", "line": 356, "action": {"type": "invoke", "field": "as-br_if-value", "args": []}, "expected": [{"type": "i32", "value": "8"}]}, 22 {"type": "assert_return", "line": 357, "action": {"type": "invoke", "field": "as-br_if-value-cond", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 23 {"type": "assert_return", "line": 359, "action": {"type": "invoke", "field": "as-br_table-index", "args": []}, "expected": []}, 24 {"type": "assert_return", "line": 360, "action": {"type": "invoke", "field": "as-br_table-value", "args": []}, "expected": [{"type": "i32", "value": "10"}]}, 25 {"type": "assert_return", "line": 361, "action": {"type": "invoke", "field": "as-br_table-value-index", "args": []}, "expected": [{"type": "i32", "value": "11"}]}, 26 {"type": "assert_return", "line": 363, "action": {"type": "invoke", "field": "as-return-value", "args": []}, "expected": [{"type": "i64", "value": "7"}]}, 27 {"type": "assert_return", "line": 365, "action": {"type": "invoke", "field": "as-if-cond", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 28 {"type": "assert_return", "line": 366, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "1"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "3"}]}, 29 {"type": "assert_return", "line": 367, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]}, 30 {"type": "assert_return", "line": 368, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "4"}]}, 31 {"type": "assert_return", "line": 369, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "1"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]}, 32 {"type": "assert_return", "line": 371, "action": {"type": "invoke", "field": "as-select-first", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "5"}]}, 33 {"type": "assert_return", "line": 372, "action": {"type": "invoke", "field": "as-select-first", "args": [{"type": "i32", "value": "1"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "5"}]}, 34 {"type": "assert_return", "line": 373, "action": {"type": "invoke", "field": "as-select-second", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]}, 35 {"type": "assert_return", "line": 374, "action": {"type": "invoke", "field": "as-select-second", "args": [{"type": "i32", "value": "1"}, {"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]}, 36 {"type": "assert_return", "line": 375, "action": {"type": "invoke", "field": "as-select-cond", "args": []}, "expected": [{"type": "i32", "value": "7"}]}, 37 {"type": "assert_return", "line": 377, "action": {"type": "invoke", "field": "as-call-first", "args": []}, "expected": [{"type": "i32", "value": "12"}]}, 38 {"type": "assert_return", "line": 378, "action": {"type": "invoke", "field": "as-call-mid", "args": []}, "expected": [{"type": "i32", "value": "13"}]}, 39 {"type": "assert_return", "line": 379, "action": {"type": "invoke", "field": "as-call-last", "args": []}, "expected": [{"type": "i32", "value": "14"}]}, 40 {"type": "assert_return", "line": 381, "action": {"type": "invoke", "field": "as-call_indirect-func", "args": []}, "expected": [{"type": "i32", "value": "20"}]}, 41 {"type": "assert_return", "line": 382, "action": {"type": "invoke", "field": "as-call_indirect-first", "args": []}, "expected": [{"type": "i32", "value": "21"}]}, 42 {"type": "assert_return", "line": 383, "action": {"type": "invoke", "field": "as-call_indirect-mid", "args": []}, "expected": [{"type": "i32", "value": "22"}]}, 43 {"type": "assert_return", "line": 384, "action": {"type": "invoke", "field": "as-call_indirect-last", "args": []}, "expected": [{"type": "i32", "value": "23"}]}, 44 {"type": "assert_return", "line": 386, "action": {"type": "invoke", "field": "as-local.set-value", "args": []}, "expected": [{"type": "i32", "value": "17"}]}, 45 {"type": "assert_return", "line": 387, "action": {"type": "invoke", "field": "as-local.tee-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 46 {"type": "assert_return", "line": 388, "action": {"type": "invoke", "field": "as-global.set-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 47 {"type": "assert_return", "line": 390, "action": {"type": "invoke", "field": "as-load-address", "args": []}, "expected": [{"type": "f32", "value": "1071225242"}]}, 48 {"type": "assert_return", "line": 391, "action": {"type": "invoke", "field": "as-loadN-address", "args": []}, "expected": [{"type": "i64", "value": "30"}]}, 49 {"type": "assert_return", "line": 393, "action": {"type": "invoke", "field": "as-store-address", "args": []}, "expected": [{"type": "i32", "value": "30"}]}, 50 {"type": "assert_return", "line": 394, "action": {"type": "invoke", "field": "as-store-value", "args": []}, "expected": [{"type": "i32", "value": "31"}]}, 51 {"type": "assert_return", "line": 395, "action": {"type": "invoke", "field": "as-storeN-address", "args": []}, "expected": [{"type": "i32", "value": "32"}]}, 52 {"type": "assert_return", "line": 396, "action": {"type": "invoke", "field": "as-storeN-value", "args": []}, "expected": [{"type": "i32", "value": "33"}]}, 53 {"type": "assert_return", "line": 398, "action": {"type": "invoke", "field": "as-unary-operand", "args": []}, "expected": [{"type": "f32", "value": "1079613850"}]}, 54 {"type": "assert_return", "line": 400, "action": {"type": "invoke", "field": "as-binary-left", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 55 {"type": "assert_return", "line": 401, "action": {"type": "invoke", "field": "as-binary-right", "args": []}, "expected": [{"type": "i64", "value": "45"}]}, 56 {"type": "assert_return", "line": 403, "action": {"type": "invoke", "field": "as-test-operand", "args": []}, "expected": [{"type": "i32", "value": "44"}]}, 57 {"type": "assert_return", "line": 405, "action": {"type": "invoke", "field": "as-compare-left", "args": []}, "expected": [{"type": "i32", "value": "43"}]}, 58 {"type": "assert_return", "line": 406, "action": {"type": "invoke", "field": "as-compare-right", "args": []}, "expected": [{"type": "i32", "value": "42"}]}, 59 {"type": "assert_return", "line": 408, "action": {"type": "invoke", "field": "as-convert-operand", "args": []}, "expected": [{"type": "i32", "value": "41"}]}, 60 {"type": "assert_return", "line": 410, "action": {"type": "invoke", "field": "as-memory.grow-size", "args": []}, "expected": [{"type": "i32", "value": "40"}]}, 61 {"type": "assert_return", "line": 412, "action": {"type": "invoke", "field": "nested-block-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 62 {"type": "assert_return", "line": 413, "action": {"type": "invoke", "field": "nested-br-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 63 {"type": "assert_return", "line": 414, "action": {"type": "invoke", "field": "nested-br_if-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 64 {"type": "assert_return", "line": 415, "action": {"type": "invoke", "field": "nested-br_if-value-cond", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 65 {"type": "assert_return", "line": 416, "action": {"type": "invoke", "field": "nested-br_table-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 66 {"type": "assert_return", "line": 417, "action": {"type": "invoke", "field": "nested-br_table-value-index", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 67 {"type": "assert_invalid", "line": 420, "filename": "br.1.wasm", "text": "type mismatch", "module_type": "binary"}, 68 {"type": "assert_invalid", "line": 427, "filename": "br.2.wasm", "text": "type mismatch", "module_type": "binary"}, 69 {"type": "assert_invalid", "line": 433, "filename": "br.3.wasm", "text": "type mismatch", "module_type": "binary"}, 70 {"type": "assert_invalid", "line": 439, "filename": "br.4.wasm", "text": "type mismatch", "module_type": "binary"}, 71 {"type": "assert_invalid", "line": 446, "filename": "br.5.wasm", "text": "type mismatch", "module_type": "binary"}, 72 {"type": "assert_invalid", "line": 455, "filename": "br.6.wasm", "text": "type mismatch", "module_type": "binary"}, 73 {"type": "assert_invalid", "line": 464, "filename": "br.7.wasm", "text": "type mismatch", "module_type": "binary"}, 74 {"type": "assert_invalid", "line": 473, "filename": "br.8.wasm", "text": "type mismatch", "module_type": "binary"}, 75 {"type": "assert_invalid", "line": 484, "filename": "br.9.wasm", "text": "type mismatch", "module_type": "binary"}, 76 {"type": "assert_invalid", "line": 495, "filename": "br.10.wasm", "text": "type mismatch", "module_type": "binary"}, 77 {"type": "assert_invalid", "line": 507, "filename": "br.11.wasm", "text": "type mismatch", "module_type": "binary"}, 78 {"type": "assert_invalid", "line": 523, "filename": "br.12.wasm", "text": "type mismatch", "module_type": "binary"}, 79 {"type": "assert_invalid", "line": 535, "filename": "br.13.wasm", "text": "type mismatch", "module_type": "binary"}, 80 {"type": "assert_invalid", "line": 547, "filename": "br.14.wasm", "text": "type mismatch", "module_type": "binary"}, 81 {"type": "assert_invalid", "line": 559, "filename": "br.15.wasm", "text": "type mismatch", "module_type": "binary"}, 82 {"type": "assert_invalid", "line": 571, "filename": "br.16.wasm", "text": "type mismatch", "module_type": "binary"}, 83 {"type": "assert_invalid", "line": 583, "filename": "br.17.wasm", "text": "type mismatch", "module_type": "binary"}, 84 {"type": "assert_invalid", "line": 596, "filename": "br.18.wasm", "text": "unknown label", "module_type": "binary"}, 85 {"type": "assert_invalid", "line": 600, "filename": "br.19.wasm", "text": "unknown label", "module_type": "binary"}, 86 {"type": "assert_invalid", "line": 604, "filename": "br.20.wasm", "text": "unknown label", "module_type": "binary"}]}