github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/integration_test/spectest/v1/testdata/nop.json (about)

     1  {"source_filename": "./nop.wast",
     2   "commands": [
     3    {"type": "module", "line": 3, "filename": "nop.0.wasm"}, 
     4    {"type": "assert_return", "line": 306, "action": {"type": "invoke", "field": "as-func-first", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
     5    {"type": "assert_return", "line": 307, "action": {"type": "invoke", "field": "as-func-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
     6    {"type": "assert_return", "line": 308, "action": {"type": "invoke", "field": "as-func-last", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 
     7    {"type": "assert_return", "line": 309, "action": {"type": "invoke", "field": "as-func-everywhere", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 
     8    {"type": "assert_return", "line": 311, "action": {"type": "invoke", "field": "as-drop-first", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
     9    {"type": "assert_return", "line": 312, "action": {"type": "invoke", "field": "as-drop-last", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    10    {"type": "assert_return", "line": 313, "action": {"type": "invoke", "field": "as-drop-everywhere", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    11    {"type": "assert_return", "line": 315, "action": {"type": "invoke", "field": "as-select-first", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    12    {"type": "assert_return", "line": 316, "action": {"type": "invoke", "field": "as-select-mid1", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    13    {"type": "assert_return", "line": 317, "action": {"type": "invoke", "field": "as-select-mid2", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    14    {"type": "assert_return", "line": 318, "action": {"type": "invoke", "field": "as-select-last", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    15    {"type": "assert_return", "line": 319, "action": {"type": "invoke", "field": "as-select-everywhere", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    16    {"type": "assert_return", "line": 321, "action": {"type": "invoke", "field": "as-block-first", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    17    {"type": "assert_return", "line": 322, "action": {"type": "invoke", "field": "as-block-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    18    {"type": "assert_return", "line": 323, "action": {"type": "invoke", "field": "as-block-last", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 
    19    {"type": "assert_return", "line": 324, "action": {"type": "invoke", "field": "as-block-everywhere", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 
    20    {"type": "assert_return", "line": 326, "action": {"type": "invoke", "field": "as-loop-first", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    21    {"type": "assert_return", "line": 327, "action": {"type": "invoke", "field": "as-loop-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    22    {"type": "assert_return", "line": 328, "action": {"type": "invoke", "field": "as-loop-last", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 
    23    {"type": "assert_return", "line": 329, "action": {"type": "invoke", "field": "as-loop-everywhere", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 
    24    {"type": "assert_return", "line": 331, "action": {"type": "invoke", "field": "as-if-condition", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    25    {"type": "assert_return", "line": 332, "action": {"type": "invoke", "field": "as-if-condition", "args": [{"type": "i32", "value": "4294967295"}]}, "expected": []}, 
    26    {"type": "assert_return", "line": 333, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    27    {"type": "assert_return", "line": 334, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "4"}]}, "expected": []}, 
    28    {"type": "assert_return", "line": 335, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    29    {"type": "assert_return", "line": 336, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "3"}]}, "expected": []}, 
    30    {"type": "assert_return", "line": 338, "action": {"type": "invoke", "field": "as-br-first", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    31    {"type": "assert_return", "line": 339, "action": {"type": "invoke", "field": "as-br-last", "args": [{"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    32    {"type": "assert_return", "line": 340, "action": {"type": "invoke", "field": "as-br-everywhere", "args": [{"type": "i32", "value": "7"}]}, "expected": [{"type": "i32", "value": "7"}]}, 
    33    {"type": "assert_return", "line": 342, "action": {"type": "invoke", "field": "as-br_if-first", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "4"}]}, 
    34    {"type": "assert_return", "line": 343, "action": {"type": "invoke", "field": "as-br_if-mid", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    35    {"type": "assert_return", "line": 344, "action": {"type": "invoke", "field": "as-br_if-last", "args": [{"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    36    {"type": "assert_return", "line": 345, "action": {"type": "invoke", "field": "as-br_if-everywhere", "args": [{"type": "i32", "value": "7"}]}, "expected": [{"type": "i32", "value": "7"}]}, 
    37    {"type": "assert_return", "line": 347, "action": {"type": "invoke", "field": "as-br_table-first", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "4"}]}, 
    38    {"type": "assert_return", "line": 348, "action": {"type": "invoke", "field": "as-br_table-mid", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    39    {"type": "assert_return", "line": 349, "action": {"type": "invoke", "field": "as-br_table-last", "args": [{"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    40    {"type": "assert_return", "line": 350, "action": {"type": "invoke", "field": "as-br_table-everywhere", "args": [{"type": "i32", "value": "7"}]}, "expected": [{"type": "i32", "value": "7"}]}, 
    41    {"type": "assert_return", "line": 352, "action": {"type": "invoke", "field": "as-return-first", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    42    {"type": "assert_return", "line": 353, "action": {"type": "invoke", "field": "as-return-last", "args": [{"type": "i32", "value": "6"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    43    {"type": "assert_return", "line": 354, "action": {"type": "invoke", "field": "as-return-everywhere", "args": [{"type": "i32", "value": "7"}]}, "expected": [{"type": "i32", "value": "7"}]}, 
    44    {"type": "assert_return", "line": 356, "action": {"type": "invoke", "field": "as-call-first", "args": [{"type": "i32", "value": "3"}, {"type": "i32", "value": "1"}, {"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    45    {"type": "assert_return", "line": 357, "action": {"type": "invoke", "field": "as-call-mid1", "args": [{"type": "i32", "value": "3"}, {"type": "i32", "value": "1"}, {"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    46    {"type": "assert_return", "line": 358, "action": {"type": "invoke", "field": "as-call-mid2", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    47    {"type": "assert_return", "line": 359, "action": {"type": "invoke", "field": "as-call-last", "args": [{"type": "i32", "value": "10"}, {"type": "i32", "value": "9"}, {"type": "i32", "value": "4294967295"}]}, "expected": [{"type": "i32", "value": "20"}]}, 
    48    {"type": "assert_return", "line": 360, "action": {"type": "invoke", "field": "as-call-everywhere", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "1"}, {"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "4294967294"}]}, 
    49    {"type": "assert_return", "line": 362, "action": {"type": "invoke", "field": "as-unary-first", "args": [{"type": "i32", "value": "30"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    50    {"type": "assert_return", "line": 363, "action": {"type": "invoke", "field": "as-unary-last", "args": [{"type": "i32", "value": "30"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    51    {"type": "assert_return", "line": 364, "action": {"type": "invoke", "field": "as-unary-everywhere", "args": [{"type": "i32", "value": "12"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    52    {"type": "assert_return", "line": 366, "action": {"type": "invoke", "field": "as-binary-first", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    53    {"type": "assert_return", "line": 367, "action": {"type": "invoke", "field": "as-binary-mid", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    54    {"type": "assert_return", "line": 368, "action": {"type": "invoke", "field": "as-binary-last", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    55    {"type": "assert_return", "line": 369, "action": {"type": "invoke", "field": "as-binary-everywhere", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    56    {"type": "assert_return", "line": 371, "action": {"type": "invoke", "field": "as-test-first", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    57    {"type": "assert_return", "line": 372, "action": {"type": "invoke", "field": "as-test-last", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    58    {"type": "assert_return", "line": 373, "action": {"type": "invoke", "field": "as-test-everywhere", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    59    {"type": "assert_return", "line": 375, "action": {"type": "invoke", "field": "as-compare-first", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    60    {"type": "assert_return", "line": 376, "action": {"type": "invoke", "field": "as-compare-mid", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    61    {"type": "assert_return", "line": 377, "action": {"type": "invoke", "field": "as-compare-last", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    62    {"type": "assert_return", "line": 378, "action": {"type": "invoke", "field": "as-compare-everywhere", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    63    {"type": "assert_return", "line": 380, "action": {"type": "invoke", "field": "as-memory.grow-first", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    64    {"type": "assert_return", "line": 381, "action": {"type": "invoke", "field": "as-memory.grow-last", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    65    {"type": "assert_return", "line": 382, "action": {"type": "invoke", "field": "as-memory.grow-everywhere", "args": [{"type": "i32", "value": "12"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    66    {"type": "assert_return", "line": 384, "action": {"type": "invoke", "field": "as-call_indirect-first", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    67    {"type": "assert_return", "line": 385, "action": {"type": "invoke", "field": "as-call_indirect-mid1", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    68    {"type": "assert_return", "line": 386, "action": {"type": "invoke", "field": "as-call_indirect-mid2", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    69    {"type": "assert_return", "line": 387, "action": {"type": "invoke", "field": "as-call_indirect-last", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    70    {"type": "assert_return", "line": 388, "action": {"type": "invoke", "field": "as-call_indirect-everywhere", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    71    {"type": "assert_return", "line": 390, "action": {"type": "invoke", "field": "as-local.set-first", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    72    {"type": "assert_return", "line": 391, "action": {"type": "invoke", "field": "as-local.set-last", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    73    {"type": "assert_return", "line": 392, "action": {"type": "invoke", "field": "as-local.set-everywhere", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    74    {"type": "assert_return", "line": 394, "action": {"type": "invoke", "field": "as-local.tee-first", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    75    {"type": "assert_return", "line": 395, "action": {"type": "invoke", "field": "as-local.tee-last", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    76    {"type": "assert_return", "line": 396, "action": {"type": "invoke", "field": "as-local.tee-everywhere", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "2"}]}, 
    77    {"type": "assert_return", "line": 398, "action": {"type": "invoke", "field": "as-global.set-first", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    78    {"type": "assert_return", "line": 399, "action": {"type": "invoke", "field": "as-global.set-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    79    {"type": "assert_return", "line": 400, "action": {"type": "invoke", "field": "as-global.set-everywhere", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    80    {"type": "assert_return", "line": 402, "action": {"type": "invoke", "field": "as-load-first", "args": [{"type": "i32", "value": "100"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    81    {"type": "assert_return", "line": 403, "action": {"type": "invoke", "field": "as-load-last", "args": [{"type": "i32", "value": "100"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    82    {"type": "assert_return", "line": 404, "action": {"type": "invoke", "field": "as-load-everywhere", "args": [{"type": "i32", "value": "100"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    83    {"type": "assert_return", "line": 406, "action": {"type": "invoke", "field": "as-store-first", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "1"}]}, "expected": []}, 
    84    {"type": "assert_return", "line": 407, "action": {"type": "invoke", "field": "as-store-mid", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "2"}]}, "expected": []}, 
    85    {"type": "assert_return", "line": 408, "action": {"type": "invoke", "field": "as-store-last", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "3"}]}, "expected": []}, 
    86    {"type": "assert_return", "line": 409, "action": {"type": "invoke", "field": "as-store-everywhere", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "4"}]}, "expected": []}, 
    87    {"type": "assert_invalid", "line": 412, "filename": "nop.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    88    {"type": "assert_invalid", "line": 416, "filename": "nop.2.wasm", "text": "type mismatch", "module_type": "binary"}, 
    89    {"type": "assert_invalid", "line": 420, "filename": "nop.3.wasm", "text": "type mismatch", "module_type": "binary"}, 
    90    {"type": "assert_invalid", "line": 424, "filename": "nop.4.wasm", "text": "type mismatch", "module_type": "binary"}]}