[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
@@ -90,167 +90,216 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_10 {
color=blue
26 [label="Enter property" style="filled" fillcolor=red];
27 [label="Postponed enter to lambda"];
subgraph cluster_11 {
color=blue
28 [label="Enter function <anonymous>" style="filled" fillcolor=red];
27 [label="Function call arguments enter"];
28 [label="Postponed enter to lambda"];
subgraph cluster_12 {
color=blue
29 [label="Enter block"];
30 [label="Enter anonymous object"];
29 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
31 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
30 [label="Enter block"];
31 [label="Enter anonymous object"];
subgraph cluster_14 {
color=blue
32 [label="Enter function <init>" style="filled" fillcolor=red];
33 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
34 [label="Exit function <init>" style="filled" fillcolor=red];
32 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
33 [label="Enter function <init>" style="filled" fillcolor=red];
34 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
35 [label="Exit function <init>" style="filled" fillcolor=red];
}
36 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
}
35 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
37 [label="Exit anonymous object expression"];
38 [label="Exit block"];
}
36 [label="Exit anonymous object expression"];
37 [label="Exit block"];
39 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
38 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
subgraph cluster_15 {
color=blue
39 [label="Enter function setValue" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
40 [label="Enter block"];
41 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
42 [label="Access variable R|<local>/value|"];
43 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)" style="filled" fillcolor=yellow];
44 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
45 [label="Stub" style="filled" fillcolor=gray];
46 [label="Exit block" style="filled" fillcolor=gray];
40 [label="Enter function setValue" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
41 [label="Enter block"];
subgraph cluster_18 {
color=blue
42 [label="Function call arguments enter"];
subgraph cluster_19 {
color=blue
43 [label="Function call arguments enter"];
44 [label="Function call arguments exit"];
}
45 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
46 [label="Access variable R|<local>/value|"];
47 [label="Function call arguments exit"];
}
48 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)" style="filled" fillcolor=yellow];
49 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
50 [label="Stub" style="filled" fillcolor=gray];
51 [label="Exit block" style="filled" fillcolor=gray];
}
52 [label="Exit function setValue" style="filled" fillcolor=red];
}
47 [label="Exit function setValue" style="filled" fillcolor=red];
}
subgraph cluster_17 {
color=blue
48 [label="Enter function getValue" style="filled" fillcolor=red];
subgraph cluster_18 {
subgraph cluster_20 {
color=blue
49 [label="Enter block"];
50 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
51 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
52 [label="Stub" style="filled" fillcolor=gray];
53 [label="Exit block" style="filled" fillcolor=gray];
53 [label="Enter function getValue" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
54 [label="Enter block"];
subgraph cluster_22 {
color=blue
55 [label="Function call arguments enter"];
56 [label="Function call arguments exit"];
}
57 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
58 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
59 [label="Stub" style="filled" fillcolor=gray];
60 [label="Exit block" style="filled" fillcolor=gray];
}
61 [label="Exit function getValue" style="filled" fillcolor=red];
}
54 [label="Exit function getValue" style="filled" fillcolor=red];
62 [label="Function call arguments exit"];
}
55 [label="Postponed exit from lambda"];
56 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)" style="filled" fillcolor=yellow];
57 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).R?C|special/error|(...)" style="filled" fillcolor=yellow];
58 [label="Exit property delegate" style="filled" fillcolor=yellow];
59 [label="Exit property" style="filled" fillcolor=red];
63 [label="Postponed exit from lambda"];
64 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_23 {
color=blue
65 [label="Function call arguments enter"];
66 [label="Function call arguments exit"];
}
67 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).R?C|special/error|(...)" style="filled" fillcolor=yellow];
68 [label="Exit property delegate" style="filled" fillcolor=yellow];
69 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_19 {
subgraph cluster_24 {
color=blue
60 [label="Enter function <init>" style="filled" fillcolor=red];
61 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()" style="filled" fillcolor=yellow];
62 [label="Exit function <init>" style="filled" fillcolor=red];
70 [label="Enter function <init>" style="filled" fillcolor=red];
71 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()" style="filled" fillcolor=yellow];
72 [label="Exit function <init>" style="filled" fillcolor=red];
}
63 [label="Exit class IssuesListUserProfile" style="filled" fillcolor=red];
73 [label="Exit class IssuesListUserProfile" style="filled" fillcolor=red];
}
25 -> {26} [color=green];
25 -> {63} [style=dotted];
25 -> {26 60} [style=dashed];
25 -> {73} [style=dotted];
25 -> {26 70} [style=dashed];
26 -> {27};
27 -> {28 55 56};
27 -> {28} [style=dashed];
28 -> {29};
27 -> {28};
28 -> {29 62 63};
28 -> {29} [style=dashed];
29 -> {30};
30 -> {31};
30 -> {36} [style=dotted];
30 -> {31} [style=dashed];
31 -> {32};
31 -> {39 48} [color=red];
31 -> {35} [style=dotted];
31 -> {37} [style=dotted];
31 -> {32} [style=dashed];
32 -> {33};
32 -> {40 53} [color=red];
32 -> {36} [style=dotted];
32 -> {33} [style=dashed];
33 -> {34};
34 -> {35};
35 -> {36};
35 -> {39 48} [color=green];
35 -> {39 48} [style=dashed];
36 -> {37};
36 -> {40 53} [color=green];
36 -> {40 53} [style=dashed];
37 -> {38};
39 -> {40};
38 -> {39};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {47};
44 -> {45} [style=dotted];
45 -> {46} [style=dotted];
46 -> {47} [style=dotted];
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {54};
49 -> {52};
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
52 -> {53} [style=dotted];
53 -> {54} [style=dotted];
55 -> {56} [color=green];
55 -> {58} [color=red];
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60} [color=green];
60 -> {61};
61 -> {62};
62 -> {63} [color=green];
subgraph cluster_20 {
color=red
64 [label="Enter function <getter>" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
65 [label="Enter block"];
66 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
67 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(...)" style="filled" fillcolor=yellow];
68 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"];
69 [label="Stub" style="filled" fillcolor=gray];
70 [label="Exit block" style="filled" fillcolor=gray];
}
71 [label="Exit function <getter>" style="filled" fillcolor=red];
}
58 -> {61};
58 -> {59} [style=dotted];
59 -> {60} [style=dotted];
60 -> {61} [style=dotted];
62 -> {64};
63 -> {64} [color=green];
63 -> {68} [color=red];
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {71};
68 -> {69} [style=dotted];
69 -> {70} [style=dotted];
70 -> {71} [style=dotted];
68 -> {69};
69 -> {70} [color=green];
70 -> {71};
71 -> {72};
72 -> {73} [color=green];
subgraph cluster_22 {
subgraph cluster_25 {
color=red
72 [label="Enter function <setter>" style="filled" fillcolor=red];
subgraph cluster_23 {
74 [label="Enter function <getter>" style="filled" fillcolor=red];
subgraph cluster_26 {
color=blue
73 [label="Enter block"];
74 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
75 [label="Access variable R|<local>/issueListView|"];
76 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
77 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|, R|<local>/issueListView|)"];
78 [label="Stub" style="filled" fillcolor=gray];
79 [label="Exit block" style="filled" fillcolor=gray];
75 [label="Enter block"];
subgraph cluster_27 {
color=blue
76 [label="Function call arguments enter"];
77 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
78 [label="Function call arguments exit"];
}
79 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(...)" style="filled" fillcolor=yellow];
80 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"];
81 [label="Stub" style="filled" fillcolor=gray];
82 [label="Exit block" style="filled" fillcolor=gray];
}
80 [label="Exit function <setter>" style="filled" fillcolor=red];
83 [label="Exit function <getter>" style="filled" fillcolor=red];
}
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {80};
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {83};
80 -> {81} [style=dotted];
81 -> {82} [style=dotted];
82 -> {83} [style=dotted];
subgraph cluster_28 {
color=red
84 [label="Enter function <setter>" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
85 [label="Enter block"];
subgraph cluster_30 {
color=blue
86 [label="Function call arguments enter"];
87 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
88 [label="Access variable R|<local>/issueListView|"];
89 [label="Function call arguments exit"];
}
90 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
91 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|, R|<local>/issueListView|)"];
92 [label="Stub" style="filled" fillcolor=gray];
93 [label="Exit block" style="filled" fillcolor=gray];
}
94 [label="Exit function <setter>" style="filled" fillcolor=red];
}
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {94};
91 -> {92} [style=dotted];
92 -> {93} [style=dotted];
93 -> {94} [style=dotted];
}