Debian Codegraph @

tests/snapshots/testsuite/forward.wast/0.print

raw
1 (module
2 (type (;0;) (func (param i32) (result i32)))
3 (export "even" (func $even))
4 (export "odd" (func $odd))
5 (func $even (;0;) (type 0) (param $n i32) (result i32)
6 local.get $n
7 i32.const 0
8 i32.eq
9 if (result i32) ;; label = @1
10 i32.const 1
11 else
12 local.get $n
13 i32.const 1
14 i32.sub
15 call $odd
16 end
17 )
18 (func $odd (;1;) (type 0) (param $n i32) (result i32)
19 local.get $n
20 i32.const 0
21 i32.eq
22 if (result i32) ;; label = @1
23 i32.const 0
24 else
25 local.get $n
26 i32.const 1
27 i32.sub
28 call $even
29 end
30 )
31 )