Home

Errors: 23

Warnings: 0

Successes: 61


return.wast

{"type":"module","line":3,"filename":"return.0.wasm"}

loaded

{"type":"assert_return","line":224,"action":{"type":"invoke","field":"type-i32"}}
(assert_return (invoke "type-i32"))

ok, result

{"type":"assert_return","line":225,"action":{"type":"invoke","field":"type-i64"}}
(assert_return (invoke "type-i64"))

ok, result

{"type":"assert_return","line":226,"action":{"type":"invoke","field":"type-f32"}}
(assert_return (invoke "type-f32"))

ok, result

{"type":"assert_return","line":227,"action":{"type":"invoke","field":"type-f64"}}
(assert_return (invoke "type-f64"))

ok, result

{"type":"assert_return","line":229,"action":{"type":"invoke","field":"type-i32-value"},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke "type-i32-value") (i32.const 1))

ok, result

{"type":"assert_return","line":230,"action":{"type":"invoke","field":"type-i64-value"},"expected":[{"type":"i64","value":"2"}]}
(assert_return (invoke "type-i64-value") (i64.const 2))

ok, result

{"type":"assert_return","line":231,"action":{"type":"invoke","field":"type-f32-value"},"expected":[{"type":"f32","value":"1077936128"}]}
(assert_return (invoke "type-f32-value") (f32.const 3))

ok, result

{"type":"assert_return","line":232,"action":{"type":"invoke","field":"type-f64-value"},"expected":[{"type":"f64","value":"4616189618054758400"}]}
(assert_return (invoke "type-f64-value") (f64.const 4))

error, wrong result, expected 4616189618054758400, got 4160

{"type":"assert_return","line":234,"action":{"type":"invoke","field":"nullary"}}
(assert_return (invoke "nullary"))

ok, result

{"type":"assert_return","line":235,"action":{"type":"invoke","field":"unary"},"expected":[{"type":"f64","value":"4613937818241073152"}]}
(assert_return (invoke "unary") (f64.const 3))

error, wrong result, expected 4613937818241073152, got 2112

{"type":"assert_return","line":237,"action":{"type":"invoke","field":"as-func-first"},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke "as-func-first") (i32.const 1))

ok, result

{"type":"assert_return","line":238,"action":{"type":"invoke","field":"as-func-mid"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke "as-func-mid") (i32.const 2))

ok, result

{"type":"assert_return","line":239,"action":{"type":"invoke","field":"as-func-last"}}
(assert_return (invoke "as-func-last"))

ok, result

{"type":"assert_return","line":240,"action":{"type":"invoke","field":"as-func-value"},"expected":[{"type":"i32","value":"3"}]}
(assert_return (invoke "as-func-value") (i32.const 3))

ok, result

{"type":"assert_return","line":242,"action":{"type":"invoke","field":"as-block-first"}}
(assert_return (invoke "as-block-first"))

ok, result

{"type":"assert_return","line":243,"action":{"type":"invoke","field":"as-block-mid"}}
(assert_return (invoke "as-block-mid"))

ok, result

{"type":"assert_return","line":244,"action":{"type":"invoke","field":"as-block-last"}}
(assert_return (invoke "as-block-last"))

ok, result

{"type":"assert_return","line":245,"action":{"type":"invoke","field":"as-block-value"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke "as-block-value") (i32.const 2))

ok, result

{"type":"assert_return","line":247,"action":{"type":"invoke","field":"as-loop-first"},"expected":[{"type":"i32","value":"3"}]}
(assert_return (invoke "as-loop-first") (i32.const 3))

ok, result

{"type":"assert_return","line":248,"action":{"type":"invoke","field":"as-loop-mid"},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke "as-loop-mid") (i32.const 4))

ok, result

{"type":"assert_return","line":249,"action":{"type":"invoke","field":"as-loop-last"},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke "as-loop-last") (i32.const 5))

ok, result

{"type":"assert_return","line":251,"action":{"type":"invoke","field":"as-br-value"},"expected":[{"type":"i32","value":"9"}]}
(assert_return (invoke "as-br-value") (i32.const 9))

ok, result

{"type":"assert_return","line":253,"action":{"type":"invoke","field":"as-br_if-cond"}}
(assert_return (invoke "as-br_if-cond"))

ok, result

{"type":"assert_return","line":254,"action":{"type":"invoke","field":"as-br_if-value"},"expected":[{"type":"i32","value":"8"}]}
(assert_return (invoke "as-br_if-value") (i32.const 8))

ok, result

{"type":"assert_return","line":255,"action":{"type":"invoke","field":"as-br_if-value-cond"},"expected":[{"type":"i32","value":"9"}]}
(assert_return (invoke "as-br_if-value-cond") (i32.const 9))

ok, result

{"type":"assert_return","line":257,"action":{"type":"invoke","field":"as-br_table-index"},"expected":[{"type":"i64","value":"9"}]}
(assert_return (invoke "as-br_table-index") (i64.const 9))

