2018-10-13 13:31:56 +00:00
|
|
|
(module
|
|
|
|
(table 0 anyfunc)
|
|
|
|
(memory 0)
|
2018-10-15 13:58:23 +00:00
|
|
|
;; (func $for_2 (; 0 ;) (param $0 i32) (result i32)
|
|
|
|
;; (i32.shl
|
|
|
|
;; (get_local $0)
|
|
|
|
;; (i32.const 1)
|
|
|
|
;; )
|
|
|
|
;; )
|
|
|
|
;; (func (export "main") (; 1 ;) (result i32)
|
|
|
|
;; (call $for_2
|
|
|
|
;; (i32.const 2)
|
|
|
|
;; )
|
|
|
|
;; )
|
|
|
|
|
|
|
|
(func (export "multiply") (; 1 ;) (result i32)
|
2018-10-13 13:31:56 +00:00
|
|
|
(i32.shl
|
2018-10-15 13:58:23 +00:00
|
|
|
(i32.const 3)
|
2018-10-13 13:31:56 +00:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-10-15 13:58:23 +00:00
|
|
|
|
2018-10-13 13:31:56 +00:00
|
|
|
)
|
|
|
|
|
2018-10-15 13:58:23 +00:00
|
|
|
(assert_return (invoke "multiply") (i32.const 6))
|