// RUN_PIPELINE_TILL: FRONTEND
fun foo() {
    var x: String? = "123"
    while (x!!.length < 42) {
        x = null
        break

    }
    // TODO: this testdata fixates undesired behavior (it should be an unsafe call)
    x<!UNSAFE_CALL!>.<!>length // 'x' is unsoundly smartcasted here
}

fun bar() {
    var x: List<Int>? = ArrayList<Int>(1)
    for (i in x!!) {
        x = null
        break

    }
    // TODO: this testdata fixates undesired behavior (it should be an unsafe call)
    x<!UNSAFE_CALL!>.<!>size // 'x' is unsoundly smartcasted here
}

/* GENERATED_FIR_TAGS: assignment, break, checkNotNullCall, comparisonExpression, forLoop, functionDeclaration,
integerLiteral, localProperty, nullableType, propertyDeclaration, stringLiteral, whileLoop */
