blob: 2302ca2a27e5f8ece1c6f45623d842848ea19cc7 [file] [log] [blame]
val a = 2
fun main() {
// Generates IF_ICMPNE and GOTO
while (a == 42) {
"loop"
}
// Generates IF_ICMPLE and GOTO
while (a > 42) {
"loop"
}
// Generates IF_ICMPLT and GOTO
while (a >= 42) {
"loop"
}
// Generates IF_ICMPGE and GOTO
while (a < 42) {
"loop"
}
// Generates IF_ICMPGT and GOTO
while (a <= 42) {
"loop"
}
}
//0 ICONST_0
//0 ICONST_1
//1 IF_ICMPNE
//1 IF_ICMPLE
//1 IF_ICMPLT
//1 IF_ICMPGE
//1 IF_ICMPGT
//5 IF
//5 GOTO