mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 17:32:00 +03:00
33 lines
337 B
Plaintext
33 lines
337 B
Plaintext
-- branch
|
|
|
|
function loop() {
|
|
tcall loop;
|
|
}
|
|
|
|
function main() {
|
|
push 3;
|
|
push 0;
|
|
lt;
|
|
br {
|
|
true: push 1
|
|
false: call loop
|
|
};
|
|
push 1;
|
|
push 2;
|
|
le;
|
|
br {
|
|
true: call loop
|
|
false: {
|
|
push 7;
|
|
push 8;
|
|
le;
|
|
br {
|
|
true: call loop
|
|
false: push 1
|
|
};
|
|
}
|
|
};
|
|
add;
|
|
ret;
|
|
}
|