]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/passes/print-call-graph.txt
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / passes / print-call-graph.txt
1 digraph call {
2 rankdir = LR;
3 subgraph cluster_key {
4 node [shape=box, fontname=courier, fontsize=10];
5 edge [fontname=courier, fontsize=10];
6 label = "Key";
7 "Import" [style="filled", fillcolor="turquoise"];
8 "Export" [style="filled", fillcolor="gray"];
9 "Indirect Target" [style="filled, rounded", fillcolor="white"];
10 "A" -> "B" [style="filled, rounded", label = "Direct Call"];
11 }
12
13 node [shape=box, fontname=courier, fontsize=10];
14 "$stackAlloc" [style="filled", fillcolor="white"];
15 "$stackSave" [style="filled", fillcolor="white"];
16 "$stackRestore" [style="filled", fillcolor="white"];
17 "$establishStackSpace" [style="filled", fillcolor="white"];
18 "$setThrew" [style="filled", fillcolor="white"];
19 "$setTempRet0" [style="filled", fillcolor="white"];
20 "$getTempRet0" [style="filled", fillcolor="white"];
21 "$_malloc" [style="filled", fillcolor="white"];
22 "$_free" [style="filled", fillcolor="white"];
23 "$_main" [style="filled", fillcolor="white"];
24 "$___stdio_close" [style="filled", fillcolor="white"];
25 "$___stdio_write" [style="filled", fillcolor="white"];
26 "$___stdio_seek" [style="filled", fillcolor="white"];
27 "$___syscall_ret" [style="filled", fillcolor="white"];
28 "$___errno_location" [style="filled", fillcolor="white"];
29 "$_cleanup_387" [style="filled", fillcolor="white"];
30 "$___stdout_write" [style="filled", fillcolor="white"];
31 "$_fflush" [style="filled", fillcolor="white"];
32 "$___fflush_unlocked" [style="filled", fillcolor="white"];
33 "$__Znwj" [style="filled", fillcolor="white"];
34 "$__ZSt15get_new_handlerv" [style="filled", fillcolor="white"];
35 "$runPostSets" [style="filled", fillcolor="white"];
36 "$_memset" [style="filled", fillcolor="white"];
37 "$_memcpy" [style="filled", fillcolor="white"];
38 "$_pthread_self" [style="filled", fillcolor="white"];
39 "$dynCall_ii" [style="filled", fillcolor="white"];
40 "$dynCall_iiii" [style="filled", fillcolor="white"];
41 "$dynCall_vi" [style="filled", fillcolor="white"];
42 "$dynCall_v" [style="filled", fillcolor="white"];
43 "$b0" [style="filled", fillcolor="white"];
44 "$b1" [style="filled", fillcolor="white"];
45 "$b2" [style="filled", fillcolor="white"];
46 "$b3" [style="filled", fillcolor="white"];
47 "$abort" [style="filled", fillcolor="turquoise"];
48 "$_pthread_cleanup_pop" [style="filled", fillcolor="turquoise"];
49 "$___lock" [style="filled", fillcolor="turquoise"];
50 "$___syscall6" [style="filled", fillcolor="turquoise"];
51 "$_pthread_cleanup_push" [style="filled", fillcolor="turquoise"];
52 "$___syscall140" [style="filled", fillcolor="turquoise"];
53 "$_emscripten_memcpy_big" [style="filled", fillcolor="turquoise"];
54 "$___syscall54" [style="filled", fillcolor="turquoise"];
55 "$___unlock" [style="filled", fillcolor="turquoise"];
56 "$___syscall146" [style="filled", fillcolor="turquoise"];
57 "$_fflush" [style="filled", fillcolor="gray"];
58 "$_main" [style="filled", fillcolor="gray"];
59 "$_pthread_self" [style="filled", fillcolor="gray"];
60 "$_memset" [style="filled", fillcolor="gray"];
61 "$_malloc" [style="filled", fillcolor="gray"];
62 "$_memcpy" [style="filled", fillcolor="gray"];
63 "$_free" [style="filled", fillcolor="gray"];
64 "$___errno_location" [style="filled", fillcolor="gray"];
65 "$runPostSets" [style="filled", fillcolor="gray"];
66 "$stackAlloc" [style="filled", fillcolor="gray"];
67 "$stackSave" [style="filled", fillcolor="gray"];
68 "$stackRestore" [style="filled", fillcolor="gray"];
69 "$establishStackSpace" [style="filled", fillcolor="gray"];
70 "$setThrew" [style="filled", fillcolor="gray"];
71 "$setTempRet0" [style="filled", fillcolor="gray"];
72 "$getTempRet0" [style="filled", fillcolor="gray"];
73 "$dynCall_ii" [style="filled", fillcolor="gray"];
74 "$dynCall_iiii" [style="filled", fillcolor="gray"];
75 "$dynCall_vi" [style="filled", fillcolor="gray"];
76 "$dynCall_v" [style="filled", fillcolor="gray"];
77 "$_main" -> "$__Znwj"; // call
78 "$___stdio_close" -> "$___syscall6"; // callImport
79 "$___stdio_close" -> "$___syscall_ret"; // call
80 "$___stdio_write" -> "$_pthread_cleanup_push"; // callImport
81 "$___stdio_write" -> "$___syscall146"; // callImport
82 "$___stdio_write" -> "$___syscall_ret"; // call
83 "$___stdio_write" -> "$_pthread_cleanup_pop"; // callImport
84 "$___stdio_seek" -> "$___syscall140"; // callImport
85 "$___stdio_seek" -> "$___syscall_ret"; // call
86 "$___syscall_ret" -> "$___errno_location"; // call
87 "$___errno_location" -> "$_pthread_self"; // call
88 "$_cleanup_387" -> "$_free"; // call
89 "$___stdout_write" -> "$___syscall54"; // callImport
90 "$___stdout_write" -> "$___stdio_write"; // call
91 "$_fflush" -> "$___fflush_unlocked"; // call
92 "$_fflush" -> "$_malloc"; // call
93 "$_fflush" -> "$_free"; // call
94 "$_fflush" -> "$_fflush"; // call
95 "$_fflush" -> "$___lock"; // callImport
96 "$_fflush" -> "$___unlock"; // callImport
97 "$__Znwj" -> "$_malloc"; // call
98 "$__Znwj" -> "$__ZSt15get_new_handlerv"; // call
99 "$_memcpy" -> "$_emscripten_memcpy_big"; // callImport
100 "$b0" -> "$abort"; // callImport
101 "$b1" -> "$abort"; // callImport
102 "$b2" -> "$abort"; // callImport
103 "$b3" -> "$abort"; // callImport
104 "$b0" [style="filled, rounded"];
105 "$___stdio_close" [style="filled, rounded"];
106 "$b1" [style="filled, rounded"];
107 "$___stdout_write" [style="filled, rounded"];
108 "$___stdio_seek" [style="filled, rounded"];
109 "$___stdio_write" [style="filled, rounded"];
110 "$b2" [style="filled, rounded"];
111 "$_cleanup_387" [style="filled, rounded"];
112 "$b3" [style="filled, rounded"];
113 }
114 (module
115 (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
116 (type $FUNCSIG$v (func))
117 (type $FUNCSIG$ii (func (param i32) (result i32)))
118 (type $FUNCSIG$vi (func (param i32)))
119 (type $FUNCSIG$iii (func (param i32 i32) (result i32)))
120 (type $FUNCSIG$vii (func (param i32 i32)))
121 (type $6 (func (result i32)))
122 (type $7 (func (param i32 i32 i32 i32) (result i32)))
123 (import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32))
124 (import "env" "STACK_MAX" (global $STACK_MAX$asm2wasm$import i32))
125 (import "env" "DYNAMICTOP_PTR" (global $DYNAMICTOP_PTR$asm2wasm$import i32))
126 (import "env" "tempDoublePtr" (global $tempDoublePtr$asm2wasm$import i32))
127 (import "env" "ABORT" (global $ABORT$asm2wasm$import i32))
128 (import "global" "NaN" (global $nan$asm2wasm$import f64))
129 (import "global" "Infinity" (global $inf$asm2wasm$import f64))
130 (import "env" "abort" (func $abort (param i32)))
131 (import "env" "_pthread_cleanup_pop" (func $_pthread_cleanup_pop (param i32)))
132 (import "env" "___lock" (func $___lock (param i32)))
133 (import "env" "___syscall6" (func $___syscall6 (param i32 i32) (result i32)))
134 (import "env" "_pthread_cleanup_push" (func $_pthread_cleanup_push (param i32 i32)))
135 (import "env" "___syscall140" (func $___syscall140 (param i32 i32) (result i32)))
136 (import "env" "_emscripten_memcpy_big" (func $_emscripten_memcpy_big (param i32 i32 i32) (result i32)))
137 (import "env" "___syscall54" (func $___syscall54 (param i32 i32) (result i32)))
138 (import "env" "___unlock" (func $___unlock (param i32)))
139 (import "env" "___syscall146" (func $___syscall146 (param i32 i32) (result i32)))
140 (import "env" "memory" (memory $0 256 256))
141 (import "env" "table" (table 9 9 anyfunc))
142 (import "env" "memoryBase" (global $memoryBase i32))
143 (import "env" "tableBase" (global $tableBase i32))
144 (global $STACKTOP (mut i32) (get_global $STACKTOP$asm2wasm$import))
145 (global $STACK_MAX (mut i32) (get_global $STACK_MAX$asm2wasm$import))
146 (global $DYNAMICTOP_PTR (mut i32) (get_global $DYNAMICTOP_PTR$asm2wasm$import))
147 (global $tempDoublePtr (mut i32) (get_global $tempDoublePtr$asm2wasm$import))
148 (global $ABORT (mut i32) (get_global $ABORT$asm2wasm$import))
149 (global $__THREW__ (mut i32) (i32.const 0))
150 (global $threwValue (mut i32) (i32.const 0))
151 (global $setjmpId (mut i32) (i32.const 0))
152 (global $undef (mut i32) (i32.const 0))
153 (global $nan (mut f64) (get_global $nan$asm2wasm$import))
154 (global $inf (mut f64) (get_global $inf$asm2wasm$import))
155 (global $tempInt (mut i32) (i32.const 0))
156 (global $tempBigInt (mut i32) (i32.const 0))
157 (global $tempBigIntP (mut i32) (i32.const 0))
158 (global $tempBigIntS (mut i32) (i32.const 0))
159 (global $tempBigIntR (mut f64) (f64.const 0))
160 (global $tempBigIntI (mut i32) (i32.const 0))
161 (global $tempBigIntD (mut i32) (i32.const 0))
162 (global $tempValue (mut i32) (i32.const 0))
163 (global $tempDouble (mut f64) (f64.const 0))
164 (global $tempRet0 (mut i32) (i32.const 0))
165 (global $tempFloat (mut f32) (f32.const 0))
166 (global $f0 (mut f32) (f32.const 0))
167 (elem (i32.const 0) $b0 $___stdio_close $b1 $___stdout_write $___stdio_seek $___stdio_write $b2 $_cleanup_387 $b3)
168 (data (get_global $memoryBase) "\05\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00\b0\04\00\00\00\04\00\00\00\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\n\ff\ff\ff\ff\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\04")
169 (export "_fflush" (func $_fflush))
170 (export "_main" (func $_main))
171 (export "_pthread_self" (func $_pthread_self))
172 (export "_memset" (func $_memset))
173 (export "_malloc" (func $_malloc))
174 (export "_memcpy" (func $_memcpy))
175 (export "_free" (func $_free))
176 (export "___errno_location" (func $___errno_location))
177 (export "runPostSets" (func $runPostSets))
178 (export "stackAlloc" (func $stackAlloc))
179 (export "stackSave" (func $stackSave))
180 (export "stackRestore" (func $stackRestore))
181 (export "establishStackSpace" (func $establishStackSpace))
182 (export "setThrew" (func $setThrew))
183 (export "setTempRet0" (func $setTempRet0))
184 (export "getTempRet0" (func $getTempRet0))
185 (export "dynCall_ii" (func $dynCall_ii))
186 (export "dynCall_iiii" (func $dynCall_iiii))
187 (export "dynCall_vi" (func $dynCall_vi))
188 (export "dynCall_v" (func $dynCall_v))
189 (func $stackAlloc (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
190 (local $1 i32)
191 (set_local $1
192 (get_global $STACKTOP)
193 )
194 (set_global $STACKTOP
195 (i32.add
196 (get_global $STACKTOP)
197 (get_local $0)
198 )
199 )
200 (set_global $STACKTOP
201 (i32.and
202 (i32.add
203 (get_global $STACKTOP)
204 (i32.const 15)
205 )
206 (i32.const -16)
207 )
208 )
209 (get_local $1)
210 )
211 (func $stackSave (; 11 ;) (type $6) (result i32)
212 (get_global $STACKTOP)
213 )
214 (func $stackRestore (; 12 ;) (type $FUNCSIG$vi) (param $0 i32)
215 (set_global $STACKTOP
216 (get_local $0)
217 )
218 )
219 (func $establishStackSpace (; 13 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
220 (set_global $STACKTOP
221 (get_local $0)
222 )
223 (set_global $STACK_MAX
224 (get_local $1)
225 )
226 )
227 (func $setThrew (; 14 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
228 (if
229 (i32.eqz
230 (get_global $__THREW__)
231 )
232 (block $block
233 (set_global $__THREW__
234 (get_local $0)
235 )
236 (set_global $threwValue
237 (get_local $1)
238 )
239 )
240 )
241 )
242 (func $setTempRet0 (; 15 ;) (type $FUNCSIG$vi) (param $0 i32)
243 (set_global $tempRet0
244 (get_local $0)
245 )
246 )
247 (func $getTempRet0 (; 16 ;) (type $6) (result i32)
248 (get_global $tempRet0)
249 )
250 (func $_malloc (; 17 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
251 (i32.const 0)
252 )
253 (func $_free (; 18 ;) (type $FUNCSIG$vi) (param $0 i32)
254 (nop)
255 )
256 (func $_main (; 19 ;) (type $6) (result i32)
257 (local $0 i32)
258 (i64.store align=4
259 (tee_local $0
260 (call $__Znwj
261 (i32.const 8)
262 )
263 )
264 (i64.const 0)
265 )
266 (get_local $0)
267 )
268 (func $___stdio_close (; 20 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
269 (local $1 i32)
270 (local $2 i32)
271 (set_local $1
272 (get_global $STACKTOP)
273 )
274 (set_global $STACKTOP
275 (i32.add
276 (get_global $STACKTOP)
277 (i32.const 16)
278 )
279 )
280 (i32.store
281 (tee_local $2
282 (get_local $1)
283 )
284 (i32.load offset=60
285 (get_local $0)
286 )
287 )
288 (set_local $0
289 (call $___syscall_ret
290 (call $___syscall6
291 (i32.const 6)
292 (get_local $2)
293 )
294 )
295 )
296 (set_global $STACKTOP
297 (get_local $1)
298 )
299 (get_local $0)
300 )
301 (func $___stdio_write (; 21 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
302 (local $3 i32)
303 (local $4 i32)
304 (local $5 i32)
305 (local $6 i32)
306 (local $7 i32)
307 (local $8 i32)
308 (local $9 i32)
309 (local $10 i32)
310 (local $11 i32)
311 (local $12 i32)
312 (local $13 i32)
313 (local $14 i32)
314 (set_local $7
315 (get_global $STACKTOP)
316 )
317 (set_global $STACKTOP
318 (i32.add
319 (get_global $STACKTOP)
320 (i32.const 48)
321 )
322 )
323 (set_local $8
324 (i32.add
325 (get_local $7)
326 (i32.const 16)
327 )
328 )
329 (set_local $9
330 (get_local $7)
331 )
332 (i32.store
333 (tee_local $3
334 (i32.add
335 (get_local $7)
336 (i32.const 32)
337 )
338 )
339 (tee_local $5
340 (i32.load
341 (tee_local $6
342 (i32.add
343 (get_local $0)
344 (i32.const 28)
345 )
346 )
347 )
348 )
349 )
350 (i32.store offset=4
351 (get_local $3)
352 (tee_local $4
353 (i32.sub
354 (i32.load
355 (tee_local $10
356 (i32.add
357 (get_local $0)
358 (i32.const 20)
359 )
360 )
361 )
362 (get_local $5)
363 )
364 )
365 )
366 (i32.store offset=8
367 (get_local $3)
368 (get_local $1)
369 )
370 (i32.store offset=12
371 (get_local $3)
372 (get_local $2)
373 )
374 (set_local $13
375 (i32.add
376 (get_local $0)
377 (i32.const 60)
378 )
379 )
380 (set_local $14
381 (i32.add
382 (get_local $0)
383 (i32.const 44)
384 )
385 )
386 (set_local $1
387 (get_local $3)
388 )
389 (set_local $5
390 (i32.const 2)
391 )
392 (set_local $11
393 (i32.add
394 (get_local $4)
395 (get_local $2)
396 )
397 )
398 (set_local $0
399 (block $jumpthreading$outer$1 (result i32)
400 (block $jumpthreading$inner$1
401 (block $jumpthreading$inner$0
402 (loop $while-in
403 (br_if $jumpthreading$inner$0
404 (i32.eq
405 (get_local $11)
406 (tee_local $4
407 (if (result i32)
408 (i32.load
409 (i32.const 1140)
410 )
411 (block $block (result i32)
412 (call $_pthread_cleanup_push
413 (i32.const 1)
414 (get_local $0)
415 )
416 (i32.store
417 (get_local $9)
418 (i32.load
419 (get_local $13)
420 )
421 )
422 (i32.store offset=4
423 (get_local $9)
424 (get_local $1)
425 )
426 (i32.store offset=8
427 (get_local $9)
428 (get_local $5)
429 )
430 (set_local $3
431 (call $___syscall_ret
432 (call $___syscall146
433 (i32.const 146)
434 (get_local $9)
435 )
436 )
437 )
438 (call $_pthread_cleanup_pop
439 (i32.const 0)
440 )
441 (get_local $3)
442 )
443 (block $block0 (result i32)
444 (i32.store
445 (get_local $8)
446 (i32.load
447 (get_local $13)
448 )
449 )
450 (i32.store offset=4
451 (get_local $8)
452 (get_local $1)
453 )
454 (i32.store offset=8
455 (get_local $8)
456 (get_local $5)
457 )
458 (call $___syscall_ret
459 (call $___syscall146
460 (i32.const 146)
461 (get_local $8)
462 )
463 )
464 )
465 )
466 )
467 )
468 )
469 (br_if $jumpthreading$inner$1
470 (i32.lt_s
471 (get_local $4)
472 (i32.const 0)
473 )
474 )
475 (set_local $11
476 (i32.sub
477 (get_local $11)
478 (get_local $4)
479 )
480 )
481 (set_local $1
482 (if (result i32)
483 (i32.gt_u
484 (get_local $4)
485 (tee_local $12
486 (i32.load offset=4
487 (get_local $1)
488 )
489 )
490 )
491 (block $block2 (result i32)
492 (i32.store
493 (get_local $6)
494 (tee_local $3
495 (i32.load
496 (get_local $14)
497 )
498 )
499 )
500 (i32.store
501 (get_local $10)
502 (get_local $3)
503 )
504 (set_local $4
505 (i32.sub
506 (get_local $4)
507 (get_local $12)
508 )
509 )
510 (set_local $3
511 (i32.add
512 (get_local $1)
513 (i32.const 8)
514 )
515 )
516 (set_local $5
517 (i32.add
518 (get_local $5)
519 (i32.const -1)
520 )
521 )
522 (i32.load offset=12
523 (get_local $1)
524 )
525 )
526 (if (result i32)
527 (i32.eq
528 (get_local $5)
529 (i32.const 2)
530 )
531 (block $block4 (result i32)
532 (i32.store
533 (get_local $6)
534 (i32.add
535 (i32.load
536 (get_local $6)
537 )
538 (get_local $4)
539 )
540 )
541 (set_local $3
542 (get_local $1)
543 )
544 (set_local $5
545 (i32.const 2)
546 )
547 (get_local $12)
548 )
549 (block $block5 (result i32)
550 (set_local $3
551 (get_local $1)
552 )
553 (get_local $12)
554 )
555 )
556 )
557 )
558 (i32.store
559 (get_local $3)
560 (i32.add
561 (i32.load
562 (get_local $3)
563 )
564 (get_local $4)
565 )
566 )
567 (i32.store offset=4
568 (get_local $3)
569 (i32.sub
570 (get_local $1)
571 (get_local $4)
572 )
573 )
574 (set_local $1
575 (get_local $3)
576 )
577 (br $while-in)
578 )
579 )
580 (i32.store offset=16
581 (get_local $0)
582 (i32.add
583 (tee_local $1
584 (i32.load
585 (get_local $14)
586 )
587 )
588 (i32.load offset=48
589 (get_local $0)
590 )
591 )
592 )
593 (i32.store
594 (get_local $6)
595 (tee_local $0
596 (get_local $1)
597 )
598 )
599 (i32.store
600 (get_local $10)
601 (get_local $0)
602 )
603 (br $jumpthreading$outer$1
604 (get_local $2)
605 )
606 )
607 (i32.store offset=16
608 (get_local $0)
609 (i32.const 0)
610 )
611 (i32.store
612 (get_local $6)
613 (i32.const 0)
614 )
615 (i32.store
616 (get_local $10)
617 (i32.const 0)
618 )
619 (i32.store
620 (get_local $0)
621 (i32.or
622 (i32.load
623 (get_local $0)
624 )
625 (i32.const 32)
626 )
627 )
628 (select
629 (i32.const 0)
630 (i32.sub
631 (get_local $2)
632 (i32.load offset=4
633 (get_local $1)
634 )
635 )
636 (i32.eq
637 (get_local $5)
638 (i32.const 2)
639 )
640 )
641 )
642 )
643 (set_global $STACKTOP
644 (get_local $7)
645 )
646 (get_local $0)
647 )
648 (func $___stdio_seek (; 22 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
649 (local $3 i32)
650 (local $4 i32)
651 (set_local $4
652 (get_global $STACKTOP)
653 )
654 (set_global $STACKTOP
655 (i32.add
656 (get_global $STACKTOP)
657 (i32.const 32)
658 )
659 )
660 (i32.store
661 (tee_local $3
662 (get_local $4)
663 )
664 (i32.load offset=60
665 (get_local $0)
666 )
667 )
668 (i32.store offset=4
669 (get_local $3)
670 (i32.const 0)
671 )
672 (i32.store offset=8
673 (get_local $3)
674 (get_local $1)
675 )
676 (i32.store offset=12
677 (get_local $3)
678 (tee_local $0
679 (i32.add
680 (get_local $4)
681 (i32.const 20)
682 )
683 )
684 )
685 (i32.store offset=16
686 (get_local $3)
687 (get_local $2)
688 )
689 (set_local $0
690 (if (result i32)
691 (i32.lt_s
692 (call $___syscall_ret
693 (call $___syscall140
694 (i32.const 140)
695 (get_local $3)
696 )
697 )
698 (i32.const 0)
699 )
700 (block $block (result i32)
701 (i32.store
702 (get_local $0)
703 (i32.const -1)
704 )
705 (i32.const -1)
706 )
707 (i32.load
708 (get_local $0)
709 )
710 )
711 )
712 (set_global $STACKTOP
713 (get_local $4)
714 )
715 (get_local $0)
716 )
717 (func $___syscall_ret (; 23 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
718 (if (result i32)
719 (i32.gt_u
720 (get_local $0)
721 (i32.const -4096)
722 )
723 (block $block (result i32)
724 (i32.store
725 (call $___errno_location)
726 (i32.sub
727 (i32.const 0)
728 (get_local $0)
729 )
730 )
731 (i32.const -1)
732 )
733 (get_local $0)
734 )
735 )
736 (func $___errno_location (; 24 ;) (type $6) (result i32)
737 (if (result i32)
738 (i32.load
739 (i32.const 1140)
740 )
741 (i32.load offset=64
742 (call $_pthread_self)
743 )
744 (i32.const 1184)
745 )
746 )
747 (func $_cleanup_387 (; 25 ;) (type $FUNCSIG$vi) (param $0 i32)
748 (if
749 (i32.eqz
750 (i32.load offset=68
751 (get_local $0)
752 )
753 )
754 (call $_free
755 (get_local $0)
756 )
757 )
758 )
759 (func $___stdout_write (; 26 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
760 (local $3 i32)
761 (local $4 i32)
762 (local $5 i32)
763 (set_local $4
764 (get_global $STACKTOP)
765 )
766 (set_global $STACKTOP
767 (i32.add
768 (get_global $STACKTOP)
769 (i32.const 80)
770 )
771 )
772 (set_local $3
773 (get_local $4)
774 )
775 (set_local $5
776 (i32.add
777 (get_local $4)
778 (i32.const 12)
779 )
780 )
781 (i32.store offset=36
782 (get_local $0)
783 (i32.const 3)
784 )
785 (if
786 (i32.eqz
787 (i32.and
788 (i32.load
789 (get_local $0)
790 )
791 (i32.const 64)
792 )
793 )
794 (block $block
795 (i32.store
796 (get_local $3)
797 (i32.load offset=60
798 (get_local $0)
799 )
800 )
801 (i32.store offset=4
802 (get_local $3)
803 (i32.const 21505)
804 )
805 (i32.store offset=8
806 (get_local $3)
807 (get_local $5)
808 )
809 (if
810 (call $___syscall54
811 (i32.const 54)
812 (get_local $3)
813 )
814 (i32.store8 offset=75
815 (get_local $0)
816 (i32.const -1)
817 )
818 )
819 )
820 )
821 (set_local $0
822 (call $___stdio_write
823 (get_local $0)
824 (get_local $1)
825 (get_local $2)
826 )
827 )
828 (set_global $STACKTOP
829 (get_local $4)
830 )
831 (get_local $0)
832 )
833 (func $_fflush (; 27 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
834 (local $1 i32)
835 (local $2 i32)
836 (block $do-once (result i32)
837 (if (result i32)
838 (get_local $0)
839 (block $block (result i32)
840 (if
841 (i32.le_s
842 (i32.load offset=76
843 (get_local $0)
844 )
845 (i32.const -1)
846 )
847 (br $do-once
848 (call $___fflush_unlocked
849 (get_local $0)
850 )
851 )
852 )
853 (set_local $2
854 (i32.eqz
855 (call $_malloc
856 (get_local $0)
857 )
858 )
859 )
860 (set_local $1
861 (call $___fflush_unlocked
862 (get_local $0)
863 )
864 )
865 (if (result i32)
866 (get_local $2)
867 (get_local $1)
868 (block $block9 (result i32)
869 (call $_free
870 (get_local $0)
871 )
872 (get_local $1)
873 )
874 )
875 )
876 (block $block10 (result i32)
877 (set_local $0
878 (if (result i32)
879 (i32.load
880 (i32.const 1136)
881 )
882 (call $_fflush
883 (i32.load
884 (i32.const 1136)
885 )
886 )
887 (i32.const 0)
888 )
889 )
890 (call $___lock
891 (i32.const 1168)
892 )
893 (if
894 (tee_local $1
895 (i32.load
896 (i32.const 1164)
897 )
898 )
899 (loop $while-in
900 (set_local $2
901 (if (result i32)
902 (i32.gt_s
903 (i32.load offset=76
904 (get_local $1)
905 )
906 (i32.const -1)
907 )
908 (call $_malloc
909 (get_local $1)
910 )
911 (i32.const 0)
912 )
913 )
914 (set_local $0
915 (if (result i32)
916 (i32.gt_u
917 (i32.load offset=20
918 (get_local $1)
919 )
920 (i32.load offset=28
921 (get_local $1)
922 )
923 )
924 (i32.or
925 (call $___fflush_unlocked
926 (get_local $1)
927 )
928 (get_local $0)
929 )
930 (get_local $0)
931 )
932 )
933 (if
934 (get_local $2)
935 (call $_free
936 (get_local $1)
937 )
938 )
939 (br_if $while-in
940 (tee_local $1
941 (i32.load offset=56
942 (get_local $1)
943 )
944 )
945 )
946 )
947 )
948 (call $___unlock
949 (i32.const 1168)
950 )
951 (get_local $0)
952 )
953 )
954 )
955 )
956 (func $___fflush_unlocked (; 28 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
957 (local $1 i32)
958 (local $2 i32)
959 (local $3 i32)
960 (local $4 i32)
961 (local $5 i32)
962 (local $6 i32)
963 (block $jumpthreading$outer$0 (result i32)
964 (block $jumpthreading$inner$0
965 (br_if $jumpthreading$inner$0
966 (i32.le_u
967 (i32.load
968 (tee_local $1
969 (i32.add
970 (get_local $0)
971 (i32.const 20)
972 )
973 )
974 )
975 (i32.load
976 (tee_local $2
977 (i32.add
978 (get_local $0)
979 (i32.const 28)
980 )
981 )
982 )
983 )
984 )
985 (drop
986 (call_indirect (type $FUNCSIG$iiii)
987 (get_local $0)
988 (i32.const 0)
989 (i32.const 0)
990 (i32.add
991 (i32.and
992 (i32.load offset=36
993 (get_local $0)
994 )
995 (i32.const 3)
996 )
997 (i32.const 2)
998 )
999 )
1000 )
1001 (br_if $jumpthreading$inner$0
1002 (i32.load
1003 (get_local $1)
1004 )
1005 )
1006 (br $jumpthreading$outer$0
1007 (i32.const -1)
1008 )
1009 )
1010 (if
1011 (i32.lt_u
1012 (tee_local $4
1013 (i32.load
1014 (tee_local $3
1015 (i32.add
1016 (get_local $0)
1017 (i32.const 4)
1018 )
1019 )
1020 )
1021 )
1022 (tee_local $6
1023 (i32.load
1024 (tee_local $5
1025 (i32.add
1026 (get_local $0)
1027 (i32.const 8)
1028 )
1029 )
1030 )
1031 )
1032 )
1033 (drop
1034 (call_indirect (type $FUNCSIG$iiii)
1035 (get_local $0)
1036 (i32.sub
1037 (get_local $4)
1038 (get_local $6)
1039 )
1040 (i32.const 1)
1041 (i32.add
1042 (i32.and
1043 (i32.load offset=40
1044 (get_local $0)
1045 )
1046 (i32.const 3)
1047 )
1048 (i32.const 2)
1049 )
1050 )
1051 )
1052 )
1053 (i32.store offset=16
1054 (get_local $0)
1055 (i32.const 0)
1056 )
1057 (i32.store
1058 (get_local $2)
1059 (i32.const 0)
1060 )
1061 (i32.store
1062 (get_local $1)
1063 (i32.const 0)
1064 )
1065 (i32.store
1066 (get_local $5)
1067 (i32.const 0)
1068 )
1069 (i32.store
1070 (get_local $3)
1071 (i32.const 0)
1072 )
1073 (i32.const 0)
1074 )
1075 )
1076 (func $__Znwj (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
1077 (local $1 i32)
1078 (set_local $1
1079 (select
1080 (get_local $0)
1081 (i32.const 1)
1082 (get_local $0)
1083 )
1084 )
1085 (loop $while-in
1086 (block $while-out
1087 (br_if $while-out
1088 (tee_local $0
1089 (call $_malloc
1090 (get_local $1)
1091 )
1092 )
1093 )
1094 (if
1095 (tee_local $0
1096 (call $__ZSt15get_new_handlerv)
1097 )
1098 (block $block
1099 (call_indirect (type $FUNCSIG$v)
1100 (i32.add
1101 (i32.and
1102 (get_local $0)
1103 (i32.const 0)
1104 )
1105 (i32.const 8)
1106 )
1107 )
1108 (br $while-in)
1109 )
1110 (set_local $0
1111 (i32.const 0)
1112 )
1113 )
1114 )
1115 )
1116 (get_local $0)
1117 )
1118 (func $__ZSt15get_new_handlerv (; 30 ;) (type $6) (result i32)
1119 (local $0 i32)
1120 (i32.store
1121 (i32.const 1188)
1122 (i32.add
1123 (tee_local $0
1124 (i32.load
1125 (i32.const 1188)
1126 )
1127 )
1128 (i32.const 0)
1129 )
1130 )
1131 (get_local $0)
1132 )
1133 (func $runPostSets (; 31 ;) (type $FUNCSIG$v)
1134 (nop)
1135 )
1136 (func $_memset (; 32 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
1137 (local $3 i32)
1138 (local $4 i32)
1139 (local $5 i32)
1140 (local $6 i32)
1141 (set_local $4
1142 (i32.add
1143 (get_local $0)
1144 (get_local $2)
1145 )
1146 )
1147 (if
1148 (i32.ge_s
1149 (get_local $2)
1150 (i32.const 20)
1151 )
1152 (block $block
1153 (set_local $5
1154 (i32.or
1155 (i32.or
1156 (i32.or
1157 (tee_local $1
1158 (i32.and
1159 (get_local $1)
1160 (i32.const 255)
1161 )
1162 )
1163 (i32.shl
1164 (get_local $1)
1165 (i32.const 8)
1166 )
1167 )
1168 (i32.shl
1169 (get_local $1)
1170 (i32.const 16)
1171 )
1172 )
1173 (i32.shl
1174 (get_local $1)
1175 (i32.const 24)
1176 )
1177 )
1178 )
1179 (set_local $6
1180 (i32.and
1181 (get_local $4)
1182 (i32.const -4)
1183 )
1184 )
1185 (if
1186 (tee_local $3
1187 (i32.and
1188 (get_local $0)
1189 (i32.const 3)
1190 )
1191 )
1192 (block $block17
1193 (set_local $3
1194 (i32.sub
1195 (i32.add
1196 (get_local $0)
1197 (i32.const 4)
1198 )
1199 (get_local $3)
1200 )
1201 )
1202 (loop $while-in
1203 (if
1204 (i32.lt_s
1205 (get_local $0)
1206 (get_local $3)
1207 )
1208 (block $block19
1209 (i32.store8
1210 (get_local $0)
1211 (get_local $1)
1212 )
1213 (set_local $0
1214 (i32.add
1215 (get_local $0)
1216 (i32.const 1)
1217 )
1218 )
1219 (br $while-in)
1220 )
1221 )
1222 )
1223 )
1224 )
1225 (loop $while-in1
1226 (if
1227 (i32.lt_s
1228 (get_local $0)
1229 (get_local $6)
1230 )
1231 (block $block21
1232 (i32.store
1233 (get_local $0)
1234 (get_local $5)
1235 )
1236 (set_local $0
1237 (i32.add
1238 (get_local $0)
1239 (i32.const 4)
1240 )
1241 )
1242 (br $while-in1)
1243 )
1244 )
1245 )
1246 )
1247 )
1248 (loop $while-in3
1249 (if
1250 (i32.lt_s
1251 (get_local $0)
1252 (get_local $4)
1253 )
1254 (block $block23
1255 (i32.store8
1256 (get_local $0)
1257 (get_local $1)
1258 )
1259 (set_local $0
1260 (i32.add
1261 (get_local $0)
1262 (i32.const 1)
1263 )
1264 )
1265 (br $while-in3)
1266 )
1267 )
1268 )
1269 (i32.sub
1270 (get_local $0)
1271 (get_local $2)
1272 )
1273 )
1274 (func $_memcpy (; 33 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
1275 (local $3 i32)
1276 (if
1277 (i32.ge_s
1278 (get_local $2)
1279 (i32.const 4096)
1280 )
1281 (return
1282 (call $_emscripten_memcpy_big
1283 (get_local $0)
1284 (get_local $1)
1285 (get_local $2)
1286 )
1287 )
1288 )
1289 (set_local $3
1290 (get_local $0)
1291 )
1292 (if
1293 (i32.eq
1294 (i32.and
1295 (get_local $0)
1296 (i32.const 3)
1297 )
1298 (i32.and
1299 (get_local $1)
1300 (i32.const 3)
1301 )
1302 )
1303 (block $block
1304 (loop $while-in
1305 (block $while-out
1306 (br_if $while-out
1307 (i32.eqz
1308 (i32.and
1309 (get_local $0)
1310 (i32.const 3)
1311 )
1312 )
1313 )
1314 (if
1315 (i32.eqz
1316 (get_local $2)
1317 )
1318 (return
1319 (get_local $3)
1320 )
1321 )
1322 (i32.store8
1323 (get_local $0)
1324 (i32.load8_s
1325 (get_local $1)
1326 )
1327 )
1328 (set_local $0
1329 (i32.add
1330 (get_local $0)
1331 (i32.const 1)
1332 )
1333 )
1334 (set_local $1
1335 (i32.add
1336 (get_local $1)
1337 (i32.const 1)
1338 )
1339 )
1340 (set_local $2
1341 (i32.sub
1342 (get_local $2)
1343 (i32.const 1)
1344 )
1345 )
1346 (br $while-in)
1347 )
1348 )
1349 (loop $while-in1
1350 (if
1351 (i32.ge_s
1352 (get_local $2)
1353 (i32.const 4)
1354 )
1355 (block $block27
1356 (i32.store
1357 (get_local $0)
1358 (i32.load
1359 (get_local $1)
1360 )
1361 )
1362 (set_local $0
1363 (i32.add
1364 (get_local $0)
1365 (i32.const 4)
1366 )
1367 )
1368 (set_local $1
1369 (i32.add
1370 (get_local $1)
1371 (i32.const 4)
1372 )
1373 )
1374 (set_local $2
1375 (i32.sub
1376 (get_local $2)
1377 (i32.const 4)
1378 )
1379 )
1380 (br $while-in1)
1381 )
1382 )
1383 )
1384 )
1385 )
1386 (loop $while-in3
1387 (if
1388 (i32.gt_s
1389 (get_local $2)
1390 (i32.const 0)
1391 )
1392 (block $block29
1393 (i32.store8
1394 (get_local $0)
1395 (i32.load8_s
1396 (get_local $1)
1397 )
1398 )
1399 (set_local $0
1400 (i32.add
1401 (get_local $0)
1402 (i32.const 1)
1403 )
1404 )
1405 (set_local $1
1406 (i32.add
1407 (get_local $1)
1408 (i32.const 1)
1409 )
1410 )
1411 (set_local $2
1412 (i32.sub
1413 (get_local $2)
1414 (i32.const 1)
1415 )
1416 )
1417 (br $while-in3)
1418 )
1419 )
1420 )
1421 (get_local $3)
1422 )
1423 (func $_pthread_self (; 34 ;) (type $6) (result i32)
1424 (i32.const 0)
1425 )
1426 (func $dynCall_ii (; 35 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
1427 (call_indirect (type $FUNCSIG$ii)
1428 (get_local $1)
1429 (i32.add
1430 (i32.and
1431 (get_local $0)
1432 (i32.const 1)
1433 )
1434 (i32.const 0)
1435 )
1436 )
1437 )
1438 (func $dynCall_iiii (; 36 ;) (type $7) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
1439 (call_indirect (type $FUNCSIG$iiii)
1440 (get_local $1)
1441 (get_local $2)
1442 (get_local $3)
1443 (i32.add
1444 (i32.and
1445 (get_local $0)
1446 (i32.const 3)
1447 )
1448 (i32.const 2)
1449 )
1450 )
1451 )
1452 (func $dynCall_vi (; 37 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
1453 (call_indirect (type $FUNCSIG$vi)
1454 (get_local $1)
1455 (i32.add
1456 (i32.and
1457 (get_local $0)
1458 (i32.const 1)
1459 )
1460 (i32.const 6)
1461 )
1462 )
1463 )
1464 (func $dynCall_v (; 38 ;) (type $FUNCSIG$vi) (param $0 i32)
1465 (call_indirect (type $FUNCSIG$v)
1466 (i32.add
1467 (i32.and
1468 (get_local $0)
1469 (i32.const 0)
1470 )
1471 (i32.const 8)
1472 )
1473 )
1474 )
1475 (func $b0 (; 39 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
1476 (call $abort
1477 (i32.const 0)
1478 )
1479 (i32.const 0)
1480 )
1481 (func $b1 (; 40 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
1482 (call $abort
1483 (i32.const 1)
1484 )
1485 (i32.const 0)
1486 )
1487 (func $b2 (; 41 ;) (type $FUNCSIG$vi) (param $0 i32)
1488 (call $abort
1489 (i32.const 2)
1490 )
1491 )
1492 (func $b3 (; 42 ;) (type $FUNCSIG$v)
1493 (call $abort
1494 (i32.const 3)
1495 )
1496 )
1497 )