{ "source_filename": "tests/testsuite/loop.wast", "commands": [ { "type": "module", "line": 3, "filename": "loop.0.wasm", "module_type": "binary" }, { "type": "assert_return", "line": 430, "action": { "type": "invoke", "field": "empty", "args": [] }, "expected": [] }, { "type": "assert_return", "line": 431, "action": { "type": "invoke", "field": "singular", "args": [] }, "expected": [ { "type": "i32", "value": "7" } ] }, { "type": "assert_return", "line": 432, "action": { "type": "invoke", "field": "multi", "args": [] }, "expected": [ { "type": "i32", "value": "8" } ] }, { "type": "assert_return", "line": 433, "action": { "type": "invoke", "field": "nested", "args": [] }, "expected": [ { "type": "i32", "value": "9" } ] }, { "type": "assert_return", "line": 434, "action": { "type": "invoke", "field": "deep", "args": [] }, "expected": [ { "type": "i32", "value": "150" } ] }, { "type": "assert_return", "line": 436, "action": { "type": "invoke", "field": "as-select-first", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 437, "action": { "type": "invoke", "field": "as-select-mid", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 438, "action": { "type": "invoke", "field": "as-select-last", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 440, "action": { "type": "invoke", "field": "as-if-condition", "args": [] }, "expected": [] }, { "type": "assert_return", "line": 441, "action": { "type": "invoke", "field": "as-if-then", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 442, "action": { "type": "invoke", "field": "as-if-else", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 444, "action": { "type": "invoke", "field": "as-br_if-first", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 445, "action": { "type": "invoke", "field": "as-br_if-last", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 447, "action": { "type": "invoke", "field": "as-br_table-first", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 448, "action": { "type": "invoke", "field": "as-br_table-last", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 450, "action": { "type": "invoke", "field": "as-call_indirect-first", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 451, "action": { "type": "invoke", "field": "as-call_indirect-mid", "args": [] }, "expected": [ { "type": "i32", "value": "2" } ] }, { "type": "assert_return", "line": 452, "action": { "type": "invoke", "field": "as-call_indirect-last", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 454, "action": { "type": "invoke", "field": "as-store-first", "args": [] }, "expected": [] }, { "type": "assert_return", "line": 455, "action": { "type": "invoke", "field": "as-store-last", "args": [] }, "expected": [] }, { "type": "assert_return", "line": 457, "action": { "type": "invoke", "field": "as-memory.grow-value", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 458, "action": { "type": "invoke", "field": "as-call-value", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 459, "action": { "type": "invoke", "field": "as-return-value", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 460, "action": { "type": "invoke", "field": "as-drop-operand", "args": [] }, "expected": [] }, { "type": "assert_return", "line": 461, "action": { "type": "invoke", "field": "as-br-value", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 462, "action": { "type": "invoke", "field": "as-local.set-value", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 463, "action": { "type": "invoke", "field": "as-local.tee-value", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 464, "action": { "type": "invoke", "field": "as-global.set-value", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 465, "action": { "type": "invoke", "field": "as-load-operand", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 467, "action": { "type": "invoke", "field": "as-unary-operand", "args": [] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 468, "action": { "type": "invoke", "field": "as-binary-operand", "args": [] }, "expected": [ { "type": "i32", "value": "12" } ] }, { "type": "assert_return", "line": 469, "action": { "type": "invoke", "field": "as-test-operand", "args": [] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 470, "action": { "type": "invoke", "field": "as-compare-operand", "args": [] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 471, "action": { "type": "invoke", "field": "as-binary-operands", "args": [] }, "expected": [ { "type": "i32", "value": "12" } ] }, { "type": "assert_return", "line": 472, "action": { "type": "invoke", "field": "as-compare-operands", "args": [] }, "expected": [ { "type": "i32", "value": "0" } ] }, { "type": "assert_return", "line": 473, "action": { "type": "invoke", "field": "as-mixed-operands", "args": [] }, "expected": [ { "type": "i32", "value": "27" } ] }, { "type": "assert_return", "line": 475, "action": { "type": "invoke", "field": "break-bare", "args": [] }, "expected": [ { "type": "i32", "value": "19" } ] }, { "type": "assert_return", "line": 476, "action": { "type": "invoke", "field": "break-value", "args": [] }, "expected": [ { "type": "i32", "value": "18" } ] }, { "type": "assert_return", "line": 477, "action": { "type": "invoke", "field": "break-multi-value", "args": [] }, "expected": [ { "type": "i32", "value": "18" }, { "type": "i32", "value": "-18" }, { "type": "i64", "value": "18" } ] }, { "type": "assert_return", "line": 480, "action": { "type": "invoke", "field": "break-repeated", "args": [] }, "expected": [ { "type": "i32", "value": "18" } ] }, { "type": "assert_return", "line": 481, "action": { "type": "invoke", "field": "break-inner", "args": [] }, "expected": [ { "type": "i32", "value": "31" } ] }, { "type": "assert_return", "line": 483, "action": { "type": "invoke", "field": "param", "args": [] }, "expected": [ { "type": "i32", "value": "3" } ] }, { "type": "assert_return", "line": 484, "action": { "type": "invoke", "field": "params", "args": [] }, "expected": [ { "type": "i32", "value": "3" } ] }, { "type": "assert_return", "line": 485, "action": { "type": "invoke", "field": "params-id", "args": [] }, "expected": [ { "type": "i32", "value": "3" } ] }, { "type": "assert_return", "line": 486, "action": { "type": "invoke", "field": "param-break", "args": [] }, "expected": [ { "type": "i32", "value": "13" } ] }, { "type": "assert_return", "line": 487, "action": { "type": "invoke", "field": "params-break", "args": [] }, "expected": [ { "type": "i32", "value": "12" } ] }, { "type": "assert_return", "line": 488, "action": { "type": "invoke", "field": "params-id-break", "args": [] }, "expected": [ { "type": "i32", "value": "3" } ] }, { "type": "assert_return", "line": 490, "action": { "type": "invoke", "field": "effects", "args": [] }, "expected": [ { "type": "i32", "value": "1" } ] }, { "type": "assert_return", "line": 492, "action": { "type": "invoke", "field": "while", "args": [ { "type": "i64", "value": "0" } ] }, "expected": [ { "type": "i64", "value": "1" } ] }, { "type": "assert_return", "line": 493, "action": { "type": "invoke", "field": "while", "args": [ { "type": "i64", "value": "1" } ] }, "expected": [ { "type": "i64", "value": "1" } ] }, { "type": "assert_return", "line": 494, "action": { "type": "invoke", "field": "while", "args": [ { "type": "i64", "value": "2" } ] }, "expected": [ { "type": "i64", "value": "2" } ] }, { "type": "assert_return", "line": 495, "action": { "type": "invoke", "field": "while", "args": [ { "type": "i64", "value": "3" } ] }, "expected": [ { "type": "i64", "value": "6" } ] }, { "type": "assert_return", "line": 496, "action": { "type": "invoke", "field": "while", "args": [ { "type": "i64", "value": "5" } ] }, "expected": [ { "type": "i64", "value": "120" } ] }, { "type": "assert_return", "line": 497, "action": { "type": "invoke", "field": "while", "args": [ { "type": "i64", "value": "20" } ] }, "expected": [ { "type": "i64", "value": "2432902008176640000" } ] }, { "type": "assert_return", "line": 499, "action": { "type": "invoke", "field": "for", "args": [ { "type": "i64", "value": "0" } ] }, "expected": [ { "type": "i64", "value": "1" } ] }, { "type": "assert_return", "line": 500, "action": { "type": "invoke", "field": "for", "args": [ { "type": "i64", "value": "1" } ] }, "expected": [ { "type": "i64", "value": "1" } ] }, { "type": "assert_return", "line": 501, "action": { "type": "invoke", "field": "for", "args": [ { "type": "i64", "value": "2" } ] }, "expected": [ { "type": "i64", "value": "2" } ] }, { "type": "assert_return", "line": 502, "action": { "type": "invoke", "field": "for", "args": [ { "type": "i64", "value": "3" } ] }, "expected": [ { "type": "i64", "value": "6" } ] }, { "type": "assert_return", "line": 503, "action": { "type": "invoke", "field": "for", "args": [ { "type": "i64", "value": "5" } ] }, "expected": [ { "type": "i64", "value": "120" } ] }, { "type": "assert_return", "line": 504, "action": { "type": "invoke", "field": "for", "args": [ { "type": "i64", "value": "20" } ] }, "expected": [ { "type": "i64", "value": "2432902008176640000" } ] }, { "type": "assert_return", "line": 506, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "0" }, { "type": "f32", "value": "1088421888" } ] }, "expected": [ { "type": "f32", "value": "0" } ] }, { "type": "assert_return", "line": 507, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1088421888" }, { "type": "f32", "value": "0" } ] }, "expected": [ { "type": "f32", "value": "0" } ] }, { "type": "assert_return", "line": 508, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1065353216" }, { "type": "f32", "value": "1065353216" } ] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 509, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1065353216" }, { "type": "f32", "value": "1073741824" } ] }, "expected": [ { "type": "f32", "value": "1073741824" } ] }, { "type": "assert_return", "line": 510, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1065353216" }, { "type": "f32", "value": "1077936128" } ] }, "expected": [ { "type": "f32", "value": "1082130432" } ] }, { "type": "assert_return", "line": 511, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1065353216" }, { "type": "f32", "value": "1082130432" } ] }, "expected": [ { "type": "f32", "value": "1086324736" } ] }, { "type": "assert_return", "line": 512, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1065353216" }, { "type": "f32", "value": "1120403456" } ] }, "expected": [ { "type": "f32", "value": "1159684096" } ] }, { "type": "assert_return", "line": 513, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1065353216" }, { "type": "f32", "value": "1120534528" } ] }, "expected": [ { "type": "f32", "value": "1159892992" } ] }, { "type": "assert_return", "line": 514, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1073741824" }, { "type": "f32", "value": "1065353216" } ] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 515, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1077936128" }, { "type": "f32", "value": "1065353216" } ] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 516, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1092616192" }, { "type": "f32", "value": "1065353216" } ] }, "expected": [ { "type": "f32", "value": "1065353216" } ] }, { "type": "assert_return", "line": 517, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1073741824" }, { "type": "f32", "value": "1073741824" } ] }, "expected": [ { "type": "f32", "value": "1077936128" } ] }, { "type": "assert_return", "line": 518, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1073741824" }, { "type": "f32", "value": "1077936128" } ] }, "expected": [ { "type": "f32", "value": "1082130432" } ] }, { "type": "assert_return", "line": 519, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1088421888" }, { "type": "f32", "value": "1082130432" } ] }, "expected": [ { "type": "f32", "value": "1092940751" } ] }, { "type": "assert_return", "line": 520, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1088421888" }, { "type": "f32", "value": "1120403456" } ] }, "expected": [ { "type": "f32", "value": "1166601314" } ] }, { "type": "assert_return", "line": 521, "action": { "type": "invoke", "field": "nesting", "args": [ { "type": "f32", "value": "1088421888" }, { "type": "f32", "value": "1120534528" } ] }, "expected": [ { "type": "f32", "value": "1159892992" } ] }, { "type": "assert_return", "line": 523, "action": { "type": "invoke", "field": "type-use", "args": [] }, "expected": [] }, { "type": "assert_malformed", "line": 526, "filename": "loop.1.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 533, "filename": "loop.2.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 540, "filename": "loop.3.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 547, "filename": "loop.4.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 554, "filename": "loop.5.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 561, "filename": "loop.6.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 568, "filename": "loop.7.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 572, "filename": "loop.8.wat", "module_type": "text", "text": "inline function type" }, { "type": "assert_malformed", "line": 579, "filename": "loop.9.wat", "module_type": "text", "text": "inline function type" }, { "type": "assert_malformed", "line": 586, "filename": "loop.10.wat", "module_type": "text", "text": "inline function type" }, { "type": "assert_malformed", "line": 593, "filename": "loop.11.wat", "module_type": "text", "text": "inline function type" }, { "type": "assert_invalid", "line": 601, "filename": "loop.12.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 609, "filename": "loop.13.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 613, "filename": "loop.14.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 617, "filename": "loop.15.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 621, "filename": "loop.16.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 626, "filename": "loop.17.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 632, "filename": "loop.18.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 638, "filename": "loop.19.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 644, "filename": "loop.20.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 650, "filename": "loop.21.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 656, "filename": "loop.22.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 662, "filename": "loop.23.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 668, "filename": "loop.24.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 674, "filename": "loop.25.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 680, "filename": "loop.26.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 686, "filename": "loop.27.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 693, "filename": "loop.28.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 702, "filename": "loop.29.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 711, "filename": "loop.30.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 721, "filename": "loop.31.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 727, "filename": "loop.32.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 733, "filename": "loop.33.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 739, "filename": "loop.34.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 745, "filename": "loop.35.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 751, "filename": "loop.36.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 757, "filename": "loop.37.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_invalid", "line": 763, "filename": "loop.38.wasm", "module_type": "binary", "text": "type mismatch" }, { "type": "assert_malformed", "line": 770, "filename": "loop.39.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 774, "filename": "loop.40.wat", "module_type": "text", "text": "unexpected token" }, { "type": "assert_malformed", "line": 779, "filename": "loop.41.wat", "module_type": "text", "text": "mismatching label" }, { "type": "assert_malformed", "line": 783, "filename": "loop.42.wat", "module_type": "text", "text": "mismatching label" } ] }