FIR DFA: fork flow everywhere

In theory, forking persistent flows should be cheap because of object
reuse, so the proposal here is to start from scratch and prove
redundancy of forks on a case-by-case basis. Something something better
safe than sorry.

^KT-28333 tag fixed-in-k2
^KT-28489 tag fixed-in-k2
This commit is contained in:
pyos
2022-11-08 21:33:40 +01:00
committed by teamcity
parent 757921e63e
commit edaca59d83
17 changed files with 554 additions and 683 deletions
@@ -481,11 +481,12 @@ digraph flowFromInplaceLambda2_kt {
color=blue
197 [label="Enter block"];
198 [label="Access variable R|<local>/p|"];
199 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
200 [label="Const: Int(123)"];
201 [label="Exit block"];
199 [label="Smart cast: R|<local>/p|"];
200 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): kotlin/String.length>#"];
201 [label="Const: Int(123)"];
202 [label="Exit block"];
}
202 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
203 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
172 [label="Postponed exit from lambda"];
173 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
@@ -577,329 +578,329 @@ digraph flowFromInplaceLambda2_kt {
199 -> {200};
200 -> {201};
201 -> {202};
202 -> {175} [color=red];
202 -> {172} [color=green];
202 -> {203};
203 -> {175} [color=red];
203 -> {172} [color=green];
subgraph cluster_47 {
color=red
203 [label="Enter function test5" style="filled" fillcolor=red];
204 [label="Enter function test5" style="filled" fillcolor=red];
subgraph cluster_48 {
color=blue
204 [label="Enter block"];
205 [label="Access variable R|<local>/y|"];
206 [label="Enter safe call"];
207 [label="Postponed enter to lambda"];
205 [label="Enter block"];
206 [label="Access variable R|<local>/y|"];
207 [label="Enter safe call"];
208 [label="Postponed enter to lambda"];
subgraph cluster_49 {
color=blue
222 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
223 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_50 {
color=blue
223 [label="Enter block"];
224 [label="Access variable R|<local>/x|"];
225 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
226 [label="Function call: R|/n|<R|kotlin/Nothing?|>()"];
227 [label="Exit block"];
224 [label="Enter block"];
225 [label="Access variable R|<local>/x|"];
226 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
227 [label="Function call: R|/n|<R|kotlin/Nothing?|>()"];
228 [label="Exit block"];
}
228 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
229 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
208 [label="Postponed exit from lambda"];
209 [label="Function call: $subj$.R|kotlin/let|<R|kotlin/String|, R|kotlin/Nothing?|>(...)"];
210 [label="Exit safe call"];
211 [label="Const: Int(1)"];
212 [label="Postponed enter to lambda"];
209 [label="Postponed exit from lambda"];
210 [label="Function call: $subj$.R|kotlin/let|<R|kotlin/String|, R|kotlin/Nothing?|>(...)"];
211 [label="Exit safe call"];
212 [label="Const: Int(1)"];
213 [label="Postponed enter to lambda"];
subgraph cluster_51 {
color=blue
229 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
230 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_52 {
color=blue
230 [label="Enter block"];
231 [label="Const: String()"];
232 [label="Exit block"];
231 [label="Enter block"];
232 [label="Const: String()"];
233 [label="Exit block"];
}
233 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
234 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
213 [label="Postponed exit from lambda"];
214 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
215 [label="Merge postponed lambda exits"];
216 [label="Call arguments union" style="filled" fillcolor=yellow];
217 [label="Function call: R|/foo|<R|kotlin/String|>(...)"];
218 [label="Access variable R|<local>/x|"];
219 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
220 [label="Exit block"];
214 [label="Postponed exit from lambda"];
215 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
216 [label="Merge postponed lambda exits"];
217 [label="Call arguments union" style="filled" fillcolor=yellow];
218 [label="Function call: R|/foo|<R|kotlin/String|>(...)"];
219 [label="Access variable R|<local>/x|"];
220 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
221 [label="Exit block"];
}
221 [label="Exit function test5" style="filled" fillcolor=red];
222 [label="Exit function test5" style="filled" fillcolor=red];
}
203 -> {204};
204 -> {205};
205 -> {206 210};
206 -> {207};
207 -> {222};
207 -> {208} [color=red];
207 -> {222} [style=dashed];
208 -> {209};
205 -> {206};
206 -> {207 211};
207 -> {208};
208 -> {223};
208 -> {209} [color=red];
208 -> {223} [style=dashed];
209 -> {210};
210 -> {215 211};
211 -> {212};
212 -> {229};
212 -> {213} [color=red];
212 -> {229} [style=dashed];
213 -> {214};
214 -> {216};
215 -> {216} [color=red];
216 -> {217};
210 -> {211};
211 -> {216 212};
212 -> {213};
213 -> {230};
213 -> {214} [color=red];
213 -> {230} [style=dashed];
214 -> {215};
215 -> {217};
216 -> {217} [color=red];
217 -> {218};
218 -> {219};
219 -> {220};
220 -> {221};
222 -> {223};
221 -> {222};
223 -> {224};
224 -> {225};
225 -> {226};
226 -> {227};
227 -> {228};
228 -> {215} [color=red];
228 -> {208} [color=green];
229 -> {230};
228 -> {229};
229 -> {216} [color=red];
229 -> {209} [color=green];
230 -> {231};
231 -> {232};
232 -> {233};
233 -> {216} [color=red];
233 -> {213} [color=green];
233 -> {234};
234 -> {217} [color=red];
234 -> {214} [color=green];
subgraph cluster_53 {
color=red
234 [label="Enter function test6" style="filled" fillcolor=red];
235 [label="Enter function test6" style="filled" fillcolor=red];
subgraph cluster_54 {
color=blue
235 [label="Enter block"];
236 [label="Enter block"];
subgraph cluster_55 {
color=blue
236 [label="Enter when"];
237 [label="Enter when"];
subgraph cluster_56 {
color=blue
237 [label="Enter when branch condition "];
238 [label="Const: Boolean(true)"];
239 [label="Exit when branch condition"];
238 [label="Enter when branch condition "];
239 [label="Const: Boolean(true)"];
240 [label="Exit when branch condition"];
}
subgraph cluster_57 {
color=blue
240 [label="Enter when branch condition else"];
241 [label="Exit when branch condition"];
241 [label="Enter when branch condition else"];
242 [label="Exit when branch condition"];
}
242 [label="Enter when branch result"];
243 [label="Enter when branch result"];
subgraph cluster_58 {
color=blue
243 [label="Enter block"];
244 [label="Postponed enter to lambda"];
244 [label="Enter block"];
245 [label="Postponed enter to lambda"];
subgraph cluster_59 {
color=blue
276 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
277 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_60 {
color=blue
277 [label="Enter block"];
278 [label="Access variable R|<local>/x|"];
279 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
280 [label="Function call: R|/n|<R|kotlin/Nothing?|>()"];
281 [label="Exit block"];
278 [label="Enter block"];
279 [label="Access variable R|<local>/x|"];
280 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
281 [label="Function call: R|/n|<R|kotlin/Nothing?|>()"];
282 [label="Exit block"];
}
282 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
283 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
245 [label="Postponed exit from lambda"];
246 [label="Function call: R|kotlin/run|<R|kotlin/Nothing?|>(...)"];
247 [label="Exit block"];
246 [label="Postponed exit from lambda"];
247 [label="Function call: R|kotlin/run|<R|kotlin/Nothing?|>(...)"];
248 [label="Exit block"];
}
248 [label="Exit when branch result"];
249 [label="Enter when branch result"];
249 [label="Exit when branch result"];
250 [label="Enter when branch result"];
subgraph cluster_61 {
color=blue
250 [label="Enter block"];
251 [label="Postponed enter to lambda"];
251 [label="Enter block"];
252 [label="Postponed enter to lambda"];
subgraph cluster_62 {
color=blue
269 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
270 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_63 {
color=blue
270 [label="Enter block"];
271 [label="Access variable R|<local>/x|"];
272 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
273 [label="Function call: R|/n|<R|kotlin/Nothing?|>()"];
274 [label="Exit block"];
271 [label="Enter block"];
272 [label="Access variable R|<local>/x|"];
273 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
274 [label="Function call: R|/n|<R|kotlin/Nothing?|>()"];
275 [label="Exit block"];
}
275 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
276 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
252 [label="Postponed exit from lambda"];
253 [label="Function call: R|kotlin/run|<R|kotlin/Nothing?|>(...)"];
254 [label="Exit block"];
253 [label="Postponed exit from lambda"];
254 [label="Function call: R|kotlin/run|<R|kotlin/Nothing?|>(...)"];
255 [label="Exit block"];
}
255 [label="Exit when branch result"];
256 [label="Exit when"];
256 [label="Exit when branch result"];
257 [label="Exit when"];
}
257 [label="Function call: R|/id|<R|kotlin/Nothing?|>(...)"];
258 [label="Const: Int(1)"];
259 [label="Postponed enter to lambda"];
258 [label="Function call: R|/id|<R|kotlin/Nothing?|>(...)"];
259 [label="Const: Int(1)"];
260 [label="Postponed enter to lambda"];
subgraph cluster_64 {
color=blue
283 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
284 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_65 {
color=blue
284 [label="Enter block"];
285 [label="Access variable R|<local>/x|"];
286 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
287 [label="Const: Int(123)"];
288 [label="Exit block"];
285 [label="Enter block"];
286 [label="Access variable R|<local>/x|"];
287 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
288 [label="Const: Int(123)"];
289 [label="Exit block"];
}
289 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
290 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
260 [label="Postponed exit from lambda"];
261 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
262 [label="Merge postponed lambda exits"];
263 [label="Call arguments union" style="filled" fillcolor=yellow];
264 [label="Function call: R|/foo|<R|kotlin/Int|>(...)"];
265 [label="Access variable R|<local>/x|"];
266 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
267 [label="Exit block"];
261 [label="Postponed exit from lambda"];
262 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
263 [label="Merge postponed lambda exits"];
264 [label="Call arguments union" style="filled" fillcolor=yellow];
265 [label="Function call: R|/foo|<R|kotlin/Int|>(...)"];
266 [label="Access variable R|<local>/x|"];
267 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
268 [label="Exit block"];
}
268 [label="Exit function test6" style="filled" fillcolor=red];
269 [label="Exit function test6" style="filled" fillcolor=red];
}
234 -> {235};
235 -> {236};
236 -> {237};
237 -> {238};
238 -> {239};
239 -> {249 240};
240 -> {241};
239 -> {240};
240 -> {250 241};
241 -> {242};
242 -> {243};
243 -> {244};
244 -> {276};
244 -> {245} [color=red];
244 -> {276} [style=dashed];
245 -> {246};
244 -> {245};
245 -> {277};
245 -> {246} [color=red];
245 -> {277} [style=dashed];
246 -> {247};
247 -> {248};
248 -> {256};
249 -> {250};
248 -> {249};
249 -> {257};
250 -> {251};
251 -> {269};
251 -> {252} [color=red];
251 -> {269} [style=dashed];
252 -> {253};
251 -> {252};
252 -> {270};
252 -> {253} [color=red];
252 -> {270} [style=dashed];
253 -> {254};
254 -> {255};
255 -> {256};
256 -> {262 257};
257 -> {258};
256 -> {257};
257 -> {263 258};
258 -> {259};
259 -> {283};
259 -> {260} [color=red];
259 -> {283} [style=dashed];
260 -> {261};
261 -> {263};
262 -> {263} [color=red];
263 -> {264};
259 -> {260};
260 -> {284};
260 -> {261} [color=red];
260 -> {284} [style=dashed];
261 -> {262};
262 -> {264};
263 -> {264} [color=red];
264 -> {265};
265 -> {266};
266 -> {267};
267 -> {268};
269 -> {270};
268 -> {269};
270 -> {271};
271 -> {272};
272 -> {273};
273 -> {274};
274 -> {275};
275 -> {262} [color=red];
275 -> {252} [color=green];
276 -> {277};
275 -> {276};
276 -> {263} [color=red];
276 -> {253} [color=green];
277 -> {278};
278 -> {279};
279 -> {280};
280 -> {281};
281 -> {282};
282 -> {262} [color=red];
282 -> {245} [color=green];
283 -> {284};
282 -> {283};
283 -> {263} [color=red];
283 -> {246} [color=green];
284 -> {285};
285 -> {286};
286 -> {287};
287 -> {288};
288 -> {289};
289 -> {263} [color=red];
289 -> {260} [color=green];
289 -> {290};
290 -> {264} [color=red];
290 -> {261} [color=green];
subgraph cluster_66 {
color=red
290 [label="Enter function test7" style="filled" fillcolor=red];
291 [label="Enter function test7" style="filled" fillcolor=red];
subgraph cluster_67 {
color=blue
291 [label="Enter block"];
292 [label="Access variable R|<local>/x|"];
293 [label="Variable declaration: lvar p: R|kotlin/String?|"];
292 [label="Enter block"];
293 [label="Access variable R|<local>/x|"];
294 [label="Variable declaration: lvar p: R|kotlin/String?|"];
subgraph cluster_68 {
color=blue
294 [label="Enter when"];
295 [label="Enter when"];
subgraph cluster_69 {
color=blue
295 [label="Enter when branch condition "];
296 [label="Access variable R|<local>/p|"];
297 [label="Const: Null(null)"];
298 [label="Equality operator !="];
299 [label="Exit when branch condition"];
296 [label="Enter when branch condition "];
297 [label="Access variable R|<local>/p|"];
298 [label="Const: Null(null)"];
299 [label="Equality operator !="];
300 [label="Exit when branch condition"];
}
300 [label="Synthetic else branch"];
301 [label="Enter when branch result"];
301 [label="Synthetic else branch"];
302 [label="Enter when branch result"];
subgraph cluster_70 {
color=blue
302 [label="Enter block"];
303 [label="Postponed enter to lambda"];
303 [label="Enter block"];
304 [label="Postponed enter to lambda"];
subgraph cluster_71 {
color=blue
321 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
322 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_72 {
color=blue
322 [label="Enter block"];
323 [label="Const: Null(null)"];
324 [label="Assignment: R|<local>/p|"];
325 [label="Function call: R|/n|<R|kotlin/Nothing?|>()"];
326 [label="Exit block"];
323 [label="Enter block"];
324 [label="Const: Null(null)"];
325 [label="Assignment: R|<local>/p|"];
326 [label="Function call: R|/n|<R|kotlin/Nothing?|>()"];
327 [label="Exit block"];
}
327 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
328 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
304 [label="Postponed exit from lambda"];
305 [label="Function call: R|kotlin/run|<R|kotlin/Nothing?|>(...)"];
306 [label="Function call: R|/id|<R|kotlin/Nothing?|>(...)"];
307 [label="Const: Int(1)"];
308 [label="Postponed enter to lambda"];
305 [label="Postponed exit from lambda"];
306 [label="Function call: R|kotlin/run|<R|kotlin/Nothing?|>(...)"];
307 [label="Function call: R|/id|<R|kotlin/Nothing?|>(...)"];
308 [label="Const: Int(1)"];
309 [label="Postponed enter to lambda"];
subgraph cluster_73 {
color=blue
328 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
329 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_74 {
color=blue
329 [label="Enter block"];
330 [label="Access variable R|<local>/p|"];
331 [label="Smart cast: R|<local>/p|"];
332 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): kotlin/String.length>#"];
333 [label="Const: Int(123)"];
334 [label="Exit block"];
330 [label="Enter block"];
331 [label="Access variable R|<local>/p|"];
332 [label="Smart cast: R|<local>/p|"];
333 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): kotlin/String.length>#"];
334 [label="Const: Int(123)"];
335 [label="Exit block"];
}
335 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
336 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
309 [label="Postponed exit from lambda"];
310 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
311 [label="Call arguments union" style="filled" fillcolor=yellow];
312 [label="Function call: R|/foo|<R|kotlin/Int|>(...)"];
313 [label="Access variable R|<local>/p|"];
314 [label="Smart cast: R|<local>/p|"];
315 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
316 [label="Exit block"];
310 [label="Postponed exit from lambda"];
311 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
312 [label="Call arguments union" style="filled" fillcolor=yellow];
313 [label="Function call: R|/foo|<R|kotlin/Int|>(...)"];
314 [label="Access variable R|<local>/p|"];
315 [label="Smart cast: R|<local>/p|"];
316 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
317 [label="Exit block"];
}
317 [label="Exit when branch result"];
318 [label="Exit when"];
318 [label="Exit when branch result"];
319 [label="Exit when"];
}
319 [label="Exit block"];
320 [label="Exit block"];
}
320 [label="Exit function test7" style="filled" fillcolor=red];
321 [label="Exit function test7" style="filled" fillcolor=red];
}
290 -> {291};
291 -> {292};
292 -> {293};
293 -> {294};
@@ -908,21 +909,21 @@ digraph flowFromInplaceLambda2_kt {
296 -> {297};
297 -> {298};
298 -> {299};
299 -> {301 300};
300 -> {318};
301 -> {302};
299 -> {300};
300 -> {302 301};
301 -> {319};
302 -> {303};
303 -> {321};
303 -> {304} [color=red];
303 -> {321} [style=dashed];
304 -> {305};
303 -> {304};
304 -> {322};
304 -> {305} [color=red];
304 -> {322} [style=dashed];
305 -> {306};
306 -> {307};
307 -> {308};
308 -> {328};
308 -> {309} [color=red];
308 -> {328} [style=dashed];
309 -> {310};
308 -> {309};
309 -> {329};
309 -> {310} [color=red];
309 -> {329} [style=dashed];
310 -> {311};
311 -> {312};
312 -> {313};
@@ -933,22 +934,23 @@ digraph flowFromInplaceLambda2_kt {
317 -> {318};
318 -> {319};
319 -> {320};
321 -> {322};
320 -> {321};
322 -> {323};
323 -> {324};
324 -> {325};
325 -> {326};
326 -> {327};
327 -> {311} [color=red];
327 -> {304} [color=green];
328 -> {329};
327 -> {328};
328 -> {312} [color=red];
328 -> {305} [color=green];
329 -> {330};
330 -> {331};
331 -> {332};
332 -> {333};
333 -> {334};
334 -> {335};
335 -> {311} [color=red];
335 -> {309} [color=green];
335 -> {336};
336 -> {312} [color=red];
336 -> {310} [color=green];
}
@@ -74,7 +74,7 @@ FILE: flowFromInplaceLambda2.kt
}
}
), Int(1), R|kotlin/run|<R|kotlin/Int|>(<L> = run@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=EXACTLY_ONCE> {
R|<local>/p|.<Inapplicable(UNSAFE_CALL): kotlin/String.length>#
R|<local>/p|.<Inapplicable(UNSTABLE_SMARTCAST): kotlin/String.length>#
^ Int(123)
}
))
@@ -41,7 +41,7 @@ fun test4(x: String?) {
foo(
id(if (true) run { p = null; n() } else run { n() }),
1,
run { p<!UNSAFE_CALL!>.<!>length; 123 } // Bad (p = null possible)
run { <!SMARTCAST_IMPOSSIBLE!>p<!>.length; 123 } // Bad (p = null possible)
)
p<!UNSAFE_CALL!>.<!>length // Bad (p = null possible)
}
@@ -80,27 +80,25 @@ digraph flowFromInplaceLambda3_kt {
27 [label="Postponed enter to lambda"];
subgraph cluster_10 {
color=blue
38 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
36 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
39 [label="Enter block"];
40 [label="Const: Int(1)"];
41 [label="Assignment: R|<local>/x|"];
42 [label="Exit block"];
37 [label="Enter block"];
38 [label="Const: Int(1)"];
39 [label="Assignment: R|<local>/x|"];
40 [label="Exit block"];
}
43 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
28 [label="Postponed exit from lambda"];
29 [label="Function call: R|/unknown|(...)"];
30 [label="Access variable R|<local>/x|"];
31 [label="Smart cast: R|<local>/x|"];
32 [label="Access variable <Unresolved name: length>#"];
33 [label="Access variable R|<local>/x|"];
34 [label="Smart cast: R|<local>/x|"];
35 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
36 [label="Exit block"];
31 [label="Access variable <Unresolved name: length>#"];
32 [label="Access variable R|<local>/x|"];
33 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
34 [label="Exit block"];
}
37 [label="Exit function test1" style="filled" fillcolor=red];
35 [label="Exit function test1" style="filled" fillcolor=red];
}
19 -> {20};
20 -> {21};
@@ -110,8 +108,8 @@ digraph flowFromInplaceLambda3_kt {
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28 38};
27 -> {38} [style=dashed];
27 -> {28 36};
27 -> {36} [style=dashed];
28 -> {29};
29 -> {30};
30 -> {31};
@@ -119,199 +117,199 @@ digraph flowFromInplaceLambda3_kt {
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
38 -> {43 39};
36 -> {41 37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {28};
43 -> {38} [color=green style=dashed];
41 -> {28};
41 -> {36} [color=green style=dashed];
subgraph cluster_12 {
color=red
44 [label="Enter function test2" style="filled" fillcolor=red];
42 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
45 [label="Enter block"];
46 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
47 [label="Const: String()"];
48 [label="Assignment: R|<local>/x|"];
49 [label="Access variable R|<local>/x|"];
50 [label="Smart cast: R|<local>/x|"];
51 [label="Access variable R|kotlin/String.length|"];
52 [label="Postponed enter to lambda"];
43 [label="Enter block"];
44 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
45 [label="Const: String()"];
46 [label="Assignment: R|<local>/x|"];
47 [label="Access variable R|<local>/x|"];
48 [label="Smart cast: R|<local>/x|"];
49 [label="Access variable R|kotlin/String.length|"];
50 [label="Postponed enter to lambda"];
subgraph cluster_14 {
color=blue
64 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
62 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
65 [label="Enter block"];
66 [label="Const: Int(1)"];
67 [label="Assignment: R|<local>/x|"];
68 [label="Exit block"];
63 [label="Enter block"];
64 [label="Const: Int(1)"];
65 [label="Assignment: R|<local>/x|"];
66 [label="Exit block"];
}
69 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
67 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
53 [label="Call arguments union" style="filled" fillcolor=yellow];
54 [label="Postponed exit from lambda"];
55 [label="Function call: R|/atLeastOnce|(...)"];
56 [label="Access variable R|<local>/x|"];
57 [label="Smart cast: R|<local>/x|"];
58 [label="Access variable <Unresolved name: length>#"];
59 [label="Access variable R|<local>/x|"];
60 [label="Smart cast: R|<local>/x|"];
61 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
62 [label="Exit block"];
51 [label="Call arguments union" style="filled" fillcolor=yellow];
52 [label="Postponed exit from lambda"];
53 [label="Function call: R|/atLeastOnce|(...)"];
54 [label="Access variable R|<local>/x|"];
55 [label="Smart cast: R|<local>/x|"];
56 [label="Access variable <Unresolved name: length>#"];
57 [label="Access variable R|<local>/x|"];
58 [label="Smart cast: R|<local>/x|"];
59 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
60 [label="Exit block"];
}
63 [label="Exit function test2" style="filled" fillcolor=red];
61 [label="Exit function test2" style="filled" fillcolor=red];
}
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {64};
52 -> {54} [color=red];
52 -> {64} [style=dashed];
53 -> {55} [color=red];
54 -> {55} [color=green];
50 -> {62};
50 -> {52} [color=red];
50 -> {62} [style=dashed];
51 -> {53} [color=red];
52 -> {53} [color=green];
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {53} [color=red];
69 -> {54} [color=green];
69 -> {64} [color=green style=dashed];
67 -> {51} [color=red];
67 -> {52} [color=green];
67 -> {62} [color=green style=dashed];
subgraph cluster_16 {
color=red
70 [label="Enter function test3" style="filled" fillcolor=red];
68 [label="Enter function test3" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
71 [label="Enter block"];
72 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
73 [label="Const: String()"];
74 [label="Assignment: R|<local>/x|"];
75 [label="Access variable R|<local>/x|"];
76 [label="Smart cast: R|<local>/x|"];
77 [label="Access variable R|kotlin/String.length|"];
78 [label="Postponed enter to lambda"];
69 [label="Enter block"];
70 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
71 [label="Const: String()"];
72 [label="Assignment: R|<local>/x|"];
73 [label="Access variable R|<local>/x|"];
74 [label="Smart cast: R|<local>/x|"];
75 [label="Access variable R|kotlin/String.length|"];
76 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
90 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
88 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
91 [label="Enter block"];
92 [label="Const: Int(1)"];
93 [label="Assignment: R|<local>/x|"];
94 [label="Exit block"];
89 [label="Enter block"];
90 [label="Const: Int(1)"];
91 [label="Assignment: R|<local>/x|"];
92 [label="Exit block"];
}
95 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
93 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
79 [label="Call arguments union" style="filled" fillcolor=yellow];
80 [label="Postponed exit from lambda"];
81 [label="Function call: R|/exactlyOnce|(...)"];
82 [label="Access variable R|<local>/x|"];
83 [label="Smart cast: R|<local>/x|"];
84 [label="Access variable <Unresolved name: length>#"];
85 [label="Access variable R|<local>/x|"];
86 [label="Smart cast: R|<local>/x|"];
87 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
88 [label="Exit block"];
77 [label="Call arguments union" style="filled" fillcolor=yellow];
78 [label="Postponed exit from lambda"];
79 [label="Function call: R|/exactlyOnce|(...)"];
80 [label="Access variable R|<local>/x|"];
81 [label="Smart cast: R|<local>/x|"];
82 [label="Access variable <Unresolved name: length>#"];
83 [label="Access variable R|<local>/x|"];
84 [label="Smart cast: R|<local>/x|"];
85 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
86 [label="Exit block"];
}
89 [label="Exit function test3" style="filled" fillcolor=red];
87 [label="Exit function test3" style="filled" fillcolor=red];
}
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {90};
78 -> {80} [color=red];
78 -> {90} [style=dashed];
79 -> {81} [color=red];
80 -> {81} [color=green];
76 -> {88};
76 -> {78} [color=red];
76 -> {88} [style=dashed];
77 -> {79} [color=red];
78 -> {79} [color=green];
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {79} [color=red];
95 -> {80} [color=green];
95 -> {90} [color=green style=dashed];
93 -> {77} [color=red];
93 -> {78} [color=green];
93 -> {88} [color=green style=dashed];
subgraph cluster_20 {
color=red
96 [label="Enter function test4" style="filled" fillcolor=red];
94 [label="Enter function test4" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
97 [label="Enter block"];
98 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
99 [label="Const: String()"];
100 [label="Assignment: R|<local>/x|"];
101 [label="Access variable R|<local>/x|"];
102 [label="Smart cast: R|<local>/x|"];
103 [label="Access variable R|kotlin/String.length|"];
104 [label="Postponed enter to lambda"];
95 [label="Enter block"];
96 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
97 [label="Const: String()"];
98 [label="Assignment: R|<local>/x|"];
99 [label="Access variable R|<local>/x|"];
100 [label="Smart cast: R|<local>/x|"];
101 [label="Access variable R|kotlin/String.length|"];
102 [label="Postponed enter to lambda"];
subgraph cluster_22 {
color=blue
115 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
113 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
116 [label="Enter block"];
117 [label="Const: Int(1)"];
118 [label="Assignment: R|<local>/x|"];
119 [label="Exit block"];
114 [label="Enter block"];
115 [label="Const: Int(1)"];
116 [label="Assignment: R|<local>/x|"];
117 [label="Exit block"];
}
120 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
118 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
105 [label="Postponed exit from lambda"];
106 [label="Function call: R|/atMostOnce|(...)"];
107 [label="Access variable R|<local>/x|"];
108 [label="Smart cast: R|<local>/x|"];
109 [label="Access variable <Unresolved name: length>#"];
110 [label="Access variable R|<local>/x|"];
111 [label="Smart cast: R|<local>/x|"];
112 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
113 [label="Exit block"];
103 [label="Postponed exit from lambda"];
104 [label="Function call: R|/atMostOnce|(...)"];
105 [label="Access variable R|<local>/x|"];
106 [label="Smart cast: R|<local>/x|"];
107 [label="Access variable <Unresolved name: length>#"];
108 [label="Access variable R|<local>/x|"];
109 [label="Smart cast: R|<local>/x|"];
110 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
111 [label="Exit block"];
}
114 [label="Exit function test4" style="filled" fillcolor=red];
112 [label="Exit function test4" style="filled" fillcolor=red];
}
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
102 -> {103 113};
102 -> {113} [style=dashed];
103 -> {104};
104 -> {105 115};
104 -> {115} [style=dashed];
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
@@ -319,13 +317,11 @@ digraph flowFromInplaceLambda3_kt {
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
115 -> {120 116};
113 -> {118 114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {105};
118 -> {103};
}