summaryrefslogtreecommitdiff
path: root/test/emcc_O2_hello_world.fromasm.imprecise
diff options
context:
space:
mode:
Diffstat (limited to 'test/emcc_O2_hello_world.fromasm.imprecise')
-rw-r--r--test/emcc_O2_hello_world.fromasm.imprecise1220
1 files changed, 602 insertions, 618 deletions
diff --git a/test/emcc_O2_hello_world.fromasm.imprecise b/test/emcc_O2_hello_world.fromasm.imprecise
index f098efba5..8df23c84e 100644
--- a/test/emcc_O2_hello_world.fromasm.imprecise
+++ b/test/emcc_O2_hello_world.fromasm.imprecise
@@ -146,7 +146,7 @@
(block
(set_local $5
(i32.load
- (tee_local $17
+ (tee_local $18
(i32.add
(tee_local $0
(i32.load
@@ -266,7 +266,7 @@
)
)
(return
- (get_local $17)
+ (get_local $18)
)
)
)
@@ -459,7 +459,7 @@
(get_local $22)
(get_local $3)
)
- (set_local $17
+ (set_local $18
(i32.load
(i32.const 184)
)
@@ -482,7 +482,7 @@
(get_local $14)
)
)
- (set_local $17
+ (set_local $18
(get_local $6)
)
)
@@ -522,7 +522,7 @@
(get_local $6)
)
(if
- (get_local $17)
+ (get_local $18)
(block
(set_local $3
(i32.load
@@ -534,7 +534,7 @@
(i32.shl
(tee_local $22
(i32.shr_u
- (get_local $17)
+ (get_local $18)
(i32.const 3)
)
)
@@ -559,7 +559,7 @@
)
(if
(i32.lt_u
- (tee_local $17
+ (tee_local $18
(i32.load
(tee_local $22
(i32.add
@@ -579,7 +579,7 @@
(get_local $22)
)
(set_local $32
- (get_local $17)
+ (get_local $18)
)
)
)
@@ -706,7 +706,7 @@
(i32.sub
(i32.and
(i32.load offset=4
- (tee_local $17
+ (tee_local $18
(i32.load offset=480
(i32.shl
(i32.add
@@ -753,25 +753,25 @@
)
(set_local $3
(tee_local $8
- (get_local $17)
+ (get_local $18)
)
)
(loop $while-in
(block $while-out
(set_local $11
(i32.lt_u
- (tee_local $17
+ (tee_local $18
(i32.sub
(i32.and
(i32.load offset=4
(tee_local $8
(if (result i32)
- (tee_local $17
+ (tee_local $18
(i32.load offset=16
(get_local $8)
)
)
- (get_local $17)
+ (get_local $18)
(if (result i32)
(tee_local $11
(i32.load offset=20
@@ -802,7 +802,7 @@
)
(set_local $1
(select
- (get_local $17)
+ (get_local $18)
(get_local $1)
(get_local $11)
)
@@ -868,13 +868,13 @@
)
)
(block (result i32)
- (set_local $17
+ (set_local $18
(get_local $7)
)
(get_local $0)
)
(if (result i32)
- (tee_local $17
+ (tee_local $18
(i32.load
(tee_local $11
(i32.add
@@ -895,14 +895,14 @@
(i32.load
(tee_local $0
(i32.add
- (get_local $17)
+ (get_local $18)
(i32.const 20)
)
)
)
)
(block
- (set_local $17
+ (set_local $18
(get_local $7)
)
(set_local $6
@@ -916,14 +916,14 @@
(i32.load
(tee_local $0
(i32.add
- (get_local $17)
+ (get_local $18)
(i32.const 16)
)
)
)
)
(block
- (set_local $17
+ (set_local $18
(get_local $7)
)
(set_local $6
@@ -945,7 +945,7 @@
(i32.const 0)
)
(set_local $24
- (get_local $17)
+ (get_local $18)
)
)
)
@@ -1435,7 +1435,7 @@
(i32.and
(i32.shr_u
(i32.add
- (tee_local $17
+ (tee_local $18
(i32.shl
(get_local $10)
(get_local $7)
@@ -1456,7 +1456,7 @@
)
(i32.shr_u
(i32.shl
- (get_local $17)
+ (get_local $18)
(get_local $10)
)
(i32.const 15)
@@ -1486,7 +1486,7 @@
(set_local $10
(get_local $0)
)
- (set_local $17
+ (set_local $18
(i32.const 0)
)
(set_local $3
@@ -1536,7 +1536,7 @@
(get_local $22)
)
(block
- (set_local $28
+ (set_local $29
(get_local $0)
)
(set_local $26
@@ -1561,7 +1561,7 @@
)
(set_local $22
(select
- (get_local $17)
+ (get_local $18)
(tee_local $0
(i32.load offset=20
(get_local $7)
@@ -1614,7 +1614,7 @@
(get_local $22)
)
(block
- (set_local $17
+ (set_local $18
(get_local $22)
)
(set_local $3
@@ -1785,7 +1785,7 @@
)
)
(block
- (set_local $28
+ (set_local $29
(get_local $33)
)
(set_local $26
@@ -1830,13 +1830,13 @@
(get_local $1)
)
)
- (get_local $28)
+ (get_local $29)
)
)
(set_local $8
(select
(get_local $6)
- (get_local $28)
+ (get_local $29)
(get_local $3)
)
)
@@ -1854,7 +1854,7 @@
)
)
(block
- (set_local $28
+ (set_local $29
(get_local $8)
)
(set_local $26
@@ -1874,7 +1874,7 @@
)
)
(block
- (set_local $28
+ (set_local $29
(get_local $8)
)
(set_local $30
@@ -1958,13 +1958,13 @@
)
)
(block (result i32)
- (set_local $17
+ (set_local $18
(get_local $0)
)
(get_local $9)
)
(if (result i32)
- (tee_local $17
+ (tee_local $18
(i32.load
(tee_local $14
(i32.add
@@ -1985,14 +1985,14 @@
(i32.load
(tee_local $9
(i32.add
- (get_local $17)
+ (get_local $18)
(i32.const 20)
)
)
)
)
(block
- (set_local $17
+ (set_local $18
(get_local $0)
)
(set_local $7
@@ -2006,14 +2006,14 @@
(i32.load
(tee_local $9
(i32.add
- (get_local $17)
+ (get_local $18)
(i32.const 16)
)
)
)
)
(block
- (set_local $17
+ (set_local $18
(get_local $0)
)
(set_local $7
@@ -2035,7 +2035,7 @@
(i32.const 0)
)
(set_local $5
- (get_local $17)
+ (get_local $18)
)
)
)
@@ -3062,456 +3062,458 @@
)
)
(if
- (if (result i32)
- (if (result i32)
- (select
- (i32.lt_u
- (get_local $2)
- (i32.const 2147483647)
- )
- (i32.const 0)
- (i32.eq
- (tee_local $10
- (if (result i32)
- (i32.and
- (i32.load
- (i32.const 620)
- )
- (i32.const 4)
- )
- (i32.const 190)
- (block $label$break$L257 (result i32)
- (if
- (tee_local $7
+ (block (result i32)
+ (if
+ (if (result i32)
+ (if (result i32)
+ (select
+ (i32.lt_u
+ (get_local $2)
+ (i32.const 2147483647)
+ )
+ (i32.const 0)
+ (i32.eq
+ (tee_local $10
+ (if (result i32)
+ (i32.and
(i32.load
- (i32.const 200)
+ (i32.const 620)
)
+ (i32.const 4)
)
- (block $label$break$L259
- (set_local $16
- (i32.const 624)
- )
- (loop $while-in34
- (block $while-out33
- (if
- (if (result i32)
- (i32.le_u
- (tee_local $27
- (i32.load
- (get_local $16)
- )
- )
- (get_local $7)
- )
- (i32.gt_u
- (i32.add
- (i32.load
- (tee_local $5
- (i32.add
+ (i32.const 190)
+ (block $label$break$L257 (result i32)
+ (if
+ (tee_local $7
+ (i32.load
+ (i32.const 200)
+ )
+ )
+ (block $label$break$L259
+ (set_local $16
+ (i32.const 624)
+ )
+ (loop $while-in34
+ (block $while-out33
+ (if
+ (if (result i32)
+ (i32.le_u
+ (tee_local $27
+ (i32.load
(get_local $16)
- (i32.const 4)
)
)
+ (get_local $7)
)
- (get_local $27)
+ (i32.gt_u
+ (i32.add
+ (i32.load
+ (tee_local $5
+ (i32.add
+ (get_local $16)
+ (i32.const 4)
+ )
+ )
+ )
+ (get_local $27)
+ )
+ (get_local $7)
+ )
+ (i32.const 0)
+ )
+ (block
+ (set_local $6
+ (get_local $16)
+ )
+ (set_local $8
+ (get_local $5)
+ )
+ (br $while-out33)
)
- (get_local $7)
- )
- (i32.const 0)
- )
- (block
- (set_local $6
- (get_local $16)
- )
- (set_local $8
- (get_local $5)
- )
- (br $while-out33)
- )
- )
- (br_if $while-in34
- (tee_local $16
- (i32.load offset=8
- (get_local $16)
)
- )
- )
- (set_local $10
- (i32.const 173)
- )
- (br $label$break$L259)
- )
- )
- (if
- (i32.lt_u
- (tee_local $16
- (i32.and
- (get_local $23)
- (i32.sub
- (get_local $19)
- (i32.load
- (i32.const 188)
+ (br_if $while-in34
+ (tee_local $16
+ (i32.load offset=8
+ (get_local $16)
+ )
)
)
- )
- )
- (i32.const 2147483647)
- )
- (block
- (set_local $5
- (call $_sbrk
- (get_local $16)
+ (set_local $10
+ (i32.const 173)
+ )
+ (br $label$break$L259)
)
)
(if
- (i32.eq
- (i32.add
- (i32.load
- (get_local $6)
- )
- (i32.load
- (get_local $8)
+ (i32.lt_u
+ (tee_local $16
+ (i32.and
+ (get_local $23)
+ (i32.sub
+ (get_local $19)
+ (i32.load
+ (i32.const 188)
+ )
+ )
)
)
- (get_local $5)
+ (i32.const 2147483647)
)
- (if
- (i32.ne
- (get_local $5)
- (i32.const -1)
+ (block
+ (set_local $5
+ (call $_sbrk
+ (get_local $16)
+ )
)
- (block
- (set_local $20
+ (if
+ (i32.eq
+ (i32.add
+ (i32.load
+ (get_local $6)
+ )
+ (i32.load
+ (get_local $8)
+ )
+ )
(get_local $5)
)
- (set_local $21
- (get_local $16)
+ (if
+ (i32.ne
+ (get_local $5)
+ (i32.const -1)
+ )
+ (block
+ (set_local $20
+ (get_local $5)
+ )
+ (set_local $21
+ (get_local $16)
+ )
+ (br $label$break$L257
+ (i32.const 193)
+ )
+ )
)
- (br $label$break$L257
- (i32.const 193)
+ (block
+ (set_local $13
+ (get_local $5)
+ )
+ (set_local $17
+ (get_local $16)
+ )
+ (set_local $10
+ (i32.const 183)
+ )
)
)
)
- (block
- (set_local $13
- (get_local $5)
- )
- (set_local $18
- (get_local $16)
- )
- (set_local $10
- (i32.const 183)
- )
- )
)
)
- )
- )
- (set_local $10
- (i32.const 173)
- )
- )
- (if
- (if (result i32)
- (i32.eq
- (get_local $10)
- (i32.const 173)
- )
- (i32.ne
- (tee_local $7
- (call $_sbrk
- (i32.const 0)
- )
+ (set_local $10
+ (i32.const 173)
)
- (i32.const -1)
)
- (i32.const 0)
- )
- (block $do-once35
- (set_local $0
+ (if
(if (result i32)
- (i32.and
- (tee_local $1
- (get_local $7)
- )
- (tee_local $5
- (i32.add
- (tee_local $16
- (i32.load
- (i32.const 652)
- )
- )
- (i32.const -1)
- )
- )
+ (i32.eq
+ (get_local $10)
+ (i32.const 173)
)
- (i32.add
- (i32.sub
- (get_local $2)
- (get_local $1)
- )
- (i32.and
- (i32.add
- (get_local $1)
- (get_local $5)
- )
- (i32.sub
+ (i32.ne
+ (tee_local $7
+ (call $_sbrk
(i32.const 0)
- (get_local $16)
)
)
+ (i32.const -1)
)
- (get_local $2)
- )
- )
- (set_local $1
- (i32.add
- (tee_local $16
- (i32.load
- (i32.const 608)
- )
- )
- (get_local $0)
- )
- )
- (if
- (i32.and
- (i32.lt_u
- (get_local $0)
- (i32.const 2147483647)
- )
- (i32.gt_u
- (get_local $0)
- (get_local $9)
- )
+ (i32.const 0)
)
- (block
- (br_if $do-once35
- (select
- (i32.or
- (i32.le_u
- (get_local $1)
- (get_local $16)
+ (block $do-once35
+ (set_local $0
+ (if (result i32)
+ (i32.and
+ (tee_local $1
+ (get_local $7)
)
- (i32.gt_u
- (get_local $1)
- (tee_local $5
- (i32.load
- (i32.const 616)
+ (tee_local $5
+ (i32.add
+ (tee_local $16
+ (i32.load
+ (i32.const 652)
+ )
)
+ (i32.const -1)
)
)
)
- (i32.const 0)
- (get_local $5)
- )
- )
- (set_local $18
- (if (result i32)
- (i32.eq
- (tee_local $5
- (call $_sbrk
- (get_local $0)
+ (i32.add
+ (i32.sub
+ (get_local $2)
+ (get_local $1)
+ )
+ (i32.and
+ (i32.add
+ (get_local $1)
+ (get_local $5)
+ )
+ (i32.sub
+ (i32.const 0)
+ (get_local $16)
)
)
- (get_local $7)
)
- (block
- (set_local $20
- (get_local $7)
- )
- (set_local $21
- (get_local $0)
- )
- (br $label$break$L257
- (i32.const 193)
+ (get_local $2)
+ )
+ )
+ (set_local $1
+ (i32.add
+ (tee_local $16
+ (i32.load
+ (i32.const 608)
)
)
- (block (result i32)
- (set_local $13
+ (get_local $0)
+ )
+ )
+ (if
+ (i32.and
+ (i32.lt_u
+ (get_local $0)
+ (i32.const 2147483647)
+ )
+ (i32.gt_u
+ (get_local $0)
+ (get_local $9)
+ )
+ )
+ (block
+ (br_if $do-once35
+ (select
+ (i32.or
+ (i32.le_u
+ (get_local $1)
+ (get_local $16)
+ )
+ (i32.gt_u
+ (get_local $1)
+ (tee_local $5
+ (i32.load
+ (i32.const 616)
+ )
+ )
+ )
+ )
+ (i32.const 0)
(get_local $5)
)
- (set_local $10
- (i32.const 183)
+ )
+ (set_local $17
+ (if (result i32)
+ (i32.eq
+ (tee_local $5
+ (call $_sbrk
+ (get_local $0)
+ )
+ )
+ (get_local $7)
+ )
+ (block
+ (set_local $20
+ (get_local $7)
+ )
+ (set_local $21
+ (get_local $0)
+ )
+ (br $label$break$L257
+ (i32.const 193)
+ )
+ )
+ (block (result i32)
+ (set_local $13
+ (get_local $5)
+ )
+ (set_local $10
+ (i32.const 183)
+ )
+ (get_local $0)
+ )
)
- (get_local $0)
)
)
)
)
)
- )
- )
- (if
- (i32.eq
- (get_local $10)
- (i32.const 183)
- )
- (block $label$break$L279
- (set_local $5
- (i32.sub
- (i32.const 0)
- (get_local $18)
+ (if
+ (i32.eq
+ (get_local $10)
+ (i32.const 183)
)
- )
- (set_local $4
- (if (result i32)
- (if (result i32)
- (i32.and
- (i32.and
- (i32.ne
- (get_local $13)
- (i32.const -1)
+ (block $label$break$L279
+ (set_local $5
+ (i32.sub
+ (i32.const 0)
+ (get_local $17)
+ )
+ )
+ (set_local $4
+ (if (result i32)
+ (if (result i32)
+ (i32.and
+ (i32.and
+ (i32.ne
+ (get_local $13)
+ (i32.const -1)
+ )
+ (i32.lt_u
+ (get_local $17)
+ (i32.const 2147483647)
+ )
+ )
+ (i32.gt_u
+ (get_local $15)
+ (get_local $17)
+ )
)
(i32.lt_u
- (get_local $18)
+ (tee_local $1
+ (i32.and
+ (i32.add
+ (tee_local $7
+ (i32.load
+ (i32.const 656)
+ )
+ )
+ (i32.sub
+ (get_local $12)
+ (get_local $17)
+ )
+ )
+ (i32.sub
+ (i32.const 0)
+ (get_local $7)
+ )
+ )
+ )
(i32.const 2147483647)
)
+ (i32.const 0)
)
- (i32.gt_u
- (get_local $15)
- (get_local $18)
- )
- )
- (i32.lt_u
- (tee_local $1
- (i32.and
- (i32.add
- (tee_local $7
- (i32.load
- (i32.const 656)
- )
- )
- (i32.sub
- (get_local $12)
- (get_local $18)
- )
+ (if (result i32)
+ (i32.eq
+ (call $_sbrk
+ (get_local $1)
)
- (i32.sub
- (i32.const 0)
- (get_local $7)
+ (i32.const -1)
+ )
+ (block
+ (drop
+ (call $_sbrk
+ (get_local $5)
+ )
)
+ (br $label$break$L279)
+ )
+ (i32.add
+ (get_local $1)
+ (get_local $17)
)
)
- (i32.const 2147483647)
+ (get_local $17)
)
- (i32.const 0)
)
- (if (result i32)
- (i32.eq
- (call $_sbrk
- (get_local $1)
- )
+ (if
+ (i32.ne
+ (get_local $13)
(i32.const -1)
)
(block
- (drop
- (call $_sbrk
- (get_local $5)
- )
+ (set_local $20
+ (get_local $13)
+ )
+ (set_local $21
+ (get_local $4)
+ )
+ (br $label$break$L257
+ (i32.const 193)
)
- (br $label$break$L279)
- )
- (i32.add
- (get_local $1)
- (get_local $18)
)
)
- (get_local $18)
)
)
- (if
- (i32.ne
- (get_local $13)
- (i32.const -1)
- )
- (block
- (set_local $20
- (get_local $13)
- )
- (set_local $21
- (get_local $4)
- )
- (br $label$break$L257
- (i32.const 193)
+ (i32.store
+ (i32.const 620)
+ (i32.or
+ (i32.load
+ (i32.const 620)
)
+ (i32.const 4)
)
)
+ (i32.const 190)
)
)
- (i32.store
- (i32.const 620)
- (i32.or
- (i32.load
- (i32.const 620)
- )
- (i32.const 4)
+ )
+ (i32.const 190)
+ )
+ )
+ (i32.and
+ (i32.and
+ (i32.ne
+ (tee_local $4
+ (call $_sbrk
+ (get_local $2)
)
)
- (i32.const 190)
+ (i32.const -1)
+ )
+ (i32.ne
+ (tee_local $2
+ (call $_sbrk
+ (i32.const 0)
+ )
+ )
+ (i32.const -1)
)
)
+ (i32.lt_u
+ (get_local $4)
+ (get_local $2)
+ )
)
- (i32.const 190)
+ (i32.const 0)
)
- )
- (i32.and
- (i32.and
- (i32.ne
- (tee_local $4
- (call $_sbrk
- (get_local $2)
- )
+ (i32.gt_u
+ (tee_local $13
+ (i32.sub
+ (get_local $2)
+ (get_local $4)
)
- (i32.const -1)
)
- (i32.ne
- (tee_local $2
- (call $_sbrk
- (i32.const 0)
- )
- )
- (i32.const -1)
+ (i32.add
+ (get_local $9)
+ (i32.const 40)
)
)
- (i32.lt_u
- (get_local $4)
- (get_local $2)
- )
+ (i32.const 0)
)
- (i32.const 0)
- )
- (i32.gt_u
- (tee_local $13
- (i32.sub
- (get_local $2)
+ (block
+ (set_local $20
(get_local $4)
)
+ (set_local $21
+ (get_local $13)
+ )
+ (set_local $10
+ (i32.const 193)
+ )
)
- (i32.add
- (get_local $9)
- (i32.const 40)
- )
- )
- (i32.const 0)
- )
- (block
- (set_local $20
- (get_local $4)
)
- (set_local $21
- (get_local $13)
- )
- (set_local $10
+ (i32.eq
+ (get_local $10)
(i32.const 193)
)
)
- )
- (if
- (i32.eq
- (get_local $10)
- (i32.const 193)
- )
(block
(i32.store
(i32.const 608)
@@ -3558,7 +3560,7 @@
)
(tee_local $12
(i32.load
- (tee_local $18
+ (tee_local $17
(i32.add
(get_local $4)
(i32.const 4)
@@ -3574,7 +3576,7 @@
(get_local $2)
)
(set_local $47
- (get_local $18)
+ (get_local $17)
)
(set_local $48
(get_local $12)
@@ -3660,7 +3662,7 @@
(get_local $13)
)
)
- (set_local $18
+ (set_local $17
(i32.add
(i32.load
(i32.const 188)
@@ -3677,19 +3679,19 @@
)
(i32.store
(i32.const 188)
- (get_local $18)
+ (get_local $17)
)
(i32.store offset=4
(get_local $4)
(i32.or
- (get_local $18)
+ (get_local $17)
(i32.const 1)
)
)
(i32.store offset=4
(i32.add
(get_local $4)
- (get_local $18)
+ (get_local $17)
)
(i32.const 40)
)
@@ -3706,7 +3708,7 @@
(if (result i32)
(i32.lt_u
(get_local $20)
- (tee_local $18
+ (tee_local $17
(i32.load
(i32.const 192)
)
@@ -3719,10 +3721,10 @@
)
(get_local $20)
)
- (get_local $18)
+ (get_local $17)
)
)
- (set_local $18
+ (set_local $17
(i32.add
(get_local $20)
(get_local $21)
@@ -3735,7 +3737,7 @@
(block $while-out42
(if
(i32.eq
- (get_local $18)
+ (get_local $17)
(i32.load
(get_local $4)
)
@@ -3760,7 +3762,7 @@
)
)
)
- (set_local $29
+ (set_local $28
(i32.const 624)
)
)
@@ -3770,7 +3772,7 @@
(get_local $10)
(i32.const 211)
)
- (set_local $29
+ (set_local $28
(if (result i32)
(i32.and
(i32.load offset=12
@@ -3830,7 +3832,7 @@
(i32.const 0)
(tee_local $4
(i32.add
- (get_local $18)
+ (get_local $17)
(i32.const 8)
)
)
@@ -3843,7 +3845,7 @@
(i32.const 7)
)
)
- (get_local $18)
+ (get_local $17)
)
)
(set_local $4
@@ -4936,7 +4938,7 @@
(i32.le_u
(tee_local $4
(i32.load
- (get_local $29)
+ (get_local $28)
)
)
(get_local $13)
@@ -4945,7 +4947,7 @@
(tee_local $15
(i32.add
(i32.load offset=4
- (get_local $29)
+ (get_local $28)
)
(get_local $4)
)
@@ -4956,9 +4958,9 @@
)
(get_local $15)
(block
- (set_local $29
+ (set_local $28
(i32.load offset=8
- (get_local $29)
+ (get_local $28)
)
)
(br $while-in66)
@@ -5003,7 +5005,7 @@
(tee_local $2
(i32.add
(get_local $20)
- (tee_local $18
+ (tee_local $17
(select
(i32.and
(i32.sub
@@ -5035,7 +5037,7 @@
(get_local $21)
(i32.const -40)
)
- (get_local $18)
+ (get_local $17)
)
)
)
@@ -5177,7 +5179,7 @@
(i32.const 256)
)
(block
- (set_local $18
+ (set_local $17
(i32.add
(i32.shl
(get_local $2)
@@ -5206,7 +5208,7 @@
(i32.load
(tee_local $2
(i32.add
- (get_local $18)
+ (get_local $17)
(i32.const 8)
)
)
@@ -5236,12 +5238,12 @@
)
(set_local $44
(i32.add
- (get_local $18)
+ (get_local $17)
(i32.const 8)
)
)
(set_local $36
- (get_local $18)
+ (get_local $17)
)
)
)
@@ -5259,7 +5261,7 @@
)
(i32.store offset=12
(get_local $13)
- (get_local $18)
+ (get_local $17)
)
(br $do-once40)
)
@@ -5269,7 +5271,7 @@
(i32.shl
(tee_local $7
(if (result i32)
- (tee_local $18
+ (tee_local $17
(i32.shr_u
(get_local $4)
(i32.const 8)
@@ -5282,18 +5284,18 @@
)
(i32.const 31)
(block (result i32)
- (set_local $18
+ (set_local $17
(i32.and
(i32.shr_u
(i32.add
(tee_local $0
(i32.shl
- (get_local $18)
+ (get_local $17)
(tee_local $8
(i32.and
(i32.shr_u
(i32.add
- (get_local $18)
+ (get_local $17)
(i32.const 1048320)
)
(i32.const 16)
@@ -5327,7 +5329,7 @@
(tee_local $1
(i32.shl
(get_local $0)
- (get_local $18)
+ (get_local $17)
)
)
(i32.const 245760)
@@ -5339,7 +5341,7 @@
)
(i32.or
(get_local $8)
- (get_local $18)
+ (get_local $17)
)
)
)
@@ -7803,10 +7805,10 @@
(i32.const 0)
)
(block
- (set_local $16
+ (set_local $15
(get_local $5)
)
- (set_local $17
+ (set_local $16
(get_local $3)
)
(set_local $1
@@ -7915,12 +7917,15 @@
(br $while-in)
)
)
- (if
+ (set_global $STACKTOP
+ (get_local $12)
+ )
+ (if (result i32)
(i32.eq
(get_local $1)
(i32.const 6)
)
- (block
+ (block (result i32)
(i32.store offset=16
(get_local $0)
(i32.add
@@ -7944,16 +7949,14 @@
(get_local $13)
(get_local $4)
)
- (set_local $15
- (get_local $2)
- )
+ (get_local $2)
)
- (if
+ (if (result i32)
(i32.eq
(get_local $1)
(i32.const 8)
)
- (block
+ (block (result i32)
(i32.store offset=16
(get_local $0)
(i32.const 0)
@@ -7975,28 +7978,23 @@
(i32.const 32)
)
)
- (set_local $15
- (select
- (i32.const 0)
- (i32.sub
- (get_local $2)
- (i32.load offset=4
- (get_local $16)
- )
- )
- (i32.eq
- (get_local $17)
- (i32.const 2)
+ (select
+ (i32.const 0)
+ (i32.sub
+ (get_local $2)
+ (i32.load offset=4
+ (get_local $15)
)
)
+ (i32.eq
+ (get_local $16)
+ (i32.const 2)
+ )
)
)
+ (get_local $17)
)
)
- (set_global $STACKTOP
- (get_local $12)
- )
- (get_local $15)
)
(func $___fwritex (; 18 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
@@ -8358,84 +8356,82 @@
)
)
)
- (if
- (i32.eq
- (get_local $2)
- (i32.const 4)
- )
- (block
- (set_local $2
- (get_local $1)
+ (i32.sub
+ (if (result i32)
+ (i32.eq
+ (get_local $2)
+ (i32.const 4)
)
- (set_local $0
- (loop $while-in1 (result i32)
- (if (result i32)
- (i32.and
- (i32.add
- (tee_local $1
- (i32.load
- (get_local $2)
+ (block (result i32)
+ (set_local $2
+ (get_local $1)
+ )
+ (set_local $0
+ (loop $while-in1 (result i32)
+ (if (result i32)
+ (i32.and
+ (i32.add
+ (tee_local $1
+ (i32.load
+ (get_local $2)
+ )
)
+ (i32.const -16843009)
)
- (i32.const -16843009)
- )
- (i32.xor
- (i32.and
- (get_local $1)
+ (i32.xor
+ (i32.and
+ (get_local $1)
+ (i32.const -2139062144)
+ )
(i32.const -2139062144)
)
- (i32.const -2139062144)
)
- )
- (get_local $2)
- (block
- (set_local $2
- (i32.add
- (get_local $2)
- (i32.const 4)
+ (get_local $2)
+ (block
+ (set_local $2
+ (i32.add
+ (get_local $2)
+ (i32.const 4)
+ )
)
+ (br $while-in1)
)
- (br $while-in1)
)
)
)
- )
- (if
- (i32.and
- (get_local $1)
- (i32.const 255)
- )
- (block
- (set_local $1
- (get_local $0)
+ (if
+ (i32.and
+ (get_local $1)
+ (i32.const 255)
)
- (loop $while-in3
- (if
- (i32.load8_s
- (tee_local $0
- (i32.add
- (get_local $1)
- (i32.const 1)
+ (block
+ (set_local $1
+ (get_local $0)
+ )
+ (loop $while-in3
+ (if
+ (i32.load8_s
+ (tee_local $0
+ (i32.add
+ (get_local $1)
+ (i32.const 1)
+ )
)
)
- )
- (block
- (set_local $1
- (get_local $0)
+ (block
+ (set_local $1
+ (get_local $0)
+ )
+ (br $while-in3)
)
- (br $while-in3)
)
)
)
)
- )
- (set_local $5
(get_local $0)
)
+ (get_local $5)
)
- )
- (i32.sub
- (get_local $5)
(get_local $3)
)
)
@@ -8448,7 +8444,7 @@
(local $6 i32)
(local $7 i32)
(local $8 i32)
- (set_local $3
+ (set_local $4
(get_global $STACKTOP)
)
(set_global $STACKTOP
@@ -8458,8 +8454,8 @@
)
)
(i32.store8
- (tee_local $4
- (get_local $3)
+ (tee_local $5
+ (get_local $4)
)
(i32.const 10)
)
@@ -8475,10 +8471,10 @@
)
)
(block
- (set_local $5
+ (set_local $6
(get_local $2)
)
- (set_local $6
+ (set_local $7
(i32.const 4)
)
)
@@ -8486,16 +8482,16 @@
(call $___towrite
(get_local $0)
)
- (set_local $7
+ (set_local $3
(i32.const -1)
)
(block
- (set_local $5
+ (set_local $6
(i32.load
(get_local $1)
)
)
- (set_local $6
+ (set_local $7
(i32.const 4)
)
)
@@ -8503,10 +8499,10 @@
)
(if
(i32.eq
- (get_local $6)
+ (get_local $7)
(i32.const 4)
)
- (set_local $7
+ (set_local $3
(block $do-once (result i32)
(if
(if (result i32)
@@ -8521,7 +8517,7 @@
)
)
)
- (get_local $5)
+ (get_local $6)
)
(i32.ne
(tee_local $8
@@ -8554,7 +8550,7 @@
(i32.eq
(call_indirect (type $FUNCSIG$iiii)
(get_local $0)
- (get_local $4)
+ (get_local $5)
(i32.const 1)
(i32.add
(i32.and
@@ -8569,7 +8565,7 @@
(i32.const 1)
)
(i32.load8_u
- (get_local $4)
+ (get_local $5)
)
(i32.const -1)
)
@@ -8577,9 +8573,9 @@
)
)
(set_global $STACKTOP
- (get_local $3)
+ (get_local $4)
)
- (get_local $7)
+ (get_local $3)
)
(func $___fflush_unlocked (; 22 ;) (; has Stack IR ;) (param $0 i32) (result i32)
(local $1 i32)
@@ -8996,6 +8992,9 @@
(local $0 i32)
(local $1 i32)
(local $2 i32)
+ (local $3 i32)
+ (local $4 i32)
+ (local $5 i32)
(drop
(i32.load offset=76
(tee_local $0
@@ -9007,72 +9006,86 @@
)
(i32.shr_s
(i32.shl
- (tee_local $0
- (if (result i32)
- (i32.lt_s
- (i32.add
- (call $_fwrite
- (i32.const 672)
- (call $_strlen
- (i32.const 672)
- )
- (get_local $0)
- )
- (i32.const -1)
- )
- (i32.const 0)
- )
- (i32.const 1)
- (block $do-once (result i32)
- (if
- (if (result i32)
- (i32.ne
- (i32.load8_s offset=75
- (get_local $0)
- )
- (i32.const 10)
- )
- (i32.lt_u
- (tee_local $1
- (i32.load
+ (if (result i32)
+ (i32.lt_s
+ (i32.add
+ (select
+ (i32.div_u
+ (tee_local $4
+ (call $___fwritex
+ (i32.const 672)
+ (tee_local $3
(tee_local $2
- (i32.add
- (get_local $0)
- (i32.const 20)
+ (call $_strlen
+ (i32.const 672)
)
)
)
- )
- (i32.load offset=16
(get_local $0)
)
)
- (i32.const 0)
+ (get_local $2)
)
- (block
- (i32.store
- (get_local $2)
- (i32.add
- (get_local $1)
- (i32.const 1)
- )
+ (i32.const 1)
+ (i32.ne
+ (get_local $3)
+ (get_local $4)
+ )
+ )
+ (i32.const -1)
+ )
+ (i32.const 0)
+ )
+ (i32.const 1)
+ (block $do-once (result i32)
+ (if
+ (if (result i32)
+ (i32.ne
+ (i32.load8_s offset=75
+ (get_local $0)
)
- (i32.store8
- (get_local $1)
- (i32.const 10)
+ (i32.const 10)
+ )
+ (i32.lt_u
+ (tee_local $1
+ (i32.load
+ (tee_local $5
+ (i32.add
+ (get_local $0)
+ (i32.const 20)
+ )
+ )
+ )
)
- (br $do-once
- (i32.const 0)
+ (i32.load offset=16
+ (get_local $0)
)
)
+ (i32.const 0)
)
- (i32.lt_s
- (call $___overflow
- (get_local $0)
+ (block
+ (i32.store
+ (get_local $5)
+ (i32.add
+ (get_local $1)
+ (i32.const 1)
+ )
+ )
+ (i32.store8
+ (get_local $1)
+ (i32.const 10)
+ )
+ (br $do-once
+ (i32.const 0)
)
- (i32.const 0)
)
)
+ (i32.lt_s
+ (call $___overflow
+ (get_local $0)
+ )
+ (i32.const 0)
+ )
)
)
(i32.const 31)
@@ -9227,36 +9240,7 @@
)
)
)
- (func $_fwrite (; 29 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
- (local $3 i32)
- (local $4 i32)
- (set_local $4
- (i32.const 1)
- )
- (set_local $3
- (get_local $1)
- )
- (if
- (i32.ne
- (get_local $3)
- (tee_local $0
- (call $___fwritex
- (get_local $0)
- (get_local $3)
- (get_local $2)
- )
- )
- )
- (set_local $4
- (i32.div_u
- (get_local $0)
- (get_local $1)
- )
- )
- )
- (get_local $4)
- )
- (func $___stdout_write (; 30 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $___stdout_write (; 29 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(set_local $4
@@ -9325,7 +9309,7 @@
)
(get_local $3)
)
- (func $___stdio_close (; 31 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $___stdio_close (; 30 ;) (; has Stack IR ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -9355,7 +9339,7 @@
)
(get_local $0)
)
- (func $___syscall_ret (; 32 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $___syscall_ret (; 31 ;) (; has Stack IR ;) (param $0 i32) (result i32)
(if (result i32)
(i32.gt_u
(get_local $0)
@@ -9374,7 +9358,7 @@
(get_local $0)
)
)
- (func $dynCall_iiii (; 33 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
+ (func $dynCall_iiii (; 32 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect (type $FUNCSIG$iiii)
(get_local $1)
(get_local $2)
@@ -9388,7 +9372,7 @@
)
)
)
- (func $stackAlloc (; 34 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $stackAlloc (; 33 ;) (; has Stack IR ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(get_global $STACKTOP)
@@ -9410,7 +9394,7 @@
)
(get_local $1)
)
- (func $___errno_location (; 35 ;) (; has Stack IR ;) (result i32)
+ (func $___errno_location (; 34 ;) (; has Stack IR ;) (result i32)
(if (result i32)
(i32.load
(i32.const 8)
@@ -9421,7 +9405,7 @@
(i32.const 60)
)
)
- (func $setThrew (; 36 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32)
+ (func $setThrew (; 35 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32)
(if
(i32.eqz
(get_global $__THREW__)
@@ -9436,7 +9420,7 @@
)
)
)
- (func $dynCall_ii (; 37 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32)
+ (func $dynCall_ii (; 36 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32)
(call_indirect (type $FUNCSIG$ii)
(get_local $1)
(i32.and
@@ -9445,10 +9429,10 @@
)
)
)
- (func $_cleanup_418 (; 38 ;) (; has Stack IR ;) (param $0 i32)
+ (func $_cleanup_418 (; 37 ;) (; has Stack IR ;) (param $0 i32)
(nop)
)
- (func $establishStackSpace (; 39 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32)
+ (func $establishStackSpace (; 38 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32)
(set_global $STACKTOP
(get_local $0)
)
@@ -9456,7 +9440,7 @@
(get_local $1)
)
)
- (func $dynCall_vi (; 40 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32)
+ (func $dynCall_vi (; 39 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32)
(call_indirect (type $FUNCSIG$vi)
(get_local $1)
(i32.add
@@ -9468,41 +9452,41 @@
)
)
)
- (func $b1 (; 41 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
+ (func $b1 (; 40 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $abort
(i32.const 1)
)
(i32.const 0)
)
- (func $stackRestore (; 42 ;) (; has Stack IR ;) (param $0 i32)
+ (func $stackRestore (; 41 ;) (; has Stack IR ;) (param $0 i32)
(set_global $STACKTOP
(get_local $0)
)
)
- (func $setTempRet0 (; 43 ;) (; has Stack IR ;) (param $0 i32)
+ (func $setTempRet0 (; 42 ;) (; has Stack IR ;) (param $0 i32)
(set_global $tempRet0
(get_local $0)
)
)
- (func $b0 (; 44 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $b0 (; 43 ;) (; has Stack IR ;) (param $0 i32) (result i32)
(call $abort
(i32.const 0)
)
(i32.const 0)
)
- (func $getTempRet0 (; 45 ;) (; has Stack IR ;) (result i32)
+ (func $getTempRet0 (; 44 ;) (; has Stack IR ;) (result i32)
(get_global $tempRet0)
)
- (func $_main (; 46 ;) (; has Stack IR ;) (result i32)
+ (func $_main (; 45 ;) (; has Stack IR ;) (result i32)
(drop
(call $_puts)
)
(i32.const 0)
)
- (func $stackSave (; 47 ;) (; has Stack IR ;) (result i32)
+ (func $stackSave (; 46 ;) (; has Stack IR ;) (result i32)
(get_global $STACKTOP)
)
- (func $b2 (; 48 ;) (; has Stack IR ;) (param $0 i32)
+ (func $b2 (; 47 ;) (; has Stack IR ;) (param $0 i32)
(call $abort
(i32.const 2)
)