1
0
mirror of https://github.com/fluencelabs/wasmer synced 2025-03-26 04:31:04 +00:00

18 lines
523 B
Plaintext
Raw Normal View History

2019-02-23 01:54:45 +08:00
(module
(func $main (export "main")
2019-02-23 01:54:45 +08:00
(local $count i32)
(local $sum i32)
(loop (result i32)
(set_local $count (i32.add (get_local $count) (i32.const 1)))
(set_local $sum (i32.add (get_local $sum) (get_local $count)))
(i32.sub (i32.const 1) (i32.eq
(get_local $count)
(i32.const 50000)
2019-02-23 01:54:45 +08:00
))
(br_if 0)
(get_local $sum)
)
(if (i32.ne (i32.const 1250025000)) (unreachable))
2019-02-23 01:54:45 +08:00
)
)