ok, result

{"type":"assert_return","line":258,"action":{"type":"invoke","field":"as-br_table-value"},"expected":[{"type":"i32","value":"10"}]}
(assert_return (invoke "as-br_table-value") (i32.const 10))

ok, result

{"type":"assert_return","line":259,"action":{"type":"invoke","field":"as-br_table-value-index"},"expected":[{"type":"i32","value":"11"}]}
(assert_return (invoke "as-br_table-value-index") (i32.const 11))

ok, result

{"type":"assert_return","line":261,"action":{"type":"invoke","field":"as-return-value"},"expected":[{"type":"i64","value":"7"}]}
(assert_return (invoke "as-return-value") (i64.const 7))

ok, result

{"type":"assert_return","line":263,"action":{"type":"invoke","field":"as-if-cond"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke "as-if-cond") (i32.const 2))

ok, result

{"type":"assert_return","line":264,"action":{"type":"invoke","field":"as-if-then","args":[{"type":"i32","value":"1"},{"type":"i32","value":"6"}]},"expected":[{"type":"i32","value":"3"}]}
(assert_return (invoke "as-if-then" (i32.const 1) (i32.const 6)) (i32.const 3))

ok, result

{"type":"assert_return","line":265,"action":{"type":"invoke","field":"as-if-then","args":[{"type":"i32","value":"0"},{"type":"i32","value":"6"}]},"expected":[{"type":"i32","value":"6"}]}
(assert_return (invoke "as-if-then" (i32.const 0) (i32.const 6)) (i32.const 6))

ok, result

{"type":"assert_return","line":266,"action":{"type":"invoke","field":"as-if-else","args":[{"type":"i32","value":"0"},{"type":"i32","value":"6"}]},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke "as-if-else" (i32.const 0) (i32.const 6)) (i32.const 4))

ok, result

{"type":"assert_return","line":267,"action":{"type":"invoke","field":"as-if-else","args":[{"type":"i32","value":"1"},{"type":"i32","value":"6"}]},"expected":[{"type":"i32","value":"6"}]}
(assert_return (invoke "as-if-else" (i32.const 1) (i32.const 6)) (i32.const 6))

ok, result

