Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.dot
T

803 lines
26 KiB
Plaintext
Vendored

digraph boundSmartcastsInBranches_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
2 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
1 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {2};
2 -> {1};
subgraph cluster_1 {
color=red
8 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter function getter" style="filled" fillcolor=red];
4 [label="Exit function getter" style="filled" fillcolor=red];
}
subgraph cluster_3 {
color=blue
5 [label="Enter property" style="filled" fillcolor=red];
7 [label="Const: String()"];
6 [label="Exit property" style="filled" fillcolor=red];
}
9 [label="Exit class A" style="filled" fillcolor=red];
}
8 -> {5} [color=green];
5 -> {7};
6 -> {9} [color=green];
7 -> {6};
3 -> {4};
subgraph cluster_4 {
color=red
10 [label="Enter function test_0" style="filled" fillcolor=red];
12 [label="Const: Null(null)"];
13 [label="Variable declaration: lvar goodA: R|A?|"];
14 [label="Access variable R|<local>/list|"];
15 [label="Function call: R|<local>/list|.R|FakeOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<A>|>|()"];
16 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<A>|"];
subgraph cluster_5 {
color=blue
17 [label="Enter while loop"];
subgraph cluster_6 {
color=blue
19 [label="Enter loop condition"];
20 [label="Access variable R|<local>/<iterator>|"];
21 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
22 [label="Exit loop condition"];
}
subgraph cluster_7 {
color=blue
23 [label="Enter loop block"];
subgraph cluster_8 {
color=blue
24 [label="Enter block"];
25 [label="Access variable R|<local>/<iterator>|"];
26 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|A|>|()"];
27 [label="Variable declaration: lval a: R|A|"];
subgraph cluster_9 {
color=blue
28 [label="Enter when"];
subgraph cluster_10 {
color=blue
30 [label="Enter when branch condition "];
31 [label="Access variable R|<local>/goodA|"];
32 [label="Const: Null(null)"];
33 [label="Operator =="];
34 [label="Exit when branch condition"];
}
43 [label="Synthetic else branch"];
35 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
36 [label="Enter block"];
37 [label="Access variable R|<local>/a|"];
38 [label="Assignment: R|<local>/goodA|"];
39 [label="Jump: continue@@@[R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()] "];
40 [label="Stub" style="filled" fillcolor=gray];
41 [label="Exit block" style="filled" fillcolor=gray];
}
42 [label="Exit when branch result" style="filled" fillcolor=gray];
29 [label="Exit when"];
}
44 [label="Access variable R|<local>/goodA|"];
45 [label="Access variable R|/A.s|"];
46 [label="Exit block"];
}
47 [label="Exit loop block"];
}
18 [label="Exit whileloop"];
}
11 [label="Exit function test_0" style="filled" fillcolor=red];
}
10 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {19};
18 -> {11};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {18 23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {30};
29 -> {44};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35 43};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {17};
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
41 -> {42} [style=dotted];
42 -> {29} [style=dotted];
43 -> {29};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {19};
subgraph cluster_12 {
color=red
48 [label="Enter function test_1" style="filled" fillcolor=red];
50 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_13 {
color=blue
51 [label="Enter when"];
subgraph cluster_14 {
color=blue
53 [label="Enter when branch condition "];
54 [label="Access variable R|<local>/b|"];
55 [label="Exit when branch condition"];
}
subgraph cluster_15 {
color=blue
62 [label="Enter when branch condition else"];
63 [label="Exit when branch condition"];
}
64 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
65 [label="Enter block"];
66 [label="Access variable R|<local>/a|"];
67 [label="Assignment: R|<local>/x|"];
68 [label="Exit block"];
}
69 [label="Exit when branch result"];
56 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
57 [label="Enter block"];
58 [label="Function call: R|/A.A|()"];
59 [label="Assignment: R|<local>/x|"];
60 [label="Exit block"];
}
61 [label="Exit when branch result"];
52 [label="Exit when"];
}
70 [label="Access variable R|<local>/x|"];
71 [label="Access variable R|/A.s|"];
49 [label="Exit function test_1" style="filled" fillcolor=red];
}
48 -> {50};
50 -> {51};
51 -> {53};
52 -> {70};
53 -> {54};
54 -> {55};
55 -> {56 62};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {52};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {52};
70 -> {71};
71 -> {49};
subgraph cluster_18 {
color=red
72 [label="Enter function test_2" style="filled" fillcolor=red];
74 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_19 {
color=blue
75 [label="Enter when"];
subgraph cluster_20 {
color=blue
77 [label="Enter when branch condition "];
78 [label="Access variable R|<local>/b|"];
79 [label="Exit when branch condition"];
}
subgraph cluster_21 {
color=blue
86 [label="Enter when branch condition else"];
87 [label="Exit when branch condition"];
}
88 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
89 [label="Enter block"];
90 [label="Access variable R|<local>/a|"];
91 [label="Assignment: R|<local>/x|"];
92 [label="Access variable R|<local>/a|"];
93 [label="Type operator: (R|<local>/a| as R|A|)"];
94 [label="Exit block"];
}
95 [label="Exit when branch result"];
80 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
81 [label="Enter block"];
82 [label="Function call: R|/A.A|()"];
83 [label="Assignment: R|<local>/x|"];
84 [label="Exit block"];
}
85 [label="Exit when branch result"];
76 [label="Exit when"];
}
96 [label="Access variable R|<local>/x|"];
97 [label="Access variable R|/A.s|"];
73 [label="Exit function test_2" style="filled" fillcolor=red];
}
72 -> {74};
74 -> {75};
75 -> {77};
76 -> {96};
77 -> {78};
78 -> {79};
79 -> {80 86};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {76};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {76};
96 -> {97};
97 -> {73};
subgraph cluster_24 {
color=red
98 [label="Enter function test_3" style="filled" fillcolor=red];
100 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_25 {
color=blue
101 [label="Enter when"];
subgraph cluster_26 {
color=blue
103 [label="Enter when branch condition "];
104 [label="Access variable R|<local>/b|"];
105 [label="Exit when branch condition"];
}
subgraph cluster_27 {
color=blue
112 [label="Enter when branch condition else"];
113 [label="Exit when branch condition"];
}
114 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
115 [label="Enter block"];
116 [label="Access variable R|<local>/a|"];
117 [label="Type operator: (R|<local>/a| as R|A|)"];
118 [label="Access variable R|<local>/a|"];
119 [label="Assignment: R|<local>/x|"];
120 [label="Exit block"];
}
121 [label="Exit when branch result"];
106 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
107 [label="Enter block"];
108 [label="Function call: R|/A.A|()"];
109 [label="Assignment: R|<local>/x|"];
110 [label="Exit block"];
}
111 [label="Exit when branch result"];
102 [label="Exit when"];
}
122 [label="Access variable R|<local>/x|"];
123 [label="Access variable R|/A.s|"];
99 [label="Exit function test_3" style="filled" fillcolor=red];
}
98 -> {100};
100 -> {101};
101 -> {103};
102 -> {122};
103 -> {104};
104 -> {105};
105 -> {106 112};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {102};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {102};
122 -> {123};
123 -> {99};
subgraph cluster_30 {
color=red
124 [label="Enter function test_4" style="filled" fillcolor=red];
126 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_31 {
color=blue
127 [label="Enter when"];
subgraph cluster_32 {
color=blue
129 [label="Enter when branch condition "];
130 [label="Access variable R|<local>/b|"];
131 [label="Exit when branch condition"];
}
subgraph cluster_33 {
color=blue
138 [label="Enter when branch condition else"];
139 [label="Exit when branch condition"];
}
140 [label="Enter when branch result"];
subgraph cluster_34 {
color=blue
141 [label="Enter block"];
142 [label="Access variable R|<local>/a|"];
143 [label="Assignment: R|<local>/x|"];
144 [label="Exit block"];
}
145 [label="Exit when branch result"];
132 [label="Enter when branch result"];
subgraph cluster_35 {
color=blue
133 [label="Enter block"];
134 [label="Access variable R|<local>/a|"];
135 [label="Assignment: R|<local>/x|"];
136 [label="Exit block"];
}
137 [label="Exit when branch result"];
128 [label="Exit when"];
}
146 [label="Access variable R|<local>/x|"];
147 [label="Type operator: (R|<local>/x| as R|A|)"];
148 [label="Access variable R|<local>/x|"];
149 [label="Access variable R|/A.s|"];
150 [label="Access variable R|<local>/a|"];
151 [label="Access variable R|/A.s|"];
125 [label="Exit function test_4" style="filled" fillcolor=red];
}
124 -> {126};
126 -> {127};
127 -> {129};
128 -> {146};
129 -> {130};
130 -> {131};
131 -> {132 138};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {128};
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {128};
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
151 -> {125};
subgraph cluster_36 {
color=red
152 [label="Enter function test_5" style="filled" fillcolor=red];
154 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_37 {
color=blue
155 [label="Enter when"];
subgraph cluster_38 {
color=blue
157 [label="Enter when branch condition "];
158 [label="Access variable R|<local>/b|"];
159 [label="Exit when branch condition"];
}
subgraph cluster_39 {
color=blue
166 [label="Enter when branch condition else"];
167 [label="Exit when branch condition"];
}
168 [label="Enter when branch result"];
subgraph cluster_40 {
color=blue
169 [label="Enter block"];
170 [label="Access variable R|<local>/a|"];
171 [label="Assignment: R|<local>/x|"];
172 [label="Exit block"];
}
173 [label="Exit when branch result"];
160 [label="Enter when branch result"];
subgraph cluster_41 {
color=blue
161 [label="Enter block"];
162 [label="Access variable R|<local>/a|"];
163 [label="Assignment: R|<local>/x|"];
164 [label="Exit block"];
}
165 [label="Exit when branch result"];
156 [label="Exit when"];
}
174 [label="Access variable R|<local>/a|"];
175 [label="Type operator: (R|<local>/a| as R|A|)"];
176 [label="Access variable R|<local>/x|"];
177 [label="Access variable R|/A.s|"];
178 [label="Access variable R|<local>/a|"];
179 [label="Access variable R|/A.s|"];
153 [label="Exit function test_5" style="filled" fillcolor=red];
}
152 -> {154};
154 -> {155};
155 -> {157};
156 -> {174};
157 -> {158};
158 -> {159};
159 -> {160 166};
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {164};
164 -> {165};
165 -> {156};
166 -> {167};
167 -> {168};
168 -> {169};
169 -> {170};
170 -> {171};
171 -> {172};
172 -> {173};
173 -> {156};
174 -> {175};
175 -> {176};
176 -> {177};
177 -> {178};
178 -> {179};
179 -> {153};
subgraph cluster_42 {
color=red
180 [label="Enter function test_6" style="filled" fillcolor=red];
182 [label="Variable declaration: lval x: R|kotlin/Any|"];
183 [label="Access variable R|<local>/a|"];
184 [label="Assignment: R|<local>/x|"];
185 [label="Access variable R|<local>/x|"];
186 [label="Access variable R|/A.s|"];
181 [label="Exit function test_6" style="filled" fillcolor=red];
}
180 -> {182};
182 -> {183};
183 -> {184};
184 -> {185};
185 -> {186};
186 -> {181};
subgraph cluster_43 {
color=red
187 [label="Enter function test_7" style="filled" fillcolor=red];
189 [label="Const: Null(null)"];
190 [label="Variable declaration: lval z: R|kotlin/String?|"];
191 [label="Access variable R|<local>/z|"];
192 [label="Variable declaration: lvar y: R|kotlin/String?|"];
193 [label="Access variable R|<local>/y|"];
194 [label="Variable declaration: lval x: R|kotlin/String?|"];
subgraph cluster_44 {
color=blue
195 [label="Enter when"];
subgraph cluster_45 {
color=blue
197 [label="Enter when branch condition "];
198 [label="Access variable R|<local>/x|"];
199 [label="Const: Null(null)"];
200 [label="Operator !="];
201 [label="Exit when branch condition"];
}
212 [label="Synthetic else branch"];
202 [label="Enter when branch result"];
subgraph cluster_46 {
color=blue
203 [label="Enter block"];
204 [label="Access variable R|<local>/x|"];
205 [label="Access variable R|kotlin/String.length|"];
206 [label="Access variable R|<local>/y|"];
207 [label="Access variable R|kotlin/String.length|"];
208 [label="Access variable R|<local>/z|"];
209 [label="Access variable R|kotlin/String.length|"];
210 [label="Exit block"];
}
211 [label="Exit when branch result"];
196 [label="Exit when"];
}
subgraph cluster_47 {
color=blue
213 [label="Enter when"];
subgraph cluster_48 {
color=blue
215 [label="Enter when branch condition "];
216 [label="Access variable R|<local>/y|"];
217 [label="Const: Null(null)"];
218 [label="Operator !="];
219 [label="Exit when branch condition"];
}
230 [label="Synthetic else branch"];
220 [label="Enter when branch result"];
subgraph cluster_49 {
color=blue
221 [label="Enter block"];
222 [label="Access variable R|<local>/x|"];
223 [label="Access variable R|kotlin/String.length|"];
224 [label="Access variable R|<local>/y|"];
225 [label="Access variable R|kotlin/String.length|"];
226 [label="Access variable R|<local>/z|"];
227 [label="Access variable R|kotlin/String.length|"];
228 [label="Exit block"];
}
229 [label="Exit when branch result"];
214 [label="Exit when"];
}
subgraph cluster_50 {
color=blue
231 [label="Enter when"];
subgraph cluster_51 {
color=blue
233 [label="Enter when branch condition "];
234 [label="Access variable R|<local>/z|"];
235 [label="Const: Null(null)"];
236 [label="Operator !="];
237 [label="Exit when branch condition"];
}
248 [label="Synthetic else branch"];
238 [label="Enter when branch result"];
subgraph cluster_52 {
color=blue
239 [label="Enter block"];
240 [label="Access variable R|<local>/x|"];
241 [label="Access variable R|kotlin/String.length|"];
242 [label="Access variable R|<local>/y|"];
243 [label="Access variable R|kotlin/String.length|"];
244 [label="Access variable R|<local>/z|"];
245 [label="Access variable R|kotlin/String.length|"];
246 [label="Exit block"];
}
247 [label="Exit when branch result"];
232 [label="Exit when"];
}
249 [label="Const: Null(null)"];
250 [label="Assignment: R|<local>/y|"];
subgraph cluster_53 {
color=blue
251 [label="Enter when"];
subgraph cluster_54 {
color=blue
253 [label="Enter when branch condition "];
254 [label="Access variable R|<local>/x|"];
255 [label="Const: Null(null)"];
256 [label="Operator !="];
257 [label="Exit when branch condition"];
}
268 [label="Synthetic else branch"];
258 [label="Enter when branch result"];
subgraph cluster_55 {
color=blue
259 [label="Enter block"];
260 [label="Access variable R|<local>/x|"];
261 [label="Access variable R|kotlin/String.length|"];
262 [label="Access variable R|<local>/y|"];
263 [label="Access variable <Inapplicable(WRONG_RECEIVER): [kotlin/String.length]>#"];
264 [label="Access variable R|<local>/z|"];
265 [label="Access variable R|kotlin/String.length|"];
266 [label="Exit block"];
}
267 [label="Exit when branch result"];
252 [label="Exit when"];
}
subgraph cluster_56 {
color=blue
269 [label="Enter when"];
subgraph cluster_57 {
color=blue
271 [label="Enter when branch condition "];
272 [label="Access variable R|<local>/y|"];
273 [label="Const: Null(null)"];
274 [label="Operator !="];
275 [label="Exit when branch condition"];
}
286 [label="Synthetic else branch"];
276 [label="Enter when branch result"];
subgraph cluster_58 {
color=blue
277 [label="Enter block"];
278 [label="Access variable R|<local>/x|"];
279 [label="Access variable <Inapplicable(WRONG_RECEIVER): [kotlin/String.length]>#"];
280 [label="Access variable R|<local>/y|"];
281 [label="Access variable R|kotlin/String.length|"];
282 [label="Access variable R|<local>/z|"];
283 [label="Access variable <Inapplicable(WRONG_RECEIVER): [kotlin/String.length]>#"];
284 [label="Exit block"];
}
285 [label="Exit when branch result"];
270 [label="Exit when"];
}
subgraph cluster_59 {
color=blue
287 [label="Enter when"];
subgraph cluster_60 {
color=blue
289 [label="Enter when branch condition "];
290 [label="Access variable R|<local>/z|"];
291 [label="Const: Null(null)"];
292 [label="Operator !="];
293 [label="Exit when branch condition"];
}
304 [label="Synthetic else branch"];
294 [label="Enter when branch result"];
subgraph cluster_61 {
color=blue
295 [label="Enter block"];
296 [label="Access variable R|<local>/x|"];
297 [label="Access variable R|kotlin/String.length|"];
298 [label="Access variable R|<local>/y|"];
299 [label="Access variable <Inapplicable(WRONG_RECEIVER): [kotlin/String.length]>#"];
300 [label="Access variable R|<local>/z|"];
301 [label="Access variable R|kotlin/String.length|"];
302 [label="Exit block"];
}
303 [label="Exit when branch result"];
288 [label="Exit when"];
}
188 [label="Exit function test_7" style="filled" fillcolor=red];
}
187 -> {189};
189 -> {190};
190 -> {191};
191 -> {192};
192 -> {193};
193 -> {194};
194 -> {195};
195 -> {197};
196 -> {213};
197 -> {198};
198 -> {199};
199 -> {200};
200 -> {201};
201 -> {202 212};
202 -> {203};
203 -> {204};
204 -> {205};
205 -> {206};
206 -> {207};
207 -> {208};
208 -> {209};
209 -> {210};
210 -> {211};
211 -> {196};
212 -> {196};
213 -> {215};
214 -> {231};
215 -> {216};
216 -> {217};
217 -> {218};
218 -> {219};
219 -> {220 230};
220 -> {221};
221 -> {222};
222 -> {223};
223 -> {224};
224 -> {225};
225 -> {226};
226 -> {227};
227 -> {228};
228 -> {229};
229 -> {214};
230 -> {214};
231 -> {233};
232 -> {249};
233 -> {234};
234 -> {235};
235 -> {236};
236 -> {237};
237 -> {238 248};
238 -> {239};
239 -> {240};
240 -> {241};
241 -> {242};
242 -> {243};
243 -> {244};
244 -> {245};
245 -> {246};
246 -> {247};
247 -> {232};
248 -> {232};
249 -> {250};
250 -> {251};
251 -> {253};
252 -> {269};
253 -> {254};
254 -> {255};
255 -> {256};
256 -> {257};
257 -> {258 268};
258 -> {259};
259 -> {260};
260 -> {261};
261 -> {262};
262 -> {263};
263 -> {264};
264 -> {265};
265 -> {266};
266 -> {267};
267 -> {252};
268 -> {252};
269 -> {271};
270 -> {287};
271 -> {272};
272 -> {273};
273 -> {274};
274 -> {275};
275 -> {276 286};
276 -> {277};
277 -> {278};
278 -> {279};
279 -> {280};
280 -> {281};
281 -> {282};
282 -> {283};
283 -> {284};
284 -> {285};
285 -> {270};
286 -> {270};
287 -> {289};
288 -> {188};
289 -> {290};
290 -> {291};
291 -> {292};
292 -> {293};
293 -> {294 304};
294 -> {295};
295 -> {296};
296 -> {297};
297 -> {298};
298 -> {299};
299 -> {300};
300 -> {301};
301 -> {302};
302 -> {303};
303 -> {288};
304 -> {288};
}