summaryrefslogtreecommitdiff
path: root/test/two_sides.fromasm.imprecise
blob: ad7e9e61a4ed4abf6c0097266991573d5ee0d5e2 (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
(module
  (memory 256 256)
  (export "memory" memory)
  (export "_test" $_test)
  (func $_test (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
    (local $5 f64)
    (if
      (get_local $4)
      (i32.trunc_s/f64
        (f64.mul
          (f64.add
            (f64.convert_s/i32
              (get_local $2)
            )
            (set_local $5
              (f64.convert_s/i32
                (i32.mul
                  (get_local $1)
                  (get_local $0)
                )
              )
            )
          )
          (f64.add
            (get_local $5)
            (f64.convert_s/i32
              (get_local $3)
            )
          )
        )
      )
      (i32.trunc_s/f64
        (f64.mul
          (f64.add
            (f64.convert_s/i32
              (get_local $2)
            )
            (set_local $5
              (f64.convert_s/i32
                (i32.mul
                  (get_local $3)
                  (get_local $2)
                )
              )
            )
          )
          (f64.add
            (f64.convert_s/i32
              (get_local $3)
            )
            (get_local $5)
          )
        )
      )
    )
  )
)