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

     1  {"source_filename": "./local_tee.wast",
     2   "commands": [
     3    {"type": "module", "line": 3, "filename": "local_tee.0.wasm"}, 
     4    {"type": "assert_return", "line": 280, "action": {"type": "invoke", "field": "type-local-i32", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 
     5    {"type": "assert_return", "line": 281, "action": {"type": "invoke", "field": "type-local-i64", "args": []}, "expected": [{"type": "i64", "value": "0"}]}, 
     6    {"type": "assert_return", "line": 282, "action": {"type": "invoke", "field": "type-local-f32", "args": []}, "expected": [{"type": "f32", "value": "0"}]}, 
     7    {"type": "assert_return", "line": 283, "action": {"type": "invoke", "field": "type-local-f64", "args": []}, "expected": [{"type": "f64", "value": "0"}]}, 
     8    {"type": "assert_return", "line": 285, "action": {"type": "invoke", "field": "type-param-i32", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "10"}]}, 
     9    {"type": "assert_return", "line": 286, "action": {"type": "invoke", "field": "type-param-i64", "args": [{"type": "i64", "value": "3"}]}, "expected": [{"type": "i64", "value": "11"}]}, 
    10    {"type": "assert_return", "line": 287, "action": {"type": "invoke", "field": "type-param-f32", "args": [{"type": "f32", "value": "1082969293"}]}, "expected": [{"type": "f32", "value": "1093769626"}]}, 
    11    {"type": "assert_return", "line": 288, "action": {"type": "invoke", "field": "type-param-f64", "args": [{"type": "f64", "value": "4617878467915022336"}]}, "expected": [{"type": "f64", "value": "4623057607486498406"}]}, 
    12    {"type": "assert_return", "line": 290, "action": {"type": "invoke", "field": "as-block-first", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    13    {"type": "assert_return", "line": 291, "action": {"type": "invoke", "field": "as-block-mid", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    14    {"type": "assert_return", "line": 292, "action": {"type": "invoke", "field": "as-block-last", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    15    {"type": "assert_return", "line": 294, "action": {"type": "invoke", "field": "as-loop-first", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    16    {"type": "assert_return", "line": 295, "action": {"type": "invoke", "field": "as-loop-mid", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4"}]}, 
    17    {"type": "assert_return", "line": 296, "action": {"type": "invoke", "field": "as-loop-last", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    18    {"type": "assert_return", "line": 298, "action": {"type": "invoke", "field": "as-br-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "9"}]}, 
    19    {"type": "assert_return", "line": 300, "action": {"type": "invoke", "field": "as-br_if-cond", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    20    {"type": "assert_return", "line": 301, "action": {"type": "invoke", "field": "as-br_if-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "8"}]}, 
    21    {"type": "assert_return", "line": 302, "action": {"type": "invoke", "field": "as-br_if-value-cond", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    22    {"type": "assert_return", "line": 304, "action": {"type": "invoke", "field": "as-br_table-index", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    23    {"type": "assert_return", "line": 305, "action": {"type": "invoke", "field": "as-br_table-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "10"}]}, 
    24    {"type": "assert_return", "line": 306, "action": {"type": "invoke", "field": "as-br_table-value-index", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    25    {"type": "assert_return", "line": 308, "action": {"type": "invoke", "field": "as-return-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "7"}]}, 
    26    {"type": "assert_return", "line": 310, "action": {"type": "invoke", "field": "as-if-cond", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    27    {"type": "assert_return", "line": 311, "action": {"type": "invoke", "field": "as-if-then", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "3"}]}, 
    28    {"type": "assert_return", "line": 312, "action": {"type": "invoke", "field": "as-if-else", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4"}]}, 
    29    {"type": "assert_return", "line": 314, "action": {"type": "invoke", "field": "as-select-first", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "5"}]}, 
    30    {"type": "assert_return", "line": 315, "action": {"type": "invoke", "field": "as-select-second", "args": [{"type": "i32", "value": "0"}, {"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    31    {"type": "assert_return", "line": 316, "action": {"type": "invoke", "field": "as-select-cond", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    32    {"type": "assert_return", "line": 318, "action": {"type": "invoke", "field": "as-call-first", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    33    {"type": "assert_return", "line": 319, "action": {"type": "invoke", "field": "as-call-mid", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    34    {"type": "assert_return", "line": 320, "action": {"type": "invoke", "field": "as-call-last", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    35    {"type": "assert_return", "line": 322, "action": {"type": "invoke", "field": "as-call_indirect-first", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    36    {"type": "assert_return", "line": 323, "action": {"type": "invoke", "field": "as-call_indirect-mid", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    37    {"type": "assert_return", "line": 324, "action": {"type": "invoke", "field": "as-call_indirect-last", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    38    {"type": "assert_return", "line": 325, "action": {"type": "invoke", "field": "as-call_indirect-index", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    39    {"type": "assert_return", "line": 327, "action": {"type": "invoke", "field": "as-local.set-value", "args": []}, "expected": []}, 
    40    {"type": "assert_return", "line": 328, "action": {"type": "invoke", "field": "as-local.tee-value", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    41    {"type": "assert_return", "line": 329, "action": {"type": "invoke", "field": "as-global.set-value", "args": []}, "expected": []}, 
    42    {"type": "assert_return", "line": 331, "action": {"type": "invoke", "field": "as-load-address", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    43    {"type": "assert_return", "line": 332, "action": {"type": "invoke", "field": "as-loadN-address", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    44    {"type": "assert_return", "line": 333, "action": {"type": "invoke", "field": "as-store-address", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    45    {"type": "assert_return", "line": 334, "action": {"type": "invoke", "field": "as-store-value", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    46    {"type": "assert_return", "line": 335, "action": {"type": "invoke", "field": "as-storeN-address", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    47    {"type": "assert_return", "line": 336, "action": {"type": "invoke", "field": "as-storeN-value", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 
    48    {"type": "assert_return", "line": 338, "action": {"type": "invoke", "field": "as-unary-operand", "args": [{"type": "f32", "value": "0"}]}, "expected": [{"type": "f32", "value": "4286640610"}]}, 
    49    {"type": "assert_return", "line": 339, "action": {"type": "invoke", "field": "as-binary-left", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "13"}]}, 
    50    {"type": "assert_return", "line": 340, "action": {"type": "invoke", "field": "as-binary-right", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "6"}]}, 
    51    {"type": "assert_return", "line": 341, "action": {"type": "invoke", "field": "as-test-operand", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    52    {"type": "assert_return", "line": 342, "action": {"type": "invoke", "field": "as-compare-left", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "0"}]}, 
    53    {"type": "assert_return", "line": 343, "action": {"type": "invoke", "field": "as-compare-right", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    54    {"type": "assert_return", "line": 344, "action": {"type": "invoke", "field": "as-convert-operand", "args": [{"type": "i64", "value": "0"}]}, "expected": [{"type": "i32", "value": "41"}]}, 
    55    {"type": "assert_return", "line": 345, "action": {"type": "invoke", "field": "as-memory.grow-size", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 
    56    {"type": "assert_return", "line": 348, "action": {"type": "invoke", "field": "type-mixed", "args": [{"type": "i64", "value": "1"}, {"type": "f32", "value": "1074580685"}, {"type": "f64", "value": "4614613358185178726"}, {"type": "i32", "value": "4"}, {"type": "i32", "value": "5"}]}, "expected": []}, 
    57    {"type": "assert_return", "line": 354, "action": {"type": "invoke", "field": "write", "args": [{"type": "i64", "value": "1"}, {"type": "f32", "value": "1073741824"}, {"type": "f64", "value": "4614613358185178726"}, {"type": "i32", "value": "4"}, {"type": "i32", "value": "5"}]}, "expected": [{"type": "i64", "value": "56"}]}, 
    58    {"type": "assert_return", "line": 361, "action": {"type": "invoke", "field": "result", "args": [{"type": "i64", "value": "18446744073709551615"}, {"type": "f32", "value": "3221225472"}, {"type": "f64", "value": "13837985395039954534"}, {"type": "i32", "value": "4294967292"}, {"type": "i32", "value": "4294967291"}]}, "expected": [{"type": "f64", "value": "4630094481904264806"}]}, 
    59    {"type": "assert_invalid", "line": 371, "filename": "local_tee.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    60    {"type": "assert_invalid", "line": 375, "filename": "local_tee.2.wasm", "text": "type mismatch", "module_type": "binary"}, 
    61    {"type": "assert_invalid", "line": 379, "filename": "local_tee.3.wasm", "text": "type mismatch", "module_type": "binary"}, 
    62    {"type": "assert_invalid", "line": 384, "filename": "local_tee.4.wasm", "text": "type mismatch", "module_type": "binary"}, 
    63    {"type": "assert_invalid", "line": 388, "filename": "local_tee.5.wasm", "text": "type mismatch", "module_type": "binary"}, 
    64    {"type": "assert_invalid", "line": 392, "filename": "local_tee.6.wasm", "text": "type mismatch", "module_type": "binary"}, 
    65    {"type": "assert_invalid", "line": 396, "filename": "local_tee.7.wasm", "text": "type mismatch", "module_type": "binary"}, 
    66    {"type": "assert_invalid", "line": 404, "filename": "local_tee.8.wasm", "text": "type mismatch", "module_type": "binary"}, 
    67    {"type": "assert_invalid", "line": 408, "filename": "local_tee.9.wasm", "text": "type mismatch", "module_type": "binary"}, 
    68    {"type": "assert_invalid", "line": 412, "filename": "local_tee.10.wasm", "text": "type mismatch", "module_type": "binary"}, 
    69    {"type": "assert_invalid", "line": 417, "filename": "local_tee.11.wasm", "text": "type mismatch", "module_type": "binary"}, 
    70    {"type": "assert_invalid", "line": 421, "filename": "local_tee.12.wasm", "text": "type mismatch", "module_type": "binary"}, 
    71    {"type": "assert_invalid", "line": 425, "filename": "local_tee.13.wasm", "text": "type mismatch", "module_type": "binary"}, 
    72    {"type": "assert_invalid", "line": 429, "filename": "local_tee.14.wasm", "text": "type mismatch", "module_type": "binary"}, 
    73    {"type": "assert_invalid", "line": 434, "filename": "local_tee.15.wasm", "text": "type mismatch", "module_type": "binary"}, 
    74    {"type": "assert_invalid", "line": 442, "filename": "local_tee.16.wasm", "text": "type mismatch", "module_type": "binary"}, 
    75    {"type": "assert_invalid", "line": 451, "filename": "local_tee.17.wasm", "text": "type mismatch", "module_type": "binary"}, 
    76    {"type": "assert_invalid", "line": 460, "filename": "local_tee.18.wasm", "text": "type mismatch", "module_type": "binary"}, 
    77    {"type": "assert_invalid", "line": 469, "filename": "local_tee.19.wasm", "text": "type mismatch", "module_type": "binary"}, 
    78    {"type": "assert_invalid", "line": 478, "filename": "local_tee.20.wasm", "text": "type mismatch", "module_type": "binary"}, 
    79    {"type": "assert_invalid", "line": 487, "filename": "local_tee.21.wasm", "text": "type mismatch", "module_type": "binary"}, 
    80    {"type": "assert_invalid", "line": 496, "filename": "local_tee.22.wasm", "text": "type mismatch", "module_type": "binary"}, 
    81    {"type": "assert_invalid", "line": 505, "filename": "local_tee.23.wasm", "text": "type mismatch", "module_type": "binary"}, 
    82    {"type": "assert_invalid", "line": 513, "filename": "local_tee.24.wasm", "text": "type mismatch", "module_type": "binary"}, 
    83    {"type": "assert_invalid", "line": 521, "filename": "local_tee.25.wasm", "text": "type mismatch", "module_type": "binary"}, 
    84    {"type": "assert_invalid", "line": 530, "filename": "local_tee.26.wasm", "text": "type mismatch", "module_type": "binary"}, 
    85    {"type": "assert_invalid", "line": 546, "filename": "local_tee.27.wasm", "text": "type mismatch", "module_type": "binary"}, 
    86    {"type": "assert_invalid", "line": 554, "filename": "local_tee.28.wasm", "text": "type mismatch", "module_type": "binary"}, 
    87    {"type": "assert_invalid", "line": 562, "filename": "local_tee.29.wasm", "text": "type mismatch", "module_type": "binary"}, 
    88    {"type": "assert_invalid", "line": 571, "filename": "local_tee.30.wasm", "text": "type mismatch", "module_type": "binary"}, 
    89    {"type": "assert_invalid", "line": 580, "filename": "local_tee.31.wasm", "text": "type mismatch", "module_type": "binary"}, 
    90    {"type": "assert_invalid", "line": 589, "filename": "local_tee.32.wasm", "text": "type mismatch", "module_type": "binary"}, 
    91    {"type": "assert_invalid", "line": 602, "filename": "local_tee.33.wasm", "text": "unknown local", "module_type": "binary"}, 
    92    {"type": "assert_invalid", "line": 606, "filename": "local_tee.34.wasm", "text": "unknown local", "module_type": "binary"}, 
    93    {"type": "assert_invalid", "line": 611, "filename": "local_tee.35.wasm", "text": "unknown local", "module_type": "binary"}, 
    94    {"type": "assert_invalid", "line": 615, "filename": "local_tee.36.wasm", "text": "unknown local", "module_type": "binary"}, 
    95    {"type": "assert_invalid", "line": 620, "filename": "local_tee.37.wasm", "text": "unknown local", "module_type": "binary"}, 
    96    {"type": "assert_invalid", "line": 624, "filename": "local_tee.38.wasm", "text": "unknown local", "module_type": "binary"}, 
    97    {"type": "assert_invalid", "line": 629, "filename": "local_tee.39.wasm", "text": "type mismatch", "module_type": "binary"}, 
    98    {"type": "assert_invalid", "line": 633, "filename": "local_tee.40.wasm", "text": "type mismatch", "module_type": "binary"}, 
    99    {"type": "assert_invalid", "line": 637, "filename": "local_tee.41.wasm", "text": "type mismatch", "module_type": "binary"}]}