mirror of
https://github.com/radareorg/radare2-testbins.git
synced 2026-11-07 06:36:01 -10:00
26 lines
463 B
WebAssembly Text Format
26 lines
463 B
WebAssembly Text Format
;;; TOOL: run-interp
|
|
(module
|
|
(func (export "loop") (result i32)
|
|
(local i32 i32)
|
|
;; loop statements now require an explicit branch to the top
|
|
loop $cont
|
|
get_local 1
|
|
get_local 0
|
|
i32.add
|
|
set_local 1
|
|
get_local 0
|
|
i32.const 1
|
|
i32.add
|
|
set_local 0
|
|
get_local 0
|
|
i32.const 5
|
|
i32.lt_s
|
|
if
|
|
br $cont
|
|
end
|
|
end
|
|
get_local 1))
|
|
(;; STDOUT ;;;
|
|
loop() => i32:10
|
|
;;; STDOUT ;;)
|