{"type":"module","line":3,"filename":"linking.0.wasm"}
loaded
{"type":"register","line":7,"as":"Mf"}
registered
{"type":"module","line":9,"filename":"linking.1.wasm"}
loaded
{"type":"assert_return","line":17,"action":{"type":"invoke","field":"call"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke $Mf "call") (i32.const 2))
error, wrong result, expected 2, got 3
{"type":"assert_return","line":18,"action":{"type":"invoke","field":"Mf.call"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke $Nf "Mf.call") (i32.const 2))
ok, result
{"type":"assert_return","line":19,"action":{"type":"invoke","field":"call"},"expected":[{"type":"i32","value":"3"}]}
(assert_return (invoke $Nf "call") (i32.const 3))
ok, result
{"type":"assert_return","line":20,"action":{"type":"invoke","field":"call Mf.call"},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke $Nf "call Mf.call") (i32.const 2))
ok, result
{"type":"module","line":22,"filename":"linking.2.wasm"}
loaded
{"type":"register","line":26,"as":"reexport_f"}
registered
{"type":"assert_unlinkable","line":28,"filename":"linking.3.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"assert_unlinkable","line":32,"filename":"linking.4.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"module","line":39,"filename":"linking.5.wasm"}
loaded
{"type":"register","line":48,"as":"Mg"}
registered
{"type":"module","line":50,"filename":"linking.6.wasm"}
loaded
{"type":"assert_return","line":67,"action":{"type":"get","field":"glob"},"expected":[{"type":"i32","value":"42"}]}
(assert_return (get $Mg "glob") (i32.const 42))
exception: invoke: unknown action type, get
{"type":"assert_return","line":68,"action":{"type":"get","field":"Mg.glob"},"expected":[{"type":"i32","value":"42"}]}
(assert_return (get $Ng "Mg.glob") (i32.const 42))
exception: invoke: unknown action type, get
{"type":"assert_return","line":69,"action":{"type":"get","field":"glob"},"expected":[{"type":"i32","value":"43"}]}
(assert_return (get $Ng "glob") (i32.const 43))
exception: invoke: unknown action type, get
{"type":"assert_return","line":70,"action":{"type":"invoke","field":"get"},"expected":[{"type":"i32","value":"42"}]}
(assert_return (invoke $Mg "get") (i32.const 42))
error, wrong result, expected 42, got 43
{"type":"assert_return","line":71,"action":{"type":"invoke","field":"Mg.get"},"expected":[{"type":"i32","value":"42"}]}
(assert_return (invoke $Ng "Mg.get") (i32.const 42))
ok, result
{"type":"assert_return","line":72,"action":{"type":"invoke","field":"get"},"expected":[{"type":"i32","value":"43"}]}
(assert_return (invoke $Ng "get") (i32.const 43))
ok, result
{"type":"assert_return","line":74,"action":{"type":"get","field":"mut_glob"},"expected":[{"type":"i32","value":"142"}]}
(assert_return (get $Mg "mut_glob") (i32.const 142))
exception: invoke: unknown action type, get
{"type":"assert_return","line":75,"action":{"type":"get","field":"Mg.mut_glob"},"expected":[{"type":"i32","value":"142"}]}
(assert_return (get $Ng "Mg.mut_glob") (i32.const 142))
exception: invoke: unknown action type, get
{"type":"assert_return","line":76,"action":{"type":"invoke","field":"get_mut"},"expected":[{"type":"i32","value":"142"}]}
(assert_return (invoke $Mg "get_mut") (i32.const 142))
exception: get_export_by_name, not found: get_mut
{"type":"assert_return","line":77,"action":{"type":"invoke","field":"Mg.get_mut"},"expected":[{"type":"i32","value":"142"}]}
(assert_return (invoke $Ng "Mg.get_mut") (i32.const 142))
ok, result
{"type":"assert_return","line":79,"action":{"type":"invoke","field":"set_mut","args":[{"type":"i32","value":"241"}]}}
(assert_return (invoke $Mg "set_mut" (i32.const 241)))
exception: get_export_by_name, not found: set_mut
{"type":"assert_return","line":80,"action":{"type":"get","field":"mut_glob"},"expected":[{"type":"i32","value":"241"}]}
(assert_return (get $Mg "mut_glob") (i32.const 241))
exception: invoke: unknown action type, get
{"type":"assert_return","line":81,"action":{"type":"get","field":"Mg.mut_glob"},"expected":[{"type":"i32","value":"241"}]}
(assert_return (get $Ng "Mg.mut_glob") (i32.const 241))
exception: invoke: unknown action type, get
{"type":"assert_return","line":82,"action":{"type":"invoke","field":"get_mut"},"expected":[{"type":"i32","value":"241"}]}
(assert_return (invoke $Mg "get_mut") (i32.const 241))
exception: get_export_by_name, not found: get_mut
{"type":"assert_return","line":83,"action":{"type":"invoke","field":"Mg.get_mut"},"expected":[{"type":"i32","value":"241"}]}
(assert_return (invoke $Ng "Mg.get_mut") (i32.const 241))
error, wrong result, expected 241, got 142
{"type":"assert_unlinkable","line":87,"filename":"linking.7.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"assert_unlinkable","line":91,"filename":"linking.8.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"module","line":96,"filename":"linking.9.wasm"}
loaded
{"type":"register","line":102,"as":"Mref_ex"}
registered
{"type":"module","line":104,"filename":"linking.10.wasm"}
loaded
{"type":"assert_unlinkable","line":113,"filename":"linking.11.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"assert_unlinkable","line":117,"filename":"linking.12.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"assert_unlinkable","line":123,"filename":"linking.13.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"assert_unlinkable","line":127,"filename":"linking.14.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"module","line":134,"filename":"linking.15.wasm"}
loaded
{"type":"register","line":147,"as":"Mt"}
registered
{"type":"module","line":149,"filename":"linking.16.wasm"}
loaded
{"type":"assert_return","line":168,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke $Mt "call" (i32.const 2)) (i32.const 4))
error, wrong result, expected 4, got 5
{"type":"assert_return","line":169,"action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke $Nt "Mt.call" (i32.const 2)) (i32.const 4))
ok, result
{"type":"assert_return","line":170,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke $Nt "call" (i32.const 2)) (i32.const 5))
ok, result
{"type":"assert_return","line":171,"action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke $Nt "call Mt.call" (i32.const 2)) (i32.const 4))
ok, result
{"type":"assert_trap","line":173,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Mt "call" (i32.const 1)) "uninitialized element")
error, expected trap
{"type":"assert_trap","line":174,"text":"uninitialized element","action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "Mt.call" (i32.const 1)) "uninitialized element")
ok, got error: zcl_wasm_call_indirect: null reference, 0, 1
{"type":"assert_return","line":175,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke $Nt "call" (i32.const 1)) (i32.const 5))
ok, result
{"type":"assert_trap","line":176,"text":"uninitialized element","action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "call Mt.call" (i32.const 1)) "uninitialized element")
ok, got error: zcl_wasm_call_indirect: null reference, 0, 1
{"type":"assert_trap","line":178,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Mt "call" (i32.const 0)) "uninitialized element")
error, expected trap
{"type":"assert_trap","line":179,"text":"uninitialized element","action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "Mt.call" (i32.const 0)) "uninitialized element")
ok, got error: zcl_wasm_call_indirect: null reference, 0, 0
{"type":"assert_return","line":180,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke $Nt "call" (i32.const 0)) (i32.const 5))
ok, result
{"type":"assert_trap","line":181,"text":"uninitialized element","action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "call Mt.call" (i32.const 0)) "uninitialized element")
ok, got error: zcl_wasm_call_indirect: null reference, 0, 0
{"type":"assert_trap","line":183,"text":"undefined element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"20"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Mt "call" (i32.const 20)) "undefined element")
ok, got error: zcl_wasm_memory: table_get, out of bounds
{"type":"assert_trap","line":184,"text":"undefined element","action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"20"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "Mt.call" (i32.const 20)) "undefined element")
ok, got error: zcl_wasm_memory: table_get, out of bounds
{"type":"assert_trap","line":185,"text":"undefined element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"7"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "call" (i32.const 7)) "undefined element")
ok, got error: zcl_wasm_memory: table_get, out of bounds
{"type":"assert_trap","line":186,"text":"undefined element","action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"20"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "call Mt.call" (i32.const 20)) "undefined element")
ok, got error: zcl_wasm_memory: table_get, out of bounds
{"type":"assert_return","line":188,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4294967292"}]}
(assert_return (invoke $Nt "call" (i32.const 3)) (i32.const -4))
ok, result
{"type":"assert_trap","line":189,"text":"indirect call type mismatch","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"4"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "call" (i32.const 4)) "indirect call type mismatch")
ok, got error: zcl_wasm_call_indirect type mismatch
{"type":"module","line":191,"filename":"linking.17.wasm"}
loaded
{"type":"assert_return","line":204,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke $Mt "call" (i32.const 3)) (i32.const 4))
exception: instantiate element section, failed to execute instructions: zcl_wasm_memory: table_set, not found, index 0
{"type":"assert_return","line":205,"action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke $Nt "Mt.call" (i32.const 3)) (i32.const 4))
exception: get_export_by_name, not found: Mt.call
{"type":"assert_return","line":206,"action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke $Nt "call Mt.call" (i32.const 3)) (i32.const 4))
exception: get_export_by_name, not found: call Mt.call
{"type":"assert_return","line":207,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"3"}]},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke $Ot "call" (i32.const 3)) (i32.const 4))
exception: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_return","line":209,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4294967292"}]}
(assert_return (invoke $Mt "call" (i32.const 2)) (i32.const -4))
exception: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_return","line":210,"action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4294967292"}]}
(assert_return (invoke $Nt "Mt.call" (i32.const 2)) (i32.const -4))
exception: get_export_by_name, not found: Mt.call
{"type":"assert_return","line":211,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke $Nt "call" (i32.const 2)) (i32.const 5))
exception: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_return","line":212,"action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4294967292"}]}
(assert_return (invoke $Nt "call Mt.call" (i32.const 2)) (i32.const -4))
exception: get_export_by_name, not found: call Mt.call
{"type":"assert_return","line":213,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"4294967292"}]}
(assert_return (invoke $Ot "call" (i32.const 2)) (i32.const -4))
exception: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_return","line":215,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"6"}]}
(assert_return (invoke $Mt "call" (i32.const 1)) (i32.const 6))
exception: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_return","line":216,"action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"6"}]}
(assert_return (invoke $Nt "Mt.call" (i32.const 1)) (i32.const 6))
exception: get_export_by_name, not found: Mt.call
{"type":"assert_return","line":217,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke $Nt "call" (i32.const 1)) (i32.const 5))
exception: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_return","line":218,"action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"6"}]}
(assert_return (invoke $Nt "call Mt.call" (i32.const 1)) (i32.const 6))
exception: get_export_by_name, not found: call Mt.call
{"type":"assert_return","line":219,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"6"}]}
(assert_return (invoke $Ot "call" (i32.const 1)) (i32.const 6))
exception: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_trap","line":221,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Mt "call" (i32.const 0)) "uninitialized element")
ok, got error: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_trap","line":222,"text":"uninitialized element","action":{"type":"invoke","field":"Mt.call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "Mt.call" (i32.const 0)) "uninitialized element")
ok, got error: get_export_by_name, not found: Mt.call
{"type":"assert_return","line":223,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke $Nt "call" (i32.const 0)) (i32.const 5))
exception: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_trap","line":224,"text":"uninitialized element","action":{"type":"invoke","field":"call Mt.call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Nt "call Mt.call" (i32.const 0)) "uninitialized element")
ok, got error: get_export_by_name, not found: call Mt.call
{"type":"assert_trap","line":225,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Ot "call" (i32.const 0)) "uninitialized element")
ok, got error: zcl_wasm_memory: table_get, not found, index 0
{"type":"assert_trap","line":227,"text":"undefined element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"20"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Ot "call" (i32.const 20)) "undefined element")
ok, got error: zcl_wasm_memory: table_get, not found, index 0
{"type":"module","line":229,"filename":"linking.18.wasm"}
loaded
{"type":"module","line":235,"filename":"linking.19.wasm"}
loaded
{"type":"register","line":236,"as":"G1"}
registered
{"type":"module","line":237,"filename":"linking.20.wasm"}
loaded
{"type":"assert_return","line":241,"action":{"type":"get","field":"g"},"expected":[{"type":"i32","value":"5"}]}
(assert_return (get $G2 "g") (i32.const 5))
exception: invoke: unknown action type, get
{"type":"assert_uninstantiable","line":244,"filename":"linking.21.wasm","text":"out of bounds table access"}
got error: import section: no imports provided
{"type":"assert_unlinkable","line":253,"filename":"linking.22.wasm","text":"unknown import"}
todo, assert_unlinkable
{"type":"assert_trap","line":262,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"7"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Mt "call" (i32.const 7)) "uninitialized element")
ok, got error: get_export_by_name, not found: call
{"type":"assert_uninstantiable","line":267,"filename":"linking.23.wasm","text":"out of bounds table access"}
got error: import section: no imports provided
{"type":"assert_return","line":275,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"7"}]},"expected":[{"type":"i32","value":"0"}]}
(assert_return (invoke $Mt "call" (i32.const 7)) (i32.const 0))
exception: get_export_by_name, not found: call
{"type":"assert_trap","line":276,"text":"uninitialized element","action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"8"}]},"expected":[{"type":"i32"}]}
(assert_trap (invoke $Mt "call" (i32.const 8)) "uninitialized element")
ok, got error: get_export_by_name, not found: call
{"type":"assert_uninstantiable","line":279,"filename":"linking.24.wasm","text":"out of bounds memory access"}
got error: import section: no imports provided
{"type":"assert_return","line":288,"action":{"type":"invoke","field":"call","args":[{"type":"i32","value":"7"}]},"expected":[{"type":"i32","value":"0"}]}
(assert_return (invoke $Mt "call" (i32.const 7)) (i32.const 0))
exception: get_export_by_name, not found: call
{"type":"module","line":291,"filename":"linking.25.wasm"}
loaded
{"type":"register","line":295,"as":"Mtable_ex"}
registered
{"type":"module","line":297,"filename":"linking.26.wasm"}
loaded
{"type":"assert_unlinkable","line":303,"filename":"linking.27.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"assert_unlinkable","line":307,"filename":"linking.28.wasm","text":"incompatible import type"}
todo, assert_unlinkable
{"type":"module","line":314,"filename":"linking.29.wasm"}
loaded
{"type":"register","line":322,"as":"Mm"}
registered
{"type":"module","line":324,"filename":"linking.30.wasm"}
loaded
{"type":"assert_return","line":336,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke $Mm "load" (i32.const 12)) (i32.const 2))
error, wrong result, expected 2, got 242
{"type":"assert_return","line":337,"action":{"type":"invoke","field":"Mm.load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"2"}]}
(assert_return (invoke $Nm "Mm.load" (i32.const 12)) (i32.const 2))
ok, result
{"type":"assert_return","line":338,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"242"}]}
(assert_return (invoke $Nm "load" (i32.const 12)) (i32.const 0xf2))
ok, result
{"type":"module","line":340,"filename":"linking.31.wasm"}
loaded
{"type":"assert_return","line":349,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"167"}]}
(assert_return (invoke $Mm "load" (i32.const 12)) (i32.const 0xa7))
ok, result
{"type":"assert_return","line":350,"action":{"type":"invoke","field":"Mm.load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"167"}]}
(assert_return (invoke $Nm "Mm.load" (i32.const 12)) (i32.const 0xa7))
exception: get_export_by_name, not found: Mm.load
{"type":"assert_return","line":351,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"242"}]}
(assert_return (invoke $Nm "load" (i32.const 12)) (i32.const 0xf2))
error, wrong result, expected 242, got 167
{"type":"assert_return","line":352,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"12"}]},"expected":[{"type":"i32","value":"167"}]}
(assert_return (invoke $Om "load" (i32.const 12)) (i32.const 0xa7))
ok, result
{"type":"module","line":354,"filename":"linking.32.wasm"}
loaded
{"type":"assert_uninstantiable","line":360,"filename":"linking.33.wasm","text":"out of bounds memory access"}
got error: import section: no imports provided
{"type":"module","line":367,"filename":"linking.34.wasm"}
loaded
{"type":"assert_return","line":375,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke $Pm "grow" (i32.const 0)) (i32.const 1))
ok, result
{"type":"assert_return","line":376,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"2"}]},"expected":[{"type":"i32","value":"1"}]}
(assert_return (invoke $Pm "grow" (i32.const 2)) (i32.const 1))
ok, result
{"type":"assert_return","line":377,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"3"}]}
(assert_return (invoke $Pm "grow" (i32.const 0)) (i32.const 3))
ok, result
{"type":"assert_return","line":378,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"3"}]}
(assert_return (invoke $Pm "grow" (i32.const 1)) (i32.const 3))
ok, result
{"type":"assert_return","line":379,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"4"}]}
(assert_return (invoke $Pm "grow" (i32.const 1)) (i32.const 4))
ok, result
{"type":"assert_return","line":380,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke $Pm "grow" (i32.const 0)) (i32.const 5))
ok, result
{"type":"assert_return","line":381,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"1"}]},"expected":[{"type":"i32","value":"4294967295"}]}
(assert_return (invoke $Pm "grow" (i32.const 1)) (i32.const -1))
error, wrong result, expected 4294967295, got 5
{"type":"assert_return","line":382,"action":{"type":"invoke","field":"grow","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"5"}]}
(assert_return (invoke $Pm "grow" (i32.const 0)) (i32.const 5))
error, wrong result, expected 5, got 6
{"type":"assert_unlinkable","line":385,"filename":"linking.35.wasm","text":"unknown import"}
todo, assert_unlinkable
{"type":"assert_return","line":393,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"0"}]}
(assert_return (invoke $Mm "load" (i32.const 0)) (i32.const 0))
exception: get_export_by_name, not found: load
{"type":"assert_uninstantiable","line":398,"filename":"linking.36.wasm","text":"out of bounds memory access"}
got error: import section: no imports provided
{"type":"assert_return","line":406,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"97"}]}
(assert_return (invoke $Mm "load" (i32.const 0)) (i32.const 97))
exception: get_export_by_name, not found: load
{"type":"assert_return","line":407,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"327670"}]},"expected":[{"type":"i32","value":"0"}]}
(assert_return (invoke $Mm "load" (i32.const 327670)) (i32.const 0))
exception: get_export_by_name, not found: load
{"type":"assert_uninstantiable","line":410,"filename":"linking.37.wasm","text":"out of bounds table access"}
got error: import section: no imports provided
{"type":"assert_return","line":419,"action":{"type":"invoke","field":"load","args":[{"type":"i32","value":"0"}]},"expected":[{"type":"i32","value":"97"}]}
(assert_return (invoke $Mm "load" (i32.const 0)) (i32.const 97))
exception: get_export_by_name, not found: load
{"type":"module","line":422,"filename":"linking.38.wasm"}
loaded
{"type":"register","line":433,"as":"Ms"}
registered
{"type":"assert_uninstantiable","line":436,"filename":"linking.39.wasm","text":"unreachable"}
got error: import section: no imports provided
{"type":"assert_return","line":452,"action":{"type":"invoke","field":"get memory[0]"},"expected":[{"type":"i32","value":"104"}]}
(assert_return (invoke $Ms "get memory[0]") (i32.const 104)) ;; 'h'
error, wrong result, expected 104, got 0
{"type":"assert_return","line":453,"action":{"type":"invoke","field":"get table[0]"},"expected":[{"type":"i32","value":"57005"}]}
(assert_return (invoke $Ms "get table[0]") (i32.const 0xdead))
exception: zcl_wasm_call_indirect: null reference, 0, 0
Generated at 2024-09-05T14:38:17