-
-
Notifications
You must be signed in to change notification settings - Fork 670
/
Copy pathnew.optimized.wat
71 lines (71 loc) · 986 Bytes
/
new.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
(module
(type $none_=>_none (func))
(memory $0 0)
(export "memory" (memory $0))
(start $~start)
(func $~start
(local $0 i32)
(local $1 i32)
i32.const 1056
memory.size
local.tee $1
i32.const 16
i32.shl
local.tee $0
i32.gt_u
if
local.get $1
i32.const 66591
local.get $0
i32.sub
i32.const -65536
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.get $1
local.get $0
i32.gt_s
select
memory.grow
i32.const 0
i32.lt_s
if
local.get $0
memory.grow
i32.const 0
i32.lt_s
if
unreachable
end
end
end
i32.const 1024
i32.const 16
i32.store
i32.const 1028
i32.const 1
i32.store
i32.const 1032
i32.const 3
i32.store
i32.const 1036
i32.const 8
i32.store
i32.const 1040
i32.const 1
i32.store
i32.const 1044
f32.const 2
f32.store
i32.const 1040
i32.const 1040
i32.load
i32.const 1
i32.add
i32.store
i32.const 1044
f32.const 3
f32.store
)
)