tests/snapshots/cli/upstream-threads/wait_notify.wast/2001.print
raw| 1 | (module |
| 2 | (type (;0;) (func (result i32))) |
| 3 | (type (;1;) (func)) |
| 4 | (import "mem" "shared" (memory (;0;) 1 1 shared)) |
| 5 | (export "notify-0" (func 0)) |
| 6 | (export "notify-1-while" (func 1)) |
| 7 | (func (;0;) (type 0) (result i32) |
| 8 | i32.const 0 |
| 9 | i32.const 0 |
| 10 | memory.atomic.notify |
| 11 | ) |
| 12 | (func (;1;) (type 1) |
| 13 | loop ;; label = @1 |
| 14 | i32.const 1 |
| 15 | i32.const 0 |
| 16 | i32.const 1 |
| 17 | memory.atomic.notify |
| 18 | i32.ne |
| 19 | br_if 0 (;@1;) |
| 20 | end |
| 21 | ) |
| 22 | ) |