[FIR] Rewind DFA after call arguments for correct receiver smartcasting
^KT-63709 Fixed
This commit is contained in:
+44
-30
@@ -36,48 +36,58 @@ digraph initBlockAndInPlaceLambda_kt {
|
||||
9 [label="Access variable R|<local>/a|"];
|
||||
10 [label="Access variable R|/A.b|"];
|
||||
11 [label="Enter safe call"];
|
||||
12 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
13 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
12 [label="Function call arguments enter"];
|
||||
13 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
14 [label="Enter block"];
|
||||
15 [label="Access variable R|<local>/a|"];
|
||||
16 [label="Access variable R|<local>/it|"];
|
||||
17 [label="Function call: R|/C.C|(...)" style="filled" fillcolor=yellow];
|
||||
18 [label="Exit block"];
|
||||
14 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
15 [label="Enter block"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
16 [label="Function call arguments enter"];
|
||||
17 [label="Access variable R|<local>/a|"];
|
||||
18 [label="Access variable R|<local>/it|"];
|
||||
19 [label="Function call arguments exit"];
|
||||
}
|
||||
20 [label="Function call: R|/C.C|(...)" style="filled" fillcolor=yellow];
|
||||
21 [label="Exit block"];
|
||||
}
|
||||
22 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
19 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
23 [label="Function call arguments exit"];
|
||||
}
|
||||
20 [label="Postponed exit from lambda"];
|
||||
21 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)" style="filled" fillcolor=yellow];
|
||||
22 [label="Exit safe call"];
|
||||
23 [label="Variable declaration: lval c: R|C?|"];
|
||||
24 [label="Exit block"];
|
||||
24 [label="Postponed exit from lambda"];
|
||||
25 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)" style="filled" fillcolor=yellow];
|
||||
26 [label="Exit safe call"];
|
||||
27 [label="Variable declaration: lval c: R|C?|"];
|
||||
28 [label="Exit block"];
|
||||
}
|
||||
25 [label="Exit init block" style="filled" fillcolor=red];
|
||||
29 [label="Exit init block" style="filled" fillcolor=red];
|
||||
}
|
||||
subgraph cluster_8 {
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
26 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
||||
28 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
30 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
31 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
||||
32 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
}
|
||||
29 [label="Exit class C" style="filled" fillcolor=red];
|
||||
33 [label="Exit class C" style="filled" fillcolor=red];
|
||||
}
|
||||
6 -> {7} [color=green];
|
||||
6 -> {29} [style=dotted];
|
||||
6 -> {7 26} [style=dashed];
|
||||
6 -> {33} [style=dotted];
|
||||
6 -> {7 30} [style=dashed];
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
9 -> {10};
|
||||
10 -> {11 22};
|
||||
10 -> {11 26};
|
||||
11 -> {12};
|
||||
12 -> {13 21};
|
||||
12 -> {20} [style=dotted];
|
||||
12 -> {13} [style=dashed];
|
||||
13 -> {14};
|
||||
12 -> {13};
|
||||
13 -> {14 23};
|
||||
13 -> {24} [style=dotted];
|
||||
13 -> {14} [style=dashed];
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
@@ -86,12 +96,16 @@ digraph initBlockAndInPlaceLambda_kt {
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
22 -> {24};
|
||||
23 -> {25};
|
||||
24 -> {25};
|
||||
25 -> {26} [color=green];
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29} [color=green];
|
||||
28 -> {29};
|
||||
29 -> {30} [color=green];
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
32 -> {33} [color=green];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user