summaryrefslogtreecommitdiff
path: root/test/passes/log-execution.wast
blob: b84d7ac1f4033bd84376bb1ae9a35dd158c8a07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(module
  (import "env" "func" (func $import))
  (func $nopp
    (nop)
  )
  (func $intt (result i32)
    (i32.const 10)
  )
  (func $workk
    (if (i32.const 0) (then (nop)))
    (drop (i32.const 1))
  )
  (func $loops
    (loop $x
      (call $loops)
      (br $x)
    )
    (if (call $intt)
      (then
        (loop $y
          (call $loops)
        )
      )
    )
    (loop
      (drop (i32.const 10))
      (drop (i32.const 20))
      (drop (i32.const 30))
    )
  )
  (func $loops-similar
    (loop $x
      (call $loops)
      (br $x)
    )
  )
)