[FIR] Rewind DFA after call arguments for correct receiver smartcasting

^KT-63709 Fixed
This commit is contained in:
Brian Norman
2023-11-27 13:48:09 -06:00
committed by Space Team
parent 38d5e56530
commit 0881910a1b
128 changed files with 22457 additions and 16148 deletions
@@ -47,30 +47,45 @@ digraph defaultArguments_kt {
subgraph cluster_5 {
color=blue
17 [label="Enter default value of z" style="filled" fillcolor=red];
18 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
19 [label="Enter function <anonymous>" style="filled" fillcolor=red];
18 [label="Function call arguments enter"];
19 [label="Postponed enter to lambda"];
subgraph cluster_7 {
color=blue
20 [label="Enter block"];
21 [label="Function call: R|/foo|()" style="filled" fillcolor=yellow];
22 [label="Exit block"];
20 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
21 [label="Enter block"];
subgraph cluster_9 {
color=blue
22 [label="Function call arguments enter"];
23 [label="Function call arguments exit"];
}
24 [label="Function call: R|/foo|()" style="filled" fillcolor=yellow];
25 [label="Exit block"];
}
26 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
23 [label="Exit function <anonymous>" style="filled" fillcolor=red];
27 [label="Function call arguments exit"];
}
24 [label="Postponed exit from lambda"];
25 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
26 [label="Exit default value of z" style="filled" fillcolor=red];
28 [label="Postponed exit from lambda"];
29 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
30 [label="Exit default value of z" style="filled" fillcolor=red];
}
27 [label="Exit default value of z"];
subgraph cluster_8 {
31 [label="Exit default value of z"];
subgraph cluster_10 {
color=blue
28 [label="Enter block"];
29 [label="Function call: R|/foo|()" style="filled" fillcolor=yellow];
30 [label="Exit block"];
32 [label="Enter block"];
subgraph cluster_11 {
color=blue
33 [label="Function call arguments enter"];
34 [label="Function call arguments exit"];
}
35 [label="Function call: R|/foo|()" style="filled" fillcolor=yellow];
36 [label="Exit block"];
}
31 [label="Exit function test" style="filled" fillcolor=red];
37 [label="Exit function test" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11 15};
@@ -80,23 +95,29 @@ digraph defaultArguments_kt {
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17 27};
16 -> {17 31};
16 -> {17} [style=dashed];
17 -> {18};
18 -> {19 25};
18 -> {24} [style=dotted];
18 -> {19} [style=dashed];
19 -> {20};
18 -> {19};
19 -> {20 27};
19 -> {28} [style=dotted];
19 -> {20} [style=dashed];
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
26 -> {28};
27 -> {29};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
}