assemblyscript/tests/compiler/declare.optimized.wat

46 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-12-04 19:26:50 +01:00
(module
(type $FUNCSIG$v (func))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(import "declare" "externalConstant" (global $declare/externalConstant i32))
(import "declare" "my.externalConstant" (global $declare/my.externalConstant i32))
(import "declare" "externalFunction" (func $declare/externalFunction))
2019-06-05 23:15:39 +02:00
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(import "declare" "my.externalFunction" (func $declare/my.externalFunction))
(memory $0 1)
2019-06-05 23:15:39 +02:00
(data (i32.const 8) "\14\00\00\00\01\00\00\00\01\00\00\00\14\00\00\00d\00e\00c\00l\00a\00r\00e\00.\00t\00s")
2017-12-04 19:26:50 +01:00
(export "memory" (memory $0))
(start $start)
(func $start:declare (; 3 ;) (type $FUNCSIG$v)
call $declare/externalFunction
global.get $declare/externalConstant
i32.const 1
i32.ne
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 5
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
call $declare/my.externalFunction
global.get $declare/my.externalConstant
i32.const 2
i32.ne
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 13
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
2017-12-27 22:38:32 +01:00
)
(func $start (; 4 ;) (type $FUNCSIG$v)
call $start:declare
)
(func $null (; 5 ;) (type $FUNCSIG$v)
nop
)
2017-12-04 19:26:50 +01:00
)