summaryrefslogtreecommitdiff
path: root/test/two_sides.fromasm.imprecise
blob: f57c6c343b5b7d75b6d28eb58aae59be7704b126 (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
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
(module
  (memory 256 256)
  (export "memory" memory)
  (export "_test" $_test)
  (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
    (local $d6 f64)
    (if
      (get_local $i5)
      (return
        (set_local $i5
          (i32.trunc_s/f64
            (set_local $d6
              (f64.mul
                (f64.add
                  (f64.convert_s/i32
                    (get_local $i3)
                  )
                  (set_local $d6
                    (f64.convert_s/i32
                      (i32.mul
                        (get_local $i2)
                        (get_local $i1)
                      )
                    )
                  )
                )
                (f64.add
                  (get_local $d6)
                  (f64.convert_s/i32
                    (get_local $i4)
                  )
                )
              )
            )
          )
        )
      )
      (return
        (set_local $i5
          (i32.trunc_s/f64
            (set_local $d6
              (f64.mul
                (f64.add
                  (f64.convert_s/i32
                    (get_local $i3)
                  )
                  (set_local $d6
                    (f64.convert_s/i32
                      (i32.mul
                        (get_local $i4)
                        (get_local $i3)
                      )
                    )
                  )
                )
                (f64.add
                  (f64.convert_s/i32
                    (get_local $i4)
                  )
                  (get_local $d6)
                )
              )
            )
          )
        )
      )
    )
    (i32.const 0)
  )
)