Files
kotlin/compiler/testData/codegen/bytecodeText/conditions/negatedConjuction.kt
Jiaxiang Chen 4b99d85322 Optimize JVM byte code generation for conditional conjunction
Implement an intrinsic method for boolean.and operation, and replace
ANDAND condition with a call to such intrinsic method.
2019-04-29 13:28:18 +02:00

18 lines
199 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
// 2 IFEQ
// 1 IFNE
// 3 IF
// 1 GOTO