Also lint stdlib

This commit is contained in:
dcodeIO
2018-02-25 23:21:32 +01:00
parent ae05006d21
commit 9ef8b162a9
30 changed files with 506 additions and 461 deletions

View File

@ -2267,7 +2267,7 @@
(call $abort
(i32.const 0)
(i32.const 28)
(i32.const 31)
(i32.const 33)
(i32.const 4)
)
(unreachable)
@ -2409,23 +2409,25 @@
(get_local $3)
)
(block
(if
(i32.eq
(i32.load
(i32.add
(i32.load
(get_local $0)
)
(i32.mul
(get_local $2)
(i32.const 4)
(block
(if
(i32.eq
(i32.load
(i32.add
(i32.load
(get_local $0)
)
(i32.mul
(get_local $2)
(i32.const 4)
)
)
)
(get_local $1)
)
(return
(i32.const 1)
)
(get_local $1)
)
(return
(i32.const 1)
)
)
(set_local $2
@ -2457,7 +2459,7 @@
(call $abort
(i32.const 0)
(i32.const 28)
(i32.const 49)
(i32.const 51)
(i32.const 4)
)
(unreachable)
@ -2481,33 +2483,10 @@
(get_local $3)
)
(block
(if
(i32.eq
(i32.load
(i32.add
(i32.load
(get_local $0)
)
(i32.mul
(get_local $2)
(i32.const 4)
)
)
)
(get_local $1)
)
(block
(if
(i32.lt_u
(i32.add
(get_local $2)
(i32.const 1)
)
(i32.load offset=8
(get_local $0)
)
)
(call "$(lib)/memory/move_memory"
(block
(if
(i32.eq
(i32.load
(i32.add
(i32.load
(get_local $0)
@ -2517,41 +2496,66 @@
(i32.const 4)
)
)
(i32.add
(i32.load
)
(get_local $1)
)
(block
(if
(i32.lt_u
(i32.add
(get_local $2)
(i32.const 1)
)
(i32.load offset=8
(get_local $0)
)
(i32.mul
(i32.add
(get_local $2)
(i32.const 1)
)
(i32.const 4)
)
)
(i32.sub
(i32.sub
(i32.load offset=8
(call "$(lib)/memory/move_memory"
(i32.add
(i32.load
(get_local $0)
)
(get_local $2)
(i32.mul
(get_local $2)
(i32.const 4)
)
)
(i32.add
(i32.load
(get_local $0)
)
(i32.mul
(i32.add
(get_local $2)
(i32.const 1)
)
(i32.const 4)
)
)
(i32.sub
(i32.sub
(i32.load offset=8
(get_local $0)
)
(get_local $2)
)
(i32.const 1)
)
)
)
(i32.store offset=8
(get_local $0)
(i32.sub
(i32.load offset=8
(get_local $0)
)
(i32.const 1)
)
)
)
(i32.store offset=8
(get_local $0)
(i32.sub
(i32.load offset=8
(get_local $0)
)
(return
(i32.const 1)
)
)
(return
(i32.const 1)
)
)
)
(set_local $2
@ -2581,7 +2585,7 @@
(call $abort
(i32.const 0)
(i32.const 28)
(i32.const 62)
(i32.const 70)
(i32.const 4)
)
(unreachable)