-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeclare.optimized.wat
47 lines (47 loc) · 1.08 KB
/
declare.optimized.wat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(module
(type $v (func))
(type $iiiiv (func (param i32 i32 i32 i32)))
(import "env" "externalConstant" (global $declare/externalConstant i32))
(import "env" "externalFunction" (func $declare/externalFunction))
(import "env" "abort" (func $abort (param i32 i32 i32 i32)))
(import "my" "externalFunction" (func $declare/my.externalFunction))
(import "my" "externalConstant" (global $declare/my.externalConstant i32))
(memory $0 1)
(data (i32.const 4) "\n\00\00\00d\00e\00c\00l\00a\00r\00e\00.\00t\00s")
(export "memory" (memory $0))
(start $start)
(func $start (; 3 ;) (type $v)
(call $declare/externalFunction)
(if
(i32.ne
(get_global $declare/externalConstant)
(i32.const 1)
)
(block
(call $abort
(i32.const 0)
(i32.const 4)
(i32.const 5)
(i32.const 0)
)
(unreachable)
)
)
(call $declare/my.externalFunction)
(if
(i32.ne
(get_global $declare/my.externalConstant)
(i32.const 2)
)
(block
(call $abort
(i32.const 0)
(i32.const 4)
(i32.const 13)
(i32.const 0)
)
(unreachable)
)
)
)
)