Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.dot
T
pyos a9be27e330 FIR CFG: add union nodes
Quick quiz:

 Q: In a CFG, what does `a -> b -> c -> d` mean?
 A: `a`, then `b`, then `c`, then `d`.

 Q: In a CFG, what does `a -> b -> d; a -> c -> d` mean?
 A: `a`, then `b` or `c`, then `d`.

 Q: So how do you encode "a, then (b, then c) or (c, then b), then d`?
 A: You can't.

Problem is, you need to, because that's what `a; run2({ b }, { c }); d`
does when `run2` has a contract that it calls both its lambda arguments
in-place: `shuffle(listOf(block1, block2)).forEach { it() }` is a
perfectly valid implementation for it, as little sense as that makes.

So that's what union nodes solve. When a node implements
`UnionNodeMarker`, its inputs are interpreted as "all visited in some
order" instead of the normal "one of the inputs is visited".

Currently this is used for data flow. It *should* also be used for
control flow, but it isn't. But it should be. But that's not so easy.

BTW, `try` exit is NOT a union node; although lambdas in one branch can
be completed according to types' of lambdas in another, data does not
flow between the branches anyway (since we don't know how much of the
`try` executed before jumping into `catch`, and `catch`es are mutually
exclusive) so a `try` expression is more like `when` than a function
call with called-in-place-exactly-once arguments. The fact that
`exitTryExpression` used `processUnionOfArguments` in a weird way
should've hinted at that, but now we know for certain.
2022-12-08 10:19:29 +00:00

