github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/integration_test/spectest/v1/testdata/br_if.json (about)

     1  {"source_filename": "./br_if.wast",
     2   "commands": [
     3    {"type": "module", "line": 3, "filename": "br_if.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": 377, "action": {"type": "invoke", "field": "type-i32-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
     9    {"type": "assert_return", "line": 378, "action": {"type": "invoke", "field": "type-i64-value", "args": []}, "expected": [{"type": "i64", "value": "2"}]}, 
    10    {"type": "assert_return", "line": 379, "action": {"type": "invoke", "field": "type-f32-value", "args": []}, "expected": [{"type": "f32", "value": "1077936128"}]}, 
    11    {"type": "assert_return", "line": 380, "action": {"type": "invoke", "field": "type-f64-value", "args": []}, "expected": [{"type": "f64", "value": "4616189618054758400"}]}, 
    12    {"type": "assert_return", "line": 382, "action": {"type": "invoke", "field": "as-block-first", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    13    {"type": "assert_return", "line": 383, "action": {"type": "invoke", "field": "as-block-first", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    14    {"type": "assert_return", "line": 384, "action": {"type": "invoke", "field": "as-block-mid", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    15    {"type": "assert_return", "line": 385, "action": {"type": "invoke", "field": "as-block-mid", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    16    {"type": "assert_return", "line": 386, "action": {"type": "invoke", "field": "as-block-last", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    17    {"type": "assert_return", "line": 387, "action": {"type": "invoke", "field": "as-block-last", "args": [{"type": "i32", "value": "1"}]}, "expected": []}, 
    18    {"type": "assert_return", "line": 389, "action": {"type": "invoke", "field": "as-block-first-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "11"}]}, 
    19    {"type": "assert_return", "line": 390, "action": {"type": "invoke", "field": "as-block-first-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "10"}]}, 
    20    {"type": "assert_return", "line": 391, "action": {"type": "invoke", "field": "as-block-mid-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "21"}]}, 
    21    {"type": "assert_return", "line": 392, "action": {"type": "invoke", "field": "as-block-mid-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "20"}]}, 
    22    {"type": "assert_return", "line": 393, "action": {"type": "invoke", "field": "as-block-last-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "11"}]}, 
    23    {"type": "assert_return", "line": 394, "action": {"type": "invoke", "field": "as-block-last-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "11"}]}, 
    24    {"type": "assert_return", "line": 396, "action": {"type": "invoke", "field": "as-loop-first", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    25    {"type": "assert_return", "line": 397, "action": {"type": "invoke", "field": "as-loop-first", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    26    {"type": "assert_return", "line": 398, "action": {"type": "invoke", "field": "as-loop-mid", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    27    {"type": "assert_return", "line": 399, "action": {"type": "invoke", "field": "as-loop-mid", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "4"}]}, 
    28    {"type": "assert_return", "line": 400, "action": {"type": "invoke", "field": "as-loop-last", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    29    {"type": "assert_return", "line": 401, "action": {"type": "invoke", "field": "as-loop-last", "args": [{"type": "i32", "value": "1"}]}, "expected": []}, 
    30    {"type": "assert_return", "line": 403, "action": {"type": "invoke", "field": "as-br-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    31    {"type": "assert_return", "line": 405, "action": {"type": "invoke", "field": "as-br_if-cond", "args": []}, "expected": []}, 
    32    {"type": "assert_return", "line": 406, "action": {"type": "invoke", "field": "as-br_if-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    33    {"type": "assert_return", "line": 407, "action": {"type": "invoke", "field": "as-br_if-value-cond", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    34    {"type": "assert_return", "line": 408, "action": {"type": "invoke", "field": "as-br_if-value-cond", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    35    {"type": "assert_return", "line": 410, "action": {"type": "invoke", "field": "as-br_table-index", "args": []}, "expected": []}, 
    36    {"type": "assert_return", "line": 411, "action": {"type": "invoke", "field": "as-br_table-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    37    {"type": "assert_return", "line": 412, "action": {"type": "invoke", "field": "as-br_table-value-index", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    38    {"type": "assert_return", "line": 414, "action": {"type": "invoke", "field": "as-return-value", "args": []}, "expected": [{"type": "i64", "value": "1"}]}, 
    39    {"type": "assert_return", "line": 416, "action": {"type": "invoke", "field": "as-if-cond", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    40    {"type": "assert_return", "line": 417, "action": {"type": "invoke", "field": "as-if-cond", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    41    {"type": "assert_return", "line": 418, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "0"}]}, "expected": []}, 
    42    {"type": "assert_return", "line": 419, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "4"}, {"type": "i32", "value": "0"}]}, "expected": []}, 
    43    {"type": "assert_return", "line": 420, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "1"}]}, "expected": []}, 
    44    {"type": "assert_return", "line": 421, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "4"}, {"type": "i32", "value": "1"}]}, "expected": []}, 
    45    {"type": "assert_return", "line": 422, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "0"}]}, "expected": []}, 
    46    {"type": "assert_return", "line": 423, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "3"}, {"type": "i32", "value": "0"}]}, "expected": []}, 
    47    {"type": "assert_return", "line": 424, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "1"}]}, "expected": []}, 
    48    {"type": "assert_return", "line": 425, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "3"}, {"type": "i32", "value": "1"}]}, "expected": []}, 
    49    {"type": "assert_return", "line": 427, "action": {"type": "invoke", "field": "as-select-first", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    50    {"type": "assert_return", "line": 428, "action": {"type": "invoke", "field": "as-select-first", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    51    {"type": "assert_return", "line": 429, "action": {"type": "invoke", "field": "as-select-second", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    52    {"type": "assert_return", "line": 430, "action": {"type": "invoke", "field": "as-select-second", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    53    {"type": "assert_return", "line": 431, "action": {"type": "invoke", "field": "as-select-cond", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 
    54    {"type": "assert_return", "line": 433, "action": {"type": "invoke", "field": "as-call-first", "args": []}, "expected": [{"type": "i32", "value": "12"}]}, 
    55    {"type": "assert_return", "line": 434, "action": {"type": "invoke", "field": "as-call-mid", "args": []}, "expected": [{"type": "i32", "value": "13"}]}, 
    56    {"type": "assert_return", "line": 435, "action": {"type": "invoke", "field": "as-call-last", "args": []}, "expected": [{"type": "i32", "value": "14"}]}, 
    57    {"type": "assert_return", "line": 437, "action": {"type": "invoke", "field": "as-call_indirect-func", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 
    58    {"type": "assert_return", "line": 438, "action": {"type": "invoke", "field": "as-call_indirect-first", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 
    59    {"type": "assert_return", "line": 439, "action": {"type": "invoke", "field": "as-call_indirect-mid", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 
    60    {"type": "assert_return", "line": 440, "action": {"type": "invoke", "field": "as-call_indirect-last", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 
    61    {"type": "assert_return", "line": 442, "action": {"type": "invoke", "field": "as-local.set-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    62    {"type": "assert_return", "line": 443, "action": {"type": "invoke", "field": "as-local.set-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "17"}]}, 
    63    {"type": "assert_return", "line": 445, "action": {"type": "invoke", "field": "as-local.tee-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    64    {"type": "assert_return", "line": 446, "action": {"type": "invoke", "field": "as-local.tee-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    65    {"type": "assert_return", "line": 448, "action": {"type": "invoke", "field": "as-global.set-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    66    {"type": "assert_return", "line": 449, "action": {"type": "invoke", "field": "as-global.set-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    67    {"type": "assert_return", "line": 451, "action": {"type": "invoke", "field": "as-load-address", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    68    {"type": "assert_return", "line": 452, "action": {"type": "invoke", "field": "as-loadN-address", "args": []}, "expected": [{"type": "i32", "value": "30"}]}, 
    69    {"type": "assert_return", "line": 454, "action": {"type": "invoke", "field": "as-store-address", "args": []}, "expected": [{"type": "i32", "value": "30"}]}, 
    70    {"type": "assert_return", "line": 455, "action": {"type": "invoke", "field": "as-store-value", "args": []}, "expected": [{"type": "i32", "value": "31"}]}, 
    71    {"type": "assert_return", "line": 456, "action": {"type": "invoke", "field": "as-storeN-address", "args": []}, "expected": [{"type": "i32", "value": "32"}]}, 
    72    {"type": "assert_return", "line": 457, "action": {"type": "invoke", "field": "as-storeN-value", "args": []}, "expected": [{"type": "i32", "value": "33"}]}, 
    73    {"type": "assert_return", "line": 459, "action": {"type": "invoke", "field": "as-unary-operand", "args": []}, "expected": [{"type": "f64", "value": "4607182418800017408"}]}, 
    74    {"type": "assert_return", "line": 460, "action": {"type": "invoke", "field": "as-binary-left", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    75    {"type": "assert_return", "line": 461, "action": {"type": "invoke", "field": "as-binary-right", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    76    {"type": "assert_return", "line": 462, "action": {"type": "invoke", "field": "as-test-operand", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 
    77    {"type": "assert_return", "line": 463, "action": {"type": "invoke", "field": "as-compare-left", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    78    {"type": "assert_return", "line": 464, "action": {"type": "invoke", "field": "as-compare-right", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    79    {"type": "assert_return", "line": 465, "action": {"type": "invoke", "field": "as-memory.grow-size", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    80    {"type": "assert_return", "line": 467, "action": {"type": "invoke", "field": "nested-block-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "21"}]}, 
    81    {"type": "assert_return", "line": 468, "action": {"type": "invoke", "field": "nested-block-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "9"}]}, 
    82    {"type": "assert_return", "line": 469, "action": {"type": "invoke", "field": "nested-br-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    83    {"type": "assert_return", "line": 470, "action": {"type": "invoke", "field": "nested-br-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "9"}]}, 
    84    {"type": "assert_return", "line": 471, "action": {"type": "invoke", "field": "nested-br_if-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    85    {"type": "assert_return", "line": 472, "action": {"type": "invoke", "field": "nested-br_if-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "9"}]}, 
    86    {"type": "assert_return", "line": 473, "action": {"type": "invoke", "field": "nested-br_if-value-cond", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    87    {"type": "assert_return", "line": 474, "action": {"type": "invoke", "field": "nested-br_if-value-cond", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "9"}]}, 
    88    {"type": "assert_return", "line": 475, "action": {"type": "invoke", "field": "nested-br_table-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    89    {"type": "assert_return", "line": 476, "action": {"type": "invoke", "field": "nested-br_table-value", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "9"}]}, 
    90    {"type": "assert_return", "line": 477, "action": {"type": "invoke", "field": "nested-br_table-value-index", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    91    {"type": "assert_return", "line": 478, "action": {"type": "invoke", "field": "nested-br_table-value-index", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "9"}]}, 
    92    {"type": "assert_invalid", "line": 481, "filename": "br_if.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    93    {"type": "assert_invalid", "line": 485, "filename": "br_if.2.wasm", "text": "type mismatch", "module_type": "binary"}, 
    94    {"type": "assert_invalid", "line": 489, "filename": "br_if.3.wasm", "text": "type mismatch", "module_type": "binary"}, 
    95    {"type": "assert_invalid", "line": 493, "filename": "br_if.4.wasm", "text": "type mismatch", "module_type": "binary"}, 
    96    {"type": "assert_invalid", "line": 498, "filename": "br_if.5.wasm", "text": "type mismatch", "module_type": "binary"}, 
    97    {"type": "assert_invalid", "line": 502, "filename": "br_if.6.wasm", "text": "type mismatch", "module_type": "binary"}, 
    98    {"type": "assert_invalid", "line": 506, "filename": "br_if.7.wasm", "text": "type mismatch", "module_type": "binary"}, 
    99    {"type": "assert_invalid", "line": 510, "filename": "br_if.8.wasm", "text": "type mismatch", "module_type": "binary"}, 
   100    {"type": "assert_invalid", "line": 515, "filename": "br_if.9.wasm", "text": "type mismatch", "module_type": "binary"}, 
   101    {"type": "assert_invalid", "line": 521, "filename": "br_if.10.wasm", "text": "type mismatch", "module_type": "binary"}, 
   102    {"type": "assert_invalid", "line": 527, "filename": "br_if.11.wasm", "text": "type mismatch", "module_type": "binary"}, 
   103    {"type": "assert_invalid", "line": 533, "filename": "br_if.12.wasm", "text": "type mismatch", "module_type": "binary"}, 
   104    {"type": "assert_invalid", "line": 540, "filename": "br_if.13.wasm", "text": "type mismatch", "module_type": "binary"}, 
   105    {"type": "assert_invalid", "line": 546, "filename": "br_if.14.wasm", "text": "type mismatch", "module_type": "binary"}, 
   106    {"type": "assert_invalid", "line": 552, "filename": "br_if.15.wasm", "text": "type mismatch", "module_type": "binary"}, 
   107    {"type": "assert_invalid", "line": 560, "filename": "br_if.16.wasm", "text": "type mismatch", "module_type": "binary"}, 
   108    {"type": "assert_invalid", "line": 569, "filename": "br_if.17.wasm", "text": "type mismatch", "module_type": "binary"}, 
   109    {"type": "assert_invalid", "line": 575, "filename": "br_if.18.wasm", "text": "type mismatch", "module_type": "binary"}, 
   110    {"type": "assert_invalid", "line": 581, "filename": "br_if.19.wasm", "text": "type mismatch", "module_type": "binary"}, 
   111    {"type": "assert_invalid", "line": 587, "filename": "br_if.20.wasm", "text": "type mismatch", "module_type": "binary"}, 
   112    {"type": "assert_invalid", "line": 593, "filename": "br_if.21.wasm", "text": "type mismatch", "module_type": "binary"}, 
   113    {"type": "assert_invalid", "line": 599, "filename": "br_if.22.wasm", "text": "type mismatch", "module_type": "binary"}, 
   114    {"type": "assert_invalid", "line": 606, "filename": "br_if.23.wasm", "text": "type mismatch", "module_type": "binary"}, 
   115    {"type": "assert_invalid", "line": 618, "filename": "br_if.24.wasm", "text": "type mismatch", "module_type": "binary"}, 
   116    {"type": "assert_invalid", "line": 630, "filename": "br_if.25.wasm", "text": "type mismatch", "module_type": "binary"}, 
   117    {"type": "assert_invalid", "line": 641, "filename": "br_if.26.wasm", "text": "type mismatch", "module_type": "binary"}, 
   118    {"type": "assert_invalid", "line": 654, "filename": "br_if.27.wasm", "text": "unknown label", "module_type": "binary"}, 
   119    {"type": "assert_invalid", "line": 658, "filename": "br_if.28.wasm", "text": "unknown label", "module_type": "binary"}, 
   120    {"type": "assert_invalid", "line": 662, "filename": "br_if.29.wasm", "text": "unknown label", "module_type": "binary"}]}