FIR CFA: add edges from maybe-throwing statements to catch/finally

This commit is contained in:
pyos
2023-01-16 12:15:52 +01:00
committed by teamcity
parent ef208d9eac
commit 8aa50e9446
17 changed files with 156 additions and 64 deletions
@@ -13,7 +13,7 @@ fun f1(flag: Boolean) {
}
catch (e: Exception) {
// KT-13612: reassignment
n = 3
<!VAL_REASSIGNMENT!>n<!> = 3
}
<!UNINITIALIZED_VARIABLE!>n<!>.hashCode()
}
@@ -30,7 +30,7 @@ fun f2(flag: Boolean) {
}
catch (e: Exception) {
// KT-13612: reassignment
n = 3
<!VAL_REASSIGNMENT!>n<!> = 3
}
<!UNINITIALIZED_VARIABLE!>n<!>.hashCode()
}
@@ -48,7 +48,7 @@ fun f3(flag: Boolean) {
}
catch (e: Exception) {
// KT-13612: reassignment
n = 3
<!VAL_REASSIGNMENT!>n<!> = 3
}
<!UNINITIALIZED_VARIABLE!>n<!>.hashCode()
}