[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
@@ -96,26 +96,41 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_12 {
color=blue
37 [label="Enter block"];
38 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
39 [label="Exit block"];
subgraph cluster_13 {
color=blue
38 [label="Function call arguments enter"];
39 [label="Function call arguments exit"];
}
40 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
41 [label="Exit block"];
}
40 [label="Exit when branch result"];
41 [label="Enter when branch result"];
subgraph cluster_13 {
42 [label="Exit when branch result"];
43 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
42 [label="Enter block"];
43 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
44 [label="Exit block"];
44 [label="Enter block"];
subgraph cluster_15 {
color=blue
45 [label="Function call arguments enter"];
46 [label="Function call arguments exit"];
}
47 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
48 [label="Exit block"];
}
45 [label="Exit when branch result"];
46 [label="Exit when"];
49 [label="Exit when branch result"];
50 [label="Exit when"];
}
47 [label="Variable declaration: lval b: R|B|"];
48 [label="Access variable R|<local>/b|"];
49 [label="Function call: R|/takeB|(...)" style="filled" fillcolor=yellow];
50 [label="Exit block"];
51 [label="Variable declaration: lval b: R|B|"];
subgraph cluster_16 {
color=blue
52 [label="Function call arguments enter"];
53 [label="Access variable R|<local>/b|"];
54 [label="Function call arguments exit"];
}
55 [label="Function call: R|/takeB|(...)" style="filled" fillcolor=yellow];
56 [label="Exit block"];
}
51 [label="Exit function test_1" style="filled" fillcolor=red];
57 [label="Exit function test_1" style="filled" fillcolor=red];
}
16 -> {17};
17 -> {18};
@@ -130,7 +145,7 @@ digraph exhaustiveWhenAndDNNType_kt {
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30 41};
29 -> {30 43};
30 -> {31};
31 -> {32};
32 -> {33};
@@ -141,9 +156,9 @@ digraph exhaustiveWhenAndDNNType_kt {
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {46};
40 -> {41};
41 -> {42};
42 -> {43};
42 -> {50};
43 -> {44};
44 -> {45};
45 -> {46};
@@ -152,70 +167,85 @@ digraph exhaustiveWhenAndDNNType_kt {
48 -> {49};
49 -> {50};
50 -> {51};
subgraph cluster_14 {
color=red
52 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
53 [label="Enter block"];
54 [label="Access qualifier /SomeEnum"];
55 [label="Access variable R|/SomeEnum.A1|"];
56 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_16 {
color=blue
57 [label="Enter when"];
58 [label="Access variable R|<local>/flag|"];
59 [label="Check not null: R|<local>/flag|!!" style="filled" fillcolor=yellow];
subgraph cluster_17 {
color=blue
60 [label="Enter when branch condition "];
61 [label="Exit $subj"];
62 [label="Access qualifier /SomeEnum"];
63 [label="Access variable R|/SomeEnum.A1|"];
64 [label="Equality operator =="];
65 [label="Exit when branch condition"];
}
subgraph cluster_18 {
color=blue
66 [label="Enter when branch condition "];
67 [label="Exit $subj"];
68 [label="Access qualifier /SomeEnum"];
69 [label="Access variable R|/SomeEnum.A2|"];
70 [label="Equality operator =="];
71 [label="Exit when branch condition"];
}
72 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
73 [label="Enter block"];
74 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
75 [label="Exit block"];
}
76 [label="Exit when branch result"];
77 [label="Enter when branch result"];
subgraph cluster_20 {
color=blue
78 [label="Enter block"];
79 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
80 [label="Exit block"];
}
81 [label="Exit when branch result"];
82 [label="Exit when"];
}
83 [label="Variable declaration: lval b: R|B|"];
84 [label="Access variable R|<local>/b|"];
85 [label="Function call: R|/takeB|(...)" style="filled" fillcolor=yellow];
86 [label="Exit block"];
}
87 [label="Exit function test_2" style="filled" fillcolor=red];
}
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_17 {
color=red
58 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
59 [label="Enter block"];
60 [label="Access qualifier /SomeEnum"];
61 [label="Access variable R|/SomeEnum.A1|"];
62 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_19 {
color=blue
63 [label="Enter when"];
64 [label="Access variable R|<local>/flag|"];
65 [label="Check not null: R|<local>/flag|!!" style="filled" fillcolor=yellow];
subgraph cluster_20 {
color=blue
66 [label="Enter when branch condition "];
67 [label="Exit $subj"];
68 [label="Access qualifier /SomeEnum"];
69 [label="Access variable R|/SomeEnum.A1|"];
70 [label="Equality operator =="];
71 [label="Exit when branch condition"];
}
subgraph cluster_21 {
color=blue
72 [label="Enter when branch condition "];
73 [label="Exit $subj"];
74 [label="Access qualifier /SomeEnum"];
75 [label="Access variable R|/SomeEnum.A2|"];
76 [label="Equality operator =="];
77 [label="Exit when branch condition"];
}
78 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
79 [label="Enter block"];
subgraph cluster_23 {
color=blue
80 [label="Function call arguments enter"];
81 [label="Function call arguments exit"];
}
82 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
83 [label="Exit block"];
}
84 [label="Exit when branch result"];
85 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
86 [label="Enter block"];
subgraph cluster_25 {
color=blue
87 [label="Function call arguments enter"];
88 [label="Function call arguments exit"];
}
89 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
90 [label="Exit block"];
}
91 [label="Exit when branch result"];
92 [label="Exit when"];
}
93 [label="Variable declaration: lval b: R|B|"];
subgraph cluster_26 {
color=blue
94 [label="Function call arguments enter"];
95 [label="Access variable R|<local>/b|"];
96 [label="Function call arguments exit"];
}
97 [label="Function call: R|/takeB|(...)" style="filled" fillcolor=yellow];
98 [label="Exit block"];
}
99 [label="Exit function test_2" style="filled" fillcolor=red];
}
58 -> {59};
59 -> {60};
60 -> {61};
@@ -223,18 +253,18 @@ digraph exhaustiveWhenAndDNNType_kt {
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66 77};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
71 -> {72 85};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {82};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
@@ -242,66 +272,10 @@ digraph exhaustiveWhenAndDNNType_kt {
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
84 -> {92};
85 -> {86};
86 -> {87};
subgraph cluster_21 {
color=red
88 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
89 [label="Enter block"];
90 [label="Access qualifier /SomeEnum"];
91 [label="Access variable R|/SomeEnum.A1|"];
92 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_23 {
color=blue
93 [label="Enter when"];
94 [label="Access variable R|<local>/flag|"];
subgraph cluster_24 {
color=blue
95 [label="Enter when branch condition "];
96 [label="Exit $subj"];
97 [label="Access qualifier /SomeEnum"];
98 [label="Access variable R|/SomeEnum.A1|"];
99 [label="Equality operator =="];
100 [label="Exit when branch condition"];
}
subgraph cluster_25 {
color=blue
101 [label="Enter when branch condition "];
102 [label="Exit $subj"];
103 [label="Access qualifier /SomeEnum"];
104 [label="Access variable R|/SomeEnum.A2|"];
105 [label="Equality operator =="];
106 [label="Exit when branch condition"];
}
107 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
108 [label="Enter block"];
109 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
110 [label="Exit block"];
}
111 [label="Exit when branch result"];
112 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
113 [label="Enter block"];
114 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
115 [label="Exit block"];
}
116 [label="Exit when branch result"];
117 [label="Exit when"];
}
118 [label="Variable declaration: lval b: R|B|"];
119 [label="Access variable R|<local>/b|"];
120 [label="Function call: R|/takeB|(...)" style="filled" fillcolor=yellow];
121 [label="Exit block"];
}
122 [label="Exit function test_3" style="filled" fillcolor=red];
}
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
@@ -313,8 +287,79 @@ digraph exhaustiveWhenAndDNNType_kt {
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101 112};
subgraph cluster_27 {
color=red
100 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_28 {
color=blue
101 [label="Enter block"];
102 [label="Access qualifier /SomeEnum"];
103 [label="Access variable R|/SomeEnum.A1|"];
104 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_29 {
color=blue
105 [label="Enter when"];
106 [label="Access variable R|<local>/flag|"];
subgraph cluster_30 {
color=blue
107 [label="Enter when branch condition "];
108 [label="Exit $subj"];
109 [label="Access qualifier /SomeEnum"];
110 [label="Access variable R|/SomeEnum.A1|"];
111 [label="Equality operator =="];
112 [label="Exit when branch condition"];
}
subgraph cluster_31 {
color=blue
113 [label="Enter when branch condition "];
114 [label="Exit $subj"];
115 [label="Access qualifier /SomeEnum"];
116 [label="Access variable R|/SomeEnum.A2|"];
117 [label="Equality operator =="];
118 [label="Exit when branch condition"];
}
119 [label="Enter when branch result"];
subgraph cluster_32 {
color=blue
120 [label="Enter block"];
subgraph cluster_33 {
color=blue
121 [label="Function call arguments enter"];
122 [label="Function call arguments exit"];
}
123 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
124 [label="Exit block"];
}
125 [label="Exit when branch result"];
126 [label="Enter when branch result"];
subgraph cluster_34 {
color=blue
127 [label="Enter block"];
subgraph cluster_35 {
color=blue
128 [label="Function call arguments enter"];
129 [label="Function call arguments exit"];
}
130 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
131 [label="Exit block"];
}
132 [label="Exit when branch result"];
133 [label="Exit when"];
}
134 [label="Variable declaration: lval b: R|B|"];
subgraph cluster_36 {
color=blue
135 [label="Function call arguments enter"];
136 [label="Access variable R|<local>/b|"];
137 [label="Function call arguments exit"];
}
138 [label="Function call: R|/takeB|(...)" style="filled" fillcolor=yellow];
139 [label="Exit block"];
}
140 [label="Exit function test_3" style="filled" fillcolor=red];
}
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
@@ -325,8 +370,8 @@ digraph exhaustiveWhenAndDNNType_kt {
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {117};
112 -> {113};
111 -> {112};
112 -> {113 126};
113 -> {114};
114 -> {115};
115 -> {116};
@@ -336,5 +381,23 @@ digraph exhaustiveWhenAndDNNType_kt {
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {133};
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
139 -> {140};
}