wa-lang.org/wazero@v1.0.2/internal/integration_test/spectest/v2/testdata/call_indirect.json (about) 1 {"source_filename": "./call_indirect.wast", 2 "commands": [ 3 {"type": "module", "line": 3, "filename": "call_indirect.0.wasm"}, 4 {"type": "assert_return", "line": 471, "action": {"type": "invoke", "field": "type-i32", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 5 {"type": "assert_return", "line": 472, "action": {"type": "invoke", "field": "type-i64", "args": []}, "expected": [{"type": "i64", "value": "356"}]}, 6 {"type": "assert_return", "line": 473, "action": {"type": "invoke", "field": "type-f32", "args": []}, "expected": [{"type": "f32", "value": "1165172736"}]}, 7 {"type": "assert_return", "line": 474, "action": {"type": "invoke", "field": "type-f64", "args": []}, "expected": [{"type": "f64", "value": "4660882566700597248"}]}, 8 {"type": "assert_return", "line": 475, "action": {"type": "invoke", "field": "type-f64-i32", "args": []}, "expected": [{"type": "f64", "value": "4660882566700597248"}, {"type": "i32", "value": "32"}]}, 9 {"type": "assert_return", "line": 477, "action": {"type": "invoke", "field": "type-index", "args": []}, "expected": [{"type": "i64", "value": "100"}]}, 10 {"type": "assert_return", "line": 479, "action": {"type": "invoke", "field": "type-first-i32", "args": []}, "expected": [{"type": "i32", "value": "32"}]}, 11 {"type": "assert_return", "line": 480, "action": {"type": "invoke", "field": "type-first-i64", "args": []}, "expected": [{"type": "i64", "value": "64"}]}, 12 {"type": "assert_return", "line": 481, "action": {"type": "invoke", "field": "type-first-f32", "args": []}, "expected": [{"type": "f32", "value": "1068037571"}]}, 13 {"type": "assert_return", "line": 482, "action": {"type": "invoke", "field": "type-first-f64", "args": []}, "expected": [{"type": "f64", "value": "4610064722561534525"}]}, 14 {"type": "assert_return", "line": 484, "action": {"type": "invoke", "field": "type-second-i32", "args": []}, "expected": [{"type": "i32", "value": "32"}]}, 15 {"type": "assert_return", "line": 485, "action": {"type": "invoke", "field": "type-second-i64", "args": []}, "expected": [{"type": "i64", "value": "64"}]}, 16 {"type": "assert_return", "line": 486, "action": {"type": "invoke", "field": "type-second-f32", "args": []}, "expected": [{"type": "f32", "value": "1107296256"}]}, 17 {"type": "assert_return", "line": 487, "action": {"type": "invoke", "field": "type-second-f64", "args": []}, "expected": [{"type": "f64", "value": "4634211053438658150"}]}, 18 {"type": "assert_return", "line": 489, "action": {"type": "invoke", "field": "type-all-f64-i32", "args": []}, "expected": [{"type": "f64", "value": "4660882566700597248"}, {"type": "i32", "value": "32"}]}, 19 {"type": "assert_return", "line": 490, "action": {"type": "invoke", "field": "type-all-i32-f64", "args": []}, "expected": [{"type": "i32", "value": "1"}, {"type": "f64", "value": "4611686018427387904"}]}, 20 {"type": "assert_return", "line": 491, "action": {"type": "invoke", "field": "type-all-i32-i64", "args": []}, "expected": [{"type": "i64", "value": "2"}, {"type": "i32", "value": "1"}]}, 21 {"type": "assert_return", "line": 493, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "5"}, {"type": "i64", "value": "2"}]}, "expected": [{"type": "i64", "value": "2"}]}, 22 {"type": "assert_return", "line": 494, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "5"}, {"type": "i64", "value": "5"}]}, "expected": [{"type": "i64", "value": "5"}]}, 23 {"type": "assert_return", "line": 495, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "12"}, {"type": "i64", "value": "5"}]}, "expected": [{"type": "i64", "value": "120"}]}, 24 {"type": "assert_return", "line": 496, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "13"}, {"type": "i64", "value": "5"}]}, "expected": [{"type": "i64", "value": "8"}]}, 25 {"type": "assert_return", "line": 497, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "20"}, {"type": "i64", "value": "2"}]}, "expected": [{"type": "i64", "value": "2"}]}, 26 {"type": "assert_trap", "line": 498, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "0"}, {"type": "i64", "value": "2"}]}, "text": "indirect call type mismatch", "expected": [{"type": "i64"}]}, 27 {"type": "assert_trap", "line": 499, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "15"}, {"type": "i64", "value": "2"}]}, "text": "indirect call type mismatch", "expected": [{"type": "i64"}]}, 28 {"type": "assert_trap", "line": 500, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "32"}, {"type": "i64", "value": "2"}]}, "text": "undefined element", "expected": [{"type": "i64"}]}, 29 {"type": "assert_trap", "line": 501, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "4294967295"}, {"type": "i64", "value": "2"}]}, "text": "undefined element", "expected": [{"type": "i64"}]}, 30 {"type": "assert_trap", "line": 502, "action": {"type": "invoke", "field": "dispatch", "args": [{"type": "i32", "value": "1213432423"}, {"type": "i64", "value": "2"}]}, "text": "undefined element", "expected": [{"type": "i64"}]}, 31 {"type": "assert_return", "line": 504, "action": {"type": "invoke", "field": "dispatch-structural-i64", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i64", "value": "9"}]}, 32 {"type": "assert_return", "line": 505, "action": {"type": "invoke", "field": "dispatch-structural-i64", "args": [{"type": "i32", "value": "12"}]}, "expected": [{"type": "i64", "value": "362880"}]}, 33 {"type": "assert_return", "line": 506, "action": {"type": "invoke", "field": "dispatch-structural-i64", "args": [{"type": "i32", "value": "13"}]}, "expected": [{"type": "i64", "value": "55"}]}, 34 {"type": "assert_return", "line": 507, "action": {"type": "invoke", "field": "dispatch-structural-i64", "args": [{"type": "i32", "value": "20"}]}, "expected": [{"type": "i64", "value": "9"}]}, 35 {"type": "assert_trap", "line": 508, "action": {"type": "invoke", "field": "dispatch-structural-i64", "args": [{"type": "i32", "value": "11"}]}, "text": "indirect call type mismatch", "expected": [{"type": "i64"}]}, 36 {"type": "assert_trap", "line": 509, "action": {"type": "invoke", "field": "dispatch-structural-i64", "args": [{"type": "i32", "value": "22"}]}, "text": "indirect call type mismatch", "expected": [{"type": "i64"}]}, 37 {"type": "assert_return", "line": 511, "action": {"type": "invoke", "field": "dispatch-structural-i32", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "i32", "value": "9"}]}, 38 {"type": "assert_return", "line": 512, "action": {"type": "invoke", "field": "dispatch-structural-i32", "args": [{"type": "i32", "value": "23"}]}, "expected": [{"type": "i32", "value": "362880"}]}, 39 {"type": "assert_return", "line": 513, "action": {"type": "invoke", "field": "dispatch-structural-i32", "args": [{"type": "i32", "value": "26"}]}, "expected": [{"type": "i32", "value": "55"}]}, 40 {"type": "assert_return", "line": 514, "action": {"type": "invoke", "field": "dispatch-structural-i32", "args": [{"type": "i32", "value": "19"}]}, "expected": [{"type": "i32", "value": "9"}]}, 41 {"type": "assert_trap", "line": 515, "action": {"type": "invoke", "field": "dispatch-structural-i32", "args": [{"type": "i32", "value": "9"}]}, "text": "indirect call type mismatch", "expected": [{"type": "i32"}]}, 42 {"type": "assert_trap", "line": 516, "action": {"type": "invoke", "field": "dispatch-structural-i32", "args": [{"type": "i32", "value": "21"}]}, "text": "indirect call type mismatch", "expected": [{"type": "i32"}]}, 43 {"type": "assert_return", "line": 518, "action": {"type": "invoke", "field": "dispatch-structural-f32", "args": [{"type": "i32", "value": "6"}]}, "expected": [{"type": "f32", "value": "1091567616"}]}, 44 {"type": "assert_return", "line": 519, "action": {"type": "invoke", "field": "dispatch-structural-f32", "args": [{"type": "i32", "value": "24"}]}, "expected": [{"type": "f32", "value": "1219571712"}]}, 45 {"type": "assert_return", "line": 520, "action": {"type": "invoke", "field": "dispatch-structural-f32", "args": [{"type": "i32", "value": "27"}]}, "expected": [{"type": "f32", "value": "1113325568"}]}, 46 {"type": "assert_return", "line": 521, "action": {"type": "invoke", "field": "dispatch-structural-f32", "args": [{"type": "i32", "value": "21"}]}, "expected": [{"type": "f32", "value": "1091567616"}]}, 47 {"type": "assert_trap", "line": 522, "action": {"type": "invoke", "field": "dispatch-structural-f32", "args": [{"type": "i32", "value": "8"}]}, "text": "indirect call type mismatch", "expected": [{"type": "f32"}]}, 48 {"type": "assert_trap", "line": 523, "action": {"type": "invoke", "field": "dispatch-structural-f32", "args": [{"type": "i32", "value": "19"}]}, "text": "indirect call type mismatch", "expected": [{"type": "f32"}]}, 49 {"type": "assert_return", "line": 525, "action": {"type": "invoke", "field": "dispatch-structural-f64", "args": [{"type": "i32", "value": "7"}]}, "expected": [{"type": "f64", "value": "4621256167635550208"}]}, 50 {"type": "assert_return", "line": 526, "action": {"type": "invoke", "field": "dispatch-structural-f64", "args": [{"type": "i32", "value": "25"}]}, "expected": [{"type": "f64", "value": "4689977843394805760"}]}, 51 {"type": "assert_return", "line": 527, "action": {"type": "invoke", "field": "dispatch-structural-f64", "args": [{"type": "i32", "value": "28"}]}, "expected": [{"type": "f64", "value": "4632937379169042432"}]}, 52 {"type": "assert_return", "line": 528, "action": {"type": "invoke", "field": "dispatch-structural-f64", "args": [{"type": "i32", "value": "22"}]}, "expected": [{"type": "f64", "value": "4621256167635550208"}]}, 53 {"type": "assert_trap", "line": 529, "action": {"type": "invoke", "field": "dispatch-structural-f64", "args": [{"type": "i32", "value": "10"}]}, "text": "indirect call type mismatch", "expected": [{"type": "f64"}]}, 54 {"type": "assert_trap", "line": 530, "action": {"type": "invoke", "field": "dispatch-structural-f64", "args": [{"type": "i32", "value": "18"}]}, "text": "indirect call type mismatch", "expected": [{"type": "f64"}]}, 55 {"type": "assert_return", "line": 532, "action": {"type": "invoke", "field": "fac-i64", "args": [{"type": "i64", "value": "0"}]}, "expected": [{"type": "i64", "value": "1"}]}, 56 {"type": "assert_return", "line": 533, "action": {"type": "invoke", "field": "fac-i64", "args": [{"type": "i64", "value": "1"}]}, "expected": [{"type": "i64", "value": "1"}]}, 57 {"type": "assert_return", "line": 534, "action": {"type": "invoke", "field": "fac-i64", "args": [{"type": "i64", "value": "5"}]}, "expected": [{"type": "i64", "value": "120"}]}, 58 {"type": "assert_return", "line": 535, "action": {"type": "invoke", "field": "fac-i64", "args": [{"type": "i64", "value": "25"}]}, "expected": [{"type": "i64", "value": "7034535277573963776"}]}, 59 {"type": "assert_return", "line": 537, "action": {"type": "invoke", "field": "fac-i32", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 60 {"type": "assert_return", "line": 538, "action": {"type": "invoke", "field": "fac-i32", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "1"}]}, 61 {"type": "assert_return", "line": 539, "action": {"type": "invoke", "field": "fac-i32", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "120"}]}, 62 {"type": "assert_return", "line": 540, "action": {"type": "invoke", "field": "fac-i32", "args": [{"type": "i32", "value": "10"}]}, "expected": [{"type": "i32", "value": "3628800"}]}, 63 {"type": "assert_return", "line": 542, "action": {"type": "invoke", "field": "fac-f32", "args": [{"type": "f32", "value": "0"}]}, "expected": [{"type": "f32", "value": "1065353216"}]}, 64 {"type": "assert_return", "line": 543, "action": {"type": "invoke", "field": "fac-f32", "args": [{"type": "f32", "value": "1065353216"}]}, "expected": [{"type": "f32", "value": "1065353216"}]}, 65 {"type": "assert_return", "line": 544, "action": {"type": "invoke", "field": "fac-f32", "args": [{"type": "f32", "value": "1084227584"}]}, "expected": [{"type": "f32", "value": "1123024896"}]}, 66 {"type": "assert_return", "line": 545, "action": {"type": "invoke", "field": "fac-f32", "args": [{"type": "f32", "value": "1092616192"}]}, "expected": [{"type": "f32", "value": "1247640576"}]}, 67 {"type": "assert_return", "line": 547, "action": {"type": "invoke", "field": "fac-f64", "args": [{"type": "f64", "value": "0"}]}, "expected": [{"type": "f64", "value": "4607182418800017408"}]}, 68 {"type": "assert_return", "line": 548, "action": {"type": "invoke", "field": "fac-f64", "args": [{"type": "f64", "value": "4607182418800017408"}]}, "expected": [{"type": "f64", "value": "4607182418800017408"}]}, 69 {"type": "assert_return", "line": 549, "action": {"type": "invoke", "field": "fac-f64", "args": [{"type": "f64", "value": "4617315517961601024"}]}, "expected": [{"type": "f64", "value": "4638144666238189568"}]}, 70 {"type": "assert_return", "line": 550, "action": {"type": "invoke", "field": "fac-f64", "args": [{"type": "f64", "value": "4621819117588971520"}]}, "expected": [{"type": "f64", "value": "4705047200009289728"}]}, 71 {"type": "assert_return", "line": 552, "action": {"type": "invoke", "field": "fib-i64", "args": [{"type": "i64", "value": "0"}]}, "expected": [{"type": "i64", "value": "1"}]}, 72 {"type": "assert_return", "line": 553, "action": {"type": "invoke", "field": "fib-i64", "args": [{"type": "i64", "value": "1"}]}, "expected": [{"type": "i64", "value": "1"}]}, 73 {"type": "assert_return", "line": 554, "action": {"type": "invoke", "field": "fib-i64", "args": [{"type": "i64", "value": "2"}]}, "expected": [{"type": "i64", "value": "2"}]}, 74 {"type": "assert_return", "line": 555, "action": {"type": "invoke", "field": "fib-i64", "args": [{"type": "i64", "value": "5"}]}, "expected": [{"type": "i64", "value": "8"}]}, 75 {"type": "assert_return", "line": 556, "action": {"type": "invoke", "field": "fib-i64", "args": [{"type": "i64", "value": "20"}]}, "expected": [{"type": "i64", "value": "10946"}]}, 76 {"type": "assert_return", "line": 558, "action": {"type": "invoke", "field": "fib-i32", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "1"}]}, 77 {"type": "assert_return", "line": 559, "action": {"type": "invoke", "field": "fib-i32", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "1"}]}, 78 {"type": "assert_return", "line": 560, "action": {"type": "invoke", "field": "fib-i32", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "2"}]}, 79 {"type": "assert_return", "line": 561, "action": {"type": "invoke", "field": "fib-i32", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "i32", "value": "8"}]}, 80 {"type": "assert_return", "line": 562, "action": {"type": "invoke", "field": "fib-i32", "args": [{"type": "i32", "value": "20"}]}, "expected": [{"type": "i32", "value": "10946"}]}, 81 {"type": "assert_return", "line": 564, "action": {"type": "invoke", "field": "fib-f32", "args": [{"type": "f32", "value": "0"}]}, "expected": [{"type": "f32", "value": "1065353216"}]}, 82 {"type": "assert_return", "line": 565, "action": {"type": "invoke", "field": "fib-f32", "args": [{"type": "f32", "value": "1065353216"}]}, "expected": [{"type": "f32", "value": "1065353216"}]}, 83 {"type": "assert_return", "line": 566, "action": {"type": "invoke", "field": "fib-f32", "args": [{"type": "f32", "value": "1073741824"}]}, "expected": [{"type": "f32", "value": "1073741824"}]}, 84 {"type": "assert_return", "line": 567, "action": {"type": "invoke", "field": "fib-f32", "args": [{"type": "f32", "value": "1084227584"}]}, "expected": [{"type": "f32", "value": "1090519040"}]}, 85 {"type": "assert_return", "line": 568, "action": {"type": "invoke", "field": "fib-f32", "args": [{"type": "f32", "value": "1101004800"}]}, "expected": [{"type": "f32", "value": "1177225216"}]}, 86 {"type": "assert_return", "line": 570, "action": {"type": "invoke", "field": "fib-f64", "args": [{"type": "f64", "value": "0"}]}, "expected": [{"type": "f64", "value": "4607182418800017408"}]}, 87 {"type": "assert_return", "line": 571, "action": {"type": "invoke", "field": "fib-f64", "args": [{"type": "f64", "value": "4607182418800017408"}]}, "expected": [{"type": "f64", "value": "4607182418800017408"}]}, 88 {"type": "assert_return", "line": 572, "action": {"type": "invoke", "field": "fib-f64", "args": [{"type": "f64", "value": "4611686018427387904"}]}, "expected": [{"type": "f64", "value": "4611686018427387904"}]}, 89 {"type": "assert_return", "line": 573, "action": {"type": "invoke", "field": "fib-f64", "args": [{"type": "f64", "value": "4617315517961601024"}]}, "expected": [{"type": "f64", "value": "4620693217682128896"}]}, 90 {"type": "assert_return", "line": 574, "action": {"type": "invoke", "field": "fib-f64", "args": [{"type": "f64", "value": "4626322717216342016"}]}, "expected": [{"type": "f64", "value": "4667243241467281408"}]}, 91 {"type": "assert_return", "line": 576, "action": {"type": "invoke", "field": "even", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "44"}]}, 92 {"type": "assert_return", "line": 577, "action": {"type": "invoke", "field": "even", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "99"}]}, 93 {"type": "assert_return", "line": 578, "action": {"type": "invoke", "field": "even", "args": [{"type": "i32", "value": "100"}]}, "expected": [{"type": "i32", "value": "44"}]}, 94 {"type": "assert_return", "line": 579, "action": {"type": "invoke", "field": "even", "args": [{"type": "i32", "value": "77"}]}, "expected": [{"type": "i32", "value": "99"}]}, 95 {"type": "assert_return", "line": 580, "action": {"type": "invoke", "field": "odd", "args": [{"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "99"}]}, 96 {"type": "assert_return", "line": 581, "action": {"type": "invoke", "field": "odd", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "44"}]}, 97 {"type": "assert_return", "line": 582, "action": {"type": "invoke", "field": "odd", "args": [{"type": "i32", "value": "200"}]}, "expected": [{"type": "i32", "value": "99"}]}, 98 {"type": "assert_return", "line": 583, "action": {"type": "invoke", "field": "odd", "args": [{"type": "i32", "value": "77"}]}, "expected": [{"type": "i32", "value": "44"}]}, 99 {"type": "assert_exhaustion", "line": 585, "action": {"type": "invoke", "field": "runaway", "args": []}, "text": "call stack exhausted", "expected": []}, 100 {"type": "assert_exhaustion", "line": 586, "action": {"type": "invoke", "field": "mutual-runaway", "args": []}, "text": "call stack exhausted", "expected": []}, 101 {"type": "assert_return", "line": 588, "action": {"type": "invoke", "field": "as-select-first", "args": []}, "expected": [{"type": "i32", "value": "306"}]}, 102 {"type": "assert_return", "line": 589, "action": {"type": "invoke", "field": "as-select-mid", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 103 {"type": "assert_return", "line": 590, "action": {"type": "invoke", "field": "as-select-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 104 {"type": "assert_return", "line": 592, "action": {"type": "invoke", "field": "as-if-condition", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 105 {"type": "assert_return", "line": 594, "action": {"type": "invoke", "field": "as-br_if-first", "args": []}, "expected": [{"type": "i64", "value": "356"}]}, 106 {"type": "assert_return", "line": 595, "action": {"type": "invoke", "field": "as-br_if-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 107 {"type": "assert_return", "line": 597, "action": {"type": "invoke", "field": "as-br_table-first", "args": []}, "expected": [{"type": "f32", "value": "1165172736"}]}, 108 {"type": "assert_return", "line": 598, "action": {"type": "invoke", "field": "as-br_table-last", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 109 {"type": "assert_return", "line": 600, "action": {"type": "invoke", "field": "as-store-first", "args": []}, "expected": []}, 110 {"type": "assert_return", "line": 601, "action": {"type": "invoke", "field": "as-store-last", "args": []}, "expected": []}, 111 {"type": "assert_return", "line": 603, "action": {"type": "invoke", "field": "as-memory.grow-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 112 {"type": "assert_return", "line": 604, "action": {"type": "invoke", "field": "as-return-value", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 113 {"type": "assert_return", "line": 605, "action": {"type": "invoke", "field": "as-drop-operand", "args": []}, "expected": []}, 114 {"type": "assert_return", "line": 606, "action": {"type": "invoke", "field": "as-br-value", "args": []}, "expected": [{"type": "f32", "value": "1065353216"}]}, 115 {"type": "assert_return", "line": 607, "action": {"type": "invoke", "field": "as-local.set-value", "args": []}, "expected": [{"type": "f64", "value": "4607182418800017408"}]}, 116 {"type": "assert_return", "line": 608, "action": {"type": "invoke", "field": "as-local.tee-value", "args": []}, "expected": [{"type": "f64", "value": "4607182418800017408"}]}, 117 {"type": "assert_return", "line": 609, "action": {"type": "invoke", "field": "as-global.set-value", "args": []}, "expected": [{"type": "f64", "value": "4607182418800017408"}]}, 118 {"type": "assert_return", "line": 610, "action": {"type": "invoke", "field": "as-load-operand", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 119 {"type": "assert_return", "line": 612, "action": {"type": "invoke", "field": "as-unary-operand", "args": []}, "expected": [{"type": "f32", "value": "0"}]}, 120 {"type": "assert_return", "line": 613, "action": {"type": "invoke", "field": "as-binary-left", "args": []}, "expected": [{"type": "i32", "value": "11"}]}, 121 {"type": "assert_return", "line": 614, "action": {"type": "invoke", "field": "as-binary-right", "args": []}, "expected": [{"type": "i32", "value": "9"}]}, 122 {"type": "assert_return", "line": 615, "action": {"type": "invoke", "field": "as-test-operand", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 123 {"type": "assert_return", "line": 616, "action": {"type": "invoke", "field": "as-compare-left", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 124 {"type": "assert_return", "line": 617, "action": {"type": "invoke", "field": "as-compare-right", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 125 {"type": "assert_return", "line": 618, "action": {"type": "invoke", "field": "as-convert-operand", "args": []}, "expected": [{"type": "i64", "value": "1"}]}, 126 {"type": "module", "line": 623, "filename": "call_indirect.1.wasm"}, 127 {"type": "assert_return", "line": 650, "action": {"type": "invoke", "field": "call-1", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "5"}]}, 128 {"type": "assert_return", "line": 651, "action": {"type": "invoke", "field": "call-1", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 129 {"type": "assert_trap", "line": 652, "action": {"type": "invoke", "field": "call-1", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "2"}]}, "text": "undefined element", "expected": [{"type": "i32"}]}, 130 {"type": "assert_return", "line": 654, "action": {"type": "invoke", "field": "call-2", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "6"}]}, 131 {"type": "assert_return", "line": 655, "action": {"type": "invoke", "field": "call-2", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "0"}]}, 132 {"type": "assert_return", "line": 656, "action": {"type": "invoke", "field": "call-2", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "2"}]}, "expected": [{"type": "i32", "value": "2"}]}, 133 {"type": "assert_trap", "line": 657, "action": {"type": "invoke", "field": "call-2", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "3"}]}, "text": "undefined element", "expected": [{"type": "i32"}]}, 134 {"type": "assert_return", "line": 659, "action": {"type": "invoke", "field": "call-3", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "0"}]}, "expected": [{"type": "i32", "value": "4294967295"}]}, 135 {"type": "assert_return", "line": 660, "action": {"type": "invoke", "field": "call-3", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "1"}]}, "expected": [{"type": "i32", "value": "6"}]}, 136 {"type": "assert_trap", "line": 661, "action": {"type": "invoke", "field": "call-3", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "2"}]}, "text": "uninitialized element", "expected": [{"type": "i32"}]}, 137 {"type": "assert_trap", "line": 662, "action": {"type": "invoke", "field": "call-3", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "3"}]}, "text": "indirect call type mismatch", "expected": [{"type": "i32"}]}, 138 {"type": "assert_trap", "line": 663, "action": {"type": "invoke", "field": "call-3", "args": [{"type": "i32", "value": "2"}, {"type": "i32", "value": "3"}, {"type": "i32", "value": "4"}]}, "text": "undefined element", "expected": [{"type": "i32"}]}, 139 {"type": "assert_malformed", "line": 669, "filename": "call_indirect.2.wat", "text": "unexpected token", "module_type": "text"}, 140 {"type": "assert_malformed", "line": 681, "filename": "call_indirect.3.wat", "text": "unexpected token", "module_type": "text"}, 141 {"type": "assert_malformed", "line": 693, "filename": "call_indirect.4.wat", "text": "unexpected token", "module_type": "text"}, 142 {"type": "assert_malformed", "line": 705, "filename": "call_indirect.5.wat", "text": "unexpected token", "module_type": "text"}, 143 {"type": "assert_malformed", "line": 717, "filename": "call_indirect.6.wat", "text": "unexpected token", "module_type": "text"}, 144 {"type": "assert_malformed", "line": 729, "filename": "call_indirect.7.wat", "text": "unexpected token", "module_type": "text"}, 145 {"type": "assert_malformed", "line": 739, "filename": "call_indirect.8.wat", "text": "unexpected token", "module_type": "text"}, 146 {"type": "assert_malformed", "line": 746, "filename": "call_indirect.9.wat", "text": "inline function type", "module_type": "text"}, 147 {"type": "assert_malformed", "line": 756, "filename": "call_indirect.10.wat", "text": "inline function type", "module_type": "text"}, 148 {"type": "assert_malformed", "line": 766, "filename": "call_indirect.11.wat", "text": "inline function type", "module_type": "text"}, 149 {"type": "assert_malformed", "line": 776, "filename": "call_indirect.12.wat", "text": "inline function type", "module_type": "text"}, 150 {"type": "assert_invalid", "line": 791, "filename": "call_indirect.13.wasm", "text": "unknown table", "module_type": "binary"}, 151 {"type": "assert_invalid", "line": 799, "filename": "call_indirect.14.wasm", "text": "type mismatch", "module_type": "binary"}, 152 {"type": "assert_invalid", "line": 807, "filename": "call_indirect.15.wasm", "text": "type mismatch", "module_type": "binary"}, 153 {"type": "assert_invalid", "line": 816, "filename": "call_indirect.16.wasm", "text": "type mismatch", "module_type": "binary"}, 154 {"type": "assert_invalid", "line": 824, "filename": "call_indirect.17.wasm", "text": "type mismatch", "module_type": "binary"}, 155 {"type": "assert_invalid", "line": 832, "filename": "call_indirect.18.wasm", "text": "type mismatch", "module_type": "binary"}, 156 {"type": "assert_invalid", "line": 840, "filename": "call_indirect.19.wasm", "text": "type mismatch", "module_type": "binary"}, 157 {"type": "assert_invalid", "line": 851, "filename": "call_indirect.20.wasm", "text": "type mismatch", "module_type": "binary"}, 158 {"type": "assert_invalid", "line": 859, "filename": "call_indirect.21.wasm", "text": "type mismatch", "module_type": "binary"}, 159 {"type": "assert_invalid", "line": 868, "filename": "call_indirect.22.wasm", "text": "type mismatch", "module_type": "binary"}, 160 {"type": "assert_invalid", "line": 878, "filename": "call_indirect.23.wasm", "text": "type mismatch", "module_type": "binary"}, 161 {"type": "assert_invalid", "line": 888, "filename": "call_indirect.24.wasm", "text": "type mismatch", "module_type": "binary"}, 162 {"type": "assert_invalid", "line": 898, "filename": "call_indirect.25.wasm", "text": "type mismatch", "module_type": "binary"}, 163 {"type": "assert_invalid", "line": 909, "filename": "call_indirect.26.wasm", "text": "type mismatch", "module_type": "binary"}, 164 {"type": "assert_invalid", "line": 922, "filename": "call_indirect.27.wasm", "text": "type mismatch", "module_type": "binary"}, 165 {"type": "assert_invalid", "line": 935, "filename": "call_indirect.28.wasm", "text": "type mismatch", "module_type": "binary"}, 166 {"type": "assert_invalid", "line": 948, "filename": "call_indirect.29.wasm", "text": "type mismatch", "module_type": "binary"}, 167 {"type": "assert_invalid", "line": 961, "filename": "call_indirect.30.wasm", "text": "type mismatch", "module_type": "binary"}, 168 {"type": "assert_invalid", "line": 977, "filename": "call_indirect.31.wasm", "text": "type mismatch", "module_type": "binary"}, 169 {"type": "assert_invalid", "line": 997, "filename": "call_indirect.32.wasm", "text": "unknown type", "module_type": "binary"}, 170 {"type": "assert_invalid", "line": 1004, "filename": "call_indirect.33.wasm", "text": "unknown type", "module_type": "binary"}, 171 {"type": "assert_invalid", "line": 1015, "filename": "call_indirect.34.wasm", "text": "unknown function", "module_type": "binary"}]}