1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/tests/Asm/positive/test008.jva
2022-09-29 17:44:55 +02:00

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;
}