summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-brs_precompute_vacuum_remove-unused-brs.wast
blob: 5c0fe15363b5cd211e9be3b0dd6d8d0983c4faeb (plain)
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
(module
 (global $global$3 (mut f64) (f64.const 0))
 (func $1 (param $x i32) (result f64)
  (local $var$0 f64)
  (block $label$0
   (local.set $var$0
    (f64.const 0)
   )
   (if
    (i32.gt_s
     (i32.const 9)
     (i32.const 0)
    )
    (then
     (return
      (f64.const -3.4)
     )
    )
   )
   (if
    (local.get $x)
    (then
     (return
      (f64.const 5.6)
     )
    )
   )
   (return
    (f64.const 1.2)
   )
  )
 )
)