forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrace.optimized.wat
More file actions
110 lines (110 loc) · 2.41 KB
/
trace.optimized.wat
File metadata and controls
110 lines (110 loc) · 2.41 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
(module
(type $iiFFFFFv (func (param i32 i32 f64 f64 f64 f64 f64)))
(type $v (func))
(memory $0 1)
(data (i32.const 8) "\0d\00\00\00z\00e\00r\00o\00_\00i\00m\00p\00l\00i\00c\00i\00t")
(data (i32.const 40) "\0d\00\00\00z\00e\00r\00o\00_\00e\00x\00p\00l\00i\00c\00i\00t")
(data (i32.const 72) "\07\00\00\00o\00n\00e\00_\00i\00n\00t")
(data (i32.const 96) "\07\00\00\00t\00w\00o\00_\00i\00n\00t")
(data (i32.const 120) "\t\00\00\00t\00h\00r\00e\00e\00_\00i\00n\00t")
(data (i32.const 144) "\08\00\00\00f\00o\00u\00r\00_\00i\00n\00t")
(data (i32.const 168) "\08\00\00\00f\00i\00v\00e\00_\00i\00n\00t")
(data (i32.const 192) "\08\00\00\00f\00i\00v\00e\00_\00d\00b\00l")
(table 1 anyfunc)
(elem (i32.const 0) $null)
(import "env" "trace" (func $~lib/env/trace (param i32 i32 f64 f64 f64 f64 f64)))
(global $~started (mut i32) (i32.const 0))
(export "memory" (memory $0))
(export "table" (table $0))
(export "main" (func $std/trace/main))
(func $std/trace/main (; 1 ;) (; has Stack IR ;) (type $v)
(if
(i32.eqz
(get_global $~started)
)
(block
(call $start)
(set_global $~started
(i32.const 1)
)
)
)
)
(func $start (; 2 ;) (; has Stack IR ;) (type $v)
(call $~lib/env/trace
(i32.const 8)
(i32.const 0)
(f64.const 0)
(f64.const 0)
(f64.const 0)
(f64.const 0)
(f64.const 0)
)
(call $~lib/env/trace
(i32.const 40)
(i32.const 0)
(f64.const 0)
(f64.const 0)
(f64.const 0)
(f64.const 0)
(f64.const 0)
)
(call $~lib/env/trace
(i32.const 72)
(i32.const 1)
(f64.const 1)
(f64.const 0)
(f64.const 0)
(f64.const 0)
(f64.const 0)
)
(call $~lib/env/trace
(i32.const 96)
(i32.const 2)
(f64.const 1)
(f64.const 2)
(f64.const 0)
(f64.const 0)
(f64.const 0)
)
(call $~lib/env/trace
(i32.const 120)
(i32.const 3)
(f64.const 1)
(f64.const 2)
(f64.const 3)
(f64.const 0)
(f64.const 0)
)
(call $~lib/env/trace
(i32.const 144)
(i32.const 4)
(f64.const 1)
(f64.const 2)
(f64.const 3)
(f64.const 4)
(f64.const 0)
)
(call $~lib/env/trace
(i32.const 168)
(i32.const 5)
(f64.const 1)
(f64.const 2)
(f64.const 3)
(f64.const 4)
(f64.const 5)
)
(call $~lib/env/trace
(i32.const 192)
(i32.const 5)
(f64.const 1.1)
(f64.const 2.2)
(f64.const 3.3)
(f64.const 4.4)
(f64.const 5.5)
)
)
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
(nop)
)
)