1367 lines
49 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|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
3 [label="Enter property" style="filled" fillcolor=red];
4 [label="Const: String()"];
5 [label="Exit property" style="filled" fillcolor=red];
}
3 -> {4};
4 -> {5};
5 -> {8} [color=green];
subgraph cluster_2 {
color=red
6 [label="Enter class A" style="filled" fillcolor=red];
7 [label="Part of class initialization"];
8 [label="Exit class A" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
7 -> {8} [style=dotted];
7 -> {3} [color=green];
7 -> {3} [style=dashed];
subgraph cluster_3 {
color=red
9 [label="Enter function test_0" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
10 [label="Enter block"];
11 [label="Const: Null(null)"];
12 [label="Variable declaration: lvar goodA: R|A?|"];
subgraph cluster_5 {
color=blue
13 [label="Enter block"];
14 [label="Access variable R|<local>/list|"];
15 [label="Function call: R|<local>/list|.R|SubstitutionOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<A>|>|()" style="filled" fillcolor=yellow];
16 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<A>|"];
subgraph cluster_6 {
color=blue
17 [label="Enter while loop"];
subgraph cluster_7 {
color=blue
18 [label="Enter loop condition"];
19 [label="Access variable R|<local>/<iterator>|"];
20 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()" style="filled" fillcolor=yellow];
21 [label="Exit loop condition"];
}
subgraph cluster_8 {
color=blue
22 [label="Enter loop block"];
subgraph cluster_9 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|<local>/<iterator>|"];
25 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|A|>|()" style="filled" fillcolor=yellow];
26 [label="Variable declaration: lval a: R|A|"];
subgraph cluster_10 {
color=blue
27 [label="Enter when"];
subgraph cluster_11 {
color=blue
28 [label="Enter when branch condition "];
29 [label="Access variable R|<local>/goodA|"];
30 [label="Const: Null(null)"];
31 [label="Equality operator =="];
32 [label="Exit when branch condition"];
}
33 [label="Synthetic else branch"];
34 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
35 [label="Enter block"];
36 [label="Access variable R|<local>/a|"];
37 [label="Assignment: R|<local>/goodA|"];
38 [label="Jump: continue@@@[R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()] "];
39 [label="Stub" style="filled" fillcolor=gray];
40 [label="Exit block" style="filled" fillcolor=gray];
}
41 [label="Exit when branch result" style="filled" fillcolor=gray];
42 [label="Exit when"];
}
43 [label="Access variable R|<local>/goodA|"];
44 [label="Smart cast: R|<local>/goodA|"];
45 [label="Access variable R|/A.s|"];
46 [label="Exit block"];
}
47 [label="Exit loop block"];
}
48 [label="Exit whileloop"];
}
49 [label="Exit block"];
}
50 [label="Exit block"];
}
51 [label="Exit function test_0" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {48 22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {34 33};
33 -> {42};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39} [style=dotted];
38 -> {18} [color=green style=dashed];
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
41 -> {42} [style=dotted];
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {18} [color=green style=dashed];
48 -> {49};
49 -> {50};
50 -> {51};
subgraph cluster_13 {
color=red
52 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
53 [label="Enter block"];
54 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_15 {
color=blue
55 [label="Enter when"];
subgraph cluster_16 {
color=blue
56 [label="Enter when branch condition "];
57 [label="Access variable R|<local>/b|"];
58 [label="Exit when branch condition"];
}
subgraph cluster_17 {
color=blue
59 [label="Enter when branch condition else"];
60 [label="Exit when branch condition"];
}
61 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
62 [label="Enter block"];
63 [label="Access variable R|<local>/a|"];
64 [label="Assignment: R|<local>/x|"];
65 [label="Exit block"];
}
66 [label="Exit when branch result"];
67 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
68 [label="Enter block"];
69 [label="Function call: R|/A.A|()" style="filled" fillcolor=yellow];
70 [label="Assignment: R|<local>/x|"];
71 [label="Exit block"];
}
72 [label="Exit when branch result"];
73 [label="Exit when"];
}
74 [label="Access variable R|<local>/x|"];
75 [label="Smart cast: R|<local>/x|"];
76 [label="Access variable R|/A.s|"];
77 [label="Exit block"];
}
78 [label="Exit function test_1" style="filled" fillcolor=red];
}
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {67 59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {73};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
subgraph cluster_20 {
color=red
79 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
80 [label="Enter block"];
81 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_22 {
color=blue
82 [label="Enter when"];
subgraph cluster_23 {
color=blue
83 [label="Enter when branch condition "];
84 [label="Access variable R|<local>/b|"];
85 [label="Exit when branch condition"];
}
subgraph cluster_24 {
color=blue
86 [label="Enter when branch condition else"];
87 [label="Exit when branch condition"];
}
88 [label="Enter when branch result"];
subgraph cluster_25 {
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"];
96 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
97 [label="Enter block"];
98 [label="Function call: R|/A.A|()" style="filled" fillcolor=yellow];
99 [label="Assignment: R|<local>/x|"];
100 [label="Exit block"];
}
101 [label="Exit when branch result"];
102 [label="Exit when"];
}
103 [label="Access variable R|<local>/x|"];
104 [label="Smart cast: R|<local>/x|"];
105 [label="Access variable R|/A.s|"];
106 [label="Exit block"];
}
107 [label="Exit function test_2" style="filled" fillcolor=red];
}
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {96 86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {102};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
subgraph cluster_27 {
color=red
108 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_28 {
color=blue
109 [label="Enter block"];
110 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_29 {
color=blue
111 [label="Enter when"];
subgraph cluster_30 {
color=blue
112 [label="Enter when branch condition "];
113 [label="Access variable R|<local>/b|"];
114 [label="Exit when branch condition"];
}
subgraph cluster_31 {
color=blue
115 [label="Enter when branch condition else"];
116 [label="Exit when branch condition"];
}
117 [label="Enter when branch result"];
subgraph cluster_32 {
color=blue
118 [label="Enter block"];
119 [label="Access variable R|<local>/a|"];
120 [label="Type operator: (R|<local>/a| as R|A|)"];
121 [label="Access variable R|<local>/a|"];
122 [label="Smart cast: R|<local>/a|"];
123 [label="Assignment: R|<local>/x|"];
124 [label="Exit block"];
}
125 [label="Exit when branch result"];
126 [label="Enter when branch result"];
subgraph cluster_33 {
color=blue
127 [label="Enter block"];
128 [label="Function call: R|/A.A|()" style="filled" fillcolor=yellow];
129 [label="Assignment: R|<local>/x|"];
130 [label="Exit block"];
}
131 [label="Exit when branch result"];
132 [label="Exit when"];
}
133 [label="Access variable R|<local>/x|"];
134 [label="Smart cast: R|<local>/x|"];
135 [label="Access variable R|/A.s|"];
136 [label="Exit block"];
}
137 [label="Exit function test_3" style="filled" fillcolor=red];
}
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {126 115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {132};
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137};
subgraph cluster_34 {
color=red
138 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_35 {
color=blue
139 [label="Enter block"];
140 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_36 {
color=blue
141 [label="Enter when"];
subgraph cluster_37 {
color=blue
142 [label="Enter when branch condition "];
143 [label="Access variable R|<local>/b|"];
144 [label="Exit when branch condition"];
}
subgraph cluster_38 {
color=blue
145 [label="Enter when branch condition else"];
146 [label="Exit when branch condition"];
}
147 [label="Enter when branch result"];
subgraph cluster_39 {
color=blue
148 [label="Enter block"];
149 [label="Access variable R|<local>/a|"];
150 [label="Assignment: R|<local>/x|"];
151 [label="Exit block"];
}
152 [label="Exit when branch result"];
153 [label="Enter when branch result"];
subgraph cluster_40 {
color=blue
154 [label="Enter block"];
155 [label="Access variable R|<local>/a|"];
156 [label="Assignment: R|<local>/x|"];
157 [label="Exit block"];
}
158 [label="Exit when branch result"];
159 [label="Exit when"];
}
160 [label="Access variable R|<local>/x|"];
161 [label="Type operator: (R|<local>/x| as R|A|)"];
162 [label="Access variable R|<local>/x|"];
163 [label="Smart cast: R|<local>/x|"];
164 [label="Access variable R|/A.s|"];
165 [label="Access variable R|<local>/a|"];
166 [label="Smart cast: R|<local>/a|"];
167 [label="Access variable R|/A.s|"];
168 [label="Exit block"];
}
169 [label="Exit function test_4" style="filled" fillcolor=red];
}
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {153 145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {159};
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {157};
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {164};
164 -> {165};
165 -> {166};
166 -> {167};
167 -> {168};
168 -> {169};
subgraph cluster_41 {
color=red
170 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_42 {
color=blue
171 [label="Enter block"];
172 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_43 {
color=blue
173 [label="Enter when"];
subgraph cluster_44 {
color=blue
174 [label="Enter when branch condition "];
175 [label="Access variable R|<local>/b|"];
176 [label="Exit when branch condition"];
}
subgraph cluster_45 {
color=blue
177 [label="Enter when branch condition else"];
178 [label="Exit when branch condition"];
}
179 [label="Enter when branch result"];
subgraph cluster_46 {
color=blue
180 [label="Enter block"];
181 [label="Access variable R|<local>/a|"];
182 [label="Assignment: R|<local>/x|"];
183 [label="Exit block"];
}
184 [label="Exit when branch result"];
185 [label="Enter when branch result"];
subgraph cluster_47 {
color=blue
186 [label="Enter block"];
187 [label="Access variable R|<local>/a|"];
188 [label="Assignment: R|<local>/x|"];
189 [label="Exit block"];
}
190 [label="Exit when branch result"];
191 [label="Exit when"];
}
192 [label="Access variable R|<local>/a|"];
193 [label="Type operator: (R|<local>/a| as R|A|)"];
194 [label="Access variable R|<local>/x|"];
195 [label="Smart cast: R|<local>/x|"];
196 [label="Access variable R|/A.s|"];
197 [label="Access variable R|<local>/a|"];
198 [label="Smart cast: R|<local>/a|"];
199 [label="Access variable R|/A.s|"];
200 [label="Exit block"];
}
201 [label="Exit function test_5" style="filled" fillcolor=red];
}
170 -> {171};
171 -> {172};
172 -> {173};
173 -> {174};
174 -> {175};
175 -> {176};
176 -> {185 177};
177 -> {178};
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {182};
182 -> {183};
183 -> {184};
184 -> {191};
185 -> {186};
186 -> {187};
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 -> {200};
200 -> {201};
subgraph cluster_48 {
color=red
202 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_49 {
color=blue
203 [label="Enter block"];
204 [label="Variable declaration: lval x: R|kotlin/Any|"];
205 [label="Access variable R|<local>/a|"];
206 [label="Assignment: R|<local>/x|"];
207 [label="Access variable R|<local>/x|"];
208 [label="Smart cast: R|<local>/x|"];
209 [label="Access variable R|/A.s|"];
210 [label="Exit block"];
}
211 [label="Exit function test_6" style="filled" fillcolor=red];
}
202 -> {203};
203 -> {204};
204 -> {205};
205 -> {206};
206 -> {207};
207 -> {208};
208 -> {209};
209 -> {210};
210 -> {211};
subgraph cluster_50 {
color=red
212 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_51 {
color=blue
213 [label="Enter block"];
214 [label="Const: Null(null)"];
215 [label="Variable declaration: lval z: R|kotlin/String?|"];
216 [label="Access variable R|<local>/z|"];
217 [label="Variable declaration: lvar y: R|kotlin/String?|"];
218 [label="Access variable R|<local>/y|"];
219 [label="Variable declaration: lval x: R|kotlin/String?|"];
subgraph cluster_52 {
color=blue
220 [label="Enter when"];
subgraph cluster_53 {
color=blue
221 [label="Enter when branch condition "];
222 [label="Access variable R|<local>/x|"];
223 [label="Const: Null(null)"];
224 [label="Equality operator !="];
225 [label="Exit when branch condition"];
}
226 [label="Synthetic else branch"];
227 [label="Enter when branch result"];
subgraph cluster_54 {
color=blue
228 [label="Enter block"];
229 [label="Access variable R|<local>/x|"];
230 [label="Smart cast: R|<local>/x|"];
231 [label="Access variable R|kotlin/String.length|"];
232 [label="Access variable R|<local>/y|"];
233 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
234 [label="Access variable R|<local>/z|"];
235 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
236 [label="Exit block"];
}
237 [label="Exit when branch result"];
238 [label="Exit when"];
}
subgraph cluster_55 {
color=blue
239 [label="Enter when"];
subgraph cluster_56 {
color=blue
240 [label="Enter when branch condition "];
241 [label="Access variable R|<local>/y|"];
242 [label="Const: Null(null)"];
243 [label="Equality operator !="];
244 [label="Exit when branch condition"];
}
245 [label="Synthetic else branch"];
246 [label="Enter when branch result"];
subgraph cluster_57 {
color=blue
247 [label="Enter block"];
248 [label="Access variable R|<local>/x|"];
249 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
250 [label="Access variable R|<local>/y|"];
251 [label="Smart cast: R|<local>/y|"];
252 [label="Access variable R|kotlin/String.length|"];
253 [label="Access variable R|<local>/z|"];
254 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
255 [label="Exit block"];
}
256 [label="Exit when branch result"];
257 [label="Exit when"];
}
subgraph cluster_58 {
color=blue
258 [label="Enter when"];
subgraph cluster_59 {
color=blue
259 [label="Enter when branch condition "];
260 [label="Access variable R|<local>/z|"];
261 [label="Const: Null(null)"];
262 [label="Equality operator !="];
263 [label="Exit when branch condition"];
}
264 [label="Synthetic else branch"];
265 [label="Enter when branch result"];
subgraph cluster_60 {
color=blue
266 [label="Enter block"];
267 [label="Access variable R|<local>/x|"];
268 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
269 [label="Access variable R|<local>/y|"];
270 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
271 [label="Access variable R|<local>/z|"];
272 [label="Smart cast: R|<local>/z|"];
273 [label="Access variable R|kotlin/String.length|"];
274 [label="Exit block"];
}
275 [label="Exit when branch result"];
276 [label="Exit when"];
}
277 [label="Const: Null(null)"];
278 [label="Assignment: R|<local>/y|"];
subgraph cluster_61 {
color=blue
279 [label="Enter when"];
subgraph cluster_62 {
color=blue
280 [label="Enter when branch condition "];
281 [label="Access variable R|<local>/x|"];
282 [label="Const: Null(null)"];
283 [label="Equality operator !="];
284 [label="Exit when branch condition"];
}
285 [label="Synthetic else branch"];
286 [label="Enter when branch result"];
subgraph cluster_63 {
color=blue
287 [label="Enter block"];
288 [label="Access variable R|<local>/x|"];
289 [label="Smart cast: R|<local>/x|"];
290 [label="Access variable R|kotlin/String.length|"];
291 [label="Access variable R|<local>/y|"];
292 [label="Smart cast: R|<local>/y|"];
293 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
294 [label="Access variable R|<local>/z|"];
295 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
296 [label="Exit block"];
}
297 [label="Exit when branch result"];
298 [label="Exit when"];
}
subgraph cluster_64 {
color=blue
299 [label="Enter when"];
subgraph cluster_65 {
color=blue
300 [label="Enter when branch condition "];
301 [label="Access variable R|<local>/y|"];
302 [label="Smart cast: R|<local>/y|"];
303 [label="Const: Null(null)"];
304 [label="Equality operator !="];
305 [label="Exit when branch condition"];
}
306 [label="Synthetic else branch"];
307 [label="Enter when branch result"];
subgraph cluster_66 {
color=blue
308 [label="Enter block"];
309 [label="Access variable R|<local>/x|"];
310 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
311 [label="Access variable R|<local>/y|"];
312 [label="Smart cast: R|<local>/y|"];
313 [label="Stub" style="filled" fillcolor=gray];
314 [label="Access variable R|kotlin/String.length|" style="filled" fillcolor=gray];
315 [label="Access variable R|<local>/z|" style="filled" fillcolor=gray];
316 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#" style="filled" fillcolor=gray];
317 [label="Exit block" style="filled" fillcolor=gray];
}
318 [label="Exit when branch result" style="filled" fillcolor=gray];
319 [label="Exit when"];
}
subgraph cluster_67 {
color=blue
320 [label="Enter when"];
subgraph cluster_68 {
color=blue
321 [label="Enter when branch condition "];
322 [label="Access variable R|<local>/z|"];
323 [label="Const: Null(null)"];
324 [label="Equality operator !="];
325 [label="Exit when branch condition"];
}
326 [label="Synthetic else branch"];
327 [label="Enter when branch result"];
subgraph cluster_69 {
color=blue
328 [label="Enter block"];
329 [label="Access variable R|<local>/x|"];
330 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
331 [label="Access variable R|<local>/y|"];
332 [label="Smart cast: R|<local>/y|"];
333 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
334 [label="Access variable R|<local>/z|"];
335 [label="Smart cast: R|<local>/z|"];
336 [label="Access variable R|kotlin/String.length|"];
337 [label="Exit block"];
}
338 [label="Exit when branch result"];
339 [label="Exit when"];
}
340 [label="Exit block"];
}
341 [label="Exit function test_7" style="filled" fillcolor=red];
}
212 -> {213};
213 -> {214};
214 -> {215};
215 -> {216};
216 -> {217};
217 -> {218};
218 -> {219};
219 -> {220};
220 -> {221};
221 -> {222};
222 -> {223};
223 -> {224};
224 -> {225};
225 -> {227 226};
226 -> {238};
227 -> {228};
228 -> {229};
229 -> {230};
230 -> {231};
231 -> {232};
232 -> {233};
233 -> {234};
234 -> {235};
235 -> {236};
236 -> {237};
237 -> {238};
238 -> {239};
239 -> {240};
240 -> {241};
241 -> {242};
242 -> {243};
243 -> {244};
244 -> {246 245};
245 -> {257};
246 -> {247};
247 -> {248};
248 -> {249};
249 -> {250};
250 -> {251};
251 -> {252};
252 -> {253};
253 -> {254};
254 -> {255};
255 -> {256};
256 -> {257};
257 -> {258};
258 -> {259};
259 -> {260};
260 -> {261};
261 -> {262};
262 -> {263};
263 -> {265 264};
264 -> {276};
265 -> {266};
266 -> {267};
267 -> {268};
268 -> {269};
269 -> {270};
270 -> {271};
271 -> {272};
272 -> {273};
273 -> {274};
274 -> {275};
275 -> {276};
276 -> {277};
277 -> {278};
278 -> {279};
279 -> {280};
280 -> {281};
281 -> {282};
282 -> {283};
283 -> {284};
284 -> {286 285};
285 -> {298};
286 -> {287};
287 -> {288};
288 -> {289};
289 -> {290};
290 -> {291};
291 -> {292};
292 -> {293};
293 -> {294};
294 -> {295};
295 -> {296};
296 -> {297};
297 -> {298};
298 -> {299};
299 -> {300};
300 -> {301};
301 -> {302};
302 -> {303};
303 -> {304};
304 -> {305};
305 -> {307 306};
306 -> {319};
307 -> {308};
308 -> {309};
309 -> {310};
310 -> {311};
311 -> {312};
312 -> {341} [label=onUncaughtException];
312 -> {313} [style=dotted];
313 -> {314} [style=dotted];
314 -> {315} [style=dotted];
315 -> {316} [style=dotted];
316 -> {317} [style=dotted];
317 -> {318} [style=dotted];
318 -> {319} [style=dotted];
319 -> {320};
320 -> {321};
321 -> {322};
322 -> {323};
323 -> {324};
324 -> {325};
325 -> {327 326};
326 -> {339};
327 -> {328};
328 -> {329};
329 -> {330};
330 -> {331};
331 -> {332};
332 -> {333};
333 -> {334};
334 -> {335};
335 -> {336};
336 -> {337};
337 -> {338};
338 -> {339};
339 -> {340};
340 -> {341};
subgraph cluster_70 {
color=red
342 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_71 {
color=blue
343 [label="Enter block"];
344 [label="Const: Null(null)"];
345 [label="Variable declaration: lval z: R|kotlin/String?|"];
346 [label="Access variable R|<local>/z|"];
347 [label="Variable declaration: lvar y: R|kotlin/String?|"];
348 [label="Access variable R|<local>/y|"];
349 [label="Variable declaration: lval x: R|kotlin/String?|"];
subgraph cluster_72 {
color=blue
350 [label="Enter when"];
subgraph cluster_73 {
color=blue
351 [label="Enter when branch condition "];
352 [label="Access variable R|<local>/x|"];
353 [label="Const: Null(null)"];
354 [label="Equality operator !="];
355 [label="Exit when branch condition"];
}
356 [label="Synthetic else branch"];
357 [label="Enter when branch result"];
subgraph cluster_74 {
color=blue
358 [label="Enter block"];
359 [label="Access variable R|<local>/x|"];
360 [label="Smart cast: R|<local>/x|"];
361 [label="Access variable R|kotlin/String.length|"];
362 [label="Access variable R|<local>/y|"];
363 [label="Smart cast: R|<local>/y|"];
364 [label="Access variable R|kotlin/String.length|"];
365 [label="Access variable R|<local>/z|"];
366 [label="Smart cast: R|<local>/z|"];
367 [label="Access variable R|kotlin/String.length|"];
368 [label="Exit block"];
}
369 [label="Exit when branch result"];
370 [label="Exit when"];
}
subgraph cluster_75 {
color=blue
371 [label="Enter when"];
subgraph cluster_76 {
color=blue
372 [label="Enter when branch condition "];
373 [label="Access variable R|<local>/y|"];
374 [label="Const: Null(null)"];
375 [label="Equality operator !="];
376 [label="Exit when branch condition"];
}
377 [label="Synthetic else branch"];
378 [label="Enter when branch result"];
subgraph cluster_77 {
color=blue
379 [label="Enter block"];
380 [label="Access variable R|<local>/x|"];
381 [label="Smart cast: R|<local>/x|"];
382 [label="Access variable R|kotlin/String.length|"];
383 [label="Access variable R|<local>/y|"];
384 [label="Smart cast: R|<local>/y|"];
385 [label="Access variable R|kotlin/String.length|"];
386 [label="Access variable R|<local>/z|"];
387 [label="Smart cast: R|<local>/z|"];
388 [label="Access variable R|kotlin/String.length|"];
389 [label="Exit block"];
}
390 [label="Exit when branch result"];
391 [label="Exit when"];
}
subgraph cluster_78 {
color=blue
392 [label="Enter when"];
subgraph cluster_79 {
color=blue
393 [label="Enter when branch condition "];
394 [label="Access variable R|<local>/z|"];
395 [label="Const: Null(null)"];
396 [label="Equality operator !="];
397 [label="Exit when branch condition"];
}
398 [label="Synthetic else branch"];
399 [label="Enter when branch result"];
subgraph cluster_80 {
color=blue
400 [label="Enter block"];
401 [label="Access variable R|<local>/x|"];
402 [label="Smart cast: R|<local>/x|"];
403 [label="Access variable R|kotlin/String.length|"];
404 [label="Access variable R|<local>/y|"];
405 [label="Smart cast: R|<local>/y|"];
406 [label="Access variable R|kotlin/String.length|"];
407 [label="Access variable R|<local>/z|"];
408 [label="Smart cast: R|<local>/z|"];
409 [label="Access variable R|kotlin/String.length|"];
410 [label="Exit block"];
}
411 [label="Exit when branch result"];
412 [label="Exit when"];
}
413 [label="Const: Null(null)"];
414 [label="Assignment: R|<local>/y|"];
subgraph cluster_81 {
color=blue
415 [label="Enter when"];
subgraph cluster_82 {
color=blue
416 [label="Enter when branch condition "];
417 [label="Access variable R|<local>/x|"];
418 [label="Const: Null(null)"];
419 [label="Equality operator !="];
420 [label="Exit when branch condition"];
}
421 [label="Synthetic else branch"];
422 [label="Enter when branch result"];
subgraph cluster_83 {
color=blue
423 [label="Enter block"];
424 [label="Access variable R|<local>/x|"];
425 [label="Smart cast: R|<local>/x|"];
426 [label="Access variable R|kotlin/String.length|"];
427 [label="Access variable R|<local>/y|"];
428 [label="Smart cast: R|<local>/y|"];
429 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
430 [label="Access variable R|<local>/z|"];
431 [label="Smart cast: R|<local>/z|"];
432 [label="Access variable R|kotlin/String.length|"];
433 [label="Exit block"];
}
434 [label="Exit when branch result"];
435 [label="Exit when"];
}
subgraph cluster_84 {
color=blue
436 [label="Enter when"];
subgraph cluster_85 {
color=blue
437 [label="Enter when branch condition "];
438 [label="Access variable R|<local>/y|"];
439 [label="Smart cast: R|<local>/y|"];
440 [label="Const: Null(null)"];
441 [label="Equality operator !="];
442 [label="Exit when branch condition"];
}
443 [label="Synthetic else branch"];
444 [label="Enter when branch result"];
subgraph cluster_86 {
color=blue
445 [label="Enter block"];
446 [label="Access variable R|<local>/x|"];
447 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
448 [label="Access variable R|<local>/y|"];
449 [label="Smart cast: R|<local>/y|"];
450 [label="Stub" style="filled" fillcolor=gray];
451 [label="Access variable R|kotlin/String.length|" style="filled" fillcolor=gray];
452 [label="Access variable R|<local>/z|" style="filled" fillcolor=gray];
453 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#" style="filled" fillcolor=gray];
454 [label="Exit block" style="filled" fillcolor=gray];
}
455 [label="Exit when branch result" style="filled" fillcolor=gray];
456 [label="Exit when"];
}
subgraph cluster_87 {
color=blue
457 [label="Enter when"];
subgraph cluster_88 {
color=blue
458 [label="Enter when branch condition "];
459 [label="Access variable R|<local>/z|"];
460 [label="Const: Null(null)"];
461 [label="Equality operator !="];
462 [label="Exit when branch condition"];
}
463 [label="Synthetic else branch"];
464 [label="Enter when branch result"];
subgraph cluster_89 {
color=blue
465 [label="Enter block"];
466 [label="Access variable R|<local>/x|"];
467 [label="Smart cast: R|<local>/x|"];
468 [label="Access variable R|kotlin/String.length|"];
469 [label="Access variable R|<local>/y|"];
470 [label="Smart cast: R|<local>/y|"];
471 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
472 [label="Access variable R|<local>/z|"];
473 [label="Smart cast: R|<local>/z|"];
474 [label="Access variable R|kotlin/String.length|"];
475 [label="Exit block"];
}
476 [label="Exit when branch result"];
477 [label="Exit when"];
}
478 [label="Exit block"];
}
479 [label="Exit function test_8" style="filled" fillcolor=red];
}
342 -> {343};
343 -> {344};
344 -> {345};
345 -> {346};
346 -> {347};
347 -> {348};
348 -> {349};
349 -> {350};
350 -> {351};
351 -> {352};
352 -> {353};
353 -> {354};
354 -> {355};
355 -> {357 356};
356 -> {370};
357 -> {358};
358 -> {359};
359 -> {360};
360 -> {361};
361 -> {362};
362 -> {363};
363 -> {364};
364 -> {365};
365 -> {366};
366 -> {367};
367 -> {368};
368 -> {369};
369 -> {370};
370 -> {371};
371 -> {372};
372 -> {373};
373 -> {374};
374 -> {375};
375 -> {376};
376 -> {378 377};
377 -> {391};
378 -> {379};
379 -> {380};
380 -> {381};
381 -> {382};
382 -> {383};
383 -> {384};
384 -> {385};
385 -> {386};
386 -> {387};
387 -> {388};
388 -> {389};
389 -> {390};
390 -> {391};
391 -> {392};
392 -> {393};
393 -> {394};
394 -> {395};
395 -> {396};
396 -> {397};
397 -> {399 398};
398 -> {412};
399 -> {400};
400 -> {401};
401 -> {402};
402 -> {403};
403 -> {404};
404 -> {405};
405 -> {406};
406 -> {407};
407 -> {408};
408 -> {409};
409 -> {410};
410 -> {411};
411 -> {412};
412 -> {413};
413 -> {414};
414 -> {415};
415 -> {416};
416 -> {417};
417 -> {418};
418 -> {419};
419 -> {420};
420 -> {422 421};
421 -> {435};
422 -> {423};
423 -> {424};
424 -> {425};
425 -> {426};
426 -> {427};
427 -> {428};
428 -> {429};
429 -> {430};
430 -> {431};
431 -> {432};
432 -> {433};
433 -> {434};
434 -> {435};
435 -> {436};
436 -> {437};
437 -> {438};
438 -> {439};
439 -> {440};
440 -> {441};
441 -> {442};
442 -> {444 443};
443 -> {456};
444 -> {445};
445 -> {446};
446 -> {447};
447 -> {448};
448 -> {449};
449 -> {479} [label=onUncaughtException];
449 -> {450} [style=dotted];
450 -> {451} [style=dotted];
451 -> {452} [style=dotted];
452 -> {453} [style=dotted];
453 -> {454} [style=dotted];
454 -> {455} [style=dotted];
455 -> {456} [style=dotted];
456 -> {457};
457 -> {458};
458 -> {459};
459 -> {460};
460 -> {461};
461 -> {462};
462 -> {464 463};
463 -> {477};
464 -> {465};
465 -> {466};
466 -> {467};
467 -> {468};
468 -> {469};
469 -> {470};
470 -> {471};
471 -> {472};
472 -> {473};
473 -> {474};
474 -> {475};
475 -> {476};
476 -> {477};
477 -> {478};
478 -> {479};
subgraph cluster_90 {
color=red
480 [label="Enter function test_9" style="filled" fillcolor=red];
subgraph cluster_91 {
color=blue
481 [label="Enter block"];
482 [label="Const: Null(null)"];
483 [label="Variable declaration: lvar a: R|kotlin/String?|"];
484 [label="Variable declaration: lval b: R|kotlin/String?|"];
subgraph cluster_92 {
color=blue
485 [label="Enter when"];
subgraph cluster_93 {
color=blue
486 [label="Enter when branch condition "];
487 [label="Access variable R|<local>/a|"];
488 [label="Const: Null(null)"];
489 [label="Equality operator !="];
490 [label="Exit when branch condition"];
}
subgraph cluster_94 {
color=blue
491 [label="Enter when branch condition else"];
492 [label="Exit when branch condition"];
}
493 [label="Enter when branch result"];
subgraph cluster_95 {
color=blue
494 [label="Enter block"];
495 [label="Access variable R|<local>/a|"];
496 [label="Smart cast: R|<local>/a|"];
497 [label="Assignment: R|<local>/b|"];
498 [label="Exit block"];
}
499 [label="Exit when branch result"];
500 [label="Enter when branch result"];
subgraph cluster_96 {
color=blue
501 [label="Enter block"];
502 [label="Access variable R|<local>/a|"];
503 [label="Smart cast: R|<local>/a|"];
504 [label="Assignment: R|<local>/b|"];
505 [label="Exit block"];
}
506 [label="Exit when branch result"];
507 [label="Exit when"];
}
508 [label="Access variable R|<local>/b|"];
509 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
subgraph cluster_97 {
color=blue
510 [label="Enter when"];
subgraph cluster_98 {
color=blue
511 [label="Enter when branch condition "];
512 [label="Access variable R|<local>/a|"];
513 [label="Const: Null(null)"];
514 [label="Equality operator !="];
515 [label="Exit when branch condition"];
}
516 [label="Synthetic else branch"];
517 [label="Enter when branch result"];
subgraph cluster_99 {
color=blue
518 [label="Enter block"];
519 [label="Access variable R|<local>/b|"];
520 [label="Smart cast: R|<local>/b|"];
521 [label="Access variable R|kotlin/String.length|"];
522 [label="Exit block"];
}
523 [label="Exit when branch result"];
524 [label="Exit when"];
}
525 [label="Exit block"];
}
526 [label="Exit function test_9" style="filled" fillcolor=red];
}
480 -> {481};
481 -> {482};
482 -> {483};
483 -> {484};
484 -> {485};
485 -> {486};
486 -> {487};
487 -> {488};
488 -> {489};
489 -> {490};
490 -> {500 491};
491 -> {492};
492 -> {493};
493 -> {494};
494 -> {495};
495 -> {496};
496 -> {497};
497 -> {498};
498 -> {499};
499 -> {507};
500 -> {501};
501 -> {502};
502 -> {503};
503 -> {504};
504 -> {505};
505 -> {506};
506 -> {507};
507 -> {508};
508 -> {509};
509 -> {510};
510 -> {511};
511 -> {512};
512 -> {513};
513 -> {514};
514 -> {515};
515 -> {517 516};
516 -> {524};
517 -> {518};
518 -> {519};
519 -> {520};
520 -> {521};
521 -> {522};
522 -> {523};
523 -> {524};
524 -> {525};
525 -> {526};
}