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.imprecise3408
1 files changed, 1715 insertions, 1693 deletions
diff --git a/test/emcc_O2_hello_world.fromasm.imprecise b/test/emcc_O2_hello_world.fromasm.imprecise
index 4f0513d28..fbcc3c46e 100644
--- a/test/emcc_O2_hello_world.fromasm.imprecise
+++ b/test/emcc_O2_hello_world.fromasm.imprecise
@@ -1,6 +1,5 @@
(module
(memory 256 256)
- (export "memory" memory)
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
@@ -8,39 +7,73 @@
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$v (func))
(type $FUNCSIG$vii (func (param i32 i32)))
- (import $abort "env" "abort" (param i32))
- (import $_pthread_cleanup_pop "env" "_pthread_cleanup_pop" (param i32))
- (import $_pthread_self "env" "_pthread_self" (result i32))
- (import $_sysconf "env" "_sysconf" (param i32) (result i32))
- (import $___lock "env" "___lock" (param i32))
- (import $___syscall6 "env" "___syscall6" (param i32 i32) (result i32))
- (import $_abort "env" "_abort")
- (import $_sbrk "env" "_sbrk" (param i32) (result i32))
- (import $_time "env" "_time" (param i32) (result i32))
- (import $_pthread_cleanup_push "env" "_pthread_cleanup_push" (param i32 i32))
- (import $_emscripten_memcpy_big "env" "_emscripten_memcpy_big" (param i32 i32 i32) (result i32))
- (import $___syscall54 "env" "___syscall54" (param i32 i32) (result i32))
- (import $___unlock "env" "___unlock" (param i32))
- (import $___syscall140 "env" "___syscall140" (param i32 i32) (result i32))
- (import $___syscall146 "env" "___syscall146" (param i32 i32) (result i32))
- (export "_free" $_free)
- (export "_main" $_main)
- (export "_memset" $_memset)
- (export "_malloc" $_malloc)
- (export "_memcpy" $_memcpy)
- (export "_fflush" $_fflush)
- (export "___errno_location" $___errno_location)
- (export "runPostSets" $runPostSets)
- (export "stackAlloc" $stackAlloc)
- (export "stackSave" $stackSave)
- (export "stackRestore" $stackRestore)
- (export "establishStackSpace" $establishStackSpace)
- (export "setThrew" $setThrew)
- (export "setTempRet0" $setTempRet0)
- (export "getTempRet0" $getTempRet0)
- (export "dynCall_ii" $dynCall_ii)
- (export "dynCall_iiii" $dynCall_iiii)
- (export "dynCall_vi" $dynCall_vi)
+ (import "env" "STACKTOP" (global $STACKTOP i32))
+ (import "env" "STACK_MAX" (global $STACK_MAX i32))
+ (import "env" "tempDoublePtr" (global $tempDoublePtr i32))
+ (import "env" "ABORT" (global $ABORT i32))
+ (import "global" "NaN" (global $nan f64))
+ (import "global" "Infinity" (global $inf f64))
+ (import "env" "abort" (func $abort (param i32)))
+ (import "env" "_pthread_cleanup_pop" (func $_pthread_cleanup_pop (param i32)))
+ (import "env" "_pthread_self" (func $_pthread_self (result i32)))
+ (import "env" "_sysconf" (func $_sysconf (param i32) (result i32)))
+ (import "env" "___lock" (func $___lock (param i32)))
+ (import "env" "___syscall6" (func $___syscall6 (param i32 i32) (result i32)))
+ (import "env" "_abort" (func $_abort))
+ (import "env" "_sbrk" (func $_sbrk (param i32) (result i32)))
+ (import "env" "_time" (func $_time (param i32) (result i32)))
+ (import "env" "_pthread_cleanup_push" (func $_pthread_cleanup_push (param i32 i32)))
+ (import "env" "_emscripten_memcpy_big" (func $_emscripten_memcpy_big (param i32 i32 i32) (result i32)))
+ (import "env" "___syscall54" (func $___syscall54 (param i32 i32) (result i32)))
+ (import "env" "___unlock" (func $___unlock (param i32)))
+ (import "env" "___syscall140" (func $___syscall140 (param i32 i32) (result i32)))
+ (import "env" "___syscall146" (func $___syscall146 (param i32 i32) (result i32)))
+ (import "env" "memory" (memory $memory))
+ (import "env" "table" (table $table))
+ (import "env" "memoryBase" (global $memoryBase i32))
+ (import "env" "tableBase" (global $tableBase i32))
+ (export "_free" (func $_free))
+ (export "_main" (func $_main))
+ (export "_memset" (func $_memset))
+ (export "_malloc" (func $_malloc))
+ (export "_memcpy" (func $_memcpy))
+ (export "_fflush" (func $_fflush))
+ (export "___errno_location" (func $___errno_location))
+ (export "runPostSets" (func $runPostSets))
+ (export "stackAlloc" (func $stackAlloc))
+ (export "stackSave" (func $stackSave))
+ (export "stackRestore" (func $stackRestore))
+ (export "establishStackSpace" (func $establishStackSpace))
+ (export "setThrew" (func $setThrew))
+ (export "setTempRet0" (func $setTempRet0))
+ (export "getTempRet0" (func $getTempRet0))
+ (export "dynCall_ii" (func $dynCall_ii))
+ (export "dynCall_iiii" (func $dynCall_iiii))
+ (export "dynCall_vi" (func $dynCall_vi))
+ (global $__THREW__ i32 (i32.const 0))
+ (global $threwValue i32 (i32.const 0))
+ (global $setjmpId i32 (i32.const 0))
+ (global $undef i32 (i32.const 0))
+ (global $tempInt i32 (i32.const 0))
+ (global $tempBigInt i32 (i32.const 0))
+ (global $tempBigIntP i32 (i32.const 0))
+ (global $tempBigIntS i32 (i32.const 0))
+ (global $tempBigIntR f64 (f64.const 0))
+ (global $tempBigIntI i32 (i32.const 0))
+ (global $tempBigIntD i32 (i32.const 0))
+ (global $tempValue i32 (i32.const 0))
+ (global $tempDouble f64 (f64.const 0))
+ (global $tempRet0 i32 (i32.const 0))
+ (global $tempRet1 i32 (i32.const 0))
+ (global $tempRet2 i32 (i32.const 0))
+ (global $tempRet3 i32 (i32.const 0))
+ (global $tempRet4 i32 (i32.const 0))
+ (global $tempRet5 i32 (i32.const 0))
+ (global $tempRet6 i32 (i32.const 0))
+ (global $tempRet7 i32 (i32.const 0))
+ (global $tempRet8 i32 (i32.const 0))
+ (global $tempRet9 i32 (i32.const 0))
+ (global $tempFloat f64 (f64.const 0))
(table 18 18 anyfunc)
(elem (i32.const 0) $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $b1 $___stdio_write $b1 $b1 $b2 $b2 $b2 $b2 $_cleanup_418 $b2 $b2 $b2)
(func $_malloc (param $0 i32) (result i32)
@@ -106,16 +139,16 @@
(block
(if
(i32.and
- (set_local $2
+ (tee_local $2
(i32.shr_u
- (set_local $7
+ (tee_local $7
(i32.load
(i32.const 176)
)
)
- (set_local $5
+ (tee_local $5
(i32.shr_u
- (set_local $0
+ (tee_local $0
(select
(i32.const 16)
(i32.and
@@ -141,18 +174,18 @@
(block
(set_local $2
(i32.load
- (set_local $8
+ (tee_local $8
(i32.add
- (set_local $5
+ (tee_local $5
(i32.load
- (set_local $4
+ (tee_local $4
(i32.add
- (set_local $1
+ (tee_local $1
(i32.add
(i32.const 216)
(i32.shl
(i32.shl
- (set_local $0
+ (tee_local $0
(i32.add
(i32.xor
(i32.and
@@ -198,7 +231,7 @@
(if
(i32.eq
(i32.load
- (set_local $9
+ (tee_local $9
(i32.add
(get_local $2)
(i32.const 12)
@@ -237,7 +270,7 @@
(i32.store offset=4
(get_local $5)
(i32.or
- (set_local $2
+ (tee_local $2
(i32.shl
(get_local $0)
(i32.const 3)
@@ -247,7 +280,7 @@
)
)
(i32.store
- (set_local $4
+ (tee_local $4
(i32.add
(i32.add
(get_local $5)
@@ -271,7 +304,7 @@
(if
(i32.gt_u
(get_local $0)
- (set_local $4
+ (tee_local $4
(i32.load
(i32.const 184)
)
@@ -284,17 +317,17 @@
(set_local $1
(i32.and
(i32.shr_u
- (set_local $2
+ (tee_local $2
(i32.add
(i32.and
- (set_local $1
+ (tee_local $1
(i32.and
(i32.shl
(get_local $2)
(get_local $5)
)
(i32.or
- (set_local $2
+ (tee_local $2
(i32.shl
(i32.const 2)
(get_local $5)
@@ -322,27 +355,27 @@
)
(set_local $1
(i32.load
- (set_local $9
+ (tee_local $9
(i32.add
- (set_local $16
+ (tee_local $16
(i32.load
- (set_local $18
+ (tee_local $18
(i32.add
- (set_local $10
+ (tee_local $10
(i32.add
(i32.const 216)
(i32.shl
(i32.shl
- (set_local $19
+ (tee_local $19
(i32.add
(i32.or
(i32.or
(i32.or
(i32.or
- (set_local $2
+ (tee_local $2
(i32.and
(i32.shr_u
- (set_local $9
+ (tee_local $9
(i32.shr_u
(get_local $2)
(get_local $1)
@@ -355,10 +388,10 @@
)
(get_local $1)
)
- (set_local $9
+ (tee_local $9
(i32.and
(i32.shr_u
- (set_local $16
+ (tee_local $16
(i32.shr_u
(get_local $9)
(get_local $2)
@@ -370,10 +403,10 @@
)
)
)
- (set_local $16
+ (tee_local $16
(i32.and
(i32.shr_u
- (set_local $10
+ (tee_local $10
(i32.shr_u
(get_local $16)
(get_local $9)
@@ -385,10 +418,10 @@
)
)
)
- (set_local $10
+ (tee_local $10
(i32.and
(i32.shr_u
- (set_local $18
+ (tee_local $18
(i32.shr_u
(get_local $10)
(get_local $16)
@@ -440,7 +473,7 @@
(if
(i32.eq
(i32.load
- (set_local $2
+ (tee_local $2
(i32.add
(get_local $1)
(i32.const 12)
@@ -494,14 +527,14 @@
)
)
(i32.store offset=4
- (set_local $7
+ (tee_local $7
(i32.add
(get_local $16)
(get_local $0)
)
)
(i32.or
- (set_local $4
+ (tee_local $4
(i32.sub
(i32.shl
(get_local $19)
@@ -533,7 +566,7 @@
(i32.const 216)
(i32.shl
(i32.shl
- (set_local $18
+ (tee_local $18
(i32.shr_u
(get_local $8)
(i32.const 3)
@@ -547,12 +580,12 @@
)
(if
(i32.and
- (set_local $5
+ (tee_local $5
(i32.load
(i32.const 176)
)
)
- (set_local $2
+ (tee_local $2
(i32.shl
(i32.const 1)
(get_local $18)
@@ -561,9 +594,9 @@
)
(if
(i32.lt_u
- (set_local $8
+ (tee_local $8
(i32.load
- (set_local $18
+ (tee_local $18
(i32.add
(get_local $10)
(i32.const 8)
@@ -636,7 +669,7 @@
)
)
(if
- (set_local $7
+ (tee_local $7
(i32.load
(i32.const 180)
)
@@ -645,7 +678,7 @@
(set_local $7
(i32.and
(i32.shr_u
- (set_local $4
+ (tee_local $4
(i32.add
(i32.and
(get_local $7)
@@ -666,7 +699,7 @@
(i32.sub
(i32.and
(i32.load offset=4
- (set_local $8
+ (tee_local $8
(i32.load offset=480
(i32.shl
(i32.add
@@ -674,10 +707,10 @@
(i32.or
(i32.or
(i32.or
- (set_local $4
+ (tee_local $4
(i32.and
(i32.shr_u
- (set_local $10
+ (tee_local $10
(i32.shr_u
(get_local $4)
(get_local $7)
@@ -690,10 +723,10 @@
)
(get_local $7)
)
- (set_local $10
+ (tee_local $10
(i32.and
(i32.shr_u
- (set_local $1
+ (tee_local $1
(i32.shr_u
(get_local $10)
(get_local $4)
@@ -705,10 +738,10 @@
)
)
)
- (set_local $1
+ (tee_local $1
(i32.and
(i32.shr_u
- (set_local $2
+ (tee_local $2
(i32.shr_u
(get_local $1)
(get_local $10)
@@ -720,10 +753,10 @@
)
)
)
- (set_local $2
+ (tee_local $2
(i32.and
(i32.shr_u
- (set_local $5
+ (tee_local $5
(i32.shr_u
(get_local $2)
(get_local $1)
@@ -756,75 +789,77 @@
(set_local $1
(get_local $8)
)
- (loop $while-out$6 $while-in$7
- (if
- (set_local $8
- (i32.load offset=16
- (get_local $5)
- )
- )
- (set_local $7
- (get_local $8)
- )
+ (loop $while-in$7
+ (block $while-out$6
(if
- (set_local $10
- (i32.load offset=20
+ (tee_local $8
+ (i32.load offset=16
(get_local $5)
)
)
(set_local $7
- (get_local $10)
+ (get_local $8)
)
- (block
+ (if
+ (tee_local $10
+ (i32.load offset=20
+ (get_local $5)
+ )
+ )
(set_local $7
- (get_local $2)
+ (get_local $10)
)
- (set_local $4
- (get_local $1)
+ (block
+ (set_local $7
+ (get_local $2)
+ )
+ (set_local $4
+ (get_local $1)
+ )
+ (br $while-out$6)
)
- (br $while-out$6)
)
)
- )
- (set_local $10
- (i32.lt_u
- (set_local $8
- (i32.sub
- (i32.and
- (i32.load offset=4
- (get_local $7)
+ (set_local $10
+ (i32.lt_u
+ (tee_local $8
+ (i32.sub
+ (i32.and
+ (i32.load offset=4
+ (get_local $7)
+ )
+ (i32.const -8)
)
- (i32.const -8)
+ (get_local $0)
)
- (get_local $0)
)
+ (get_local $2)
)
- (get_local $2)
)
- )
- (set_local $2
- (select
- (get_local $8)
- (get_local $2)
- (get_local $10)
+ (set_local $2
+ (select
+ (get_local $8)
+ (get_local $2)
+ (get_local $10)
+ )
)
- )
- (set_local $5
- (get_local $7)
- )
- (set_local $1
- (select
+ (set_local $5
(get_local $7)
- (get_local $1)
- (get_local $10)
)
+ (set_local $1
+ (select
+ (get_local $7)
+ (get_local $1)
+ (get_local $10)
+ )
+ )
+ (br $while-in$7)
)
- (br $while-in$7)
)
(if
(i32.lt_u
(get_local $4)
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 192)
)
@@ -835,7 +870,7 @@
(if
(i32.ge_u
(get_local $4)
- (set_local $5
+ (tee_local $5
(i32.add
(get_local $4)
(get_local $0)
@@ -852,7 +887,7 @@
(block $do-once$8
(if
(i32.eq
- (set_local $9
+ (tee_local $9
(i32.load offset=12
(get_local $4)
)
@@ -861,9 +896,9 @@
)
(block
(if
- (set_local $19
+ (tee_local $19
(i32.load
- (set_local $16
+ (tee_local $16
(i32.add
(get_local $4)
(i32.const 20)
@@ -881,9 +916,9 @@
)
(if
(i32.eqz
- (set_local $8
+ (tee_local $8
(i32.load
- (set_local $10
+ (tee_local $10
(i32.add
(get_local $4)
(i32.const 16)
@@ -900,50 +935,52 @@
)
)
)
- (loop $while-out$10 $while-in$11
- (if
- (set_local $19
- (i32.load
- (set_local $16
- (i32.add
- (get_local $8)
- (i32.const 20)
+ (loop $while-in$11
+ (block $while-out$10
+ (if
+ (tee_local $19
+ (i32.load
+ (tee_local $16
+ (i32.add
+ (get_local $8)
+ (i32.const 20)
+ )
)
)
)
- )
- (block
- (set_local $8
- (get_local $19)
- )
- (set_local $10
- (get_local $16)
+ (block
+ (set_local $8
+ (get_local $19)
+ )
+ (set_local $10
+ (get_local $16)
+ )
+ (br $while-in$11)
)
- (br $while-in$11)
)
- )
- (if
- (set_local $19
- (i32.load
- (set_local $16
- (i32.add
- (get_local $8)
- (i32.const 16)
+ (if
+ (tee_local $19
+ (i32.load
+ (tee_local $16
+ (i32.add
+ (get_local $8)
+ (i32.const 16)
+ )
)
)
)
- )
- (block
- (set_local $8
- (get_local $19)
- )
- (set_local $10
- (get_local $16)
+ (block
+ (set_local $8
+ (get_local $19)
+ )
+ (set_local $10
+ (get_local $16)
+ )
)
+ (br $while-out$10)
)
- (br $while-out$10)
+ (br $while-in$11)
)
- (br $while-in$11)
)
(if
(i32.lt_u
@@ -965,7 +1002,7 @@
(block
(if
(i32.lt_u
- (set_local $16
+ (tee_local $16
(i32.load offset=8
(get_local $4)
)
@@ -977,7 +1014,7 @@
(if
(i32.ne
(i32.load
- (set_local $19
+ (tee_local $19
(i32.add
(get_local $16)
(i32.const 12)
@@ -991,7 +1028,7 @@
(if
(i32.eq
(i32.load
- (set_local $10
+ (tee_local $10
(i32.add
(get_local $9)
(i32.const 8)
@@ -1026,11 +1063,11 @@
(i32.eq
(get_local $4)
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
(i32.const 480)
(i32.shl
- (set_local $9
+ (tee_local $9
(i32.load offset=28
(get_local $4)
)
@@ -1083,7 +1120,7 @@
(if
(i32.eq
(i32.load
- (set_local $9
+ (tee_local $9
(i32.add
(get_local $2)
(i32.const 16)
@@ -1111,7 +1148,7 @@
(if
(i32.lt_u
(get_local $18)
- (set_local $9
+ (tee_local $9
(i32.load
(i32.const 192)
)
@@ -1124,7 +1161,7 @@
(get_local $2)
)
(if
- (set_local $1
+ (tee_local $1
(i32.load offset=16
(get_local $4)
)
@@ -1148,7 +1185,7 @@
)
)
(if
- (set_local $1
+ (tee_local $1
(i32.load offset=20
(get_local $4)
)
@@ -1185,7 +1222,7 @@
(i32.store offset=4
(get_local $4)
(i32.or
- (set_local $2
+ (tee_local $2
(i32.add
(get_local $7)
(get_local $0)
@@ -1195,7 +1232,7 @@
)
)
(i32.store
- (set_local $1
+ (tee_local $1
(i32.add
(i32.add
(get_local $4)
@@ -1235,7 +1272,7 @@
(get_local $7)
)
(if
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 184)
)
@@ -1251,7 +1288,7 @@
(i32.const 216)
(i32.shl
(i32.shl
- (set_local $9
+ (tee_local $9
(i32.shr_u
(get_local $1)
(i32.const 3)
@@ -1265,12 +1302,12 @@
)
(if
(i32.and
- (set_local $16
+ (tee_local $16
(i32.load
(i32.const 176)
)
)
- (set_local $10
+ (tee_local $10
(i32.shl
(i32.const 1)
(get_local $9)
@@ -1279,9 +1316,9 @@
)
(if
(i32.lt_u
- (set_local $19
+ (tee_local $19
(i32.load
- (set_local $9
+ (tee_local $9
(i32.add
(get_local $1)
(i32.const 8)
@@ -1357,10 +1394,8 @@
)
)
)
- (get_local $0)
)
)
- (get_local $0)
)
)
(if
@@ -1371,7 +1406,7 @@
(block
(set_local $2
(i32.and
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $0)
(i32.const 11)
@@ -1381,7 +1416,7 @@
)
)
(if
- (set_local $10
+ (tee_local $10
(i32.load
(i32.const 180)
)
@@ -1395,12 +1430,12 @@
)
(block $label$break$L123
(if
- (set_local $7
+ (tee_local $7
(i32.load offset=480
(i32.shl
- (set_local $0
+ (tee_local $0
(if
- (set_local $19
+ (tee_local $19
(i32.shr_u
(get_local $1)
(i32.const 8)
@@ -1417,20 +1452,20 @@
(i32.shr_u
(get_local $2)
(i32.add
- (set_local $7
+ (tee_local $7
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
- (set_local $19
+ (tee_local $19
(i32.and
(i32.shr_u
(i32.add
- (set_local $9
+ (tee_local $9
(i32.shl
(get_local $19)
- (set_local $1
+ (tee_local $1
(i32.and
(i32.shr_u
(i32.add
@@ -1453,11 +1488,11 @@
)
(get_local $1)
)
- (set_local $9
+ (tee_local $9
(i32.and
(i32.shr_u
(i32.add
- (set_local $8
+ (tee_local $8
(i32.shl
(get_local $9)
(get_local $19)
@@ -1531,82 +1566,84 @@
(set_local $4
(i32.const 0)
)
- (loop $while-out$17 $while-in$18
- (if
- (i32.lt_u
- (set_local $5
- (i32.sub
- (set_local $18
- (i32.and
- (i32.load offset=4
- (get_local $19)
+ (loop $while-in$18
+ (block $while-out$17
+ (if
+ (i32.lt_u
+ (tee_local $5
+ (i32.sub
+ (tee_local $18
+ (i32.and
+ (i32.load offset=4
+ (get_local $19)
+ )
+ (i32.const -8)
)
- (i32.const -8)
)
+ (get_local $2)
)
- (get_local $2)
)
+ (get_local $9)
)
- (get_local $9)
- )
- (if
- (i32.eq
- (get_local $18)
- (get_local $2)
- )
- (block
- (set_local $27
- (get_local $5)
- )
- (set_local $25
- (get_local $19)
- )
- (set_local $29
- (get_local $19)
- )
- (set_local $9
- (i32.const 90)
+ (if
+ (i32.eq
+ (get_local $18)
+ (get_local $2)
)
- (br $label$break$L123)
- )
- (block
- (set_local $9
- (get_local $5)
+ (block
+ (set_local $27
+ (get_local $5)
+ )
+ (set_local $25
+ (get_local $19)
+ )
+ (set_local $29
+ (get_local $19)
+ )
+ (set_local $9
+ (i32.const 90)
+ )
+ (br $label$break$L123)
)
- (set_local $4
- (get_local $19)
+ (block
+ (set_local $9
+ (get_local $5)
+ )
+ (set_local $4
+ (get_local $19)
+ )
)
)
)
- )
- (set_local $18
- (select
- (get_local $8)
- (set_local $5
- (i32.load offset=20
- (get_local $19)
- )
- )
- (i32.or
- (i32.eq
- (get_local $5)
- (i32.const 0)
+ (set_local $18
+ (select
+ (get_local $8)
+ (tee_local $5
+ (i32.load offset=20
+ (get_local $19)
+ )
)
- (i32.eq
- (get_local $5)
- (set_local $19
- (i32.load
- (i32.add
+ (i32.or
+ (i32.eq
+ (get_local $5)
+ (i32.const 0)
+ )
+ (i32.eq
+ (get_local $5)
+ (tee_local $19
+ (i32.load
(i32.add
- (get_local $19)
- (i32.const 16)
- )
- (i32.shl
- (i32.shr_u
- (get_local $1)
- (i32.const 31)
+ (i32.add
+ (get_local $19)
+ (i32.const 16)
+ )
+ (i32.shl
+ (i32.shr_u
+ (get_local $1)
+ (i32.const 31)
+ )
+ (i32.const 2)
)
- (i32.const 2)
)
)
)
@@ -1614,48 +1651,48 @@
)
)
)
- )
- (if
- (set_local $5
- (i32.eq
- (get_local $19)
- (i32.const 0)
- )
- )
- (block
- (set_local $33
- (get_local $9)
- )
- (set_local $34
- (get_local $18)
- )
- (set_local $30
- (get_local $4)
- )
- (set_local $9
- (i32.const 86)
+ (if
+ (tee_local $5
+ (i32.eq
+ (get_local $19)
+ (i32.const 0)
+ )
)
- (br $while-out$17)
- )
- (block
- (set_local $8
- (get_local $18)
+ (block
+ (set_local $33
+ (get_local $9)
+ )
+ (set_local $34
+ (get_local $18)
+ )
+ (set_local $30
+ (get_local $4)
+ )
+ (set_local $9
+ (i32.const 86)
+ )
+ (br $while-out$17)
)
- (set_local $1
- (i32.shl
- (get_local $1)
- (i32.xor
- (i32.and
- (get_local $5)
+ (block
+ (set_local $8
+ (get_local $18)
+ )
+ (set_local $1
+ (i32.shl
+ (get_local $1)
+ (i32.xor
+ (i32.and
+ (get_local $5)
+ (i32.const 1)
+ )
(i32.const 1)
)
- (i32.const 1)
)
)
)
)
+ (br $while-in$18)
)
- (br $while-in$18)
)
)
(block
@@ -1680,7 +1717,7 @@
(i32.const 86)
)
(if
- (set_local $0
+ (tee_local $0
(if
(i32.and
(i32.eq
@@ -1695,11 +1732,11 @@
(block
(if
(i32.eqz
- (set_local $16
+ (tee_local $16
(i32.and
(get_local $10)
(i32.or
- (set_local $7
+ (tee_local $7
(i32.shl
(i32.const 2)
(get_local $0)
@@ -1723,7 +1760,7 @@
(set_local $16
(i32.and
(i32.shr_u
- (set_local $7
+ (tee_local $7
(i32.add
(i32.and
(get_local $16)
@@ -1747,10 +1784,10 @@
(i32.or
(i32.or
(i32.or
- (set_local $7
+ (tee_local $7
(i32.and
(i32.shr_u
- (set_local $0
+ (tee_local $0
(i32.shr_u
(get_local $7)
(get_local $16)
@@ -1763,10 +1800,10 @@
)
(get_local $16)
)
- (set_local $0
+ (tee_local $0
(i32.and
(i32.shr_u
- (set_local $5
+ (tee_local $5
(i32.shr_u
(get_local $0)
(get_local $7)
@@ -1778,10 +1815,10 @@
)
)
)
- (set_local $5
+ (tee_local $5
(i32.and
(i32.shr_u
- (set_local $4
+ (tee_local $4
(i32.shr_u
(get_local $5)
(get_local $0)
@@ -1793,10 +1830,10 @@
)
)
)
- (set_local $4
+ (tee_local $4
(i32.and
(i32.shr_u
- (set_local $1
+ (tee_local $1
(i32.shr_u
(get_local $4)
(get_local $5)
@@ -1849,84 +1886,86 @@
(get_local $9)
(i32.const 90)
)
- (loop $while-out$19 $while-in$20
- (set_local $9
- (i32.const 0)
- )
- (set_local $1
- (i32.lt_u
- (set_local $4
- (i32.sub
- (i32.and
- (i32.load offset=4
- (get_local $25)
+ (loop $while-in$20
+ (block $while-out$19
+ (set_local $9
+ (i32.const 0)
+ )
+ (set_local $1
+ (i32.lt_u
+ (tee_local $4
+ (i32.sub
+ (i32.and
+ (i32.load offset=4
+ (get_local $25)
+ )
+ (i32.const -8)
)
- (i32.const -8)
+ (get_local $2)
)
- (get_local $2)
)
- )
- (get_local $27)
- )
- )
- (set_local $5
- (select
- (get_local $4)
- (get_local $27)
- (get_local $1)
- )
- )
- (set_local $4
- (select
- (get_local $25)
- (get_local $29)
- (get_local $1)
- )
- )
- (if
- (set_local $1
- (i32.load offset=16
- (get_local $25)
+ (get_local $27)
)
)
- (block
- (set_local $27
- (get_local $5)
- )
- (set_local $25
- (get_local $1)
- )
- (set_local $29
+ (set_local $5
+ (select
(get_local $4)
+ (get_local $27)
+ (get_local $1)
)
- (br $while-in$20)
)
- )
- (if
- (set_local $25
- (i32.load offset=20
+ (set_local $4
+ (select
(get_local $25)
+ (get_local $29)
+ (get_local $1)
)
)
- (block
- (set_local $27
- (get_local $5)
+ (if
+ (tee_local $1
+ (i32.load offset=16
+ (get_local $25)
+ )
)
- (set_local $29
- (get_local $4)
+ (block
+ (set_local $27
+ (get_local $5)
+ )
+ (set_local $25
+ (get_local $1)
+ )
+ (set_local $29
+ (get_local $4)
+ )
+ (br $while-in$20)
)
)
- (block
- (set_local $6
- (get_local $5)
+ (if
+ (tee_local $25
+ (i32.load offset=20
+ (get_local $25)
+ )
)
- (set_local $12
- (get_local $4)
+ (block
+ (set_local $27
+ (get_local $5)
+ )
+ (set_local $29
+ (get_local $4)
+ )
+ )
+ (block
+ (set_local $6
+ (get_local $5)
+ )
+ (set_local $12
+ (get_local $4)
+ )
+ (br $while-out$19)
)
- (br $while-out$19)
)
+ (br $while-in$20)
)
- (br $while-in$20)
)
)
(if
@@ -1950,7 +1989,7 @@
(if
(i32.lt_u
(get_local $12)
- (set_local $10
+ (tee_local $10
(i32.load
(i32.const 192)
)
@@ -1961,7 +2000,7 @@
(if
(i32.ge_u
(get_local $12)
- (set_local $4
+ (tee_local $4
(i32.add
(get_local $12)
(get_local $2)
@@ -1978,7 +2017,7 @@
(block $do-once$21
(if
(i32.eq
- (set_local $1
+ (tee_local $1
(i32.load offset=12
(get_local $12)
)
@@ -1987,9 +2026,9 @@
)
(block
(if
- (set_local $16
+ (tee_local $16
(i32.load
- (set_local $0
+ (tee_local $0
(i32.add
(get_local $12)
(i32.const 20)
@@ -2007,9 +2046,9 @@
)
(if
(i32.eqz
- (set_local $8
+ (tee_local $8
(i32.load
- (set_local $7
+ (tee_local $7
(i32.add
(get_local $12)
(i32.const 16)
@@ -2026,50 +2065,52 @@
)
)
)
- (loop $while-out$23 $while-in$24
- (if
- (set_local $16
- (i32.load
- (set_local $0
- (i32.add
- (get_local $8)
- (i32.const 20)
+ (loop $while-in$24
+ (block $while-out$23
+ (if
+ (tee_local $16
+ (i32.load
+ (tee_local $0
+ (i32.add
+ (get_local $8)
+ (i32.const 20)
+ )
)
)
)
- )
- (block
- (set_local $8
- (get_local $16)
- )
- (set_local $7
- (get_local $0)
+ (block
+ (set_local $8
+ (get_local $16)
+ )
+ (set_local $7
+ (get_local $0)
+ )
+ (br $while-in$24)
)
- (br $while-in$24)
)
- )
- (if
- (set_local $16
- (i32.load
- (set_local $0
- (i32.add
- (get_local $8)
- (i32.const 16)
+ (if
+ (tee_local $16
+ (i32.load
+ (tee_local $0
+ (i32.add
+ (get_local $8)
+ (i32.const 16)
+ )
)
)
)
- )
- (block
- (set_local $8
- (get_local $16)
- )
- (set_local $7
- (get_local $0)
+ (block
+ (set_local $8
+ (get_local $16)
+ )
+ (set_local $7
+ (get_local $0)
+ )
)
+ (br $while-out$23)
)
- (br $while-out$23)
+ (br $while-in$24)
)
- (br $while-in$24)
)
(if
(i32.lt_u
@@ -2091,7 +2132,7 @@
(block
(if
(i32.lt_u
- (set_local $0
+ (tee_local $0
(i32.load offset=8
(get_local $12)
)
@@ -2103,7 +2144,7 @@
(if
(i32.ne
(i32.load
- (set_local $16
+ (tee_local $16
(i32.add
(get_local $0)
(i32.const 12)
@@ -2117,7 +2158,7 @@
(if
(i32.eq
(i32.load
- (set_local $7
+ (tee_local $7
(i32.add
(get_local $1)
(i32.const 8)
@@ -2152,11 +2193,11 @@
(i32.eq
(get_local $12)
(i32.load
- (set_local $10
+ (tee_local $10
(i32.add
(i32.const 480)
(i32.shl
- (set_local $1
+ (tee_local $1
(i32.load offset=28
(get_local $12)
)
@@ -2209,7 +2250,7 @@
(if
(i32.eq
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $5)
(i32.const 16)
@@ -2237,7 +2278,7 @@
(if
(i32.lt_u
(get_local $11)
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 192)
)
@@ -2250,7 +2291,7 @@
(get_local $5)
)
(if
- (set_local $10
+ (tee_local $10
(i32.load offset=16
(get_local $12)
)
@@ -2274,7 +2315,7 @@
)
)
(if
- (set_local $10
+ (tee_local $10
(i32.load offset=20
(get_local $12)
)
@@ -2356,12 +2397,12 @@
)
(if
(i32.and
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 176)
)
)
- (set_local $0
+ (tee_local $0
(i32.shl
(i32.const 1)
(get_local $5)
@@ -2370,9 +2411,9 @@
)
(if
(i32.lt_u
- (set_local $7
+ (tee_local $7
(i32.load
- (set_local $5
+ (tee_local $5
(i32.add
(get_local $10)
(i32.const 8)
@@ -2436,9 +2477,9 @@
(i32.add
(i32.const 480)
(i32.shl
- (set_local $8
+ (tee_local $8
(if
- (set_local $10
+ (tee_local $10
(i32.shr_u
(get_local $6)
(i32.const 8)
@@ -2455,20 +2496,20 @@
(i32.shr_u
(get_local $6)
(i32.add
- (set_local $5
+ (tee_local $5
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
- (set_local $10
+ (tee_local $10
(i32.and
(i32.shr_u
(i32.add
- (set_local $1
+ (tee_local $1
(i32.shl
(get_local $10)
- (set_local $0
+ (tee_local $0
(i32.and
(i32.shr_u
(i32.add
@@ -2491,11 +2532,11 @@
)
(get_local $0)
)
- (set_local $1
+ (tee_local $1
(i32.and
(i32.shr_u
(i32.add
- (set_local $7
+ (tee_local $7
(i32.shl
(get_local $1)
(get_local $10)
@@ -2542,7 +2583,7 @@
(get_local $8)
)
(i32.store offset=4
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $4)
(i32.const 16)
@@ -2557,12 +2598,12 @@
(if
(i32.eqz
(i32.and
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 180)
)
)
- (set_local $7
+ (tee_local $7
(i32.shl
(i32.const 1)
(get_local $8)
@@ -2621,72 +2662,74 @@
(get_local $5)
)
)
- (loop $while-out$31 $while-in$32
- (if
- (i32.eq
- (i32.and
- (i32.load offset=4
- (get_local $1)
+ (loop $while-in$32
+ (block $while-out$31
+ (if
+ (i32.eq
+ (i32.and
+ (i32.load offset=4
+ (get_local $1)
+ )
+ (i32.const -8)
)
- (i32.const -8)
- )
- (get_local $6)
- )
- (block
- (set_local $15
- (get_local $1)
+ (get_local $6)
)
- (set_local $9
- (i32.const 148)
+ (block
+ (set_local $15
+ (get_local $1)
+ )
+ (set_local $9
+ (i32.const 148)
+ )
+ (br $while-out$31)
)
- (br $while-out$31)
)
- )
- (if
- (set_local $0
- (i32.load
- (set_local $5
- (i32.add
+ (if
+ (tee_local $0
+ (i32.load
+ (tee_local $5
(i32.add
- (get_local $1)
- (i32.const 16)
- )
- (i32.shl
- (i32.shr_u
- (get_local $7)
- (i32.const 31)
+ (i32.add
+ (get_local $1)
+ (i32.const 16)
+ )
+ (i32.shl
+ (i32.shr_u
+ (get_local $7)
+ (i32.const 31)
+ )
+ (i32.const 2)
)
- (i32.const 2)
)
)
)
)
- )
- (block
- (set_local $7
- (i32.shl
- (get_local $7)
- (i32.const 1)
+ (block
+ (set_local $7
+ (i32.shl
+ (get_local $7)
+ (i32.const 1)
+ )
+ )
+ (set_local $1
+ (get_local $0)
)
)
- (set_local $1
- (get_local $0)
- )
- )
- (block
- (set_local $23
- (get_local $5)
- )
- (set_local $21
- (get_local $1)
- )
- (set_local $9
- (i32.const 145)
+ (block
+ (set_local $23
+ (get_local $5)
+ )
+ (set_local $21
+ (get_local $1)
+ )
+ (set_local $9
+ (i32.const 145)
+ )
+ (br $while-out$31)
)
- (br $while-out$31)
)
+ (br $while-in$32)
)
- (br $while-in$32)
)
(if
(i32.eq
@@ -2728,9 +2771,9 @@
(if
(i32.and
(i32.ge_u
- (set_local $7
+ (tee_local $7
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $15)
(i32.const 8)
@@ -2738,7 +2781,7 @@
)
)
)
- (set_local $0
+ (tee_local $0
(i32.load
(i32.const 192)
)
@@ -2780,7 +2823,7 @@
(i32.store offset=4
(get_local $12)
(i32.or
- (set_local $7
+ (tee_local $7
(i32.add
(get_local $6)
(get_local $2)
@@ -2790,7 +2833,7 @@
)
)
(i32.store
- (set_local $1
+ (tee_local $1
(i32.add
(i32.add
(get_local $12)
@@ -2834,7 +2877,7 @@
)
(if
(i32.ge_u
- (set_local $12
+ (tee_local $12
(i32.load
(i32.const 184)
)
@@ -2849,7 +2892,7 @@
)
(if
(i32.gt_u
- (set_local $6
+ (tee_local $6
(i32.sub
(get_local $12)
(get_local $0)
@@ -2860,7 +2903,7 @@
(block
(i32.store
(i32.const 196)
- (set_local $21
+ (tee_local $21
(i32.add
(get_local $15)
(get_local $0)
@@ -2910,7 +2953,7 @@
)
)
(i32.store
- (set_local $6
+ (tee_local $6
(i32.add
(i32.add
(get_local $15)
@@ -2938,7 +2981,7 @@
)
(if
(i32.gt_u
- (set_local $15
+ (tee_local $15
(i32.load
(i32.const 188)
)
@@ -2948,7 +2991,7 @@
(block
(i32.store
(i32.const 188)
- (set_local $6
+ (tee_local $6
(i32.sub
(get_local $15)
(get_local $0)
@@ -2957,9 +3000,9 @@
)
(i32.store
(i32.const 200)
- (set_local $12
+ (tee_local $12
(i32.add
- (set_local $15
+ (tee_local $15
(i32.load
(i32.const 200)
)
@@ -2999,7 +3042,7 @@
(if
(i32.and
(i32.add
- (set_local $15
+ (tee_local $15
(call_import $_sysconf
(i32.const 30)
)
@@ -3057,16 +3100,16 @@
)
(if
(i32.le_u
- (set_local $6
+ (tee_local $6
(i32.and
- (set_local $21
+ (tee_local $21
(i32.add
- (set_local $6
+ (tee_local $6
(i32.load
(i32.const 656)
)
)
- (set_local $12
+ (tee_local $12
(i32.add
(get_local $0)
(i32.const 47)
@@ -3074,7 +3117,7 @@
)
)
)
- (set_local $23
+ (tee_local $23
(i32.sub
(i32.const 0)
(get_local $6)
@@ -3091,7 +3134,7 @@
(if
(if
(i32.ne
- (set_local $8
+ (tee_local $8
(i32.load
(i32.const 616)
)
@@ -3100,9 +3143,9 @@
)
(i32.or
(i32.le_u
- (set_local $14
+ (tee_local $14
(i32.add
- (set_local $26
+ (tee_local $26
(i32.load
(i32.const 608)
)
@@ -3133,7 +3176,7 @@
)
(i32.const 0)
(i32.eq
- (set_local $9
+ (tee_local $9
(block $label$break$L257
(if
(i32.and
@@ -3146,7 +3189,7 @@
(block
(block $label$break$L259
(if
- (set_local $8
+ (tee_local $8
(i32.load
(i32.const 200)
)
@@ -3155,63 +3198,65 @@
(set_local $14
(i32.const 624)
)
- (loop $while-out$37 $while-in$38
- (if
+ (loop $while-in$38
+ (block $while-out$37
(if
- (i32.le_u
- (set_local $26
- (i32.load
- (get_local $14)
+ (if
+ (i32.le_u
+ (tee_local $26
+ (i32.load
+ (get_local $14)
+ )
)
+ (get_local $8)
)
- (get_local $8)
- )
- (i32.gt_u
- (i32.add
- (get_local $26)
- (i32.load
- (set_local $11
- (i32.add
- (get_local $14)
- (i32.const 4)
+ (i32.gt_u
+ (i32.add
+ (get_local $26)
+ (i32.load
+ (tee_local $11
+ (i32.add
+ (get_local $14)
+ (i32.const 4)
+ )
)
)
)
+ (get_local $8)
)
- (get_local $8)
- )
- (i32.const 0)
- )
- (block
- (set_local $5
- (get_local $14)
- )
- (set_local $7
- (get_local $11)
+ (i32.const 0)
)
- (br $while-out$37)
- )
- )
- (if
- (i32.eqz
- (set_local $14
- (i32.load offset=8
+ (block
+ (set_local $5
(get_local $14)
)
+ (set_local $7
+ (get_local $11)
+ )
+ (br $while-out$37)
)
)
- (block
- (set_local $9
- (i32.const 173)
+ (if
+ (i32.eqz
+ (tee_local $14
+ (i32.load offset=8
+ (get_local $14)
+ )
+ )
+ )
+ (block
+ (set_local $9
+ (i32.const 173)
+ )
+ (br $label$break$L259)
)
- (br $label$break$L259)
)
+ (br $while-in$38)
)
- (br $while-in$38)
)
(if
(i32.lt_u
- (set_local $14
+ (tee_local $14
(i32.and
(i32.sub
(get_local $21)
@@ -3226,7 +3271,7 @@
)
(if
(i32.eq
- (set_local $11
+ (tee_local $11
(call_import $_sbrk
(get_local $14)
)
@@ -3284,7 +3329,7 @@
(i32.const 173)
)
(i32.ne
- (set_local $8
+ (tee_local $8
(call_import $_sbrk
(i32.const 0)
)
@@ -3297,9 +3342,9 @@
(set_local $1
(if
(i32.and
- (set_local $11
+ (tee_local $11
(i32.add
- (set_local $14
+ (tee_local $14
(i32.load
(i32.const 652)
)
@@ -3307,7 +3352,7 @@
(i32.const -1)
)
)
- (set_local $2
+ (tee_local $2
(get_local $8)
)
)
@@ -3332,7 +3377,7 @@
)
(set_local $2
(i32.add
- (set_local $14
+ (tee_local $14
(i32.load
(i32.const 608)
)
@@ -3361,7 +3406,7 @@
)
(i32.gt_u
(get_local $2)
- (set_local $11
+ (tee_local $11
(i32.load
(i32.const 616)
)
@@ -3377,7 +3422,7 @@
)
(if
(i32.eq
- (set_local $11
+ (tee_local $11
(call_import $_sbrk
(get_local $1)
)
@@ -3444,14 +3489,14 @@
)
)
(i32.lt_u
- (set_local $2
+ (tee_local $2
(i32.and
(i32.add
(i32.sub
(get_local $12)
(get_local $17)
)
- (set_local $8
+ (tee_local $8
(i32.load
(i32.const 656)
)
@@ -3475,8 +3520,10 @@
(i32.const -1)
)
(block
- (call_import $_sbrk
- (get_local $11)
+ (drop
+ (call_import $_sbrk
+ (get_local $11)
+ )
)
(br $label$break$L279)
)
@@ -3530,12 +3577,12 @@
)
(i32.and
(i32.lt_u
- (set_local $3
+ (tee_local $3
(call_import $_sbrk
(get_local $6)
)
)
- (set_local $6
+ (tee_local $6
(call_import $_sbrk
(i32.const 0)
)
@@ -3555,7 +3602,7 @@
(i32.const 0)
)
(i32.gt_u
- (set_local $13
+ (tee_local $13
(i32.sub
(get_local $6)
(get_local $3)
@@ -3588,7 +3635,7 @@
(block
(i32.store
(i32.const 608)
- (set_local $13
+ (tee_local $13
(i32.add
(i32.load
(i32.const 608)
@@ -3611,7 +3658,7 @@
)
(block $do-once$44
(if
- (set_local $13
+ (tee_local $13
(i32.load
(i32.const 200)
)
@@ -3620,55 +3667,57 @@
(set_local $3
(i32.const 624)
)
- (loop $do-out$46 $do-in$47
- (if
- (i32.eq
- (get_local $20)
- (i32.add
- (set_local $6
- (i32.load
- (get_local $3)
+ (loop $do-in$47
+ (block $do-out$46
+ (if
+ (i32.eq
+ (get_local $20)
+ (i32.add
+ (tee_local $6
+ (i32.load
+ (get_local $3)
+ )
)
- )
- (set_local $12
- (i32.load
- (set_local $17
- (i32.add
- (get_local $3)
- (i32.const 4)
+ (tee_local $12
+ (i32.load
+ (tee_local $17
+ (i32.add
+ (get_local $3)
+ (i32.const 4)
+ )
)
)
)
)
)
- )
- (block
- (set_local $47
- (get_local $6)
- )
- (set_local $48
- (get_local $17)
- )
- (set_local $49
- (get_local $12)
- )
- (set_local $50
- (get_local $3)
- )
- (set_local $9
- (i32.const 203)
+ (block
+ (set_local $47
+ (get_local $6)
+ )
+ (set_local $48
+ (get_local $17)
+ )
+ (set_local $49
+ (get_local $12)
+ )
+ (set_local $50
+ (get_local $3)
+ )
+ (set_local $9
+ (i32.const 203)
+ )
+ (br $do-out$46)
)
- (br $do-out$46)
)
- )
- (br_if $do-in$47
- (i32.ne
- (set_local $3
- (i32.load offset=8
- (get_local $3)
+ (br_if $do-in$47
+ (i32.ne
+ (tee_local $3
+ (i32.load offset=8
+ (get_local $3)
+ )
)
+ (i32.const 0)
)
- (i32.const 0)
)
)
)
@@ -3713,13 +3762,13 @@
(set_local $3
(i32.add
(get_local $13)
- (set_local $12
+ (tee_local $12
(select
(i32.const 0)
(i32.and
(i32.sub
(i32.const 0)
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $13)
(i32.const 8)
@@ -3785,7 +3834,7 @@
(if
(i32.lt_u
(get_local $20)
- (set_local $17
+ (tee_local $17
(i32.load
(i32.const 192)
)
@@ -3810,43 +3859,45 @@
(set_local $3
(i32.const 624)
)
- (loop $while-out$48 $while-in$49
- (if
- (i32.eq
- (i32.load
- (get_local $3)
- )
- (get_local $17)
- )
- (block
- (set_local $51
- (get_local $3)
- )
- (set_local $41
- (get_local $3)
- )
- (set_local $9
- (i32.const 211)
+ (loop $while-in$49
+ (block $while-out$48
+ (if
+ (i32.eq
+ (i32.load
+ (get_local $3)
+ )
+ (get_local $17)
)
- (br $while-out$48)
- )
- )
- (if
- (i32.eqz
- (set_local $3
- (i32.load offset=8
+ (block
+ (set_local $51
(get_local $3)
)
+ (set_local $41
+ (get_local $3)
+ )
+ (set_local $9
+ (i32.const 211)
+ )
+ (br $while-out$48)
)
)
- (block
- (set_local $28
- (i32.const 624)
+ (if
+ (i32.eqz
+ (tee_local $3
+ (i32.load offset=8
+ (get_local $3)
+ )
+ )
+ )
+ (block
+ (set_local $28
+ (i32.const 624)
+ )
+ (br $while-out$48)
)
- (br $while-out$48)
)
+ (br $while-in$49)
)
- (br $while-in$49)
)
(if
(i32.eq
@@ -3869,7 +3920,7 @@
(get_local $20)
)
(i32.store
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $41)
(i32.const 4)
@@ -3890,7 +3941,7 @@
(i32.and
(i32.sub
(i32.const 0)
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $20)
(i32.const 8)
@@ -3917,7 +3968,7 @@
(i32.and
(i32.sub
(i32.const 0)
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $17)
(i32.const 8)
@@ -3975,7 +4026,7 @@
(block
(i32.store
(i32.const 184)
- (set_local $1
+ (tee_local $1
(i32.add
(i32.load
(i32.const 184)
@@ -4006,12 +4057,12 @@
)
)
(i32.store
- (set_local $5
+ (tee_local $5
(i32.add
(if
(i32.eq
(i32.and
- (set_local $1
+ (tee_local $1
(i32.load offset=4
(get_local $6)
)
@@ -4048,7 +4099,7 @@
(block $do-once$53
(if
(i32.eq
- (set_local $21
+ (tee_local $21
(i32.load offset=12
(get_local $6)
)
@@ -4057,11 +4108,11 @@
)
(block
(if
- (set_local $8
+ (tee_local $8
(i32.load
- (set_local $2
+ (tee_local $2
(i32.add
- (set_local $11
+ (tee_local $11
(i32.add
(get_local $6)
(i32.const 16)
@@ -4082,7 +4133,7 @@
)
(if
(i32.eqz
- (set_local $14
+ (tee_local $14
(i32.load
(get_local $11)
)
@@ -4096,50 +4147,52 @@
)
)
)
- (loop $while-out$55 $while-in$56
- (if
- (set_local $8
- (i32.load
- (set_local $2
- (i32.add
- (get_local $14)
- (i32.const 20)
+ (loop $while-in$56
+ (block $while-out$55
+ (if
+ (tee_local $8
+ (i32.load
+ (tee_local $2
+ (i32.add
+ (get_local $14)
+ (i32.const 20)
+ )
)
)
)
- )
- (block
- (set_local $14
- (get_local $8)
- )
- (set_local $11
- (get_local $2)
+ (block
+ (set_local $14
+ (get_local $8)
+ )
+ (set_local $11
+ (get_local $2)
+ )
+ (br $while-in$56)
)
- (br $while-in$56)
)
- )
- (if
- (set_local $8
- (i32.load
- (set_local $2
- (i32.add
- (get_local $14)
- (i32.const 16)
+ (if
+ (tee_local $8
+ (i32.load
+ (tee_local $2
+ (i32.add
+ (get_local $14)
+ (i32.const 16)
+ )
)
)
)
- )
- (block
- (set_local $14
- (get_local $8)
- )
- (set_local $11
- (get_local $2)
+ (block
+ (set_local $14
+ (get_local $8)
+ )
+ (set_local $11
+ (get_local $2)
+ )
)
+ (br $while-out$55)
)
- (br $while-out$55)
+ (br $while-in$56)
)
- (br $while-in$56)
)
(if
(i32.lt_u
@@ -4161,7 +4214,7 @@
(block
(if
(i32.lt_u
- (set_local $2
+ (tee_local $2
(i32.load offset=8
(get_local $6)
)
@@ -4173,7 +4226,7 @@
(if
(i32.ne
(i32.load
- (set_local $8
+ (tee_local $8
(i32.add
(get_local $2)
(i32.const 12)
@@ -4187,7 +4240,7 @@
(if
(i32.eq
(i32.load
- (set_local $11
+ (tee_local $11
(i32.add
(get_local $21)
(i32.const 8)
@@ -4224,11 +4277,11 @@
(i32.ne
(get_local $6)
(i32.load
- (set_local $2
+ (tee_local $2
(i32.add
(i32.const 480)
(i32.shl
- (set_local $21
+ (tee_local $21
(i32.load offset=28
(get_local $6)
)
@@ -4252,7 +4305,7 @@
(if
(i32.eq
(i32.load
- (set_local $11
+ (tee_local $11
(i32.add
(get_local $23)
(i32.const 16)
@@ -4306,7 +4359,7 @@
(if
(i32.lt_u
(get_local $24)
- (set_local $21
+ (tee_local $21
(i32.load
(i32.const 192)
)
@@ -4319,9 +4372,9 @@
(get_local $23)
)
(if
- (set_local $11
+ (tee_local $11
(i32.load
- (set_local $2
+ (tee_local $2
(i32.add
(get_local $6)
(i32.const 16)
@@ -4349,7 +4402,7 @@
)
(br_if $label$break$L331
(i32.eqz
- (set_local $11
+ (tee_local $11
(i32.load offset=4
(get_local $2)
)
@@ -4385,12 +4438,12 @@
(block $do-once$61
(if
(i32.ne
- (set_local $11
+ (tee_local $11
(i32.load offset=8
(get_local $6)
)
)
- (set_local $23
+ (tee_local $23
(i32.add
(i32.const 216)
(i32.shl
@@ -4470,7 +4523,7 @@
(if
(i32.eq
(i32.load
- (set_local $2
+ (tee_local $2
(i32.add
(get_local $21)
(i32.const 8)
@@ -4565,12 +4618,12 @@
(block $do-once$65
(if
(i32.and
- (set_local $23
+ (tee_local $23
(i32.load
(i32.const 176)
)
)
- (set_local $2
+ (tee_local $2
(i32.shl
(i32.const 1)
(get_local $5)
@@ -4580,9 +4633,9 @@
(block
(if
(i32.ge_u
- (set_local $8
+ (tee_local $8
(i32.load
- (set_local $5
+ (tee_local $5
(i32.add
(get_local $1)
(i32.const 8)
@@ -4649,10 +4702,10 @@
(i32.add
(i32.const 480)
(i32.shl
- (set_local $0
+ (tee_local $0
(block $do-once$67
(if
- (set_local $2
+ (tee_local $2
(i32.shr_u
(get_local $15)
(i32.const 8)
@@ -4671,20 +4724,20 @@
(i32.shr_u
(get_local $15)
(i32.add
- (set_local $14
+ (tee_local $14
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
- (set_local $8
+ (tee_local $8
(i32.and
(i32.shr_u
(i32.add
- (set_local $7
+ (tee_local $7
(i32.shl
(get_local $2)
- (set_local $23
+ (tee_local $23
(i32.and
(i32.shr_u
(i32.add
@@ -4707,11 +4760,11 @@
)
(get_local $23)
)
- (set_local $7
+ (tee_local $7
(i32.and
(i32.shr_u
(i32.add
- (set_local $5
+ (tee_local $5
(i32.shl
(get_local $7)
(get_local $8)
@@ -4759,7 +4812,7 @@
(get_local $0)
)
(i32.store offset=4
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $3)
(i32.const 16)
@@ -4774,12 +4827,12 @@
(if
(i32.eqz
(i32.and
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 180)
)
)
- (set_local $14
+ (tee_local $14
(i32.shl
(i32.const 1)
(get_local $0)
@@ -4838,72 +4891,74 @@
(get_local $2)
)
)
- (loop $while-out$69 $while-in$70
- (if
- (i32.eq
- (i32.and
- (i32.load offset=4
- (get_local $1)
+ (loop $while-in$70
+ (block $while-out$69
+ (if
+ (i32.eq
+ (i32.and
+ (i32.load offset=4
+ (get_local $1)
+ )
+ (i32.const -8)
)
- (i32.const -8)
+ (get_local $15)
)
- (get_local $15)
- )
- (block
- (set_local $36
- (get_local $1)
- )
- (set_local $9
- (i32.const 281)
+ (block
+ (set_local $36
+ (get_local $1)
+ )
+ (set_local $9
+ (i32.const 281)
+ )
+ (br $while-out$69)
)
- (br $while-out$69)
)
- )
- (if
- (set_local $7
- (i32.load
- (set_local $2
- (i32.add
+ (if
+ (tee_local $7
+ (i32.load
+ (tee_local $2
(i32.add
- (get_local $1)
- (i32.const 16)
- )
- (i32.shl
- (i32.shr_u
- (get_local $14)
- (i32.const 31)
+ (i32.add
+ (get_local $1)
+ (i32.const 16)
+ )
+ (i32.shl
+ (i32.shr_u
+ (get_local $14)
+ (i32.const 31)
+ )
+ (i32.const 2)
)
- (i32.const 2)
)
)
)
)
- )
- (block
- (set_local $14
- (i32.shl
- (get_local $14)
- (i32.const 1)
+ (block
+ (set_local $14
+ (i32.shl
+ (get_local $14)
+ (i32.const 1)
+ )
+ )
+ (set_local $1
+ (get_local $7)
)
)
- (set_local $1
- (get_local $7)
- )
- )
- (block
- (set_local $44
- (get_local $2)
- )
- (set_local $52
- (get_local $1)
- )
- (set_local $9
- (i32.const 278)
+ (block
+ (set_local $44
+ (get_local $2)
+ )
+ (set_local $52
+ (get_local $1)
+ )
+ (set_local $9
+ (i32.const 278)
+ )
+ (br $while-out$69)
)
- (br $while-out$69)
)
+ (br $while-in$70)
)
- (br $while-in$70)
)
(if
(i32.eq
@@ -4945,9 +5000,9 @@
(if
(i32.and
(i32.ge_u
- (set_local $14
+ (tee_local $14
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $36)
(i32.const 8)
@@ -4955,7 +5010,7 @@
)
)
)
- (set_local $7
+ (tee_local $7
(i32.load
(i32.const 192)
)
@@ -4996,7 +5051,7 @@
(block
(i32.store
(i32.const 188)
- (set_local $14
+ (tee_local $14
(i32.add
(i32.load
(i32.const 188)
@@ -5028,47 +5083,49 @@
)
)
)
- (loop $while-out$71 $while-in$72
- (if
+ (loop $while-in$72
+ (block $while-out$71
(if
- (i32.le_u
- (set_local $3
- (i32.load
- (get_local $28)
+ (if
+ (i32.le_u
+ (tee_local $3
+ (i32.load
+ (get_local $28)
+ )
)
+ (get_local $13)
)
- (get_local $13)
- )
- (i32.gt_u
- (set_local $15
- (i32.add
- (get_local $3)
- (i32.load offset=4
- (get_local $28)
+ (i32.gt_u
+ (tee_local $15
+ (i32.add
+ (get_local $3)
+ (i32.load offset=4
+ (get_local $28)
+ )
)
)
+ (get_local $13)
)
- (get_local $13)
+ (i32.const 0)
)
- (i32.const 0)
- )
- (block
- (set_local $5
- (get_local $15)
+ (block
+ (set_local $5
+ (get_local $15)
+ )
+ (br $while-out$71)
)
- (br $while-out$71)
)
- )
- (set_local $28
- (i32.load offset=8
- (get_local $28)
+ (set_local $28
+ (i32.load offset=8
+ (get_local $28)
+ )
)
+ (br $while-in$72)
)
- (br $while-in$72)
)
(set_local $15
(i32.add
- (set_local $12
+ (tee_local $12
(i32.add
(get_local $5)
(i32.const -47)
@@ -5079,10 +5136,10 @@
)
(set_local $3
(i32.add
- (set_local $12
+ (tee_local $12
(select
(get_local $13)
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $12)
(select
@@ -5106,7 +5163,7 @@
)
(i32.lt_u
(get_local $3)
- (set_local $15
+ (tee_local $15
(i32.add
(get_local $13)
(i32.const 16)
@@ -5120,16 +5177,16 @@
)
(i32.store
(i32.const 200)
- (set_local $6
+ (tee_local $6
(i32.add
(get_local $20)
- (set_local $17
+ (tee_local $17
(select
(i32.const 0)
(i32.and
(i32.sub
(i32.const 0)
- (set_local $6
+ (tee_local $6
(i32.add
(get_local $20)
(i32.const 8)
@@ -5152,7 +5209,7 @@
)
(i32.store
(i32.const 188)
- (set_local $14
+ (tee_local $14
(i32.sub
(i32.add
(get_local $22)
@@ -5183,7 +5240,7 @@
)
)
(i32.store
- (set_local $14
+ (tee_local $14
(i32.add
(get_local $12)
(i32.const 4)
@@ -5239,7 +5296,7 @@
)
(loop $do-in$74
(i32.store
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $3)
(i32.const 4)
@@ -5275,7 +5332,7 @@
(i32.store offset=4
(get_local $13)
(i32.or
- (set_local $3
+ (tee_local $3
(i32.sub
(get_local $12)
(get_local $13)
@@ -5314,12 +5371,12 @@
)
(if
(i32.and
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 176)
)
)
- (set_local $7
+ (tee_local $7
(i32.shl
(i32.const 1)
(get_local $6)
@@ -5328,9 +5385,9 @@
)
(if
(i32.lt_u
- (set_local $2
+ (tee_local $2
(i32.load
- (set_local $6
+ (tee_local $6
(i32.add
(get_local $17)
(i32.const 8)
@@ -5394,9 +5451,9 @@
(i32.add
(i32.const 480)
(i32.shl
- (set_local $5
+ (tee_local $5
(if
- (set_local $17
+ (tee_local $17
(i32.shr_u
(get_local $3)
(i32.const 8)
@@ -5413,20 +5470,20 @@
(i32.shr_u
(get_local $3)
(i32.add
- (set_local $6
+ (tee_local $6
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
- (set_local $17
+ (tee_local $17
(i32.and
(i32.shr_u
(i32.add
- (set_local $1
+ (tee_local $1
(i32.shl
(get_local $17)
- (set_local $7
+ (tee_local $7
(i32.and
(i32.shr_u
(i32.add
@@ -5449,11 +5506,11 @@
)
(get_local $7)
)
- (set_local $1
+ (tee_local $1
(i32.and
(i32.shr_u
(i32.add
- (set_local $2
+ (tee_local $2
(i32.shl
(get_local $1)
(get_local $17)
@@ -5510,12 +5567,12 @@
(if
(i32.eqz
(i32.and
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 180)
)
)
- (set_local $2
+ (tee_local $2
(i32.shl
(i32.const 1)
(get_local $5)
@@ -5574,72 +5631,74 @@
(get_local $6)
)
)
- (loop $while-out$75 $while-in$76
- (if
- (i32.eq
- (i32.and
- (i32.load offset=4
- (get_local $1)
+ (loop $while-in$76
+ (block $while-out$75
+ (if
+ (i32.eq
+ (i32.and
+ (i32.load offset=4
+ (get_local $1)
+ )
+ (i32.const -8)
)
- (i32.const -8)
- )
- (get_local $3)
- )
- (block
- (set_local $38
- (get_local $1)
+ (get_local $3)
)
- (set_local $9
- (i32.const 307)
+ (block
+ (set_local $38
+ (get_local $1)
+ )
+ (set_local $9
+ (i32.const 307)
+ )
+ (br $while-out$75)
)
- (br $while-out$75)
)
- )
- (if
- (set_local $7
- (i32.load
- (set_local $6
- (i32.add
+ (if
+ (tee_local $7
+ (i32.load
+ (tee_local $6
(i32.add
- (get_local $1)
- (i32.const 16)
- )
- (i32.shl
- (i32.shr_u
- (get_local $2)
- (i32.const 31)
+ (i32.add
+ (get_local $1)
+ (i32.const 16)
+ )
+ (i32.shl
+ (i32.shr_u
+ (get_local $2)
+ (i32.const 31)
+ )
+ (i32.const 2)
)
- (i32.const 2)
)
)
)
)
- )
- (block
- (set_local $2
- (i32.shl
- (get_local $2)
- (i32.const 1)
+ (block
+ (set_local $2
+ (i32.shl
+ (get_local $2)
+ (i32.const 1)
+ )
+ )
+ (set_local $1
+ (get_local $7)
)
)
- (set_local $1
- (get_local $7)
- )
- )
- (block
- (set_local $46
- (get_local $6)
- )
- (set_local $53
- (get_local $1)
- )
- (set_local $9
- (i32.const 304)
+ (block
+ (set_local $46
+ (get_local $6)
+ )
+ (set_local $53
+ (get_local $1)
+ )
+ (set_local $9
+ (i32.const 304)
+ )
+ (br $while-out$75)
)
- (br $while-out$75)
)
+ (br $while-in$76)
)
- (br $while-in$76)
)
(if
(i32.eq
@@ -5681,9 +5740,9 @@
(if
(i32.and
(i32.ge_u
- (set_local $2
+ (tee_local $2
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $38)
(i32.const 8)
@@ -5691,7 +5750,7 @@
)
)
)
- (set_local $3
+ (tee_local $3
(i32.load
(i32.const 192)
)
@@ -5735,7 +5794,7 @@
(if
(i32.or
(i32.eq
- (set_local $2
+ (tee_local $2
(i32.load
(i32.const 192)
)
@@ -5779,7 +5838,7 @@
)
(loop $do-in$78
(i32.store offset=12
- (set_local $1
+ (tee_local $1
(i32.add
(i32.const 216)
(i32.shl
@@ -5799,7 +5858,7 @@
)
(br_if $do-in$78
(i32.ne
- (set_local $2
+ (tee_local $2
(i32.add
(get_local $2)
(i32.const 1)
@@ -5811,16 +5870,16 @@
)
(i32.store
(i32.const 200)
- (set_local $2
+ (tee_local $2
(i32.add
(get_local $20)
- (set_local $1
+ (tee_local $1
(select
(i32.const 0)
(i32.and
(i32.sub
(i32.const 0)
- (set_local $2
+ (tee_local $2
(i32.add
(get_local $20)
(i32.const 8)
@@ -5843,7 +5902,7 @@
)
(i32.store
(i32.const 188)
- (set_local $3
+ (tee_local $3
(i32.sub
(i32.add
(get_local $22)
@@ -5878,7 +5937,7 @@
)
(if
(i32.gt_u
- (set_local $22
+ (tee_local $22
(i32.load
(i32.const 188)
)
@@ -5888,7 +5947,7 @@
(block
(i32.store
(i32.const 188)
- (set_local $20
+ (tee_local $20
(i32.sub
(get_local $22)
(get_local $0)
@@ -5897,9 +5956,9 @@
)
(i32.store
(i32.const 200)
- (set_local $13
+ (tee_local $13
(i32.add
- (set_local $22
+ (tee_local $22
(i32.load
(i32.const 200)
)
@@ -5966,13 +6025,13 @@
)
(if
(i32.lt_u
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $0)
(i32.const -8)
)
)
- (set_local $14
+ (tee_local $14
(i32.load
(i32.const 192)
)
@@ -5982,9 +6041,9 @@
)
(if
(i32.eq
- (set_local $0
+ (tee_local $0
(i32.and
- (set_local $9
+ (tee_local $9
(i32.load
(i32.add
(get_local $0)
@@ -6002,7 +6061,7 @@
(set_local $8
(i32.add
(get_local $1)
- (set_local $3
+ (tee_local $3
(i32.and
(get_local $9)
(i32.const -8)
@@ -6044,7 +6103,7 @@
)
(if
(i32.lt_u
- (set_local $0
+ (tee_local $0
(i32.add
(get_local $1)
(i32.sub
@@ -6068,9 +6127,9 @@
(if
(i32.ne
(i32.and
- (set_local $5
+ (tee_local $5
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $8)
(i32.const 4)
@@ -6139,12 +6198,12 @@
)
(if
(i32.ne
- (set_local $9
+ (tee_local $9
(i32.load offset=8
(get_local $0)
)
)
- (set_local $6
+ (tee_local $6
(i32.add
(i32.const 216)
(i32.shl
@@ -6222,7 +6281,7 @@
(if
(i32.eq
(i32.load
- (set_local $6
+ (tee_local $6
(i32.add
(get_local $1)
(i32.const 8)
@@ -6269,7 +6328,7 @@
(block $do-once$2
(if
(i32.eq
- (set_local $1
+ (tee_local $1
(i32.load offset=12
(get_local $0)
)
@@ -6278,11 +6337,11 @@
)
(block
(if
- (set_local $11
+ (tee_local $11
(i32.load
- (set_local $5
+ (tee_local $5
(i32.add
- (set_local $6
+ (tee_local $6
(i32.add
(get_local $0)
(i32.const 16)
@@ -6303,7 +6362,7 @@
)
(if
(i32.eqz
- (set_local $1
+ (tee_local $1
(i32.load
(get_local $6)
)
@@ -6317,58 +6376,60 @@
)
)
)
- (loop $while-out$4 $while-in$5
- (if
- (set_local $11
- (i32.load
- (set_local $5
- (i32.add
- (get_local $1)
- (i32.const 20)
+ (loop $while-in$5
+ (block $while-out$4
+ (if
+ (tee_local $11
+ (i32.load
+ (tee_local $5
+ (i32.add
+ (get_local $1)
+ (i32.const 20)
+ )
)
)
)
- )
- (block
- (set_local $1
- (get_local $11)
- )
- (set_local $6
- (get_local $5)
+ (block
+ (set_local $1
+ (get_local $11)
+ )
+ (set_local $6
+ (get_local $5)
+ )
+ (br $while-in$5)
)
- (br $while-in$5)
)
- )
- (if
- (set_local $11
- (i32.load
- (set_local $5
- (i32.add
- (get_local $1)
- (i32.const 16)
+ (if
+ (tee_local $11
+ (i32.load
+ (tee_local $5
+ (i32.add
+ (get_local $1)
+ (i32.const 16)
+ )
)
)
)
- )
- (block
- (set_local $1
- (get_local $11)
- )
- (set_local $6
- (get_local $5)
- )
- )
- (block
- (set_local $5
- (get_local $1)
+ (block
+ (set_local $1
+ (get_local $11)
+ )
+ (set_local $6
+ (get_local $5)
+ )
)
- (set_local $10
- (get_local $6)
+ (block
+ (set_local $5
+ (get_local $1)
+ )
+ (set_local $10
+ (get_local $6)
+ )
+ (br $while-out$4)
)
- (br $while-out$4)
)
+ (br $while-in$5)
)
- (br $while-in$5)
)
(if
(i32.lt_u
@@ -6390,7 +6451,7 @@
(block
(if
(i32.lt_u
- (set_local $5
+ (tee_local $5
(i32.load offset=8
(get_local $0)
)
@@ -6402,7 +6463,7 @@
(if
(i32.ne
(i32.load
- (set_local $11
+ (tee_local $11
(i32.add
(get_local $5)
(i32.const 12)
@@ -6416,7 +6477,7 @@
(if
(i32.eq
(i32.load
- (set_local $6
+ (tee_local $6
(i32.add
(get_local $1)
(i32.const 8)
@@ -6450,11 +6511,11 @@
(i32.eq
(get_local $0)
(i32.load
- (set_local $5
+ (tee_local $5
(i32.add
(i32.const 480)
(i32.shl
- (set_local $1
+ (tee_local $1
(i32.load offset=28
(get_local $0)
)
@@ -6513,7 +6574,7 @@
(if
(i32.eq
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $9)
(i32.const 16)
@@ -6550,7 +6611,7 @@
(if
(i32.lt_u
(get_local $4)
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 192)
)
@@ -6563,9 +6624,9 @@
(get_local $9)
)
(if
- (set_local $6
+ (tee_local $6
(i32.load
- (set_local $5
+ (tee_local $5
(i32.add
(get_local $0)
(i32.const 16)
@@ -6592,7 +6653,7 @@
)
)
(if
- (set_local $6
+ (tee_local $6
(i32.load offset=4
(get_local $5)
)
@@ -6654,9 +6715,9 @@
(if
(i32.eqz
(i32.and
- (set_local $1
+ (tee_local $1
(i32.load
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $8)
(i32.const 4)
@@ -6711,7 +6772,7 @@
(block
(i32.store
(i32.const 188)
- (set_local $4
+ (tee_local $4
(i32.add
(i32.load
(i32.const 188)
@@ -6761,7 +6822,7 @@
(block
(i32.store
(i32.const 184)
- (set_local $4
+ (tee_local $4
(i32.add
(i32.load
(i32.const 184)
@@ -6821,7 +6882,7 @@
(block $do-once$10
(if
(i32.eq
- (set_local $10
+ (tee_local $10
(i32.load offset=12
(get_local $8)
)
@@ -6830,11 +6891,11 @@
)
(block
(if
- (set_local $11
+ (tee_local $11
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
- (set_local $6
+ (tee_local $6
(i32.add
(get_local $8)
(i32.const 16)
@@ -6855,7 +6916,7 @@
)
(if
(i32.eqz
- (set_local $0
+ (tee_local $0
(i32.load
(get_local $6)
)
@@ -6869,50 +6930,52 @@
)
)
)
- (loop $while-out$12 $while-in$13
- (if
- (set_local $11
- (i32.load
- (set_local $1
- (i32.add
- (get_local $0)
- (i32.const 20)
+ (loop $while-in$13
+ (block $while-out$12
+ (if
+ (tee_local $11
+ (i32.load
+ (tee_local $1
+ (i32.add
+ (get_local $0)
+ (i32.const 20)
+ )
)
)
)
- )
- (block
- (set_local $0
- (get_local $11)
- )
- (set_local $6
- (get_local $1)
+ (block
+ (set_local $0
+ (get_local $11)
+ )
+ (set_local $6
+ (get_local $1)
+ )
+ (br $while-in$13)
)
- (br $while-in$13)
)
- )
- (if
- (set_local $11
- (i32.load
- (set_local $1
- (i32.add
- (get_local $0)
- (i32.const 16)
+ (if
+ (tee_local $11
+ (i32.load
+ (tee_local $1
+ (i32.add
+ (get_local $0)
+ (i32.const 16)
+ )
)
)
)
- )
- (block
- (set_local $0
- (get_local $11)
- )
- (set_local $6
- (get_local $1)
+ (block
+ (set_local $0
+ (get_local $11)
+ )
+ (set_local $6
+ (get_local $1)
+ )
)
+ (br $while-out$12)
)
- (br $while-out$12)
+ (br $while-in$13)
)
- (br $while-in$13)
)
(if
(i32.lt_u
@@ -6936,7 +6999,7 @@
(block
(if
(i32.lt_u
- (set_local $1
+ (tee_local $1
(i32.load offset=8
(get_local $8)
)
@@ -6950,7 +7013,7 @@
(if
(i32.ne
(i32.load
- (set_local $11
+ (tee_local $11
(i32.add
(get_local $1)
(i32.const 12)
@@ -6964,7 +7027,7 @@
(if
(i32.eq
(i32.load
- (set_local $6
+ (tee_local $6
(i32.add
(get_local $10)
(i32.const 8)
@@ -6998,11 +7061,11 @@
(i32.eq
(get_local $8)
(i32.load
- (set_local $3
+ (tee_local $3
(i32.add
(i32.const 480)
(i32.shl
- (set_local $10
+ (tee_local $10
(i32.load offset=28
(get_local $8)
)
@@ -7055,7 +7118,7 @@
(if
(i32.eq
(i32.load
- (set_local $10
+ (tee_local $10
(i32.add
(get_local $5)
(i32.const 16)
@@ -7083,7 +7146,7 @@
(if
(i32.lt_u
(get_local $12)
- (set_local $10
+ (tee_local $10
(i32.load
(i32.const 192)
)
@@ -7096,9 +7159,9 @@
(get_local $5)
)
(if
- (set_local $0
+ (tee_local $0
(i32.load
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $8)
(i32.const 16)
@@ -7125,7 +7188,7 @@
)
)
(if
- (set_local $0
+ (tee_local $0
(i32.load offset=4
(get_local $3)
)
@@ -7161,12 +7224,12 @@
)
(if
(i32.ne
- (set_local $0
+ (tee_local $0
(i32.load offset=8
(get_local $8)
)
)
- (set_local $5
+ (tee_local $5
(i32.add
(i32.const 216)
(i32.shl
@@ -7242,7 +7305,7 @@
(if
(i32.eq
(i32.load
- (set_local $5
+ (tee_local $5
(i32.add
(get_local $10)
(i32.const 8)
@@ -7335,12 +7398,12 @@
)
(if
(i32.and
- (set_local $3
+ (tee_local $3
(i32.load
(i32.const 176)
)
)
- (set_local $4
+ (tee_local $4
(i32.shl
(i32.const 1)
(get_local $7)
@@ -7349,9 +7412,9 @@
)
(if
(i32.lt_u
- (set_local $16
+ (tee_local $16
(i32.load
- (set_local $7
+ (tee_local $7
(i32.add
(get_local $1)
(i32.const 8)
@@ -7415,9 +7478,9 @@
(i32.add
(i32.const 480)
(i32.shl
- (set_local $1
+ (tee_local $1
(if
- (set_local $1
+ (tee_local $1
(i32.shr_u
(get_local $0)
(i32.const 8)
@@ -7434,20 +7497,20 @@
(i32.shr_u
(get_local $0)
(i32.add
- (set_local $3
+ (tee_local $3
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
- (set_local $1
+ (tee_local $1
(i32.and
(i32.shr_u
(i32.add
- (set_local $15
+ (tee_local $15
(i32.shl
(get_local $1)
- (set_local $13
+ (tee_local $13
(i32.and
(i32.shr_u
(i32.add
@@ -7470,11 +7533,11 @@
)
(get_local $13)
)
- (set_local $15
+ (tee_local $15
(i32.and
(i32.shr_u
(i32.add
- (set_local $4
+ (tee_local $4
(i32.shl
(get_local $15)
(get_local $1)
@@ -7530,12 +7593,12 @@
)
(if
(i32.and
- (set_local $15
+ (tee_local $15
(i32.load
(i32.const 180)
)
)
- (set_local $4
+ (tee_local $4
(i32.shl
(i32.const 1)
(get_local $1)
@@ -7567,72 +7630,74 @@
(get_local $3)
)
)
- (loop $while-out$18 $while-in$19
- (if
- (i32.eq
- (i32.and
- (i32.load offset=4
- (get_local $1)
+ (loop $while-in$19
+ (block $while-out$18
+ (if
+ (i32.eq
+ (i32.and
+ (i32.load offset=4
+ (get_local $1)
+ )
+ (i32.const -8)
)
- (i32.const -8)
- )
- (get_local $0)
- )
- (block
- (set_local $17
- (get_local $1)
+ (get_local $0)
)
- (set_local $0
- (i32.const 130)
+ (block
+ (set_local $17
+ (get_local $1)
+ )
+ (set_local $0
+ (i32.const 130)
+ )
+ (br $while-out$18)
)
- (br $while-out$18)
)
- )
- (if
- (set_local $7
- (i32.load
- (set_local $16
- (i32.add
+ (if
+ (tee_local $7
+ (i32.load
+ (tee_local $16
(i32.add
- (get_local $1)
- (i32.const 16)
- )
- (i32.shl
- (i32.shr_u
- (get_local $13)
- (i32.const 31)
+ (i32.add
+ (get_local $1)
+ (i32.const 16)
+ )
+ (i32.shl
+ (i32.shr_u
+ (get_local $13)
+ (i32.const 31)
+ )
+ (i32.const 2)
)
- (i32.const 2)
)
)
)
)
- )
- (block
- (set_local $13
- (i32.shl
- (get_local $13)
- (i32.const 1)
+ (block
+ (set_local $13
+ (i32.shl
+ (get_local $13)
+ (i32.const 1)
+ )
+ )
+ (set_local $1
+ (get_local $7)
)
)
- (set_local $1
- (get_local $7)
- )
- )
- (block
- (set_local $18
- (get_local $16)
- )
- (set_local $19
- (get_local $1)
- )
- (set_local $0
- (i32.const 127)
+ (block
+ (set_local $18
+ (get_local $16)
+ )
+ (set_local $19
+ (get_local $1)
+ )
+ (set_local $0
+ (i32.const 127)
+ )
+ (br $while-out$18)
)
- (br $while-out$18)
)
+ (br $while-in$19)
)
- (br $while-in$19)
)
(if
(i32.eq
@@ -7674,9 +7739,9 @@
(if
(i32.and
(i32.ge_u
- (set_local $13
+ (tee_local $13
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $17)
(i32.const 8)
@@ -7684,7 +7749,7 @@
)
)
)
- (set_local $3
+ (tee_local $3
(i32.load
(i32.const 192)
)
@@ -7750,7 +7815,7 @@
)
(i32.store
(i32.const 208)
- (set_local $2
+ (tee_local $2
(i32.add
(i32.load
(i32.const 208)
@@ -7766,22 +7831,24 @@
(i32.const 632)
)
)
- (loop $while-out$20 $while-in$21
- (if
- (set_local $2
- (i32.load
- (get_local $0)
+ (loop $while-in$21
+ (block $while-out$20
+ (if
+ (tee_local $2
+ (i32.load
+ (get_local $0)
+ )
)
- )
- (set_local $0
- (i32.add
- (get_local $2)
- (i32.const 8)
+ (set_local $0
+ (i32.add
+ (get_local $2)
+ (i32.const 8)
+ )
)
+ (br $while-out$20)
)
- (br $while-out$20)
+ (br $while-in$21)
)
- (br $while-in$21)
)
(i32.store
(i32.const 208)
@@ -7806,16 +7873,11 @@
(local $17 i32)
(local $18 i32)
(set_local $11
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
(i32.const 48)
)
)
@@ -7829,15 +7891,15 @@
(get_local $11)
)
(i32.store
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $11)
(i32.const 32)
)
)
- (set_local $8
+ (tee_local $8
(i32.load
- (set_local $9
+ (tee_local $9
(i32.add
(get_local $0)
(i32.const 28)
@@ -7848,10 +7910,10 @@
)
(i32.store offset=4
(get_local $3)
- (set_local $10
+ (tee_local $10
(i32.sub
(i32.load
- (set_local $14
+ (tee_local $14
(i32.add
(get_local $0)
(i32.const 20)
@@ -7894,209 +7956,211 @@
(get_local $2)
)
)
- (loop $while-out$0 $while-in$1
- (if
- (i32.eq
- (get_local $5)
- (set_local $6
- (if
- (i32.load
- (i32.const 8)
- )
- (block
- (call_import $_pthread_cleanup_push
- (i32.const 4)
- (get_local $0)
+ (loop $while-in$1
+ (block $while-out$0
+ (if
+ (i32.eq
+ (get_local $5)
+ (tee_local $6
+ (if
+ (i32.load
+ (i32.const 8)
)
- (i32.store
- (get_local $13)
- (i32.load
- (get_local $1)
+ (block
+ (call_import $_pthread_cleanup_push
+ (i32.const 4)
+ (get_local $0)
)
- )
- (i32.store offset=4
- (get_local $13)
- (get_local $4)
- )
- (i32.store offset=8
- (get_local $13)
- (get_local $3)
- )
- (set_local $10
- (call $___syscall_ret
- (call_import $___syscall146
- (i32.const 146)
- (get_local $13)
+ (i32.store
+ (get_local $13)
+ (i32.load
+ (get_local $1)
)
)
- )
- (call_import $_pthread_cleanup_pop
- (i32.const 0)
- )
- (get_local $10)
- )
- (block
- (i32.store
- (get_local $12)
- (i32.load
- (get_local $1)
+ (i32.store offset=4
+ (get_local $13)
+ (get_local $4)
)
+ (i32.store offset=8
+ (get_local $13)
+ (get_local $3)
+ )
+ (set_local $10
+ (call $___syscall_ret
+ (call_import $___syscall146
+ (i32.const 146)
+ (get_local $13)
+ )
+ )
+ )
+ (call_import $_pthread_cleanup_pop
+ (i32.const 0)
+ )
+ (get_local $10)
)
- (i32.store offset=4
- (get_local $12)
- (get_local $4)
- )
- (i32.store offset=8
- (get_local $12)
- (get_local $3)
- )
- (call $___syscall_ret
- (call_import $___syscall146
- (i32.const 146)
+ (block
+ (i32.store
+ (get_local $12)
+ (i32.load
+ (get_local $1)
+ )
+ )
+ (i32.store offset=4
+ (get_local $12)
+ (get_local $4)
+ )
+ (i32.store offset=8
(get_local $12)
+ (get_local $3)
+ )
+ (call $___syscall_ret
+ (call_import $___syscall146
+ (i32.const 146)
+ (get_local $12)
+ )
)
)
)
)
)
- )
- (block
- (set_local $1
- (i32.const 6)
+ (block
+ (set_local $1
+ (i32.const 6)
+ )
+ (br $while-out$0)
)
- (br $while-out$0)
- )
- )
- (if
- (i32.lt_s
- (get_local $6)
- (i32.const 0)
)
- (block
- (set_local $17
- (get_local $4)
- )
- (set_local $18
- (get_local $3)
+ (if
+ (i32.lt_s
+ (get_local $6)
+ (i32.const 0)
)
- (set_local $1
- (i32.const 8)
+ (block
+ (set_local $17
+ (get_local $4)
+ )
+ (set_local $18
+ (get_local $3)
+ )
+ (set_local $1
+ (i32.const 8)
+ )
+ (br $while-out$0)
)
- (br $while-out$0)
- )
- )
- (set_local $10
- (i32.sub
- (get_local $5)
- (get_local $6)
)
- )
- (set_local $3
- (if
- (i32.le_u
+ (set_local $10
+ (i32.sub
+ (get_local $5)
(get_local $6)
- (set_local $5
- (i32.load offset=4
- (get_local $4)
- )
- )
)
+ )
+ (set_local $3
(if
- (i32.eq
- (get_local $3)
- (i32.const 2)
+ (i32.le_u
+ (get_local $6)
+ (tee_local $5
+ (i32.load offset=4
+ (get_local $4)
+ )
+ )
+ )
+ (if
+ (i32.eq
+ (get_local $3)
+ (i32.const 2)
+ )
+ (block
+ (i32.store
+ (get_local $9)
+ (i32.add
+ (i32.load
+ (get_local $9)
+ )
+ (get_local $6)
+ )
+ )
+ (set_local $7
+ (get_local $4)
+ )
+ (set_local $15
+ (i32.const 2)
+ )
+ (get_local $5)
+ )
+ (block
+ (set_local $7
+ (get_local $4)
+ )
+ (set_local $15
+ (get_local $3)
+ )
+ (get_local $5)
+ )
)
(block
(i32.store
(get_local $9)
- (i32.add
+ (tee_local $7
(i32.load
- (get_local $9)
+ (get_local $8)
)
- (get_local $6)
)
)
- (set_local $7
- (get_local $4)
+ (i32.store
+ (get_local $14)
+ (get_local $7)
)
- (set_local $15
- (i32.const 2)
+ (set_local $6
+ (i32.sub
+ (get_local $6)
+ (get_local $5)
+ )
)
- (get_local $5)
- )
- (block
(set_local $7
- (get_local $4)
+ (i32.add
+ (get_local $4)
+ (i32.const 8)
+ )
)
(set_local $15
- (get_local $3)
- )
- (get_local $5)
- )
- )
- (block
- (i32.store
- (get_local $9)
- (set_local $7
- (i32.load
- (get_local $8)
+ (i32.add
+ (get_local $3)
+ (i32.const -1)
)
)
- )
- (i32.store
- (get_local $14)
- (get_local $7)
- )
- (set_local $6
- (i32.sub
- (get_local $6)
- (get_local $5)
- )
- )
- (set_local $7
- (i32.add
+ (i32.load offset=12
(get_local $4)
- (i32.const 8)
- )
- )
- (set_local $15
- (i32.add
- (get_local $3)
- (i32.const -1)
)
)
- (i32.load offset=12
- (get_local $4)
+ )
+ )
+ (i32.store
+ (get_local $7)
+ (i32.add
+ (i32.load
+ (get_local $7)
)
+ (get_local $6)
)
)
- )
- (i32.store
- (get_local $7)
- (i32.add
- (i32.load
- (get_local $7)
+ (i32.store offset=4
+ (get_local $7)
+ (i32.sub
+ (get_local $3)
+ (get_local $6)
)
- (get_local $6)
)
- )
- (i32.store offset=4
- (get_local $7)
- (i32.sub
- (get_local $3)
- (get_local $6)
+ (set_local $4
+ (get_local $7)
)
+ (set_local $3
+ (get_local $15)
+ )
+ (set_local $5
+ (get_local $10)
+ )
+ (br $while-in$1)
)
- (set_local $4
- (get_local $7)
- )
- (set_local $3
- (get_local $15)
- )
- (set_local $5
- (get_local $10)
- )
- (br $while-in$1)
)
(if
(i32.eq
@@ -8107,7 +8171,7 @@
(i32.store offset=16
(get_local $0)
(i32.add
- (set_local $5
+ (tee_local $5
(i32.load
(get_local $8)
)
@@ -8119,7 +8183,7 @@
)
(i32.store
(get_local $9)
- (set_local $8
+ (tee_local $8
(get_local $5)
)
)
@@ -8176,8 +8240,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(get_local $11)
)
(get_local $16)
@@ -8189,9 +8252,9 @@
(local $6 i32)
(local $7 i32)
(if
- (set_local $5
+ (tee_local $5
(i32.load
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $2)
(i32.const 16)
@@ -8234,9 +8297,9 @@
)
(block
(set_local $6
- (set_local $3
+ (tee_local $3
(i32.load
- (set_local $5
+ (tee_local $5
(i32.add
(get_local $2)
(i32.const 20)
@@ -8256,6 +8319,9 @@
(block
(set_local $4
(call_indirect $FUNCSIG$iiii
+ (get_local $2)
+ (get_local $0)
+ (get_local $1)
(i32.add
(i32.and
(i32.load offset=36
@@ -8265,9 +8331,6 @@
)
(i32.const 2)
)
- (get_local $2)
- (get_local $0)
- (get_local $1)
)
)
(br $label$break$L5)
@@ -8286,53 +8349,58 @@
(set_local $3
(get_local $1)
)
- (loop $while-out$2 $while-in$3
- (if
- (i32.eqz
- (get_local $3)
- )
- (block
- (set_local $2
- (get_local $0)
- )
- (set_local $3
- (i32.const 0)
+ (loop $while-in$3
+ (block $while-out$2
+ (if
+ (i32.eqz
+ (get_local $3)
)
- (br $label$break$L10
- (get_local $1)
+ (block
+ (set_local $2
+ (get_local $0)
+ )
+ (set_local $3
+ (i32.const 0)
+ )
+ (br $label$break$L10
+ (get_local $1)
+ )
)
)
- )
- (if
- (i32.eq
- (i32.load8_s
- (i32.add
- (get_local $0)
- (set_local $7
- (i32.add
- (get_local $3)
- (i32.const -1)
+ (if
+ (i32.eq
+ (i32.load8_s
+ (i32.add
+ (get_local $0)
+ (tee_local $7
+ (i32.add
+ (get_local $3)
+ (i32.const -1)
+ )
)
)
)
+ (i32.const 10)
)
- (i32.const 10)
- )
- (block
- (set_local $4
- (get_local $3)
+ (block
+ (set_local $4
+ (get_local $3)
+ )
+ (br $while-out$2)
+ )
+ (set_local $3
+ (get_local $7)
)
- (br $while-out$2)
- )
- (set_local $3
- (get_local $7)
)
+ (br $while-in$3)
)
- (br $while-in$3)
)
- (if
+ (br_if $label$break$L5
(i32.lt_u
(call_indirect $FUNCSIG$iiii
+ (get_local $2)
+ (get_local $0)
+ (get_local $4)
(i32.add
(i32.and
(i32.load offset=36
@@ -8342,13 +8410,9 @@
)
(i32.const 2)
)
- (get_local $2)
- (get_local $0)
- (get_local $4)
)
(get_local $4)
)
- (br $label$break$L5)
)
(set_local $2
(i32.add
@@ -8381,10 +8445,12 @@
)
)
)
- (call $_memcpy
- (get_local $6)
- (get_local $2)
- (get_local $0)
+ (drop
+ (call $_memcpy
+ (get_local $6)
+ (get_local $2)
+ (get_local $0)
+ )
)
(i32.store
(get_local $5)
@@ -8468,7 +8534,7 @@
(i32.const 36)
)
(if
- (set_local $2
+ (tee_local $2
(i32.load
(i32.const 32)
)
@@ -8480,64 +8546,66 @@
(set_local $2
(get_local $0)
)
- (loop $while-out$2 $while-in$3
- (set_local $0
- (if
- (i32.gt_s
- (i32.load offset=76
+ (loop $while-in$3
+ (block $while-out$2
+ (set_local $0
+ (if
+ (i32.gt_s
+ (i32.load offset=76
+ (get_local $1)
+ )
+ (i32.const -1)
+ )
+ (call $___lockfile
(get_local $1)
)
- (i32.const -1)
- )
- (call $___lockfile
- (get_local $1)
+ (i32.const 0)
)
- (i32.const 0)
)
- )
- (set_local $2
- (if
- (i32.gt_u
- (i32.load offset=20
- (get_local $1)
- )
- (i32.load offset=28
- (get_local $1)
+ (set_local $2
+ (if
+ (i32.gt_u
+ (i32.load offset=20
+ (get_local $1)
+ )
+ (i32.load offset=28
+ (get_local $1)
+ )
)
- )
- (i32.or
- (call $___fflush_unlocked
- (get_local $1)
+ (i32.or
+ (call $___fflush_unlocked
+ (get_local $1)
+ )
+ (get_local $2)
)
(get_local $2)
)
- (get_local $2)
)
- )
- (if
- (get_local $0)
- (call $___unlockfile
- (get_local $1)
- )
- )
- (if
- (set_local $1
- (i32.load offset=56
+ (if
+ (get_local $0)
+ (call $___unlockfile
(get_local $1)
)
)
- (get_local $2)
- (block
- (set_local $0
- (get_local $2)
+ (if
+ (i32.eqz
+ (tee_local $1
+ (i32.load offset=56
+ (get_local $1)
+ )
+ )
+ )
+ (block
+ (set_local $0
+ (get_local $2)
+ )
+ (br $while-out$2)
)
- (br $while-out$2)
)
+ (br $while-in$3)
)
- (br $while-in$3)
)
)
- (get_local $0)
)
(call_import $___unlock
(i32.const 36)
@@ -8556,7 +8624,7 @@
(block $label$break$L1
(if
(i32.and
- (set_local $3
+ (tee_local $3
(get_local $0)
)
(i32.const 3)
@@ -8565,44 +8633,47 @@
(set_local $4
(get_local $3)
)
- (loop $while-out$1 $while-in$2
- (if
- (i32.eqz
- (i32.load8_s
- (get_local $0)
+ (loop $while-in$2
+ (block $while-out$1
+ (if
+ (i32.eqz
+ (i32.load8_s
+ (get_local $0)
+ )
)
- )
- (block
- (set_local $5
- (get_local $4)
+ (block
+ (set_local $5
+ (get_local $4)
+ )
+ (br $label$break$L1)
)
- (br $label$break$L1)
)
- )
- (if
- (i32.and
- (set_local $4
- (set_local $0
- (i32.add
- (get_local $0)
- (i32.const 1)
+ (if
+ (i32.eqz
+ (i32.and
+ (tee_local $4
+ (tee_local $0
+ (i32.add
+ (get_local $0)
+ (i32.const 1)
+ )
+ )
)
+ (i32.const 3)
)
)
- (i32.const 3)
- )
- (get_local $0)
- (block
- (set_local $2
- (get_local $0)
- )
- (set_local $1
- (i32.const 4)
+ (block
+ (set_local $2
+ (get_local $0)
+ )
+ (set_local $1
+ (i32.const 4)
+ )
+ (br $while-out$1)
)
- (br $while-out$1)
)
+ (br $while-in$2)
)
- (br $while-in$2)
)
)
(block
@@ -8624,34 +8695,36 @@
(set_local $1
(get_local $2)
)
- (loop $while-out$3 $while-in$4
- (if
- (i32.and
- (i32.xor
- (i32.and
- (set_local $2
- (i32.load
- (get_local $1)
+ (loop $while-in$4
+ (block $while-out$3
+ (if
+ (i32.and
+ (i32.xor
+ (i32.and
+ (tee_local $2
+ (i32.load
+ (get_local $1)
+ )
)
+ (i32.const -2139062144)
)
(i32.const -2139062144)
)
- (i32.const -2139062144)
- )
- (i32.add
- (get_local $2)
- (i32.const -16843009)
+ (i32.add
+ (get_local $2)
+ (i32.const -16843009)
+ )
)
- )
- (br $while-out$3)
- (set_local $1
- (i32.add
- (get_local $1)
- (i32.const 4)
+ (br $while-out$3)
+ (set_local $1
+ (i32.add
+ (get_local $1)
+ (i32.const 4)
+ )
)
)
+ (br $while-in$4)
)
- (br $while-in$4)
)
(if
(i32.shr_s
@@ -8668,25 +8741,26 @@
(set_local $2
(get_local $1)
)
- (loop $while-out$5 $while-in$6
- (if
- (i32.load8_s
- (set_local $1
- (i32.add
- (get_local $2)
- (i32.const 1)
+ (loop $while-in$6
+ (block $while-out$5
+ (if
+ (i32.load8_s
+ (tee_local $1
+ (i32.add
+ (get_local $2)
+ (i32.const 1)
+ )
)
)
+ (set_local $2
+ (get_local $1)
+ )
+ (br $while-out$5)
)
- (set_local $2
- (get_local $1)
- )
- (br $while-out$5)
+ (br $while-in$6)
)
- (br $while-in$6)
)
)
- (get_local $1)
)
(set_local $5
(get_local $1)
@@ -8709,24 +8783,19 @@
(local $9 i32)
(local $10 i32)
(set_local $5
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
(i32.const 16)
)
)
(i32.store8
- (set_local $6
+ (tee_local $6
(get_local $5)
)
- (set_local $9
+ (tee_local $9
(i32.and
(get_local $1)
(i32.const 255)
@@ -8734,9 +8803,9 @@
)
)
(if
- (set_local $3
+ (tee_local $3
(i32.load
- (set_local $2
+ (tee_local $2
(i32.add
(get_local $0)
(i32.const 16)
@@ -8781,9 +8850,9 @@
(if
(if
(i32.lt_u
- (set_local $2
+ (tee_local $2
(i32.load
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $0)
(i32.const 20)
@@ -8794,7 +8863,7 @@
(get_local $7)
)
(i32.ne
- (set_local $10
+ (tee_local $10
(i32.and
(get_local $1)
(i32.const 255)
@@ -8828,6 +8897,9 @@
(if
(i32.eq
(call_indirect $FUNCSIG$iiii
+ (get_local $0)
+ (get_local $6)
+ (i32.const 1)
(i32.add
(i32.and
(i32.load offset=36
@@ -8837,9 +8909,6 @@
)
(i32.const 2)
)
- (get_local $0)
- (get_local $6)
- (i32.const 1)
)
(i32.const 1)
)
@@ -8852,8 +8921,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(get_local $5)
)
(get_local $4)
@@ -8869,7 +8937,7 @@
(if
(i32.gt_u
(i32.load
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $0)
(i32.const 20)
@@ -8877,7 +8945,7 @@
)
)
(i32.load
- (set_local $2
+ (tee_local $2
(i32.add
(get_local $0)
(i32.const 28)
@@ -8886,19 +8954,21 @@
)
)
(block
- (call_indirect $FUNCSIG$iiii
- (i32.add
- (i32.and
- (i32.load offset=36
- (get_local $0)
+ (drop
+ (call_indirect $FUNCSIG$iiii
+ (get_local $0)
+ (i32.const 0)
+ (i32.const 0)
+ (i32.add
+ (i32.and
+ (i32.load offset=36
+ (get_local $0)
+ )
+ (i32.const 7)
)
- (i32.const 7)
+ (i32.const 2)
)
- (i32.const 2)
)
- (get_local $0)
- (i32.const 0)
- (i32.const 0)
)
(i32.eq
(i32.load
@@ -8913,9 +8983,9 @@
(block
(if
(i32.lt_u
- (set_local $4
+ (tee_local $4
(i32.load
- (set_local $3
+ (tee_local $3
(i32.add
(get_local $0)
(i32.const 4)
@@ -8923,9 +8993,9 @@
)
)
)
- (set_local $6
+ (tee_local $6
(i32.load
- (set_local $5
+ (tee_local $5
(i32.add
(get_local $0)
(i32.const 8)
@@ -8935,6 +9005,12 @@
)
)
(call_indirect $FUNCSIG$iiii
+ (get_local $0)
+ (i32.sub
+ (get_local $4)
+ (get_local $6)
+ )
+ (i32.const 1)
(i32.add
(i32.and
(i32.load offset=40
@@ -8944,12 +9020,6 @@
)
(i32.const 2)
)
- (get_local $0)
- (i32.sub
- (get_local $4)
- (get_local $6)
- )
- (i32.const 1)
)
)
(i32.store offset=16
@@ -9006,116 +9076,122 @@
)
)
(block
- (loop $while-out$0 $while-in$1
- (br_if $while-out$0
- (i32.eqz
- (i32.and
- (get_local $0)
- (i32.const 3)
+ (loop $while-in$1
+ (block $while-out$0
+ (br_if $while-out$0
+ (i32.eqz
+ (i32.and
+ (get_local $0)
+ (i32.const 3)
+ )
)
)
- )
- (if
- (i32.eqz
- (get_local $2)
- )
- (return
- (get_local $3)
- )
- )
- (i32.store8
- (get_local $0)
- (i32.load8_s
- (get_local $1)
+ (if
+ (i32.eqz
+ (get_local $2)
+ )
+ (return
+ (get_local $3)
+ )
)
- )
- (set_local $0
- (i32.add
+ (i32.store8
(get_local $0)
- (i32.const 1)
+ (i32.load8_s
+ (get_local $1)
+ )
)
- )
- (set_local $1
- (i32.add
- (get_local $1)
- (i32.const 1)
+ (set_local $0
+ (i32.add
+ (get_local $0)
+ (i32.const 1)
+ )
)
- )
- (set_local $2
- (i32.sub
- (get_local $2)
- (i32.const 1)
+ (set_local $1
+ (i32.add
+ (get_local $1)
+ (i32.const 1)
+ )
)
- )
- (br $while-in$1)
- )
- (loop $while-out$2 $while-in$3
- (br_if $while-out$2
- (i32.lt_s
- (get_local $2)
- (i32.const 4)
+ (set_local $2
+ (i32.sub
+ (get_local $2)
+ (i32.const 1)
+ )
)
+ (br $while-in$1)
)
- (i32.store
- (get_local $0)
- (i32.load
- (get_local $1)
+ )
+ (loop $while-in$3
+ (block $while-out$2
+ (br_if $while-out$2
+ (i32.lt_s
+ (get_local $2)
+ (i32.const 4)
+ )
)
- )
- (set_local $0
- (i32.add
+ (i32.store
(get_local $0)
- (i32.const 4)
+ (i32.load
+ (get_local $1)
+ )
)
- )
- (set_local $1
- (i32.add
- (get_local $1)
- (i32.const 4)
+ (set_local $0
+ (i32.add
+ (get_local $0)
+ (i32.const 4)
+ )
)
- )
- (set_local $2
- (i32.sub
- (get_local $2)
- (i32.const 4)
+ (set_local $1
+ (i32.add
+ (get_local $1)
+ (i32.const 4)
+ )
)
+ (set_local $2
+ (i32.sub
+ (get_local $2)
+ (i32.const 4)
+ )
+ )
+ (br $while-in$3)
)
- (br $while-in$3)
)
)
)
- (loop $while-out$4 $while-in$5
- (br_if $while-out$4
- (i32.le_s
- (get_local $2)
- (i32.const 0)
- )
- )
- (i32.store8
- (get_local $0)
- (i32.load8_s
- (get_local $1)
+ (loop $while-in$5
+ (block $while-out$4
+ (br_if $while-out$4
+ (i32.le_s
+ (get_local $2)
+ (i32.const 0)
+ )
)
- )
- (set_local $0
- (i32.add
+ (i32.store8
(get_local $0)
- (i32.const 1)
+ (i32.load8_s
+ (get_local $1)
+ )
)
- )
- (set_local $1
- (i32.add
- (get_local $1)
- (i32.const 1)
+ (set_local $0
+ (i32.add
+ (get_local $0)
+ (i32.const 1)
+ )
)
- )
- (set_local $2
- (i32.sub
- (get_local $2)
- (i32.const 1)
+ (set_local $1
+ (i32.add
+ (get_local $1)
+ (i32.const 1)
+ )
+ )
+ (set_local $2
+ (i32.sub
+ (get_local $2)
+ (i32.const 1)
+ )
)
+ (br $while-in$5)
)
- (br $while-in$5)
)
(get_local $3)
)
@@ -9143,7 +9219,7 @@
(i32.or
(i32.or
(i32.or
- (set_local $1
+ (tee_local $1
(i32.and
(get_local $1)
(i32.const 255)
@@ -9172,7 +9248,7 @@
)
)
(if
- (set_local $3
+ (tee_local $3
(i32.and
(get_local $0)
(i32.const 3)
@@ -9188,66 +9264,72 @@
(get_local $3)
)
)
- (loop $while-out$0 $while-in$1
- (br_if $while-out$0
- (i32.ge_s
- (get_local $0)
- (get_local $3)
+ (loop $while-in$1
+ (block $while-out$0
+ (br_if $while-out$0
+ (i32.ge_s
+ (get_local $0)
+ (get_local $3)
+ )
)
- )
- (i32.store8
- (get_local $0)
- (get_local $1)
- )
- (set_local $0
- (i32.add
+ (i32.store8
(get_local $0)
- (i32.const 1)
+ (get_local $1)
)
+ (set_local $0
+ (i32.add
+ (get_local $0)
+ (i32.const 1)
+ )
+ )
+ (br $while-in$1)
)
- (br $while-in$1)
)
)
)
- (loop $while-out$2 $while-in$3
- (br_if $while-out$2
- (i32.ge_s
- (get_local $0)
- (get_local $6)
+ (loop $while-in$3
+ (block $while-out$2
+ (br_if $while-out$2
+ (i32.ge_s
+ (get_local $0)
+ (get_local $6)
+ )
)
- )
- (i32.store
- (get_local $0)
- (get_local $5)
- )
- (set_local $0
- (i32.add
+ (i32.store
(get_local $0)
- (i32.const 4)
+ (get_local $5)
+ )
+ (set_local $0
+ (i32.add
+ (get_local $0)
+ (i32.const 4)
+ )
)
+ (br $while-in$3)
)
- (br $while-in$3)
)
)
)
- (loop $while-out$4 $while-in$5
- (br_if $while-out$4
- (i32.ge_s
- (get_local $0)
- (get_local $4)
+ (loop $while-in$5
+ (block $while-out$4
+ (br_if $while-out$4
+ (i32.ge_s
+ (get_local $0)
+ (get_local $4)
+ )
)
- )
- (i32.store8
- (get_local $0)
- (get_local $1)
- )
- (set_local $0
- (i32.add
+ (i32.store8
(get_local $0)
- (i32.const 1)
+ (get_local $1)
+ )
+ (set_local $0
+ (i32.add
+ (get_local $0)
+ (i32.const 1)
+ )
)
+ (br $while-in$5)
)
- (br $while-in$5)
)
(i32.sub
(get_local $0)
@@ -9263,7 +9345,7 @@
(if
(i32.gt_s
(i32.load offset=76
- (set_local $1
+ (tee_local $1
(i32.load
(i32.const 52)
)
@@ -9298,9 +9380,9 @@
(i32.const 10)
)
(i32.lt_u
- (set_local $2
+ (tee_local $2
(i32.load
- (set_local $4
+ (tee_local $4
(i32.add
(get_local $1)
(i32.const 20)
@@ -9360,21 +9442,16 @@
(local $3 i32)
(local $4 i32)
(set_local $4
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
(i32.const 32)
)
)
(i32.store
- (set_local $3
+ (tee_local $3
(get_local $4)
)
(i32.load offset=60
@@ -9391,7 +9468,7 @@
)
(i32.store offset=12
(get_local $3)
- (set_local $0
+ (tee_local $0
(i32.add
(get_local $4)
(i32.const 20)
@@ -9425,8 +9502,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(get_local $4)
)
(get_local $0)
@@ -9436,7 +9512,7 @@
(local $2 i32)
(set_local $2
(i32.load8_s
- (set_local $1
+ (tee_local $1
(i32.add
(get_local $0)
(i32.const 74)
@@ -9456,7 +9532,7 @@
)
(if
(i32.and
- (set_local $2
+ (tee_local $2
(i32.load
(get_local $0)
)
@@ -9484,7 +9560,7 @@
)
(i32.store offset=28
(get_local $0)
- (set_local $1
+ (tee_local $1
(i32.load offset=44
(get_local $0)
)
@@ -9518,7 +9594,7 @@
)
(if
(i32.eq
- (set_local $0
+ (tee_local $0
(if
(i32.gt_s
(i32.load offset=76
@@ -9573,16 +9649,11 @@
(local $3 i32)
(local $4 i32)
(set_local $4
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
(i32.const 80)
)
)
@@ -9644,73 +9715,56 @@
(get_local $2)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(get_local $4)
)
(get_local $3)
)
(func $copyTempDouble (param $0 i32)
(i32.store8
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s
(get_local $0)
)
)
(i32.store8 offset=1
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=1
(get_local $0)
)
)
(i32.store8 offset=2
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=2
(get_local $0)
)
)
(i32.store8 offset=3
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=3
(get_local $0)
)
)
(i32.store8 offset=4
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=4
(get_local $0)
)
)
(i32.store8 offset=5
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=5
(get_local $0)
)
)
(i32.store8 offset=6
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=6
(get_local $0)
)
)
(i32.store8 offset=7
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=7
(get_local $0)
)
@@ -9720,21 +9774,16 @@
(local $1 i32)
(local $2 i32)
(set_local $1
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
(i32.const 16)
)
)
(i32.store
- (set_local $2
+ (tee_local $2
(get_local $1)
)
(i32.load offset=60
@@ -9749,41 +9798,32 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(get_local $1)
)
(get_local $0)
)
(func $copyTempFloat (param $0 i32)
(i32.store8
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s
(get_local $0)
)
)
(i32.store8 offset=1
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=1
(get_local $0)
)
)
(i32.store8 offset=2
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=2
(get_local $0)
)
)
(i32.store8 offset=3
- (i32.load
- (i32.const 24)
- )
+ (get_global $tempDoublePtr)
(i32.load8_s offset=3
(get_local $0)
)
@@ -9810,6 +9850,9 @@
)
(func $dynCall_iiii (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
+ (get_local $1)
+ (get_local $2)
+ (get_local $3)
(i32.add
(i32.and
(get_local $0)
@@ -9817,34 +9860,23 @@
)
(i32.const 2)
)
- (get_local $1)
- (get_local $2)
- (get_local $3)
)
)
(func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
(get_local $0)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(i32.and
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
(i32.const 15)
)
(i32.const -16)
@@ -9866,17 +9898,13 @@
(func $setThrew (param $0 i32) (param $1 i32)
(if
(i32.eqz
- (i32.load
- (i32.const 40)
- )
+ (get_global $__THREW__)
)
(block
- (i32.store
- (i32.const 40)
+ (set_global $__THREW__
(get_local $0)
)
- (i32.store
- (i32.const 48)
+ (set_global $threwValue
(get_local $1)
)
)
@@ -9897,6 +9925,7 @@
)
(func $dynCall_ii (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
+ (get_local $1)
(i32.add
(i32.and
(get_local $0)
@@ -9904,7 +9933,6 @@
)
(i32.const 0)
)
- (get_local $1)
)
)
(func $_cleanup_418 (param $0 i32)
@@ -9920,17 +9948,16 @@
)
)
(func $establishStackSpace (param $0 i32) (param $1 i32)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(get_local $0)
)
- (i32.store
- (i32.const 16)
+ (set_global $STACK_MAX
(get_local $1)
)
)
(func $dynCall_vi (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
+ (get_local $1)
(i32.add
(i32.and
(get_local $0)
@@ -9938,7 +9965,6 @@
)
(i32.const 10)
)
- (get_local $1)
)
)
(func $b1 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
@@ -9948,14 +9974,12 @@
(i32.const 0)
)
(func $stackRestore (param $0 i32)
- (i32.store
- (i32.const 8)
+ (set_global $STACKTOP
(get_local $0)
)
)
(func $setTempRet0 (param $0 i32)
- (i32.store
- (i32.const 160)
+ (set_global $tempRet0
(get_local $0)
)
)
@@ -9972,20 +9996,18 @@
(i32.const 0)
)
(func $getTempRet0 (result i32)
- (i32.load
- (i32.const 160)
- )
+ (get_global $tempRet0)
)
(func $_main (result i32)
- (call $_puts
- (i32.const 672)
+ (drop
+ (call $_puts
+ (i32.const 672)
+ )
)
(i32.const 0)
)
(func $stackSave (result i32)
- (i32.load
- (i32.const 8)
- )
+ (get_global $STACKTOP)
)
(func $b2 (param $0 i32)
(call_import $abort