Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.dot
T
2020-04-03 10:08:17 +03:00

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