// FILE: test.kt fun foo() { if (flag) { "OK" } else { "OK" } val b = if (flag) { "OK" } else { "OK" } } var flag = true fun box() { foo() flag = false foo() } // EXPECTATIONS JVM_IR // test.kt:21 box // test.kt:5 foo // test.kt:6 foo // test.kt:11 foo // test.kt:12 foo // test.kt:11 foo // test.kt:16 foo // test.kt:22 box // test.kt:23 box // test.kt:5 foo // test.kt:8 foo // test.kt:11 foo // test.kt:14 foo // test.kt:11 foo // test.kt:16 foo // test.kt:24 box // EXPECTATIONS JS_IR // test.kt:21 box // test.kt:5 foo // test.kt:11 foo // test.kt:12 foo // test.kt:11 foo // test.kt:16 foo // test.kt:22 box // test.kt:23 box // test.kt:5 foo // test.kt:11 foo // test.kt:14 foo // test.kt:11 foo // test.kt:16 foo // test.kt:24 box // EXPECTATIONS WASM // test.kt:21 $box // test.kt:5 $foo (8, 8) // test.kt:6 $foo (8, 8, 8, 8) // test.kt:11 $foo (16, 4, 16, 4) // test.kt:12 $foo (8, 8, 8, 8) // test.kt:16 $foo (1, 1) // test.kt:22 $box (11, 4) // test.kt:23 $box // test.kt:8 $foo (8, 8, 8, 8) // test.kt:14 $foo (8, 8, 8, 8) // test.kt:24 $box