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

     1  {"source_filename": "./call.wast",
     2   "commands": [
     3    {"type": "module", "line": 3, "filename": "call.0.wasm"}, 
     4    {"type": "assert_return", "line": 230, "action": {"type": "invoke", "field": "type-i32", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
     5    {"type": "assert_return", "line": 231, "action": {"type": "invoke", "field": "type-i64", "args": []}, "expected": [{"type": "i64", "value": "356"}]}, 
     6    {"type": "assert_return", "line": 232, "action": {"type": "invoke", "field": "type-f32", "args": []}, "expected": [{"type": "f32", "value": "1165172736"}]}, 
     7    {"type": "assert_return", "line": 233, "action": {"type": "invoke", "field": "type-f64", "args": []}, "expected": [{"type": "f64", "value": "4660882566700597248"}]}, 
     8    {"type": "assert_return", "line": 235, "action": {"type": "invoke", "field": "type-first-i32", "args": []}, "expected": [{"type": "i32", "value": "32"}]}, 
     9    {"type": "assert_return", "line": 236, "action": {"type": "invoke", "field": "type-first-i64", "args": []}, "expected": [{"type": "i64", "value": "64"}]}, 
    10    {"type": "assert_return", "line": 237, "action": {"type": "invoke", "field": "type-first-f32", "args": []}, "expected": [{"type": "f32", "value": "1068037571"}]}, 
    11    {"type": "assert_return", "line": 238, "action": {"type": "invoke", "field": "type-first-f64", "args": []}, "expected": [{"type": "f64", "value": "4610064722561534525"}]}, 
    12    {"type": "assert_return", "line": 240, "action": {"type": "invoke", "field": "type-second-i32", "args": []}, "expected": [{"type": "i32", "value": "32"}]}, 
    13    {"type": "assert_return", "line": 241, "action": {"type": "invoke", "field": "type-second-i64", "args": []}, "expected": [{"type": "i64", "value": "64"}]}, 
    14    {"type": "assert_return", "line": 242, "action": {"type": "invoke", "field": "type-second-f32", "args": []}, "expected": [{"type": "f32", "value": "1107296256"}]}, 
    15    {"type": "assert_return", "line": 243, "action": {"type": "invoke", "field": "type-second-f64", "args": []}, "expected": [{"type": "f64", "value": "4634211053438658150"}]}, 
    16    {"type": "assert_return", "line": 245, "action": {"type": "invoke", "field": "fac", "args": [{"type": "i64", "value": "0"}]}, "expected": [{"type": "i64", "value": "1"}]}, 
    17    {"type": "assert_return", "line": 246, "action": {"type": "invoke", "field": "fac", "args": [{"type": "i64", "value": "1"}]}, "expected": [{"type": "i64", "value": "1"}]}, 
    18    {"type": "assert_return", "line": 247, "action": {"type": "invoke", "field": "fac", "args": [{"type": "i64", "value": "5"}]}, "expected": [{"type": "i64", "value": "120"}]}, 
    19    {"type": "assert_return", "line": 248, "action": {"type": "invoke", "field": "fac", "args": [{"type": "i64", "value": "25"}]}, "expected": [{"type": "i64", "value": "7034535277573963776"}]}, 
    20    {"type": "assert_return", "line": 249, "action": {"type": "invoke", "field": "fac-acc", "args": [{"type": "i64", "value": "0"}, {"type": "i64", "value": "1"}]}, "expected": [{"type": "i64", "value": "1"}]}, 
    21    {"type": "assert_return", "line": 250, "action": {"type": "invoke", "field": "fac-acc", "args": [{"type": "i64", "value": "1"}, {"type": "i64", "value": "1"}]}, "expected": [{"type": "i64", "value": "1"}]}, 
    22    {"type": "assert_return", "line": 251, "action": {"type": "invoke", "field": "fac-acc", "args": [{"type": "i64", "value": "5"}, {"type": "i64", "value": "1"}]}, "expected": [{"type": "i64", "value": "120"}]}, 
    23    {"type": "assert_return", "line": 253, "action": {"type": "invoke", "field": "fac-acc", "args": [{"type": "i64", "value": "25"}, {"type": "i64", "value": "1"}]}, "expected": [{"type": "i64", "value": "7034535277573963776"}]}, 
    24    {"type": "assert_return", "line": 257, "action": {"type": "invoke", "field": "fib", "args": [{"type": "i64", "value": "0"}]}, "expected": [{"type": "i64", "value": "1"}]}, 
    25    {"type": "assert_return", "line": 258, "action": {"type": "invoke", "field": "fib", "args": [{"type": "i64", "value": "1"}]}, "expected": [{"type": "i64", "value": "1"}]}, 
    26    {"type": "assert_return", "line": 259, "action": {"type": "invoke", "field": "fib", "args": [{"type": "i64", "value": "2"}]}, "expected": [{"type": "i64", "value": "2"}]}, 
    27    {"type": "assert_return", "line": 260, "action": {"type": "invoke", "field": "fib", "args": [{"type": "i64", "value": "5"}]}, "expected": [{"type": "i64", "value": "8"}]}, 
    28    {"type": "assert_return", "line": 261, "action": {"type": "invoke", "field": "fib", "args": [{"type": "i64", "value": "20"}]}, "expected": [{"type": "i64", "value": "10946"}]}, 
    29    {"type": "assert_return", "line": 263, "action": {"type": "invoke", "field": "even", "args": [{"type": "i64", "value": "0"}]}, "expected": [{"type": "i32", "value": "44"}]}, 
    30    {"type": "assert_return", "line": 264, "action": {"type": "invoke", "field": "even", "args": [{"type": "i64", "value": "1"}]}, "expected": [{"type": "i32", "value": "99"}]}, 
    31    {"type": "assert_return", "line": 265, "action": {"type": "invoke", "field": "even", "args": [{"type": "i64", "value": "100"}]}, "expected": [{"type": "i32", "value": "44"}]}, 
    32    {"type": "assert_return", "line": 266, "action": {"type": "invoke", "field": "even", "args": [{"type": "i64", "value": "77"}]}, "expected": [{"type": "i32", "value": "99"}]}, 
    33    {"type": "assert_return", "line": 267, "action": {"type": "invoke", "field": "odd", "args": [{"type": "i64", "value": "0"}]}, "expected": [{"type": "i32", "value": "99"}]}, 
    34    {"type": "assert_return", "line": 268, "action": {"type": "invoke", "field": "odd", "args": [{"type": "i64", "value": "1"}]}, "expected": [{"type": "i32", "value": "44"}]}, 
    35    {"type": "assert_return", "line": 269, "action": {"type": "invoke", "field": "odd", "args": [{"type": "i64", "value": "200"}]}, "expected": [{"type": "i32", "value": "99"}]}, 
    36    {"type": "assert_return", "line": 270, "action": {"type": "invoke", "field": "odd", "args": [{"type": "i64", "value": "77"}]}, "expected": [{"type": "i32", "value": "44"}]}, 
    37    {"type": "assert_exhaustion", "line": 272, "action": {"type": "invoke", "field": "runaway", "args": []}, "text": "call stack exhausted", "expected": []}, 
    38    {"type": "assert_exhaustion", "line": 273, "action": {"type": "invoke", "field": "mutual-runaway", "args": []}, "text": "call stack exhausted", "expected": []}, 
    39    {"type": "assert_return", "line": 275, "action": {"type": "invoke", "field": "as-select-first", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
    40    {"type": "assert_return", "line": 276, "action": {"type": "invoke", "field": "as-select-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    41    {"type": "assert_return", "line": 277, "action": {"type": "invoke", "field": "as-select-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    42    {"type": "assert_return", "line": 279, "action": {"type": "invoke", "field": "as-if-condition", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    43    {"type": "assert_return", "line": 281, "action": {"type": "invoke", "field": "as-br_if-first", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
    44    {"type": "assert_return", "line": 282, "action": {"type": "invoke", "field": "as-br_if-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    45    {"type": "assert_return", "line": 284, "action": {"type": "invoke", "field": "as-br_table-first", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
    46    {"type": "assert_return", "line": 285, "action": {"type": "invoke", "field": "as-br_table-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    47    {"type": "assert_return", "line": 287, "action": {"type": "invoke", "field": "as-call_indirect-first", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
    48    {"type": "assert_return", "line": 288, "action": {"type": "invoke", "field": "as-call_indirect-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 
    49    {"type": "assert_trap", "line": 289, "action": {"type": "invoke", "field": "as-call_indirect-last", "args": []}, "text": "undefined element", "expected": [{"type": "i32"}]}, 
    50    {"type": "assert_return", "line": 291, "action": {"type": "invoke", "field": "as-store-first", "args": []}, "expected": []}, 
    51    {"type": "assert_return", "line": 292, "action": {"type": "invoke", "field": "as-store-last", "args": []}, "expected": []}, 
    52    {"type": "assert_return", "line": 294, "action": {"type": "invoke", "field": "as-memory.grow-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    53    {"type": "assert_return", "line": 295, "action": {"type": "invoke", "field": "as-return-value", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
    54    {"type": "assert_return", "line": 296, "action": {"type": "invoke", "field": "as-drop-operand", "args": []}, "expected": []}, 
    55    {"type": "assert_return", "line": 297, "action": {"type": "invoke", "field": "as-br-value", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
    56    {"type": "assert_return", "line": 298, "action": {"type": "invoke", "field": "as-local.set-value", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
    57    {"type": "assert_return", "line": 299, "action": {"type": "invoke", "field": "as-local.tee-value", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
    58    {"type": "assert_return", "line": 300, "action": {"type": "invoke", "field": "as-global.set-value", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 
    59    {"type": "assert_return", "line": 301, "action": {"type": "invoke", "field": "as-load-operand", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    60    {"type": "assert_return", "line": 303, "action": {"type": "invoke", "field": "as-unary-operand", "args": []}, "expected": [{"type": "f32", "value": "0"}]}, 
    61    {"type": "assert_return", "line": 304, "action": {"type": "invoke", "field": "as-binary-left", "args": []}, "expected": [{"type": "i32", "value": "11"}]}, 
    62    {"type": "assert_return", "line": 305, "action": {"type": "invoke", "field": "as-binary-right", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 
    63    {"type": "assert_return", "line": 306, "action": {"type": "invoke", "field": "as-test-operand", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 
    64    {"type": "assert_return", "line": 307, "action": {"type": "invoke", "field": "as-compare-left", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    65    {"type": "assert_return", "line": 308, "action": {"type": "invoke", "field": "as-compare-right", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 
    66    {"type": "assert_return", "line": 309, "action": {"type": "invoke", "field": "as-convert-operand", "args": []}, "expected": [{"type": "i64", "value": "1"}]}, 
    67    {"type": "assert_invalid", "line": 314, "filename": "call.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    68    {"type": "assert_invalid", "line": 321, "filename": "call.2.wasm", "text": "type mismatch", "module_type": "binary"}, 
    69    {"type": "assert_invalid", "line": 329, "filename": "call.3.wasm", "text": "type mismatch", "module_type": "binary"}, 
    70    {"type": "assert_invalid", "line": 336, "filename": "call.4.wasm", "text": "type mismatch", "module_type": "binary"}, 
    71    {"type": "assert_invalid", "line": 343, "filename": "call.5.wasm", "text": "type mismatch", "module_type": "binary"}, 
    72    {"type": "assert_invalid", "line": 350, "filename": "call.6.wasm", "text": "type mismatch", "module_type": "binary"}, 
    73    {"type": "assert_invalid", "line": 358, "filename": "call.7.wasm", "text": "type mismatch", "module_type": "binary"}, 
    74    {"type": "assert_invalid", "line": 365, "filename": "call.8.wasm", "text": "type mismatch", "module_type": "binary"}, 
    75    {"type": "assert_invalid", "line": 372, "filename": "call.9.wasm", "text": "type mismatch", "module_type": "binary"}, 
    76    {"type": "assert_invalid", "line": 379, "filename": "call.10.wasm", "text": "type mismatch", "module_type": "binary"}, 
    77    {"type": "assert_invalid", "line": 387, "filename": "call.11.wasm", "text": "type mismatch", "module_type": "binary"}, 
    78    {"type": "assert_invalid", "line": 396, "filename": "call.12.wasm", "text": "type mismatch", "module_type": "binary"}, 
    79    {"type": "assert_invalid", "line": 405, "filename": "call.13.wasm", "text": "type mismatch", "module_type": "binary"}, 
    80    {"type": "assert_invalid", "line": 414, "filename": "call.14.wasm", "text": "type mismatch", "module_type": "binary"}, 
    81    {"type": "assert_invalid", "line": 423, "filename": "call.15.wasm", "text": "type mismatch", "module_type": "binary"}, 
    82    {"type": "assert_invalid", "line": 432, "filename": "call.16.wasm", "text": "type mismatch", "module_type": "binary"}, 
    83    {"type": "assert_invalid", "line": 445, "filename": "call.17.wasm", "text": "unknown function", "module_type": "binary"}, 
    84    {"type": "assert_invalid", "line": 449, "filename": "call.18.wasm", "text": "unknown function", "module_type": "binary"}]}