mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-07-14 02:35:40 +00:00
fdce5c64f1
I tried locally merge `fix-tests` and `fix-clippy` branches and CI should work after my PRs
28 lines
388 B
WebAssembly Text Format
28 lines
388 B
WebAssembly Text Format
(module
|
|
(func $fibonacci_with_break (result i32)
|
|
(local $x i32) (local $y i32)
|
|
|
|
(block $unrolled_loop
|
|
(local.set $x (i32.const 0))
|
|
(local.set $y (i32.const 1))
|
|
|
|
local.get $x
|
|
local.get $y
|
|
local.tee $x
|
|
i32.add
|
|
local.set $y
|
|
|
|
i32.const 1
|
|
br_if $unrolled_loop
|
|
|
|
local.get $x
|
|
local.get $y
|
|
local.tee $x
|
|
i32.add
|
|
local.set $y
|
|
)
|
|
|
|
local.get $y
|
|
)
|
|
)
|