FIR DFA: take all statements from ?. if result is non-null.
I.e. a?.f(b as T) != null => b is T. This also allows to remove the copyAllInformationFrom hack by moving the edge directly in the control flow graph.
This commit is contained in:
+1
-3
@@ -62,9 +62,7 @@ digraph elvis_kt {
|
||||
5 -> {6};
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
8 -> {11} [color=red];
|
||||
8 -> {13} [color=green];
|
||||
8 -> {9 13};
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
|
||||
+1
-3
@@ -490,9 +490,7 @@ digraph returns_kt {
|
||||
161 -> {162};
|
||||
162 -> {163};
|
||||
163 -> {164};
|
||||
164 -> {165};
|
||||
164 -> {167} [color=red];
|
||||
164 -> {169} [color=green];
|
||||
164 -> {165 169};
|
||||
165 -> {166};
|
||||
166 -> {167};
|
||||
167 -> {168};
|
||||
|
||||
Reference in New Issue
Block a user