Debian Codegraph @

tests/snapshots/cli/fuzz1.wast/0.print

raw
1 (module
2 (type $FUNCSIG$i (;0;) (func (result i32)))
3 (type $FUNCSIG$vi (;1;) (func (param i32)))
4 (type $FUNCSIG$vj (;2;) (func (param i64)))
5 (type $FUNCSIG$vf (;3;) (func (param f32)))
6 (type $FUNCSIG$vd (;4;) (func (param f64)))
7 (type $FUNCSIG$j (;5;) (func (result i64)))
8 (type (;6;) (func))
9 (import "fuzzing-support" "log-i32" (func $log-i32 (;0;) (type $FUNCSIG$vi)))
10 (import "fuzzing-support" "log-i64" (func $log-i64 (;1;) (type $FUNCSIG$vj)))
11 (import "fuzzing-support" "log-f32" (func $log-f32 (;2;) (type $FUNCSIG$vf)))
12 (import "fuzzing-support" "log-f64" (func $log-f64 (;3;) (type $FUNCSIG$vd)))
13 (table $0 (;0;) 0 0 funcref)
14 (memory $0 (;0;) 1 1)
15 (global $global$0 (;0;) (mut i32) i32.const -65536)
16 (global $global$1 (;1;) (mut f32) f32.const 0x1.fffffep+127 (;=340282350000000000000000000000000000000;))
17 (global $global$2 (;2;) (mut f32) f32.const -0x1.744e6cp+117 (;=-241640630000000000000000000000000000;))
18 (global $global$3 (;3;) (mut f64) f64.const -nan:0xfffffffffac1b (;=NaN;))
19 (global $hangLimit (;4;) (mut i32) i32.const 10)
20 (export "hashMemory" (func $hashMemory))
21 (export "memory" (memory $0))
22 (export "func_5" (func $func_5))
23 (export "hangLimitInitializer" (func $hangLimitInitializer))
24 (func $hashMemory (;4;) (type $FUNCSIG$i) (result i32)
25 (local $0 i32)
26 i32.const 5381
27 local.set $0
28 local.get $0
29 i32.const 5
30 i32.shl
31 local.get $0
32 i32.add
33 i32.const 0
34 i32.load8_u
35 i32.xor
36 local.set $0
37 local.get $0
38 i32.const 5
39 i32.shl
40 local.get $0
41 i32.add
42 i32.const 0
43 i32.load8_u offset=1
44 i32.xor
45 local.set $0
46 local.get $0
47 i32.const 5
48 i32.shl
49 local.get $0
50 i32.add
51 i32.const 0
52 i32.load8_u offset=2
53 i32.xor
54 local.set $0
55 local.get $0
56 i32.const 5
57 i32.shl
58 local.get $0
59 i32.add
60 i32.const 0
61 i32.load8_u offset=3
62 i32.xor
63 local.set $0
64 local.get $0
65 i32.const 5
66 i32.shl
67 local.get $0
68 i32.add
69 i32.const 0
70 i32.load8_u offset=4
71 i32.xor
72 local.set $0
73 local.get $0
74 i32.const 5
75 i32.shl
76 local.get $0
77 i32.add
78 i32.const 0
79 i32.load8_u offset=5
80 i32.xor
81 local.set $0
82 local.get $0
83 i32.const 5
84 i32.shl
85 local.get $0
86 i32.add
87 i32.const 0
88 i32.load8_u offset=6
89 i32.xor
90 local.set $0
91 local.get $0
92 i32.const 5
93 i32.shl
94 local.get $0
95 i32.add
96 i32.const 0
97 i32.load8_u offset=7
98 i32.xor
99 local.set $0
100 local.get $0
101 i32.const 5
102 i32.shl
103 local.get $0
104 i32.add
105 i32.const 0
106 i32.load8_u offset=8
107 i32.xor
108 local.set $0
109 local.get $0
110 i32.const 5
111 i32.shl
112 local.get $0
113 i32.add
114 i32.const 0
115 i32.load8_u offset=9
116 i32.xor
117 local.set $0
118 local.get $0
119 i32.const 5
120 i32.shl
121 local.get $0
122 i32.add
123 i32.const 0
124 i32.load8_u offset=10
125 i32.xor
126 local.set $0
127 local.get $0
128 i32.const 5
129 i32.shl
130 local.get $0
131 i32.add
132 i32.const 0
133 i32.load8_u offset=11
134 i32.xor
135 local.set $0
136 local.get $0
137 i32.const 5
138 i32.shl
139 local.get $0
140 i32.add
141 i32.const 0
142 i32.load8_u offset=12
143 i32.xor
144 local.set $0
145 local.get $0
146 i32.const 5
147 i32.shl
148 local.get $0
149 i32.add
150 i32.const 0
151 i32.load8_u offset=13
152 i32.xor
153 local.set $0
154 local.get $0
155 i32.const 5
156 i32.shl
157 local.get $0
158 i32.add
159 i32.const 0
160 i32.load8_u offset=14
161 i32.xor
162 local.set $0
163 local.get $0
164 i32.const 5
165 i32.shl
166 local.get $0
167 i32.add
168 i32.const 0
169 i32.load8_u offset=15
170 i32.xor
171 local.set $0
172 local.get $0
173 )
174 (func $func_5 (;5;) (type $FUNCSIG$j) (result i64)
175 (local $0 i32) (local $1 i64)
176 block ;; label = @1
177 global.get $hangLimit
178 i32.eqz
179 if ;; label = @2
180 i64.const 4293531749
181 return
182 end
183 global.get $hangLimit
184 i32.const 1
185 i32.sub
186 global.set $hangLimit
187 end
188 block $label$0 (result i64)
189 nop
190 block $label$1 (result i64)
191 i32.const -2147483647
192 if (result i32) ;; label = @3
193 local.get $0
194 else
195 block $label$4 (result i32)
196 block $label$5 (result i32)
197 loop $label$6 (result i32)
198 block ;; label = @7
199 global.get $hangLimit
200 i32.eqz
201 if ;; label = @8
202 i64.const -32766
203 return
204 end
205 global.get $hangLimit
206 i32.const 1
207 i32.sub
208 global.set $hangLimit
209 end
210 block (result i32) ;; label = @7
211 nop
212 i32.const 8388608
213 i32.eqz
214 br_if $label$6
215 local.get $0
216 end
217 end
218 i32.eqz
219 if (result f32) ;; label = @6
220 block $label$7 (result f32)
221 f32.const -nan:0x7fffda (;=NaN;)
222 end
223 else
224 f32.const 0x1p+32 (;=4294967300;)
225 end
226 call $log-f32
227 i32.const -2147483648
228 end
229 if (result i32) ;; label = @5
230 i32.const -1073741824
231 else
232 local.get $0
233 end
234 global.get $global$0
235 i32.eqz
236 br_if $label$4
237 end
238 end
239 local.tee $0
240 local.set $0
241 i64.const 255
242 end
243 local.tee $1
244 end
245 )
246 (func $hangLimitInitializer (;6;) (type 6)
247 i32.const 10
248 global.set $hangLimit
249 )
250 (data (;0;) (i32.const 0) "\00\00\00\00")
251 )