vextoly/cryn
[# mutual recursion #]
define is_even int64 n result bool
move n
read
compare 0
jump yes when equal
move n
read
subtract 1
push
call is_odd
return
mark yes
set true
return
end
define is_odd int64 n result bool
move n
read
compare 0
jump yes when equal
move n
read
subtract 1
push
call is_even
return
mark yes
set false
return
end
define main
set 10
push
call is_even
output
set 7
push
call is_odd
output
set 7
push
call is_even
output
return
end