forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dae-optimizing.txt
43 lines (43 loc) · 912 Bytes
/
dae-optimizing.txt
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
(module
(type $none_=>_i32 (func (result i32)))
(type $f64_f32_f32_f64_f32_i32_i32_f64_=>_i32 (func (param f64 f32 f32 f64 f32 i32 i32 f64) (result i32)))
(type $none_=>_f32 (func (result f32)))
(global $global$0 (mut i32) (i32.const 10))
(func $0 (result i32)
(local $0 i32)
(local $1 i32)
(drop
(if (result f32)
(local.tee $0
(i32.const 33554432)
)
(loop $label$2 (result f32)
(if
(global.get $global$0)
(return
(local.get $0)
)
)
(local.set $0
(local.get $1)
)
(local.set $1
(i32.const 0)
)
(br_if $label$2
(local.get $0)
)
(f32.const 1)
)
(call $1)
)
)
(i32.const -11)
)
(func $1 (result f32)
(f32.const 0)
)
(func $2 (param $0 f64) (param $1 f32) (param $2 f32) (param $3 f64) (param $4 f32) (param $5 i32) (param $6 i32) (param $7 f64) (result i32)
(call $0)
)
)