mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
- Turn some const conditions into non-const conditions - Make sure inlined const values are used where required (otherwise they are eliminated by POP backward propagation)
18 lines
196 B
Kotlin
Vendored
18 lines
196 B
Kotlin
Vendored
val a = false
|
|
val b = false
|
|
val c = false
|
|
|
|
fun main() {
|
|
if (a && b && c) {
|
|
"then"
|
|
} else {
|
|
"else"
|
|
}
|
|
}
|
|
|
|
// 0 ICONST_0
|
|
// 0 ICONST_1
|
|
// 3 IFEQ
|
|
// 0 IFNE
|
|
// 3 IF
|
|
// 1 GOTO |