{ "source_filename": "tests/testsuite/proposals/wasm-3.0/call_indirect.wast", "commands": [ { "type": "module", "line": 3, "filename": "call_indirect.0.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 479, "action": { "type": "invoke", "field": "type-i32", "args": [] }, "expected": [ { "type": "i32", "value": "306" } ] }, { "type": "assert_return", "line": 480, "action": { "type": "invoke", "field": "type-i64", "args": [] }, "expected": [ { "type": "i64", "value": "356" } ] }, { "type": "assert_return", "line": 481, "action": { "type": "invoke", "field": "type-f32", "args": [] }, "expected": [ { "type": "f32", "value": "1165172736" } ] }, { "type": "assert_return", "line": 482, "action": { "type": "invoke", "field": "type-f64", "args": [] }, "expected": [ { "type": "f64", "value": "4660882566700597248" } ] }, { "type": "assert_return", "line": 483, "action": { "type": "invoke", "field": "type-f64-i32", "args": [] }, "expected": [ { "type": "f64", "value": "4660882566700597248" }, { "type": "i32", "value": "32" } ] }, { "type": "assert_return", "line": 485, "action": { "type": "invoke", "field": "type-i32-t64", "args": [] }, "expected": [ { "type": "i32", "value": "306" } ] }, { "type": "assert_return", "line": 487, "action": { "type": "invoke", "field": "type-index", "args": [] }, "expected": [ { "type": "i64", "value": "100" } ] }, { "type": "assert_return", "line": 489, "action": { "type": "invoke", "field": "type-first-i32", "args": [] }, "expected": [ { "type": "i32", "value": "32" } ] }, { "type": "assert_return", "line": 490, "action": { "type": "invoke", "field": "type-first-i64", "args": [] }, "expected": [ { "type": "i64", "value": "64" } ] }, { "type": "assert_return", "line": 491, "action": { "type": "invoke", "field": "type-first-f32", "args": [] }, "expected": [ { "type": "f32", "value": "1068037571" } ] }, { "type": "assert_return", "line": 492, "action": { "type": "invoke", "field": "type-first-f64", "args": [] }, "expected": [ { "type": "f64", "value": "4610064722561534525" } ] }, { "type": "assert_return", "line": 494, "action": { "type": "invoke", "field": "type-second-i32", "args": [] }, "expected": [ { "type": "i32", "value": "32" } ] }, { "type": "assert_return", "line": 495, "action": { "type": "invoke", "field": "type-second-i64", "args": [] }, "expected": [ { "type": "i64", "value": "64" } ] }, { "type": "assert_return", "line": 496, "action": { "type": "invoke", "field": "type-second-f32", "args": [] }, "expected": [ { "type": "f32", "value": "1107296256" } ] }, { "type": "assert_return", "line": 497, "action": { "type": "invoke", "field": "type-second-f64", "args": [] }, "expected": [ { "type": "f64", "value": "4634211053438658150" } ] }, { "type": "assert_return", "line": 499, "action": { "type": "invoke", "field": "type-all-f64-i32", "args": [] }, "expected": [ { "type": "f64", "value": "4660882566700597248" }, { "type": "i32", "value": "32" } ] }, { "type": "assert_return", "line": 500, "action": { "type": "invoke", "field": "type-all-i32-f64", "args": [] }, "expected": [ { "type": "i32", "value": "1" }, { "type": "f64", "value": "4611686018427387904" } ] }, { "type": "assert_return", "line": 501, "action": { "type": "invoke", "field": "type-all-i32-i64", "args": [] }, "expected": [ { "type": "i64", "value": "2" }, { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 503, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "5" }, { "type": "i64", "value": "2" } ] }, "expected": [ { "type": "i64", "value": "2" } ] }, { "type": "assert_return", "line": 504, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "5" }, { "type": "i64", "value": "5" } ] }, "expected": [ { "type": "i64", "value": "5" } ] }, { "type": "assert_return", "line": 505, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "12" }, { "type": "i64", "value": "5" } ] }, "expected": [ { "type": "i64", "value": "120" } ] }, { "type": "assert_return", "line": 506, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "13" }, { "type": "i64", "value": "5" } ] }, "expected": [ { "type": "i64", "value": "8" } ] }, { "type": "assert_return", "line": 507, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "20" }, { "type": "i64", "value": "2" } ] }, "expected": [ { "type": "i64", "value": "2" } ] }, { "type": "assert_trap", "line": 508, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "0" }, { "type": "i64", "value": "2" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_trap", "line": 509, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "15" }, { "type": "i64", "value": "2" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_trap", "line": 510, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "32" }, { "type": "i64", "value": "2" } ] }, "text": "undefined element" }, { "type": "assert_trap", "line": 511, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "-1" }, { "type": "i64", "value": "2" } ] }, "text": "undefined element" }, { "type": "assert_trap", "line": 512, "action": { "type": "invoke", "field": "dispatch", "args": [ { "type": "i32", "value": "1213432423" }, { "type": "i64", "value": "2" } ] }, "text": "undefined element" }, { "type": "assert_return", "line": 514, "action": { "type": "invoke", "field": "dispatch-structural-i64", "args": [ { "type": "i32", "value": "5" } ] }, "expected": [ { "type": "i64", "value": "9" } ] }, { "type": "assert_return", "line": 515, "action": { "type": "invoke", "field": "dispatch-structural-i64", "args": [ { "type": "i32", "value": "12" } ] }, "expected": [ { "type": "i64", "value": "362880" } ] }, { "type": "assert_return", "line": 516, "action": { "type": "invoke", "field": "dispatch-structural-i64", "args": [ { "type": "i32", "value": "13" } ] }, "expected": [ { "type": "i64", "value": "55" } ] }, { "type": "assert_return", "line": 517, "action": { "type": "invoke", "field": "dispatch-structural-i64", "args": [ { "type": "i32", "value": "20" } ] }, "expected": [ { "type": "i64", "value": "9" } ] }, { "type": "assert_trap", "line": 518, "action": { "type": "invoke", "field": "dispatch-structural-i64", "args": [ { "type": "i32", "value": "11" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_trap", "line": 519, "action": { "type": "invoke", "field": "dispatch-structural-i64", "args": [ { "type": "i32", "value": "22" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_return", "line": 521, "action": { "type": "invoke", "field": "dispatch-structural-i32", "args": [ { "type": "i32", "value": "4" } ] }, "expected": [ { "type": "i32", "value": "9" } ] }, { "type": "assert_return", "line": 522, "action": { "type": "invoke", "field": "dispatch-structural-i32", "args": [ { "type": "i32", "value": "23" } ] }, "expected": [ { "type": "i32", "value": "362880" } ] }, { "type": "assert_return", "line": 523, "action": { "type": "invoke", "field": "dispatch-structural-i32", "args": [ { "type": "i32", "value": "26" } ] }, "expected": [ { "type": "i32", "value": "55" } ] }, { "type": "assert_return", "line": 524, "action": { "type": "invoke", "field": "dispatch-structural-i32", "args": [ { "type": "i32", "value": "19" } ] }, "expected": [ { "type": "i32", "value": "9" } ] }, { "type": "assert_trap", "line": 525, "action": { "type": "invoke", "field": "dispatch-structural-i32", "args": [ { "type": "i32", "value": "9" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_trap", "line": 526, "action": { "type": "invoke", "field": "dispatch-structural-i32", "args": [ { "type": "i32", "value": "21" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_return", "line": 528, "action": { "type": "invoke", "field": "dispatch-structural-f32", "args": [ { "type": "i32", "value": "6" } ] }, "expected": [ { "type": "f32", "value": "1091567616" } ] }, { "type": "assert_return", "line": 529, "action": { "type": "invoke", "field": "dispatch-structural-f32", "args": [ { "type": "i32", "value": "24" } ] }, "expected": [ { "type": "f32", "value": "1219571712" } ] }, { "type": "assert_return", "line": 530, "action": { "type": "invoke", "field": "dispatch-structural-f32", "args": [ { "type": "i32", "value": "27" } ] }, "expected": [ { "type": "f32", "value": "1113325568" } ] }, { "type": "assert_return", "line": 531, "action": { "type": "invoke", "field": "dispatch-structural-f32", "args": [ { "type": "i32", "value": "21" } ] }, "expected": [ { "type": "f32", "value": "1091567616" } ] }, { "type": "assert_trap", "line": 532, "action": { "type": "invoke", "field": "dispatch-structural-f32", "args": [ { "type": "i32", "value": "8" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_trap", "line": 533, "action": { "type": "invoke", "field": "dispatch-structural-f32", "args": [ { "type": "i32", "value": "19" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_return", "line": 535, "action": { "type": "invoke", "field": "dispatch-structural-f64", "args": [ { "type": "i32", "value": "7" } ] }, "expected": [ { "type": "f64", "value": "4621256167635550208" } ] }, { "type": "assert_return", "line": 536, "action": { "type": "invoke", "field": "dispatch-structural-f64", "args": [ { "type": "i32", "value": "25" } ] }, "expected": [ { "type": "f64", "value": "4689977843394805760" } ] }, { "type": "assert_return", "line": 537, "action": { "type": "invoke", "field": "dispatch-structural-f64", "args": [ { "type": "i32", "value": "28" } ] }, "expected": [ { "type": "f64", "value": "4632937379169042432" } ] }, { "type": "assert_return", "line": 538, "action": { "type": "invoke", "field": "dispatch-structural-f64", "args": [ { "type": "i32", "value": "22" } ] }, "expected": [ { "type": "f64", "value": "4621256167635550208" } ] }, { "type": "assert_trap", "line": 539, "action": { "type": "invoke", "field": "dispatch-structural-f64", "args": [ { "type": "i32", "value": "10" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_trap", "line": 540, "action": { "type": "invoke", "field": "dispatch-structural-f64", "args": [ { "type": "i32", "value": "18" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_return", "line": 542, "action": { "type": "invoke", "field": "fac-i64", "args": [ { "type": "i64", "value": "0" } ] }, "expected": [ { "type": "i64", "value": "1" } ] }, { "type": "assert_return", "line": 543, "action": { "type": "invoke", "field": "fac-i64", "args": [ { "type": "i64", "value": "1" } ] }, "expected": [ { "type": "i64", "value": "1" } ] }, { "type": "assert_return", "line": 544, "action": { "type": "invoke", "field": "fac-i64", "args": [ { "type": "i64", "value": "5" } ] }, "expected": [ { "type": "i64", "value": "120" } ] }, { "type": "assert_return", "line": 545, "action": { "type": "invoke", "field": "fac-i64", "args": [ { "type": "i64", "value": "25" } ] }, "expected": [ { "type": "i64", "value": "7034535277573963776" } ] }, { "type": "assert_return", "line": 547, "action": { "type": "invoke", "field": "fac-i32", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 548, "action": { "type": "invoke", "field": "fac-i32", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 549, "action": { "type": "invoke", "field": "fac-i32", "args": [ { "type": "i32", "value": "5" } ] }, "expected": [ { "type": "i32", "value": "120" } ] }, { "type": "assert_return", "line": 550, "action": { "type": "invoke", "field": "fac-i32", "args": [ { "type": "i32", "value": "10" } ] }, "expected": [ { "type": "i32", "value": "3628800" } ] }, { "type": "assert_return", "line": 552, "action": { "type": "invoke", "field": "fac-f32", "args": [ { "type": "f32", "value": "0" } ] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 553, "action": { "type": "invoke", "field": "fac-f32", "args": [ { "type": "f32", "value": "1065353216" } ] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 554, "action": { "type": "invoke", "field": "fac-f32", "args": [ { "type": "f32", "value": "1084227584" } ] }, "expected": [ { "type": "f32", "value": "1123024896" } ] }, { "type": "assert_return", "line": 555, "action": { "type": "invoke", "field": "fac-f32", "args": [ { "type": "f32", "value": "1092616192" } ] }, "expected": [ { "type": "f32", "value": "1247640576" } ] }, { "type": "assert_return", "line": 557, "action": { "type": "invoke", "field": "fac-f64", "args": [ { "type": "f64", "value": "0" } ] }, "expected": [ { "type": "f64", "value": "4607182418800017408" } ] }, { "type": "assert_return", "line": 558, "action": { "type": "invoke", "field": "fac-f64", "args": [ { "type": "f64", "value": "4607182418800017408" } ] }, "expected": [ { "type": "f64", "value": "4607182418800017408" } ] }, { "type": "assert_return", "line": 559, "action": { "type": "invoke", "field": "fac-f64", "args": [ { "type": "f64", "value": "4617315517961601024" } ] }, "expected": [ { "type": "f64", "value": "4638144666238189568" } ] }, { "type": "assert_return", "line": 560, "action": { "type": "invoke", "field": "fac-f64", "args": [ { "type": "f64", "value": "4621819117588971520" } ] }, "expected": [ { "type": "f64", "value": "4705047200009289728" } ] }, { "type": "assert_return", "line": 562, "action": { "type": "invoke", "field": "fib-i64", "args": [ { "type": "i64", "value": "0" } ] }, "expected": [ { "type": "i64", "value": "1" } ] }, { "type": "assert_return", "line": 563, "action": { "type": "invoke", "field": "fib-i64", "args": [ { "type": "i64", "value": "1" } ] }, "expected": [ { "type": "i64", "value": "1" } ] }, { "type": "assert_return", "line": 564, "action": { "type": "invoke", "field": "fib-i64", "args": [ { "type": "i64", "value": "2" } ] }, "expected": [ { "type": "i64", "value": "2" } ] }, { "type": "assert_return", "line": 565, "action": { "type": "invoke", "field": "fib-i64", "args": [ { "type": "i64", "value": "5" } ] }, "expected": [ { "type": "i64", "value": "8" } ] }, { "type": "assert_return", "line": 566, "action": { "type": "invoke", "field": "fib-i64", "args": [ { "type": "i64", "value": "20" } ] }, "expected": [ { "type": "i64", "value": "10946" } ] }, { "type": "assert_return", "line": 568, "action": { "type": "invoke", "field": "fib-i32", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 569, "action": { "type": "invoke", "field": "fib-i32", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 570, "action": { "type": "invoke", "field": "fib-i32", "args": [ { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 571, "action": { "type": "invoke", "field": "fib-i32", "args": [ { "type": "i32", "value": "5" } ] }, "expected": [ { "type": "i32", "value": "8" } ] }, { "type": "assert_return", "line": 572, "action": { "type": "invoke", "field": "fib-i32", "args": [ { "type": "i32", "value": "20" } ] }, "expected": [ { "type": "i32", "value": "10946" } ] }, { "type": "assert_return", "line": 574, "action": { "type": "invoke", "field": "fib-f32", "args": [ { "type": "f32", "value": "0" } ] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 575, "action": { "type": "invoke", "field": "fib-f32", "args": [ { "type": "f32", "value": "1065353216" } ] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 576, "action": { "type": "invoke", "field": "fib-f32", "args": [ { "type": "f32", "value": "1073741824" } ] }, "expected": [ { "type": "f32", "value": "1073741824" } ] }, { "type": "assert_return", "line": 577, "action": { "type": "invoke", "field": "fib-f32", "args": [ { "type": "f32", "value": "1084227584" } ] }, "expected": [ { "type": "f32", "value": "1090519040" } ] }, { "type": "assert_return", "line": 578, "action": { "type": "invoke", "field": "fib-f32", "args": [ { "type": "f32", "value": "1101004800" } ] }, "expected": [ { "type": "f32", "value": "1177225216" } ] }, { "type": "assert_return", "line": 580, "action": { "type": "invoke", "field": "fib-f64", "args": [ { "type": "f64", "value": "0" } ] }, "expected": [ { "type": "f64", "value": "4607182418800017408" } ] }, { "type": "assert_return", "line": 581, "action": { "type": "invoke", "field": "fib-f64", "args": [ { "type": "f64", "value": "4607182418800017408" } ] }, "expected": [ { "type": "f64", "value": "4607182418800017408" } ] }, { "type": "assert_return", "line": 582, "action": { "type": "invoke", "field": "fib-f64", "args": [ { "type": "f64", "value": "4611686018427387904" } ] }, "expected": [ { "type": "f64", "value": "4611686018427387904" } ] }, { "type": "assert_return", "line": 583, "action": { "type": "invoke", "field": "fib-f64", "args": [ { "type": "f64", "value": "4617315517961601024" } ] }, "expected": [ { "type": "f64", "value": "4620693217682128896" } ] }, { "type": "assert_return", "line": 584, "action": { "type": "invoke", "field": "fib-f64", "args": [ { "type": "f64", "value": "4626322717216342016" } ] }, "expected": [ { "type": "f64", "value": "4667243241467281408" } ] }, { "type": "assert_return", "line": 586, "action": { "type": "invoke", "field": "even", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "44" } ] }, { "type": "assert_return", "line": 587, "action": { "type": "invoke", "field": "even", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "99" } ] }, { "type": "assert_return", "line": 588, "action": { "type": "invoke", "field": "even", "args": [ { "type": "i32", "value": "100" } ] }, "expected": [ { "type": "i32", "value": "44" } ] }, { "type": "assert_return", "line": 589, "action": { "type": "invoke", "field": "even", "args": [ { "type": "i32", "value": "77" } ] }, "expected": [ { "type": "i32", "value": "99" } ] }, { "type": "assert_return", "line": 590, "action": { "type": "invoke", "field": "odd", "args": [ { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "99" } ] }, { "type": "assert_return", "line": 591, "action": { "type": "invoke", "field": "odd", "args": [ { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "44" } ] }, { "type": "assert_return", "line": 592, "action": { "type": "invoke", "field": "odd", "args": [ { "type": "i32", "value": "200" } ] }, "expected": [ { "type": "i32", "value": "99" } ] }, { "type": "assert_return", "line": 593, "action": { "type": "invoke", "field": "odd", "args": [ { "type": "i32", "value": "77" } ] }, "expected": [ { "type": "i32", "value": "44" } ] }, { "type": "assert_exhaustion", "line": 595, "action": { "type": "invoke", "field": "runaway", "args": [] }, "text": "call stack exhausted" }, { "type": "assert_exhaustion", "line": 596, "action": { "type": "invoke", "field": "mutual-runaway", "args": [] }, "text": "call stack exhausted" }, { "type": "assert_return", "line": 598, "action": { "type": "invoke", "field": "as-select-first", "args": [] }, "expected": [ { "type": "i32", "value": "306" } ] }, { "type": "assert_return", "line": 599, "action": { "type": "invoke", "field": "as-select-mid", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 600, "action": { "type": "invoke", "field": "as-select-last", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 602, "action": { "type": "invoke", "field": "as-if-condition", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 604, "action": { "type": "invoke", "field": "as-br_if-first", "args": [] }, "expected": [ { "type": "i64", "value": "356" } ] }, { "type": "assert_return", "line": 605, "action": { "type": "invoke", "field": "as-br_if-last", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 607, "action": { "type": "invoke", "field": "as-br_table-first", "args": [] }, "expected": [ { "type": "f32", "value": "1165172736" } ] }, { "type": "assert_return", "line": 608, "action": { "type": "invoke", "field": "as-br_table-last", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 610, "action": { "type": "invoke", "field": "as-store-first", "args": [] }, "expected": [] }, { "type": "assert_return", "line": 611, "action": { "type": "invoke", "field": "as-store-last", "args": [] }, "expected": [] }, { "type": "assert_return", "line": 613, "action": { "type": "invoke", "field": "as-memory.grow-value", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 614, "action": { "type": "invoke", "field": "as-return-value", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 615, "action": { "type": "invoke", "field": "as-drop-operand", "args": [] }, "expected": [] }, { "type": "assert_return", "line": 616, "action": { "type": "invoke", "field": "as-br-value", "args": [] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 617, "action": { "type": "invoke", "field": "as-local.set-value", "args": [] }, "expected": [ { "type": "f64", "value": "4607182418800017408" } ] }, { "type": "assert_return", "line": 618, "action": { "type": "invoke", "field": "as-local.tee-value", "args": [] }, "expected": [ { "type": "f64", "value": "4607182418800017408" } ] }, { "type": "assert_return", "line": 619, "action": { "type": "invoke", "field": "as-global.set-value", "args": [] }, "expected": [ { "type": "f64", "value": "4607182418800017408" } ] }, { "type": "assert_return", "line": 620, "action": { "type": "invoke", "field": "as-load-operand", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 622, "action": { "type": "invoke", "field": "as-unary-operand", "args": [] }, "expected": [ { "type": "f32", "value": "0" } ] }, { "type": "assert_return", "line": 623, "action": { "type": "invoke", "field": "as-binary-left", "args": [] }, "expected": [ { "type": "i32", "value": "11" } ] }, { "type": "assert_return", "line": 624, "action": { "type": "invoke", "field": "as-binary-right", "args": [] }, "expected": [ { "type": "i32", "value": "9" } ] }, { "type": "assert_return", "line": 625, "action": { "type": "invoke", "field": "as-test-operand", "args": [] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 626, "action": { "type": "invoke", "field": "as-compare-left", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 627, "action": { "type": "invoke", "field": "as-compare-right", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 628, "action": { "type": "invoke", "field": "as-convert-operand", "args": [] }, "expected": [ { "type": "i64", "value": "1" } ] }, { "type": "module", "line": 633, "filename": "call_indirect.1.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 660, "action": { "type": "invoke", "field": "call-1", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "5" } ] }, { "type": "assert_return", "line": 661, "action": { "type": "invoke", "field": "call-1", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "-1" } ] }, { "type": "assert_trap", "line": 662, "action": { "type": "invoke", "field": "call-1", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "2" } ] }, "text": "undefined element" }, { "type": "assert_return", "line": 664, "action": { "type": "invoke", "field": "call-2", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "6" } ] }, { "type": "assert_return", "line": 665, "action": { "type": "invoke", "field": "call-2", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 666, "action": { "type": "invoke", "field": "call-2", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "2" } ] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_trap", "line": 667, "action": { "type": "invoke", "field": "call-2", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "3" } ] }, "text": "undefined element" }, { "type": "assert_return", "line": 669, "action": { "type": "invoke", "field": "call-3", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "0" } ] }, "expected": [ { "type": "i32", "value": "-1" } ] }, { "type": "assert_return", "line": 670, "action": { "type": "invoke", "field": "call-3", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "1" } ] }, "expected": [ { "type": "i32", "value": "6" } ] }, { "type": "assert_trap", "line": 671, "action": { "type": "invoke", "field": "call-3", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "2" } ] }, "text": "uninitialized element" }, { "type": "assert_trap", "line": 672, "action": { "type": "invoke", "field": "call-3", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "3" } ] }, "text": "indirect call type mismatch" }, { "type": "assert_trap", "line": 673, "action": { "type": "invoke", "field": "call-3", "args": [ { "type": "i32", "value": "2" }, { "type": "i32", "value": "3" }, { "type": "i32", "value": "4" } ] }, "text": "undefined element" }, { "type": "assert_malformed", "line": 679, "filename": "call_indirect.2.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 691, "filename": "call_indirect.3.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 703, "filename": "call_indirect.4.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 715, "filename": "call_indirect.5.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 727, "filename": "call_indirect.6.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 739, "filename": "call_indirect.7.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 749, "filename": "call_indirect.8.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 756, "filename": "call_indirect.9.wat", "module_type": "text", "text": "inline function type" }, { "type": "assert_malformed", "line": 766, "filename": "call_indirect.10.wat", "module_type": "text", "text": "inline function type" }, { "type": "assert_malformed", "line": 776, "filename": "call_indirect.11.wat", "module_type": "text", "text": "inline function type" }, { "type": "assert_malformed", "line": 786, "filename": "call_indirect.12.wat", "module_type": "text", "text": "inline function type" }, { "type": "assert_invalid", "line": 801, "filename": "call_indirect.13.wasm", "module_type": "binary", "text": "unknown table" }, { "type": "assert_invalid", "line": 809, "filename": "call_indirect.14.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 817, "filename": "call_indirect.15.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 826, "filename": "call_indirect.16.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 834, "filename": "call_indirect.17.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 842, "filename": "call_indirect.18.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 850, "filename": "call_indirect.19.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 861, "filename": "call_indirect.20.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 869, "filename": "call_indirect.21.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 878, "filename": "call_indirect.22.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 888, "filename": "call_indirect.23.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 898, "filename": "call_indirect.24.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 908, "filename": "call_indirect.25.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 919, "filename": "call_indirect.26.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 932, "filename": "call_indirect.27.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 945, "filename": "call_indirect.28.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 958, "filename": "call_indirect.29.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 971, "filename": "call_indirect.30.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 987, "filename": "call_indirect.31.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 1005, "filename": "call_indirect.32.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 1016, "filename": "call_indirect.33.wasm", "module_type": "binary", "text": "unknown type" }, { "type": "assert_invalid", "line": 1023, "filename": "call_indirect.34.wasm", "module_type": "binary", "text": "unknown type" }, { "type": "assert_invalid", "line": 1032, "filename": "call_indirect.35.wasm", "module_type": "binary", "text": "unknown type" }, { "type": "assert_invalid", "line": 1048, "filename": "call_indirect.36.wasm", "module_type": "binary", "text": "unknown function" }, { "type": "module", "line": 1057, "filename": "call_indirect.37.wasm", "module_type": "binary" } ] }