blob: a4e6c24d7ad2dfd68bc66dc95c61b6b37a570457 (
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
|
(module
(type $FUNCSIG$id (func (param f64) (result i32)))
(import "env" "memory" (memory $memory 256 256))
(data (global.get $__memory_base) "two_sides.asm.js")
(import "env" "__memory_base" (global $__memory_base i32))
(import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32)))
(export "_test" (func $_test))
(func $_test (; 1 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
(local $5 f64)
(if (result i32)
(local.get $4)
(call $f64-to-int
(f64.mul
(f64.add
(f64.convert_i32_s
(local.get $2)
)
(local.tee $5
(f64.convert_i32_s
(i32.mul
(local.get $0)
(local.get $1)
)
)
)
)
(f64.add
(local.get $5)
(f64.convert_i32_s
(local.get $3)
)
)
)
)
(call $f64-to-int
(f64.mul
(f64.add
(f64.convert_i32_s
(local.get $2)
)
(local.tee $5
(f64.convert_i32_s
(i32.mul
(local.get $2)
(local.get $3)
)
)
)
)
(f64.add
(f64.convert_i32_s
(local.get $3)
)
(local.get $5)
)
)
)
)
)
)
|