mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-26 13:11:52 +00:00
Rework loop compilation / flows (#644)
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
(start $start)
|
||||
(func $start:scoped (; 0 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
loop $repeat|0
|
||||
loop $loop|0
|
||||
local.get $0
|
||||
i32.const 1
|
||||
i32.lt_s
|
||||
@ -14,12 +14,12 @@
|
||||
i32.const 1
|
||||
i32.add
|
||||
local.set $0
|
||||
br $repeat|0
|
||||
br $loop|0
|
||||
end
|
||||
end
|
||||
i32.const 0
|
||||
local.set $0
|
||||
loop $repeat|1
|
||||
loop $loop|1
|
||||
local.get $0
|
||||
i32.const 1
|
||||
i32.lt_s
|
||||
@ -28,7 +28,7 @@
|
||||
i32.const 1
|
||||
i32.add
|
||||
local.set $0
|
||||
br $repeat|1
|
||||
br $loop|1
|
||||
end
|
||||
end
|
||||
)
|
||||
|
Reference in New Issue
Block a user