{"type":"module","line":3,"filename":"call.0.wasm"}
loaded
{"type":"assert_return","line":285,"action":{"type":"invoke","field":"type-i32"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "type-i32") (i32.const 0x132))
ok, result
{"type":"assert_return","line":286,"action":{"type":"invoke","field":"type-i64"},"expected":[{"type":"i64","value":"356"}]}
(assert_return (invoke "type-i64") (i64.const 0x164))
ok, result
{"type":"assert_return","line":287,"action":{"type":"invoke","field":"type-f32"},"expected":[{"type":"f32","value":"1165172736"}]}
(assert_return (invoke "type-f32") (f32.const 0xf32))
ok, result
{"type":"assert_return","line":288,"action":{"type":"invoke","field":"type-f64"},"expected":[{"type":"f64","value":"4660882566700597248"}]}
(assert_return (invoke "type-f64") (f64.const 0xf64))
error, wrong result, expected 4660882566700597248, got 13151808
{"type":"assert_return","line":289,"action":{"type":"invoke","field":"type-i32-i64"},"expected":[{"type":"i32","value":"306"},{"type":"i64","value":"356"}]}
(assert_return (invoke "type-i32-i64") (i32.const 0x132) (i64.const 0x164))
ok, result
{"type":"assert_return","line":291,"action":{"type":"invoke","field":"type-first-i32"},"expected":[{"type":"i32","value":"32"}]}
(assert_return (invoke "type-first-i32") (i32.const 32))
ok, result
{"type":"assert_return","line":292,"action":{"type":"invoke","field":"type-first-i64"},"expected":[{"type":"i64","value":"64"}]}
(assert_return (invoke "type-first-i64") (i64.const 64))
ok, result
{"type":"assert_return","line":293,"action":{"type":"invoke","field":"type-first-f32"},"expected":[{"type":"f32","value":"1068037571"}]}
(assert_return (invoke "type-first-f32") (f32.const 1.32))
ok, result
{"type":"assert_return","line":294,"action":{"type":"invoke","field":"type-first-f64"},"expected":[{"type":"f64","value":"4610064722561534525"}]}
(assert_return (invoke "type-first-f64") (f64.const 1.64))
error, wrong result, expected 4610064722561534525, got 689077877311
{"type":"assert_return","line":296,"action":{"type":"invoke","field":"type-second-i32"},"expected":[{"type":"i32","value":"32"}]}
(assert_return (invoke "type-second-i32") (i32.const 32))
ok, result
{"type":"assert_return","line":297,"action":{"type":"invoke","field":"type-second-i64"},"expected":[{"type":"i64","value":"64"}]}
(assert_return (invoke "type-second-i64") (i64.const 64))
ok, result
{"type":"assert_return","line":298,"action":{"type":"invoke","field":"type-second-f32"},"expected":[{"type":"f32","value":"1107296256"}]}
(assert_return (invoke "type-second-f32") (f32.const 32))
ok, result
{"type":"assert_return","line":299,"action":{"type":"invoke","field":"type-second-f64"},"expected":[{"type":"f64","value":"4634211053438658150"}]}
(assert_return (invoke "type-second-f64") (f64.const 64.1))
error, wrong result, expected 4634211053438658150, got 414028550208
{"type":"assert_return","line":301,"action":{"type":"invoke","field":"type-all-i32-f64"},"expected":[{"type":"i32","value":"32"},{"type":"f64","value":"4610064722561534525"}]}
(assert_return (invoke "type-all-i32-f64") (i32.const 32) (f64.const 1.64))
error, wrong result, expected 4610064722561534525, got 689077877311
{"type":"assert_return","line":302,"action":{"type":"invoke","field":"type-all-i32-i32"},"expected":[{"type":"i32","value":"2"},{"type":"i32","value":"1"}]}
(assert_return (invoke "type-all-i32-i32") (i32.const 2) (i32.const 1))
ok, result
{"type":"assert_return","line":303,"action":{"type":"invoke","field":"type-all-f32-f64"},"expected":[{"type":"f64","value":"4611686018427387904"},{"type":"f32","value":"1065353216"}]}
(assert_return (invoke "type-all-f32-f64") (f64.const 2) (f32.const 1))
error, wrong result, expected 4611686018427387904, got 64
{"type":"assert_return","line":304,"action":{"type":"invoke","field":"type-all-f64-i32"},"expected":[{"type":"i32","value":"2"},{"type":"f64","value":"4607182418800017408"}]}
(assert_return (invoke "type-all-f64-i32") (i32.const 2) (f64.const 1))
error, wrong result, expected 4607182418800017408, got 61503
{"type":"assert_return","line":306,"action":{"type":"invoke","field":"as-binary-all-operands"},"expected":[{"type":"i32","value":"7"}]}
(assert_return (invoke "as-binary-all-operands") (i32.const 7))
ok, result
{"type":"assert_return","line":307,"action":{"type":"invoke","field":"as-mixed-operands"},"expected":[{"type":"i32","value":"32"}]}
(assert_return (invoke "as-mixed-operands") (i32.const 32))
ok, result
{"type":"assert_return","line":308,"action":{"type":"invoke","field":"as-call-all-operands"},"expected":[{"type":"i32","value":"3"},{"type":"i32","value":"4"}]}
(assert_return (invoke "as-call-all-operands") (i32.const 3) (i32.const 4))
ok, result
{"type":"assert_return","line":310,"action":{"type":"invoke","field":"fac","args":[{"type":"i64","value":"0"}]},"expected":[{"type":"i64","value":"1"}]}
(assert_return (invoke "fac" (i64.const 0)) (i64.const 1))
ok, result
{"type":"assert_return","line":311,"action":{"type":"invoke","field":"fac","args":[{"type":"i64","value":"1"}]},"expected":[{"type":"i64","value":"1"}]}
(assert_return (invoke "fac" (i64.const 1)) (i64.const 1))
ok, result
{"type":"assert_return","line":312,"action":{"type":"invoke","field":"fac","args":[{"type":"i64","value":"5"}]},"expected":[{"type":"i64","value":"120"}]}
(assert_return (invoke "fac" (i64.const 5)) (i64.const 120))
ok, result
{"type":"assert_return","line":313,"action":{"type":"invoke","field":"fac","args":[{"type":"i64","value":"25"}]},"expected":[{"type":"i64","value":"7034535277573963776"}]}
(assert_return (invoke "fac" (i64.const 25)) (i64.const 7034535277573963776))
ok, result
{"type":"assert_return","line":314,"action":{"type":"invoke","field":"fac-acc","args":[{"type":"i64","value":"0"},{"type":"i64","value":"1"}]},"expected":[{"type":"i64","value":"1"}]}
(assert_return (invoke "fac-acc" (i64.const 0) (i64.const 1)) (i64.const 1))
ok, result
{"type":"assert_return","line":315,"action":{"type":"invoke","field":"fac-acc","args":[{"type":"i64","value":"1"},{"type":"i64","value":"1"}]},"expected":[{"type":"i64","value":"1"}]}
(assert_return (invoke "fac-acc" (i64.const 1) (i64.const 1)) (i64.const 1))
ok, result
{"type":"assert_return","line":316,"action":{"type":"invoke","field":"fac-acc","args":[{"type":"i64","value":"5"},{"type":"i64","value":"1"}]},"expected":[{"type":"i64","value":"120"}]}
(assert_return (invoke "fac-acc" (i64.const 5) (i64.const 1)) (i64.const 120))
ok, result
{"type":"assert_return","line":318,"action":{"type":"invoke","field":"fac-acc","args":[{"type":"i64","value":"25"},{"type":"i64","value":"1"}]},"expected":[{"type":"i64","value":"7034535277573963776"}]}
(invoke "fac-acc" (i64.const 25) (i64.const 1))
ok, result
{"type":"assert_return","line":322,"action":{"type":"invoke","field":"fib","args":[{"type":"i64","value":"0"}]},"expected":[{"type":"i64","value":"1"}]}
(assert_return (invoke "fib" (i64.const 0)) (i64.const 1))
ok, result
{"type":"assert_return","line":323,"action":{"type":"invoke","field":"fib","args":[{"type":"i64","value":"1"}]},"expected":[{"type":"i64","value":"1"}]}
(assert_return (invoke "fib" (i64.const 1)) (i64.const 1))
ok, result
{"type":"assert_return","line":324,"action":{"type":"invoke","field":"fib","args":[{"type":"i64","value":"2"}]},"expected":[{"type":"i64","value":"2"}]}
(assert_return (invoke "fib" (i64.const 2)) (i64.const 2))
ok, result
{"type":"assert_return","line":325,"action":{"type":"invoke","field":"fib","args":[{"type":"i64","value":"5"}]},"expected":[{"type":"i64","value":"8"}]}
(assert_return (invoke "fib" (i64.const 5)) (i64.const 8))
ok, result
{"type":"assert_return","line":326,"action":{"type":"invoke","field":"fib","args":[{"type":"i64","value":"20"}]},"expected":[{"type":"i64","value":"10946"}]}
(assert_return (invoke "fib" (i64.const 20)) (i64.const 10946))
ok, result, 2327ms
{"type":"assert_return","line":328,"action":{"type":"invoke","field":"even","args":[{"type":"i64","value":"0"}]},"expected":[{"type":"i32","value":"44"}]}
(assert_return (invoke "even" (i64.const 0)) (i32.const 44))
ok, result
{"type":"assert_return","line":329,"action":{"type":"invoke","field":"even","args":[{"type":"i64","value":"1"}]},"expected":[{"type":"i32","value":"99"}]}
(assert_return (invoke "even" (i64.const 1)) (i32.const 99))
ok, result
{"type":"assert_return","line":330,"action":{"type":"invoke","field":"even","args":[{"type":"i64","value":"100"}]},"expected":[{"type":"i32","value":"44"}]}
(assert_return (invoke "even" (i64.const 100)) (i32.const 44))
ok, result
{"type":"assert_return","line":331,"action":{"type":"invoke","field":"even","args":[{"type":"i64","value":"77"}]},"expected":[{"type":"i32","value":"99"}]}
(assert_return (invoke "even" (i64.const 77)) (i32.const 99))
ok, result
{"type":"assert_return","line":332,"action":{"type":"invoke","field":"odd","args":[{"type":"i64","value":"0"}]},"expected":[{"type":"i32","value":"99"}]}
(assert_return (invoke "odd" (i64.const 0)) (i32.const 99))
ok, result
{"type":"assert_return","line":333,"action":{"type":"invoke","field":"odd","args":[{"type":"i64","value":"1"}]},"expected":[{"type":"i32","value":"44"}]}
(assert_return (invoke "odd" (i64.const 1)) (i32.const 44))
ok, result
{"type":"assert_return","line":334,"action":{"type":"invoke","field":"odd","args":[{"type":"i64","value":"200"}]},"expected":[{"type":"i32","value":"99"}]}
(assert_return (invoke "odd" (i64.const 200)) (i32.const 99))
ok, result, 15ms
{"type":"assert_return","line":335,"action":{"type":"invoke","field":"odd","args":[{"type":"i64","value":"77"}]},"expected":[{"type":"i32","value":"44"}]}
(assert_return (invoke "odd" (i64.const 77)) (i32.const 44))
ok, result
{"type":"assert_exhaustion","line":337,"text":"call stack exhausted","action":{"type":"invoke","field":"runaway"}}
todo, assert_exhaustion
{"type":"assert_exhaustion","line":338,"text":"call stack exhausted","action":{"type":"invoke","field":"mutual-runaway"}}
todo, assert_exhaustion
{"type":"assert_return","line":340,"action":{"type":"invoke","field":"as-select-first"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "as-select-first") (i32.const 0x132))
ok, result
{"type":"assert_return","line":341,"action":{"type":"invoke","field":"as-select-mid"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke "as-select-mid") (i32.const 2))
ok, result
{"type":"assert_return","line":342,"action":{"type":"invoke","field":"as-select-last"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke "as-select-last") (i32.const 2))
ok, result
{"type":"assert_return","line":344,"action":{"type":"invoke","field":"as-if-condition"},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke "as-if-condition") (i32.const 1))
ok, result
{"type":"assert_return","line":346,"action":{"type":"invoke","field":"as-br_if-first"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "as-br_if-first") (i32.const 0x132))
ok, result
{"type":"assert_return","line":347,"action":{"type":"invoke","field":"as-br_if-last"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke "as-br_if-last") (i32.const 2))
ok, result
{"type":"assert_return","line":349,"action":{"type":"invoke","field":"as-br_table-first"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "as-br_table-first") (i32.const 0x132))
ok, result
{"type":"assert_return","line":350,"action":{"type":"invoke","field":"as-br_table-last"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke "as-br_table-last") (i32.const 2))
ok, result
{"type":"assert_return","line":352,"action":{"type":"invoke","field":"as-call_indirect-first"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "as-call_indirect-first") (i32.const 0x132))
ok, result
{"type":"assert_return","line":353,"action":{"type":"invoke","field":"as-call_indirect-mid"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke "as-call_indirect-mid") (i32.const 2))
ok, result
{"type":"assert_trap","line":354,"text":"undefined element","action":{"type":"invoke","field":"as-call_indirect-last"},"expected":[{"type":"i32"}]}
(assert_trap (invoke "as-call_indirect-last") "undefined element")
ok, got error: zcl_wasm_memory: table_get, out of bounds
{"type":"assert_return","line":356,"action":{"type":"invoke","field":"as-store-first"}}
(assert_return (invoke "as-store-first"))
ok, result
{"type":"assert_return","line":357,"action":{"type":"invoke","field":"as-store-last"}}
(assert_return (invoke "as-store-last"))
ok, result
{"type":"assert_return","line":359,"action":{"type":"invoke","field":"as-memory.grow-value"},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke "as-memory.grow-value") (i32.const 1))
ok, result, 726ms
{"type":"assert_return","line":360,"action":{"type":"invoke","field":"as-return-value"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "as-return-value") (i32.const 0x132))
ok, result
{"type":"assert_return","line":361,"action":{"type":"invoke","field":"as-drop-operand"}}
(assert_return (invoke "as-drop-operand"))
ok, result
{"type":"assert_return","line":362,"action":{"type":"invoke","field":"as-br-value"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "as-br-value") (i32.const 0x132))
ok, result
{"type":"assert_return","line":363,"action":{"type":"invoke","field":"as-local.set-value"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "as-local.set-value") (i32.const 0x132))
ok, result
{"type":"assert_return","line":364,"action":{"type":"invoke","field":"as-local.tee-value"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "as-local.tee-value") (i32.const 0x132))
ok, result
{"type":"assert_return","line":365,"action":{"type":"invoke","field":"as-global.set-value"},"expected":[{"type":"i32","value":"306"}]}
(assert_return (invoke "as-global.set-value") (i32.const 0x132))
ok, result
{"type":"assert_return","line":366,"action":{"type":"invoke","field":"as-load-operand"},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke "as-load-operand") (i32.const 1))
ok, result
{"type":"assert_return","line":368,"action":{"type":"invoke","field":"as-unary-operand"},"expected":[{"type":"f32","value":"0"}]}
(assert_return (invoke "as-unary-operand") (f32.const 0x0p+0))
ok, result
{"type":"assert_return","line":369,"action":{"type":"invoke","field":"as-binary-left"},"expected":[{"type":"i32","value":"11"}]}
(assert_return (invoke "as-binary-left") (i32.const 11))
ok, result
{"type":"assert_return","line":370,"action":{"type":"invoke","field":"as-binary-right"},"expected":[{"type":"i32","value":"9"}]}
(assert_return (invoke "as-binary-right") (i32.const 9))
ok, result
{"type":"assert_return","line":371,"action":{"type":"invoke","field":"as-test-operand"},"expected":[{"type":"i32","value":"0"}]}
(assert_return (invoke "as-test-operand") (i32.const 0))
ok, result
{"type":"assert_return","line":372,"action":{"type":"invoke","field":"as-compare-left"},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke "as-compare-left") (i32.const 1))
ok, result
{"type":"assert_return","line":373,"action":{"type":"invoke","field":"as-compare-right"},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke "as-compare-right") (i32.const 1))
ok, result
{"type":"assert_return","line":374,"action":{"type":"invoke","field":"as-convert-operand"},"expected":[{"type":"i64","value":"1"}]}
(assert_return (invoke "as-convert-operand") (i64.const 1))
ok, result
{"type":"assert_return","line":376,"action":{"type":"invoke","field":"return-from-long-argument-list","args":[{"type":"i32","value":"42"}]},"expected":[{"type":"i32","value":"42"}]}
(assert_return (invoke "return-from-long-argument-list" (i32.const 42)) (i32.const 42))
ok, result
{"type":"assert_invalid","line":381,"filename":"call.1.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":388,"filename":"call.2.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":396,"filename":"call.3.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":403,"filename":"call.4.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":410,"filename":"call.5.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":417,"filename":"call.6.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":425,"filename":"call.7.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":432,"filename":"call.8.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":439,"filename":"call.9.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":446,"filename":"call.10.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":454,"filename":"call.11.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":463,"filename":"call.12.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":472,"filename":"call.13.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":481,"filename":"call.14.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":490,"filename":"call.15.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":499,"filename":"call.16.wasm","text":"type mismatch"}
expected error
{"type":"assert_invalid","line":512,"filename":"call.17.wasm","text":"unknown function"}
expected error
{"type":"assert_invalid","line":516,"filename":"call.18.wasm","text":"unknown function"}
expected error
Generated at 2024-09-05T14:37:38