blob: 6c55b727aa9cc7c691e01b0fa0eef8ff212bbafd [file] [log] [blame]
val a = 2
fun main() {
// Generates IFEQ and GOTO
if (!(a == 0)) {
"then"
} else {
"else"
}
// Generates IFEQ and GOTO
if (a != 0) {
"then"
} else {
"else"
}
// Generates IFGT and GOTO
if (!(a > 0)) {
"then"
} else {
"else"
}
// Generates IFGE and GOTO
if (!(a >= 0)) {
"then"
} else {
"else"
}
// Generates IFLT and GOTO
if (!(a < 0)) {
"then"
} else {
"else"
}
// Generates IFLE and GOTO
if (!(a <= 0)) {
"then"
} else {
"else"
}
}
//0 ICONST_0
//0 ICONST_1
//2 IFEQ
//1 IFLE
//1 IFLT
//1 IFGE
//1 IFGT
//6 IF
//6 GOTO