wa-lang.org/wazero@v1.0.2/internal/integration_test/spectest/v2/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": 372, "action": {"type": "invoke", "field": "type-i32", "args": []}, "expected": []}, 
     5    {"type": "assert_return", "line": 373, "action": {"type": "invoke", "field": "type-i64", "args": []}, "expected": []}, 
     6    {"type": "assert_return", "line": 374, "action": {"type": "invoke", "field": "type-f32", "args": []}, "expected": []}, 
     7    {"type": "assert_return", "line": 375, "action": {"type": "invoke", "field": "type-f64", "args": []}, "expected": []}, 
     8    {"type": "assert_return", "line": 376, "action": {"type": "invoke", "field": "type-i32-i32", "args": []}, "expected": []}, 
     9    {"type": "assert_return", "line": 377, "action": {"type": "invoke", "field": "type-i64-i64", "args": []}, "expected": []}, 
    10    {"type": "assert_return", "line": 378, "action": {"type": "invoke", "field": "type-f32-f32", "args": []}, "expected": []}, 
    11    {"type": "assert_return", "line": 379, "action": {"type": "invoke", "field": "type-f64-f64", "args": []}, "expected": []}, 
    12    {"type": "assert_return", "line": 381, "action": {"type": "invoke", "field": "type-i32-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    13    {"type": "assert_return", "line": 382, "action": {"type": "invoke", "field": "type-i64-value", "args": []}, "expected": [{"type": "i64", "value": "2"}]}, 
    14    {"type": "assert_return", "line": 383, "action": {"type": "invoke", "field": "type-f32-value", "args": []}, "expected": [{"type": "f32", "value": "1077936128"}]}, 
    15    {"type": "assert_return", "line": 384, "action": {"type": "invoke", "field": "type-f64-value", "args": []}, "expected": [{"type": "f64", "value": "4616189618054758400"}]}, 
    16    {"type": "assert_return", "line": 385, "action": {"type": "invoke", "field": "type-f64-f64-value", "args": []}, "expected": [{"type": "f64", "value": "4616189618054758400"}, {"type": "f64", "value": "4617315517961601024"}]}, 
    17    {"type": "assert_return", "line": 387, "action": {"type": "invoke", "field": "as-block-first", "args": []}, "expected": []}, 
    18    {"type": "assert_return", "line": 388, "action": {"type": "invoke", "field": "as-block-mid", "args": []}, "expected": []}, 
    19    {"type": "assert_return", "line": 389, "action": {"type": "invoke", "field": "as-block-last", "args": []}, "expected": []}, 
    20    {"type": "assert_return", "line": 390, "action": {"type": "invoke", "field": "as-block-value", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    21    {"type": "assert_return", "line": 392, "action": {"type": "invoke", "field": "as-loop-first", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 
    22    {"type": "assert_return", "line": 393, "action": {"type": "invoke", "field": "as-loop-mid", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 
    23    {"type": "assert_return", "line": 394, "action": {"type": "invoke", "field": "as-loop-last", "args": []}, "expected": [{"type": "i32", "value": "5"}]}, 
    24    {"type": "assert_return", "line": 396, "action": {"type": "invoke", "field": "as-br-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    25    {"type": "assert_return", "line": 398, "action": {"type": "invoke", "field": "as-br_if-cond", "args": []}, "expected": []}, 
    26    {"type": "assert_return", "line": 399, "action": {"type": "invoke", "field": "as-br_if-value", "args": []}, "expected": [{"type": "i32", "value": "8"}]}, 
    27    {"type": "assert_return", "line": 400, "action": {"type": "invoke", "field": "as-br_if-value-cond", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    28    {"type": "assert_return", "line": 402, "action": {"type": "invoke", "field": "as-br_table-index", "args": []}, "expected": []}, 
    29    {"type": "assert_return", "line": 403, "action": {"type": "invoke", "field": "as-br_table-value", "args": []}, "expected": [{"type": "i32", "value": "10"}]}, 
    30    {"type": "assert_return", "line": 404, "action": {"type": "invoke", "field": "as-br_table-value-index", "args": []}, "expected": [{"type": "i32", "value": "11"}]}, 
    31    {"type": "assert_return", "line": 406, "action": {"type": "invoke", "field": "as-return-value", "args": []}, "expected": [{"type": "i64", "value": "7"}]}, 
    32    {"type": "assert_return", "line": 407, "action": {"type": "invoke", "field": "as-return-values", "args": []}, "expected": [{"type": "i32", "value": "2"}, {"type": "i64", "value": "7"}]}, 
    33    {"type": "assert_return", "line": 409, "action": {"type": "invoke", "field": "as-if-cond", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    34    {"type": "assert_return", "line": 410, "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": 411, "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": 412, "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": 413, "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": 415, "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": 416, "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": 417, "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": 418, "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": 419, "action": {"type": "invoke", "field": "as-select-cond", "args": []}, "expected": [{"type": "i32", "value": "7"}]}, 
    43    {"type": "assert_return", "line": 420, "action": {"type": "invoke", "field": "as-select-all", "args": []}, "expected": [{"type": "i32", "value": "8"}]}, 
    44    {"type": "assert_return", "line": 422, "action": {"type": "invoke", "field": "as-call-first", "args": []}, "expected": [{"type": "i32", "value": "12"}]}, 
    45    {"type": "assert_return", "line": 423, "action": {"type": "invoke", "field": "as-call-mid", "args": []}, "expected": [{"type": "i32", "value": "13"}]}, 
    46    {"type": "assert_return", "line": 424, "action": {"type": "invoke", "field": "as-call-last", "args": []}, "expected": [{"type": "i32", "value": "14"}]}, 
    47    {"type": "assert_return", "line": 425, "action": {"type": "invoke", "field": "as-call-all", "args": []}, "expected": [{"type": "i32", "value": "15"}]}, 
    48    {"type": "assert_return", "line": 427, "action": {"type": "invoke", "field": "as-call_indirect-func", "args": []}, "expected": [{"type": "i32", "value": "20"}]}, 
    49    {"type": "assert_return", "line": 428, "action": {"type": "invoke", "field": "as-call_indirect-first", "args": []}, "expected": [{"type": "i32", "value": "21"}]}, 
    50    {"type": "assert_return", "line": 429, "action": {"type": "invoke", "field": "as-call_indirect-mid", "args": []}, "expected": [{"type": "i32", "value": "22"}]}, 
    51    {"type": "assert_return", "line": 430, "action": {"type": "invoke", "field": "as-call_indirect-last", "args": []}, "expected": [{"type": "i32", "value": "23"}]}, 
    52    {"type": "assert_return", "line": 431, "action": {"type": "invoke", "field": "as-call_indirect-all", "args": []}, "expected": [{"type": "i32", "value": "24"}]}, 
    53    {"type": "assert_return", "line": 433, "action": {"type": "invoke", "field": "as-local.set-value", "args": []}, "expected": [{"type": "i32", "value": "17"}]}, 
    54    {"type": "assert_return", "line": 434, "action": {"type": "invoke", "field": "as-local.tee-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    55    {"type": "assert_return", "line": 435, "action": {"type": "invoke", "field": "as-global.set-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    56    {"type": "assert_return", "line": 437, "action": {"type": "invoke", "field": "as-load-address", "args": []}, "expected": [{"type": "f32", "value": "1071225242"}]}, 
    57    {"type": "assert_return", "line": 438, "action": {"type": "invoke", "field": "as-loadN-address", "args": []}, "expected": [{"type": "i64", "value": "30"}]}, 
    58    {"type": "assert_return", "line": 440, "action": {"type": "invoke", "field": "as-store-address", "args": []}, "expected": [{"type": "i32", "value": "30"}]}, 
    59    {"type": "assert_return", "line": 441, "action": {"type": "invoke", "field": "as-store-value", "args": []}, "expected": [{"type": "i32", "value": "31"}]}, 
    60    {"type": "assert_return", "line": 442, "action": {"type": "invoke", "field": "as-store-both", "args": []}, "expected": [{"type": "i32", "value": "32"}]}, 
    61    {"type": "assert_return", "line": 443, "action": {"type": "invoke", "field": "as-storeN-address", "args": []}, "expected": [{"type": "i32", "value": "32"}]}, 
    62    {"type": "assert_return", "line": 444, "action": {"type": "invoke", "field": "as-storeN-value", "args": []}, "expected": [{"type": "i32", "value": "33"}]}, 
    63    {"type": "assert_return", "line": 445, "action": {"type": "invoke", "field": "as-storeN-both", "args": []}, "expected": [{"type": "i32", "value": "34"}]}, 
    64    {"type": "assert_return", "line": 447, "action": {"type": "invoke", "field": "as-unary-operand", "args": []}, "expected": [{"type": "f32", "value": "1079613850"}]}, 
    65    {"type": "assert_return", "line": 449, "action": {"type": "invoke", "field": "as-binary-left", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 
    66    {"type": "assert_return", "line": 450, "action": {"type": "invoke", "field": "as-binary-right", "args": []}, "expected": [{"type": "i64", "value": "45"}]}, 
    67    {"type": "assert_return", "line": 451, "action": {"type": "invoke", "field": "as-binary-both", "args": []}, "expected": [{"type": "i32", "value": "46"}]}, 
    68    {"type": "assert_return", "line": 453, "action": {"type": "invoke", "field": "as-test-operand", "args": []}, "expected": [{"type": "i32", "value": "44"}]}, 
    69    {"type": "assert_return", "line": 455, "action": {"type": "invoke", "field": "as-compare-left", "args": []}, "expected": [{"type": "i32", "value": "43"}]}, 
    70    {"type": "assert_return", "line": 456, "action": {"type": "invoke", "field": "as-compare-right", "args": []}, "expected": [{"type": "i32", "value": "42"}]}, 
    71    {"type": "assert_return", "line": 457, "action": {"type": "invoke", "field": "as-compare-both", "args": []}, "expected": [{"type": "i32", "value": "44"}]}, 
    72    {"type": "assert_return", "line": 459, "action": {"type": "invoke", "field": "as-convert-operand", "args": []}, "expected": [{"type": "i32", "value": "41"}]}, 
    73    {"type": "assert_return", "line": 461, "action": {"type": "invoke", "field": "as-memory.grow-size", "args": []}, "expected": [{"type": "i32", "value": "40"}]}, 
    74    {"type": "assert_return", "line": 463, "action": {"type": "invoke", "field": "nested-block-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    75    {"type": "assert_return", "line": 464, "action": {"type": "invoke", "field": "nested-br-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    76    {"type": "assert_return", "line": 465, "action": {"type": "invoke", "field": "nested-br_if-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    77    {"type": "assert_return", "line": 466, "action": {"type": "invoke", "field": "nested-br_if-value-cond", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    78    {"type": "assert_return", "line": 467, "action": {"type": "invoke", "field": "nested-br_table-value", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    79    {"type": "assert_return", "line": 468, "action": {"type": "invoke", "field": "nested-br_table-value-index", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    80    {"type": "assert_invalid", "line": 471, "filename": "br.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    81    {"type": "assert_invalid", "line": 478, "filename": "br.2.wasm", "text": "type mismatch", "module_type": "binary"}, 
    82    {"type": "assert_invalid", "line": 484, "filename": "br.3.wasm", "text": "type mismatch", "module_type": "binary"}, 
    83    {"type": "assert_invalid", "line": 490, "filename": "br.4.wasm", "text": "type mismatch", "module_type": "binary"}, 
    84    {"type": "assert_invalid", "line": 497, "filename": "br.5.wasm", "text": "type mismatch", "module_type": "binary"}, 
    85    {"type": "assert_invalid", "line": 506, "filename": "br.6.wasm", "text": "type mismatch", "module_type": "binary"}, 
    86    {"type": "assert_invalid", "line": 515, "filename": "br.7.wasm", "text": "type mismatch", "module_type": "binary"}, 
    87    {"type": "assert_invalid", "line": 524, "filename": "br.8.wasm", "text": "type mismatch", "module_type": "binary"}, 
    88    {"type": "assert_invalid", "line": 535, "filename": "br.9.wasm", "text": "type mismatch", "module_type": "binary"}, 
    89    {"type": "assert_invalid", "line": 546, "filename": "br.10.wasm", "text": "type mismatch", "module_type": "binary"}, 
    90    {"type": "assert_invalid", "line": 558, "filename": "br.11.wasm", "text": "type mismatch", "module_type": "binary"}, 
    91    {"type": "assert_invalid", "line": 574, "filename": "br.12.wasm", "text": "type mismatch", "module_type": "binary"}, 
    92    {"type": "assert_invalid", "line": 586, "filename": "br.13.wasm", "text": "type mismatch", "module_type": "binary"}, 
    93    {"type": "assert_invalid", "line": 598, "filename": "br.14.wasm", "text": "type mismatch", "module_type": "binary"}, 
    94    {"type": "assert_invalid", "line": 610, "filename": "br.15.wasm", "text": "type mismatch", "module_type": "binary"}, 
    95    {"type": "assert_invalid", "line": 622, "filename": "br.16.wasm", "text": "type mismatch", "module_type": "binary"}, 
    96    {"type": "assert_invalid", "line": 634, "filename": "br.17.wasm", "text": "type mismatch", "module_type": "binary"}, 
    97    {"type": "assert_invalid", "line": 647, "filename": "br.18.wasm", "text": "unknown label", "module_type": "binary"}, 
    98    {"type": "assert_invalid", "line": 651, "filename": "br.19.wasm", "text": "unknown label", "module_type": "binary"}, 
    99    {"type": "assert_invalid", "line": 655, "filename": "br.20.wasm", "text": "unknown label", "module_type": "binary"}]}