{"type":"assert_return","line":269,"action":{"type":"invoke","field":"as-select-first","args":[{"type":"i32","value":"0"},{"type":"i32","value":"6"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke "as-select-first" (i32.const 0) (i32.const 6)) (i32.const 5))

ok, result

{"type":"assert_return","line":270,"action":{"type":"invoke","field":"as-select-first","args":[{"type":"i32","value":"1"},{"type":"i32","value":"6"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke "as-select-first" (i32.const 1) (i32.const 6)) (i32.const 5))

ok, result

{"type":"assert_return","line":271,"action":{"type":"invoke","field":"as-select-second","args":[{"type":"i32","value":"0"},{"type":"i32","value":"6"}]},"expected":[{"type":"i32","value":"6"}]}
(assert_return (invoke "as-select-second" (i32.const 0) (i32.const 6)) (i32.const 6))

ok, result

{"type":"assert_return","line":272,"action":{"type":"invoke","field":"as-select-second","args":[{"type":"i32","value":"1"},{"type":"i32","value":"6"}]},"expected":[{"type":"i32","value":"6"}]}
(assert_return (invoke "as-select-second" (i32.const 1) (i32.const 6)) (i32.const 6))

ok, result

{"type":"assert_return","line":273,"action":{"type":"invoke","field":"as-select-cond"},"expected":[{"type":"i32","value":"7"}]}
(assert_return (invoke "as-select-cond") (i32.const 7))

ok, result

{"type":"assert_return","line":275,"action":{"type":"invoke","field":"as-call-first"},"expected":[{"type":"i32","value":"12"}]}
(assert_return (invoke "as-call-first") (i32.const 12))

ok, result

{"type":"assert_return","line":276,"action":{"type":"invoke","field":"as-call-mid"},"expected":[{"type":"i32","value":"13"}]}
(assert_return (invoke "as-call-mid") (i32.const 13))

ok, result

{"type":"assert_return","line":277,"action":{"type":"invoke","field":"as-call-last"},"expected":[{"type":"i32","value":"14"}]}
(assert_return (invoke "as-call-last") (i32.const 14))

ok, result

{"type":"assert_return","line":279,"action":{"type":"invoke","field":"as-call_indirect-func"},"expected":[{"type":"i32","value":"20"}]}
(assert_return (invoke "as-call_indirect-func") (i32.const 20))

ok, result

{"type":"assert_return","line":280,"action":{"type":"invoke","field":"as-call_indirect-first"},"expected":[{"type":"i32","value":"21"}]}
(assert_return (invoke "as-call_indirect-first") (i32.const 21))

ok, result

{"type":"assert_return","line":281,"action":{"type":"invoke","field":"as-call_indirect-mid"},"expected":[{"type":"i32","value":"22"}]}
(assert_return (invoke "as-call_indirect-mid") (i32.const 22))

ok, result

{"type":"assert_return","line":282,"action":{"type":"invoke","field":"as-call_indirect-last"},"expected":[{"type":"i32","value":"23"}]}
(assert_return (invoke "as-call_indirect-last") (i32.const 23))

ok, result

{"type":"assert_return","line":284,"action":{"type":"invoke","field":"as-local.set-value"},"expected":[{"type":"i32","value":"17"}]}
(assert_return (invoke "as-local.set-value") (i32.const 17))

ok, result

{"type":"assert_return","line":285,"action":{"type":"invoke","field":"as-local.tee-value"},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke "as-local.tee-value") (i32.const 1))

ok, result

{"type":"assert_return","line":286,"action":{"type":"invoke","field":"as-global.set-value"},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke "as-global.set-value") (i32.const 1))

ok, result

{"type":"assert_return","line":288,"action":{"type":"invoke","field":"as-load-address"},"expected":[{"type":"f32","value":"1071225242"}]}
(assert_return (invoke "as-load-address") (f32.const 1.7))

ok, result

{"type":"assert_return","line":289,"action":{"type":"invoke","field":"as-loadN-address"},"expected":[{"type":"i64","value":"30"}]}
(assert_return (invoke "as-loadN-address") (i64.const 30))

ok, result

{"type":"assert_return","line":291,"action":{"type":"invoke","field":"as-store-address"},"expected":[{"type":"i32","value":"30"}]}
(assert_return (invoke "as-store-address") (i32.const 30))

ok, result

{"type":"assert_return","line":292,"action":{"type":"invoke","field":"as-store-value"},"expected":[{"type":"i32","value":"31"}]}
(assert_return (invoke "as-store-value") (i32.const 31))

ok, result

{"type":"assert_return","line":293,"action":{"type":"invoke","field":"as-storeN-address"},"expected":[{"type":"i32","value":"32"}]}
(assert_return (invoke "as-storeN-address") (i32.const 32))

ok, result

{"type":"assert_return","line":294,"action":{"type":"invoke","field":"as-storeN-value"},"expected":[{"type":"i32","value":"33"}]}
(assert_return (invoke "as-storeN-value") (i32.const 33))

ok, result

{"type":"assert_return","line":296,"action":{"type":"invoke","field":"as-unary-operand"},"expected":[{"type":"f32","value":"1079613850"}]}
(assert_return (invoke "as-unary-operand") (f32.const 3.4))

error, wrong result, expected 1079613850, got 1079613849

{"type":"assert_return","line":298,"action":{"type":"invoke","field":"as-binary-left"},"expected":[{"type":"i32","value":"3"}]}
(assert_return (invoke "as-binary-left") (i32.const 3))

ok, result

{"type":"assert_return","line":299,"action":{"type":"invoke","field":"as-binary-right"},"expected":[{"type":"i64","value":"45"}]}
(assert_return (invoke "as-binary-right") (i64.const 45))

ok, result

{"type":"assert_return","line":301,"action":{"type":"invoke","field":"as-test-operand"},"expected":[{"type":"i32","value":"44"}]}
(assert_return (invoke "as-test-operand") (i32.const 44))

ok, result

{"type":"assert_return","line":303,"action":{"type":"invoke","field":"as-compare-left"},"expected":[{"type":"i32","value":"43"}]}
(assert_return (invoke "as-compare-left") (i32.const 43))

ok, result

{"type":"assert_return","line":304,"action":{"type":"invoke","field":"as-compare-right"},"expected":[{"type":"i32","value":"42"}]}
(assert_return (invoke "as-compare-right") (i32.const 42))

ok, result

{"type":"assert_return","line":306,"action":{"type":"invoke","field":"as-convert-operand"},"expected":[{"type":"i32","value":"41"}]}
(assert_return (invoke "as-convert-operand") (i32.const 41))

ok, result

{"type":"assert_return","line":308,"action":{"type":"invoke","field":"as-memory.grow-size"},"expected":[{"type":"i32","value":"40"}]}
(assert_return (invoke "as-memory.grow-size") (i32.const 40))

ok, result

{"type":"assert_invalid","line":311,"filename":"return.1.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":315,"filename":"return.2.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":324,"filename":"return.3.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":333,"filename":"return.4.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":342,"filename":"return.5.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":351,"filename":"return.6.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":360,"filename":"return.7.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":369,"filename":"return.8.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":378,"filename":"return.9.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":386,"filename":"return.10.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":394,"filename":"return.11.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":403,"filename":"return.12.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":418,"filename":"return.13.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":427,"filename":"return.14.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":436,"filename":"return.15.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":445,"filename":"return.16.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":454,"filename":"return.17.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":463,"filename":"return.18.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":472,"filename":"return.19.wasm","text":"type mismatch"}

expected error

{"type":"assert_invalid","line":476,"filename":"return.20.wasm","text":"type mismatch"}

expected error

Generated at 2024-09-05T14:39:23