[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
@@ -16,168 +16,182 @@ digraph delegatedConstructorArguments_kt {
subgraph cluster_2 {
color=blue
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Access variable R|<local>/set|"];
5 [label="Postponed enter to lambda"];
subgraph cluster_3 {
color=blue
6 [label="Enter function <anonymous>" style="filled" fillcolor=red];
4 [label="Function call arguments enter"];
5 [label="Access variable R|<local>/set|"];
6 [label="Postponed enter to lambda"];
subgraph cluster_4 {
color=blue
7 [label="Enter block"];
8 [label="Access variable R|<local>/it|"];
9 [label="Exit block"];
7 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
8 [label="Enter block"];
9 [label="Access variable R|<local>/it|"];
10 [label="Exit block"];
}
11 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
10 [label="Exit function <anonymous>" style="filled" fillcolor=red];
12 [label="Function call arguments exit"];
}
11 [label="Postponed exit from lambda"];
12 [label="Function call: R|<local>/set|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
13 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_5 {
13 [label="Postponed exit from lambda"];
14 [label="Function call: R|<local>/set|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
15 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_6 {
color=blue
14 [label="Enter function <init>" style="filled" fillcolor=red];
15 [label="Access variable R|<local>/map|"];
16 [label="Access variable R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|"];
17 [label="Postponed enter to lambda"];
subgraph cluster_6 {
16 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
18 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_7 {
17 [label="Function call arguments enter"];
18 [label="Access variable R|<local>/map|"];
19 [label="Access variable R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|"];
20 [label="Postponed enter to lambda"];
subgraph cluster_8 {
color=blue
19 [label="Enter block"];
20 [label="Access variable R|<local>/it|"];
21 [label="Exit block"];
21 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
22 [label="Enter block"];
23 [label="Access variable R|<local>/it|"];
24 [label="Exit block"];
}
25 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
22 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
23 [label="Postponed exit from lambda"];
24 [label="Function call: R|<local>/map|.R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
25 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_8 {
color=blue
26 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
27 [label="Enter block"];
28 [label="Access variable this@R|/Test|"];
29 [label="Const: Int(0)"];
30 [label="Assignment: R|/Test.size|"];
31 [label="Exit block"];
}
32 [label="Exit init block" style="filled" fillcolor=red];
26 [label="Function call arguments exit"];
}
27 [label="Postponed exit from lambda"];
28 [label="Function call: R|<local>/map|.R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
29 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_10 {
color=blue
33 [label="Enter function <init>" style="filled" fillcolor=red];
34 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
30 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
35 [label="Enter block"];
36 [label="Access variable this@R|/Test|"];
37 [label="Access variable R|<local>/list|"];
38 [label="Assignment: R|/Test.values|"];
39 [label="Exit block"];
31 [label="Enter block"];
32 [label="Access variable this@R|/Test|"];
33 [label="Const: Int(0)"];
34 [label="Assignment: R|/Test.size|"];
35 [label="Exit block"];
}
40 [label="Exit function <init>" style="filled" fillcolor=red];
36 [label="Exit init block" style="filled" fillcolor=red];
}
subgraph cluster_12 {
color=blue
41 [label="Enter block"];
42 [label="Access variable this@R|/Test|"];
43 [label="Access variable R|/Test.size|"];
44 [label="Access variable this@R|/Test|"];
45 [label="Access variable R|/Test.values|"];
46 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
47 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
48 [label="Assignment: R|/Test.size|"];
49 [label="Exit block"];
37 [label="Enter function <init>" style="filled" fillcolor=red];
38 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
subgraph cluster_13 {
color=blue
39 [label="Enter block"];
40 [label="Access variable this@R|/Test|"];
41 [label="Access variable R|<local>/list|"];
42 [label="Assignment: R|/Test.values|"];
43 [label="Exit block"];
}
44 [label="Exit function <init>" style="filled" fillcolor=red];
}
50 [label="Exit function <init>" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
45 [label="Enter block"];
46 [label="Access variable this@R|/Test|"];
47 [label="Access variable R|/Test.size|"];
48 [label="Access variable this@R|/Test|"];
49 [label="Access variable R|/Test.values|"];
50 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
51 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
52 [label="Assignment: R|/Test.size|"];
53 [label="Exit block"];
}
54 [label="Exit function <init>" style="filled" fillcolor=red];
}
subgraph cluster_13 {
subgraph cluster_15 {
color=blue
51 [label="Enter block"];
52 [label="Access variable this@R|/Test|"];
53 [label="Access variable R|/Test.size|"];
54 [label="Access variable this@R|/Test|"];
55 [label="Access variable R|/Test.values|"];
56 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
57 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
58 [label="Assignment: R|/Test.size|"];
59 [label="Exit block"];
55 [label="Enter block"];
56 [label="Access variable this@R|/Test|"];
57 [label="Access variable R|/Test.size|"];
58 [label="Access variable this@R|/Test|"];
59 [label="Access variable R|/Test.values|"];
60 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
61 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
62 [label="Assignment: R|/Test.size|"];
63 [label="Exit block"];
}
60 [label="Exit function <init>" style="filled" fillcolor=red];
64 [label="Exit function <init>" style="filled" fillcolor=red];
}
61 [label="Exit class Test" style="filled" fillcolor=red];
65 [label="Exit class Test" style="filled" fillcolor=red];
}
2 -> {3 14 26} [color=green];
2 -> {61} [style=dotted];
2 -> {3 14 26 33} [style=dashed];
2 -> {3 16 30} [color=green];
2 -> {65} [style=dotted];
2 -> {3 16 30 37} [style=dashed];
3 -> {4};
4 -> {5};
5 -> {6 11 12};
5 -> {6} [style=dashed];
6 -> {7};
5 -> {6};
6 -> {7 12 13};
6 -> {7} [style=dashed];
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {5} [color=green style=dashed];
11 -> {12} [color=green];
11 -> {13} [color=red];
12 -> {13};
13 -> {26} [color=green label="return@/Test.Test"];
13 -> {41} [color=red];
11 -> {13};
12 -> {14};
13 -> {6} [color=green style=dashed];
13 -> {14} [color=green];
13 -> {15} [color=red];
14 -> {15};
15 -> {16};
15 -> {30} [color=green label="return@/Test.Test"];
15 -> {45} [color=red];
16 -> {17};
17 -> {18 23 24};
17 -> {18} [style=dashed];
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
20 -> {21 26 27};
20 -> {21} [style=dashed];
21 -> {22};
22 -> {23};
23 -> {17} [color=green style=dashed];
23 -> {24} [color=green];
23 -> {25} [color=red];
23 -> {24};
24 -> {25};
25 -> {26} [color=green label="return@/Test.Test"];
25 -> {51} [color=red];
26 -> {27};
27 -> {28};
25 -> {27};
26 -> {28};
27 -> {20} [color=green style=dashed];
27 -> {28} [color=green];
27 -> {29} [color=red];
28 -> {29};
29 -> {30};
29 -> {30} [color=green label="return@/Test.Test"];
29 -> {55} [color=red];
30 -> {31};
31 -> {32};
32 -> {33} [color=green];
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
36 -> {37} [color=green];
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41 51} [color=green label="return@/Test.Test"];
40 -> {61} [color=green];
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
44 -> {45 55} [color=green label="return@/Test.Test"];
44 -> {65} [color=green];
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {61} [color=green];
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
54 -> {65} [color=green];
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61} [color=green];
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65} [color=green];
}