blob: 7bc2f51b59fbef43564c69f46e66ead3d59a99b5 [file] [log] [blame]
val a = 2
fun main() {
// Generates IFNE and GOTO
while (a == 0) {
"loop"
}
// Generates IFLE and GOTO
while (a > 0) {
"loop"
}
// Generates IFLT and GOTO
while (a >= 0) {
"loop"
}
// Generates IFGE and GOTO
while (a < 0) {
"loop"
}
// Generates IFGT and GOTO
while (a <= 0) {
"loop"
}
}
//0 ICONST_0
//0 ICONST_1
//1 IFNE
//1 IFLE
//1 IFLT
//1 IFGE
//1 IFGT
//5 IF
//5 GOTO