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.
This commit is contained in:
pyos
2022-11-17 12:53:35 +01:00
committed by teamcity
parent 99bebfa183
commit a9be27e330
108 changed files with 4050 additions and 4239 deletions
@@ -54,10 +54,10 @@ digraph initializationInTry_kt {
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
16 [label="Enter block"]; 16 [label="Enter block"];
17 [label="Function call: R|/getNullableString|()"]; 17 [label="Function call: R|/getNullableString|()" style="filled" fillcolor=yellow];
18 [label="Check not null: R|/getNullableString|()!!"]; 18 [label="Check not null: R|/getNullableString|()!!" style="filled" fillcolor=yellow];
19 [label="Variable declaration: lval y: R|kotlin/String|"]; 19 [label="Variable declaration: lval y: R|kotlin/String|"];
20 [label="Function call: R|/getNullableString|()"]; 20 [label="Function call: R|/getNullableString|()" style="filled" fillcolor=yellow];
21 [label="Assignment: R|<local>/x|"]; 21 [label="Assignment: R|<local>/x|"];
22 [label="Exit block"]; 22 [label="Exit block"];
} }
@@ -77,7 +77,7 @@ digraph initializationInTry_kt {
29 [label="Try expression exit"]; 29 [label="Try expression exit"];
} }
30 [label="Access variable R|<local>/x|"]; 30 [label="Access variable R|<local>/x|"];
31 [label="Function call: R|/takeNullableString|(...)"]; 31 [label="Function call: R|/takeNullableString|(...)" style="filled" fillcolor=yellow];
32 [label="Exit block"]; 32 [label="Exit block"];
} }
33 [label="Exit function test_1" style="filled" fillcolor=red]; 33 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -123,9 +123,9 @@ digraph initializationInTry_kt {
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
39 [label="Enter block"]; 39 [label="Enter block"];
40 [label="Function call: R|/getNullableString|()"]; 40 [label="Function call: R|/getNullableString|()" style="filled" fillcolor=yellow];
41 [label="Variable declaration: lval y: R|kotlin/String?|"]; 41 [label="Variable declaration: lval y: R|kotlin/String?|"];
42 [label="Function call: R|/getNullableString|()"]; 42 [label="Function call: R|/getNullableString|()" style="filled" fillcolor=yellow];
43 [label="Assignment: R|<local>/x|"]; 43 [label="Assignment: R|<local>/x|"];
44 [label="Exit block"]; 44 [label="Exit block"];
} }
@@ -145,7 +145,7 @@ digraph initializationInTry_kt {
51 [label="Try expression exit"]; 51 [label="Try expression exit"];
} }
52 [label="Access variable R|<local>/x|"]; 52 [label="Access variable R|<local>/x|"];
53 [label="Function call: R|/takeNullableString|(...)"]; 53 [label="Function call: R|/takeNullableString|(...)" style="filled" fillcolor=yellow];
54 [label="Exit block"]; 54 [label="Exit block"];
} }
55 [label="Exit function test_2" style="filled" fillcolor=red]; 55 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -6,7 +6,7 @@ digraph annotatedLocalClass_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -47,7 +47,7 @@ digraph annotatedLocalClass_kt {
18 [label="Exit when"]; 18 [label="Exit when"];
} }
19 [label="Exit local class foo"]; 19 [label="Exit local class foo"];
20 [label="Function call: R|/bar|()"]; 20 [label="Function call: R|/bar|()" style="filled" fillcolor=yellow];
21 [label="Exit block"]; 21 [label="Exit block"];
} }
subgraph cluster_7 { subgraph cluster_7 {
@@ -83,7 +83,7 @@ digraph annotatedLocalClass_kt {
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
25 [label="Enter function <init>" style="filled" fillcolor=red]; 25 [label="Enter function <init>" style="filled" fillcolor=red];
26 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 26 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
27 [label="Exit function <init>" style="filled" fillcolor=red]; 27 [label="Exit function <init>" style="filled" fillcolor=red];
} }
25 -> {26}; 25 -> {26};
@@ -60,7 +60,7 @@ digraph complex_kt {
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
23 [label="Enter block"]; 23 [label="Enter block"];
24 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"]; 24 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()" style="filled" fillcolor=yellow];
25 [label="Exit block"]; 25 [label="Exit block"];
} }
26 [label="Try main block exit"]; 26 [label="Try main block exit"];
@@ -75,7 +75,7 @@ digraph complex_kt {
30 [label="Access variable R|<local>/cause|"]; 30 [label="Access variable R|<local>/cause|"];
31 [label="Smart cast: R|<local>/cause|"]; 31 [label="Smart cast: R|<local>/cause|"];
32 [label="Access variable R|<local>/closeException|"]; 32 [label="Access variable R|<local>/closeException|"];
33 [label="Function call: R|<local>/cause|.R|kotlin/Throwable.addSuppressed|(...)"]; 33 [label="Function call: R|<local>/cause|.R|kotlin/Throwable.addSuppressed|(...)" style="filled" fillcolor=yellow];
34 [label="Exit block"]; 34 [label="Exit block"];
} }
35 [label="Catch exit"]; 35 [label="Catch exit"];
@@ -89,7 +89,7 @@ digraph complex_kt {
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
40 [label="Enter block"]; 40 [label="Enter block"];
41 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"]; 41 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()" style="filled" fillcolor=yellow];
42 [label="Exit block"]; 42 [label="Exit block"];
} }
43 [label="Exit when branch result"]; 43 [label="Exit when branch result"];
@@ -185,7 +185,7 @@ digraph complex_kt {
color=blue color=blue
55 [label="Enter block"]; 55 [label="Enter block"];
56 [label="Access variable this@R|/firstIsInstanceOrNull|"]; 56 [label="Access variable this@R|/firstIsInstanceOrNull|"];
57 [label="Function call: this@R|/firstIsInstanceOrNull|.R|SubstitutionOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<CapturedType(*)>|>|()"]; 57 [label="Function call: this@R|/firstIsInstanceOrNull|.R|SubstitutionOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<CapturedType(*)>|>|()" style="filled" fillcolor=yellow];
58 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"]; 58 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
@@ -194,7 +194,7 @@ digraph complex_kt {
color=blue color=blue
60 [label="Enter loop condition"]; 60 [label="Enter loop condition"];
61 [label="Access variable R|<local>/<iterator>|"]; 61 [label="Access variable R|<local>/<iterator>|"];
62 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()"]; 62 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()" style="filled" fillcolor=yellow];
63 [label="Exit loop condition"]; 63 [label="Exit loop condition"];
} }
subgraph cluster_21 { subgraph cluster_21 {
@@ -204,7 +204,7 @@ digraph complex_kt {
color=blue color=blue
65 [label="Enter block"]; 65 [label="Enter block"];
66 [label="Access variable R|<local>/<iterator>|"]; 66 [label="Access variable R|<local>/<iterator>|"];
67 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"]; 67 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()" style="filled" fillcolor=yellow];
68 [label="Variable declaration: lval element: R|kotlin/Any?|"]; 68 [label="Variable declaration: lval element: R|kotlin/Any?|"];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
@@ -33,19 +33,18 @@ digraph defaultArguments_kt {
17 [label="Postponed enter to lambda"]; 17 [label="Postponed enter to lambda"];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
22 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 21 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
23 [label="Enter block"]; 22 [label="Enter block"];
24 [label="Function call: R|/foo|()"]; 23 [label="Function call: R|/foo|()" style="filled" fillcolor=yellow];
25 [label="Exit block"]; 24 [label="Exit block"];
} }
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
18 [label="Call arguments union" style="filled" fillcolor=yellow]; 18 [label="Postponed exit from lambda"];
19 [label="Postponed exit from lambda"]; 19 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
20 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"]; 20 [label="Exit default value of z" style="filled" fillcolor=red];
21 [label="Exit default value of z" style="filled" fillcolor=red];
} }
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
@@ -57,7 +56,7 @@ digraph defaultArguments_kt {
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
8 [label="Enter block"]; 8 [label="Enter block"];
9 [label="Function call: R|/foo|()"]; 9 [label="Function call: R|/foo|()" style="filled" fillcolor=yellow];
10 [label="Exit block"]; 10 [label="Exit block"];
} }
11 [label="Exit function test" style="filled" fillcolor=red]; 11 [label="Exit function test" style="filled" fillcolor=red];
@@ -72,17 +71,16 @@ digraph defaultArguments_kt {
14 -> {15}; 14 -> {15};
16 -> {17}; 16 -> {17};
16 -> {16} [style=dashed]; 16 -> {16} [style=dashed];
17 -> {22}; 17 -> {21};
17 -> {19} [color=red]; 17 -> {18} [color=red];
17 -> {22} [style=dashed]; 17 -> {21} [style=dashed];
18 -> {20} [color=red]; 18 -> {19};
19 -> {20} [color=green]; 19 -> {20};
20 -> {21}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {19} [color=red];
26 -> {18} [color=red]; 25 -> {18} [color=green];
26 -> {19} [color=green];
} }
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -9,7 +9,7 @@ digraph flowFromInplaceLambda3_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 2 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
3 [label="Exit block"]; 3 [label="Exit block"];
} }
4 [label="Exit function unknown" style="filled" fillcolor=red]; 4 [label="Exit function unknown" style="filled" fillcolor=red];
@@ -25,7 +25,7 @@ digraph flowFromInplaceLambda3_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter block"]; 6 [label="Enter block"];
7 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 7 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
8 [label="Exit block"]; 8 [label="Exit block"];
} }
9 [label="Exit function atLeastOnce" style="filled" fillcolor=red]; 9 [label="Exit function atLeastOnce" style="filled" fillcolor=red];
@@ -41,7 +41,7 @@ digraph flowFromInplaceLambda3_kt {
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
11 [label="Enter block"]; 11 [label="Enter block"];
12 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 12 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
13 [label="Exit block"]; 13 [label="Exit block"];
} }
14 [label="Exit function exactlyOnce" style="filled" fillcolor=red]; 14 [label="Exit function exactlyOnce" style="filled" fillcolor=red];
@@ -80,25 +80,27 @@ digraph flowFromInplaceLambda3_kt {
27 [label="Postponed enter to lambda"]; 27 [label="Postponed enter to lambda"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
36 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 38 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
37 [label="Enter block"]; 39 [label="Enter block"];
38 [label="Const: Int(1)"]; 40 [label="Const: Int(1)"];
39 [label="Assignment: R|<local>/x|"]; 41 [label="Assignment: R|<local>/x|"];
40 [label="Exit block"]; 42 [label="Exit block"];
} }
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 43 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
28 [label="Postponed exit from lambda"]; 28 [label="Postponed exit from lambda"];
29 [label="Function call: R|/unknown|(...)"]; 29 [label="Function call: R|/unknown|(...)" style="filled" fillcolor=yellow];
30 [label="Access variable R|<local>/x|"]; 30 [label="Access variable R|<local>/x|"];
31 [label="Access variable <Unresolved name: length>#"]; 31 [label="Smart cast: R|<local>/x|"];
32 [label="Access variable R|<local>/x|"]; 32 [label="Access variable <Unresolved name: length>#"];
33 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"]; 33 [label="Access variable R|<local>/x|"];
34 [label="Exit block"]; 34 [label="Smart cast: R|<local>/x|"];
35 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()" style="filled" fillcolor=yellow];
36 [label="Exit block"];
} }
35 [label="Exit function test1" style="filled" fillcolor=red]; 37 [label="Exit function test1" style="filled" fillcolor=red];
} }
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
@@ -108,198 +110,197 @@ digraph flowFromInplaceLambda3_kt {
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28 36}; 27 -> {28 38};
27 -> {36} [style=dashed]; 27 -> {38} [style=dashed];
28 -> {29}; 28 -> {29};
28 -> {27} [color=green style=dashed];
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
36 -> {41 37}; 35 -> {36};
37 -> {38}; 36 -> {37};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {28}; 41 -> {42};
41 -> {36} [color=green style=dashed]; 42 -> {43};
43 -> {28};
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
42 [label="Enter function test1m" style="filled" fillcolor=red]; 44 [label="Enter function test1m" style="filled" fillcolor=red];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
43 [label="Enter block"]; 45 [label="Enter block"];
44 [label="Variable declaration: lvar x: R|kotlin/Any?|"]; 46 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
45 [label="Const: String()"]; 47 [label="Const: String()"];
46 [label="Assignment: R|<local>/x|"]; 48 [label="Assignment: R|<local>/x|"];
47 [label="Access variable R|<local>/x|"]; 49 [label="Access variable R|<local>/x|"];
48 [label="Smart cast: R|<local>/x|"]; 50 [label="Smart cast: R|<local>/x|"];
49 [label="Access variable R|kotlin/String.length|"]; 51 [label="Access variable R|kotlin/String.length|"];
50 [label="Postponed enter to lambda"]; 52 [label="Postponed enter to lambda"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
57 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 60 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
58 [label="Enter block"]; 61 [label="Enter block"];
59 [label="Const: String()"]; 62 [label="Const: String()"];
60 [label="Assignment: R|<local>/x|"]; 63 [label="Assignment: R|<local>/x|"];
61 [label="Exit block"]; 64 [label="Exit block"];
} }
62 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 65 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
51 [label="Postponed exit from lambda"]; 53 [label="Postponed exit from lambda"];
52 [label="Function call: R|/unknown|(...)"]; 54 [label="Function call: R|/unknown|(...)" style="filled" fillcolor=yellow];
53 [label="Access variable R|<local>/x|"]; 55 [label="Access variable R|<local>/x|"];
54 [label="Access variable <Unresolved name: length>#"]; 56 [label="Smart cast: R|<local>/x|"];
55 [label="Exit block"]; 57 [label="Access variable R|kotlin/String.length|"];
58 [label="Exit block"];
} }
56 [label="Exit function test1m" style="filled" fillcolor=red]; 59 [label="Exit function test1m" style="filled" fillcolor=red];
} }
42 -> {43};
43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
50 -> {51 57}; 50 -> {51};
50 -> {57} [style=dashed];
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53 60};
52 -> {60} [style=dashed];
53 -> {54}; 53 -> {54};
53 -> {52} [color=green style=dashed];
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56};
57 -> {62 58}; 56 -> {57};
57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {51}; 62 -> {63};
62 -> {57} [color=green style=dashed]; 63 -> {64};
64 -> {65};
65 -> {53};
subgraph cluster_16 { subgraph cluster_16 {
color=red color=red
63 [label="Enter function test2" style="filled" fillcolor=red]; 66 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
64 [label="Enter block"]; 67 [label="Enter block"];
65 [label="Variable declaration: lvar x: R|kotlin/Any?|"]; 68 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
66 [label="Const: String()"]; 69 [label="Const: String()"];
67 [label="Assignment: R|<local>/x|"]; 70 [label="Assignment: R|<local>/x|"];
68 [label="Access variable R|<local>/x|"]; 71 [label="Access variable R|<local>/x|"];
69 [label="Smart cast: R|<local>/x|"]; 72 [label="Smart cast: R|<local>/x|"];
70 [label="Access variable R|kotlin/String.length|"]; 73 [label="Access variable R|kotlin/String.length|"];
71 [label="Postponed enter to lambda"]; 74 [label="Postponed enter to lambda"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
83 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 85 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
84 [label="Enter block"]; 86 [label="Enter block"];
85 [label="Const: Int(1)"]; 87 [label="Const: Int(1)"];
86 [label="Assignment: R|<local>/x|"]; 88 [label="Assignment: R|<local>/x|"];
87 [label="Exit block"]; 89 [label="Exit block"];
} }
88 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 90 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
72 [label="Call arguments union" style="filled" fillcolor=yellow]; 75 [label="Postponed exit from lambda"];
73 [label="Postponed exit from lambda"]; 76 [label="Function call: R|/atLeastOnce|(...)" style="filled" fillcolor=yellow];
74 [label="Function call: R|/atLeastOnce|(...)"]; 77 [label="Access variable R|<local>/x|"];
75 [label="Access variable R|<local>/x|"]; 78 [label="Smart cast: R|<local>/x|"];
76 [label="Smart cast: R|<local>/x|"]; 79 [label="Access variable <Unresolved name: length>#"];
77 [label="Access variable <Unresolved name: length>#"]; 80 [label="Access variable R|<local>/x|"];
78 [label="Access variable R|<local>/x|"]; 81 [label="Smart cast: R|<local>/x|"];
79 [label="Smart cast: R|<local>/x|"]; 82 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
80 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 83 [label="Exit block"];
81 [label="Exit block"];
} }
82 [label="Exit function test2" style="filled" fillcolor=red]; 84 [label="Exit function test2" style="filled" fillcolor=red];
} }
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
69 -> {70}; 69 -> {70};
70 -> {71}; 70 -> {71};
71 -> {83}; 71 -> {72};
71 -> {73} [color=red]; 72 -> {73};
71 -> {83} [style=dashed]; 73 -> {74};
72 -> {74} [color=red]; 74 -> {85};
73 -> {74} [color=green]; 74 -> {75} [color=red];
74 -> {75}; 74 -> {85} [style=dashed];
75 -> {76}; 75 -> {76};
75 -> {74} [color=green style=dashed];
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {81}; 80 -> {81};
81 -> {82}; 81 -> {82};
82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85};
85 -> {86}; 85 -> {86};
86 -> {87}; 86 -> {87};
87 -> {88}; 87 -> {88};
88 -> {72} [color=red]; 88 -> {89};
88 -> {73} [color=green]; 89 -> {90};
88 -> {83} [color=green style=dashed]; 90 -> {76} [color=red];
90 -> {75} [color=green];
subgraph cluster_20 { subgraph cluster_20 {
color=red color=red
89 [label="Enter function test3" style="filled" fillcolor=red]; 91 [label="Enter function test3" style="filled" fillcolor=red];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
90 [label="Enter block"]; 92 [label="Enter block"];
91 [label="Variable declaration: lvar x: R|kotlin/Any?|"]; 93 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
92 [label="Const: String()"]; 94 [label="Const: String()"];
93 [label="Assignment: R|<local>/x|"]; 95 [label="Assignment: R|<local>/x|"];
94 [label="Access variable R|<local>/x|"]; 96 [label="Access variable R|<local>/x|"];
95 [label="Smart cast: R|<local>/x|"]; 97 [label="Smart cast: R|<local>/x|"];
96 [label="Access variable R|kotlin/String.length|"]; 98 [label="Access variable R|kotlin/String.length|"];
97 [label="Postponed enter to lambda"]; 99 [label="Postponed enter to lambda"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
109 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 110 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
110 [label="Enter block"]; 111 [label="Enter block"];
111 [label="Const: Int(1)"]; 112 [label="Const: Int(1)"];
112 [label="Assignment: R|<local>/x|"]; 113 [label="Assignment: R|<local>/x|"];
113 [label="Exit block"]; 114 [label="Exit block"];
} }
114 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 115 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
98 [label="Call arguments union" style="filled" fillcolor=yellow]; 100 [label="Postponed exit from lambda"];
99 [label="Postponed exit from lambda"]; 101 [label="Function call: R|/exactlyOnce|(...)" style="filled" fillcolor=yellow];
100 [label="Function call: R|/exactlyOnce|(...)"]; 102 [label="Access variable R|<local>/x|"];
101 [label="Access variable R|<local>/x|"]; 103 [label="Smart cast: R|<local>/x|"];
102 [label="Smart cast: R|<local>/x|"]; 104 [label="Access variable <Unresolved name: length>#"];
103 [label="Access variable <Unresolved name: length>#"]; 105 [label="Access variable R|<local>/x|"];
104 [label="Access variable R|<local>/x|"]; 106 [label="Smart cast: R|<local>/x|"];
105 [label="Smart cast: R|<local>/x|"]; 107 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
106 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 108 [label="Exit block"];
107 [label="Exit block"];
} }
108 [label="Exit function test3" style="filled" fillcolor=red]; 109 [label="Exit function test3" style="filled" fillcolor=red];
} }
89 -> {90};
90 -> {91};
91 -> {92}; 91 -> {92};
92 -> {93}; 92 -> {93};
93 -> {94}; 93 -> {94};
94 -> {95}; 94 -> {95};
95 -> {96}; 95 -> {96};
96 -> {97}; 96 -> {97};
97 -> {109}; 97 -> {98};
97 -> {99} [color=red]; 98 -> {99};
97 -> {109} [style=dashed]; 99 -> {110};
98 -> {100} [color=red]; 99 -> {100} [color=red];
99 -> {100} [color=green]; 99 -> {110} [style=dashed];
100 -> {101}; 100 -> {101};
101 -> {102}; 101 -> {102};
102 -> {103}; 102 -> {103};
@@ -308,52 +309,52 @@ digraph flowFromInplaceLambda3_kt {
105 -> {106}; 105 -> {106};
106 -> {107}; 106 -> {107};
107 -> {108}; 107 -> {108};
109 -> {110}; 108 -> {109};
110 -> {111}; 110 -> {111};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {98} [color=red]; 114 -> {115};
114 -> {99} [color=green]; 115 -> {101} [color=red];
115 -> {100} [color=green];
subgraph cluster_24 { subgraph cluster_24 {
color=red color=red
115 [label="Enter function test4" style="filled" fillcolor=red]; 116 [label="Enter function test4" style="filled" fillcolor=red];
subgraph cluster_25 { subgraph cluster_25 {
color=blue color=blue
116 [label="Enter block"]; 117 [label="Enter block"];
117 [label="Variable declaration: lvar x: R|kotlin/Any?|"]; 118 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
118 [label="Const: String()"]; 119 [label="Const: String()"];
119 [label="Assignment: R|<local>/x|"]; 120 [label="Assignment: R|<local>/x|"];
120 [label="Access variable R|<local>/x|"]; 121 [label="Access variable R|<local>/x|"];
121 [label="Smart cast: R|<local>/x|"]; 122 [label="Smart cast: R|<local>/x|"];
122 [label="Access variable R|kotlin/String.length|"]; 123 [label="Access variable R|kotlin/String.length|"];
123 [label="Postponed enter to lambda"]; 124 [label="Postponed enter to lambda"];
subgraph cluster_26 { subgraph cluster_26 {
color=blue color=blue
134 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 135 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_27 { subgraph cluster_27 {
color=blue color=blue
135 [label="Enter block"]; 136 [label="Enter block"];
136 [label="Const: Int(1)"]; 137 [label="Const: Int(1)"];
137 [label="Assignment: R|<local>/x|"]; 138 [label="Assignment: R|<local>/x|"];
138 [label="Exit block"]; 139 [label="Exit block"];
} }
139 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 140 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
124 [label="Postponed exit from lambda"]; 125 [label="Postponed exit from lambda"];
125 [label="Function call: R|/atMostOnce|(...)"]; 126 [label="Function call: R|/atMostOnce|(...)" style="filled" fillcolor=yellow];
126 [label="Access variable R|<local>/x|"]; 127 [label="Access variable R|<local>/x|"];
127 [label="Smart cast: R|<local>/x|"]; 128 [label="Smart cast: R|<local>/x|"];
128 [label="Access variable <Unresolved name: length>#"]; 129 [label="Access variable <Unresolved name: length>#"];
129 [label="Access variable R|<local>/x|"]; 130 [label="Access variable R|<local>/x|"];
130 [label="Smart cast: R|<local>/x|"]; 131 [label="Smart cast: R|<local>/x|"];
131 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"]; 132 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()" style="filled" fillcolor=yellow];
132 [label="Exit block"]; 133 [label="Exit block"];
} }
133 [label="Exit function test4" style="filled" fillcolor=red]; 134 [label="Exit function test4" style="filled" fillcolor=red];
} }
115 -> {116};
116 -> {117}; 116 -> {117};
117 -> {118}; 117 -> {118};
118 -> {119}; 118 -> {119};
@@ -361,9 +362,9 @@ digraph flowFromInplaceLambda3_kt {
120 -> {121}; 120 -> {121};
121 -> {122}; 121 -> {122};
122 -> {123}; 122 -> {123};
123 -> {124 134}; 123 -> {124};
123 -> {134} [style=dashed]; 124 -> {125 135};
124 -> {125}; 124 -> {135} [style=dashed];
125 -> {126}; 125 -> {126};
126 -> {127}; 126 -> {127};
127 -> {128}; 127 -> {128};
@@ -372,11 +373,12 @@ digraph flowFromInplaceLambda3_kt {
130 -> {131}; 130 -> {131};
131 -> {132}; 131 -> {132};
132 -> {133}; 132 -> {133};
134 -> {139 135}; 133 -> {134};
135 -> {136}; 135 -> {136};
136 -> {137}; 136 -> {137};
137 -> {138}; 137 -> {138};
138 -> {139}; 138 -> {139};
139 -> {124}; 139 -> {140};
140 -> {125};
} }
@@ -53,7 +53,7 @@ FILE: flowFromInplaceLambda3.kt
R|<local>/x| = String() R|<local>/x| = String()
} }
) )
R|<local>/x|.<Unresolved name: length># R|<local>/x|.R|kotlin/String.length|
} }
public final fun test2(): R|kotlin/Unit| { public final fun test2(): R|kotlin/Unit| {
lvar x: R|kotlin/Any?| lvar x: R|kotlin/Any?|
@@ -35,7 +35,7 @@ fun test1m() {
x = "" x = ""
x.length x.length
unknown { x = "" } unknown { x = "" }
x.<!UNRESOLVED_REFERENCE!>length<!> x.length
} }
fun test2() { fun test2() {
File diff suppressed because it is too large Load Diff
@@ -6,7 +6,7 @@ digraph initBlock_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -45,7 +45,7 @@ digraph initBlock_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
12 [label="Enter function <init>" style="filled" fillcolor=red]; 12 [label="Enter function <init>" style="filled" fillcolor=red];
13 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 13 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
14 [label="Exit function <init>" style="filled" fillcolor=red]; 14 [label="Exit function <init>" style="filled" fillcolor=red];
} }
12 -> {13}; 12 -> {13};
@@ -59,7 +59,7 @@ digraph initBlock_kt {
16 [label="Enter block"]; 16 [label="Enter block"];
17 [label="Const: Int(1)"]; 17 [label="Const: Int(1)"];
18 [label="Variable declaration: lval x: R|kotlin/Int|"]; 18 [label="Variable declaration: lval x: R|kotlin/Int|"];
19 [label="Function call: R|java/lang/Exception.Exception|()"]; 19 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
20 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 20 [label="Throw: throw R|java/lang/Exception.Exception|()"];
21 [label="Stub" style="filled" fillcolor=gray]; 21 [label="Stub" style="filled" fillcolor=gray];
22 [label="Const: Int(2)" style="filled" fillcolor=gray]; 22 [label="Const: Int(2)" style="filled" fillcolor=gray];
@@ -20,7 +20,7 @@ digraph initBlockAndInPlaceLambda_kt {
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function <init>" style="filled" fillcolor=red]; 4 [label="Enter function <init>" style="filled" fillcolor=red];
5 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 5 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
6 [label="Exit function <init>" style="filled" fillcolor=red]; 6 [label="Exit function <init>" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
@@ -38,59 +38,57 @@ digraph initBlockAndInPlaceLambda_kt {
12 [label="Postponed enter to lambda"]; 12 [label="Postponed enter to lambda"];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
20 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 19 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
21 [label="Enter block"]; 20 [label="Enter block"];
22 [label="Access variable R|<local>/a|"]; 21 [label="Access variable R|<local>/a|"];
23 [label="Access variable R|<local>/it|"]; 22 [label="Access variable R|<local>/it|"];
24 [label="Function call: R|/C.C|(...)"]; 23 [label="Function call: R|/C.C|(...)" style="filled" fillcolor=yellow];
25 [label="Exit block"]; 24 [label="Exit block"];
} }
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
13 [label="Call arguments union" style="filled" fillcolor=yellow]; 13 [label="Postponed exit from lambda"];
14 [label="Postponed exit from lambda"]; 14 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)" style="filled" fillcolor=yellow];
15 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)"]; 15 [label="Exit safe call"];
16 [label="Exit safe call"]; 16 [label="Variable declaration: lval c: R|C?|"];
17 [label="Variable declaration: lval c: R|C?|"]; 17 [label="Exit block"];
18 [label="Exit block"];
} }
19 [label="Exit init block" style="filled" fillcolor=red]; 18 [label="Exit init block" style="filled" fillcolor=red];
} }
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11 16}; 10 -> {11 15};
11 -> {12}; 11 -> {12};
12 -> {20}; 12 -> {19};
12 -> {14} [color=red]; 12 -> {13} [color=red];
12 -> {20} [style=dashed]; 12 -> {19} [style=dashed];
13 -> {15} [color=red]; 13 -> {14};
14 -> {15} [color=green]; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {28} [color=green];
19 -> {29} [color=green]; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {14} [color=red];
26 -> {13} [color=red]; 25 -> {13} [color=green];
26 -> {14} [color=green];
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
27 [label="Enter class C" style="filled" fillcolor=red]; 26 [label="Enter class C" style="filled" fillcolor=red];
28 [label="Part of class initialization"]; 27 [label="Part of class initialization"];
29 [label="Exit class C" style="filled" fillcolor=red]; 28 [label="Exit class C" style="filled" fillcolor=red];
} }
27 -> {28} [color=green]; 26 -> {27} [color=green];
28 -> {29} [style=dotted]; 27 -> {28} [style=dotted];
28 -> {7} [color=green]; 27 -> {7} [color=green];
28 -> {7} [style=dashed]; 27 -> {7} [style=dashed];
} }
@@ -6,7 +6,7 @@ digraph innerClassInAnonymousObject_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -15,7 +15,7 @@ digraph innerClassInAnonymousObject_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
3 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 4 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
5 [label="Exit function <init>" style="filled" fillcolor=red]; 5 [label="Exit function <init>" style="filled" fillcolor=red];
} }
3 -> {4}; 3 -> {4};
@@ -10,7 +10,7 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Const: Null(null)"]; 2 [label="Const: Null(null)"];
3 [label="Check not null: Null(null)!!"]; 3 [label="Check not null: Null(null)!!" style="filled" fillcolor=yellow];
4 [label="Stub" style="filled" fillcolor=gray]; 4 [label="Stub" style="filled" fillcolor=gray];
5 [label="Jump: ^materialize Null(null)!!" style="filled" fillcolor=gray]; 5 [label="Jump: ^materialize Null(null)!!" style="filled" fillcolor=gray];
6 [label="Stub" style="filled" fillcolor=gray]; 6 [label="Stub" style="filled" fillcolor=gray];
@@ -63,17 +63,17 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
24 [label="Postponed enter to lambda"]; 24 [label="Postponed enter to lambda"];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
34 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 33 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
35 [label="Enter block"]; 34 [label="Enter block"];
36 [label="Function call: R|/materialize|<R|kotlin/String|>()"]; 35 [label="Function call: R|/materialize|<R|kotlin/String|>()" style="filled" fillcolor=yellow];
37 [label="Exit block"]; 36 [label="Exit block"];
} }
38 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 37 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
25 [label="Postponed exit from lambda"]; 25 [label="Postponed exit from lambda"];
26 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"]; 26 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
27 [label="Exit block"]; 27 [label="Exit block"];
} }
28 [label="Exit when branch result"]; 28 [label="Exit when branch result"];
@@ -84,7 +84,6 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
} }
32 [label="Exit function test_1" style="filled" fillcolor=red]; 32 [label="Exit function test_1" style="filled" fillcolor=red];
} }
33 [label="Merge postponed lambda exits"];
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
@@ -100,90 +99,90 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
21 -> {29}; 21 -> {29};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {34}; 24 -> {33};
24 -> {25} [color=red]; 24 -> {25} [color=red];
24 -> {34} [style=dashed]; 24 -> {33} [style=dashed];
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {33 30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {29} [color=red];
38 -> {33} [color=red]; 37 -> {25} [color=green];
38 -> {25} [color=green];
subgraph cluster_11 { subgraph cluster_11 {
color=red color=red
39 [label="Enter function test_2" style="filled" fillcolor=red]; 38 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
40 [label="Enter block"]; 39 [label="Enter block"];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
41 [label="Try expression enter"]; 40 [label="Try expression enter"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
42 [label="Try main block enter"]; 41 [label="Try main block enter"];
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
43 [label="Enter block"]; 42 [label="Enter block"];
44 [label="Postponed enter to lambda"]; 43 [label="Postponed enter to lambda"];
subgraph cluster_16 { subgraph cluster_16 {
color=blue color=blue
60 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 58 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
61 [label="Enter block"]; 59 [label="Enter block"];
62 [label="Function call: R|/materialize|<R|kotlin/String|>()"]; 60 [label="Function call: R|/materialize|<R|kotlin/String|>()" style="filled" fillcolor=yellow];
63 [label="Exit block"]; 61 [label="Exit block"];
} }
64 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 62 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
45 [label="Postponed exit from lambda"]; 44 [label="Postponed exit from lambda"];
46 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"]; 45 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
47 [label="Exit block"]; 46 [label="Exit block"];
} }
48 [label="Try main block exit"]; 47 [label="Try main block exit"];
} }
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
49 [label="Catch enter"]; 48 [label="Catch enter"];
50 [label="Variable declaration: e: R|kotlin/Exception|"]; 49 [label="Variable declaration: e: R|kotlin/Exception|"];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
51 [label="Enter block"]; 50 [label="Enter block"];
52 [label="Const: String()"]; 51 [label="Const: String()"];
53 [label="Exit block"]; 52 [label="Exit block"];
} }
54 [label="Catch exit"]; 53 [label="Catch exit"];
} }
55 [label="Try expression exit"]; 54 [label="Try expression exit"];
} }
56 [label="Call arguments union" style="filled" fillcolor=yellow]; 55 [label="Variable declaration: lval x: R|kotlin/String|"];
57 [label="Variable declaration: lval x: R|kotlin/String|"]; 56 [label="Exit block"];
58 [label="Exit block"];
} }
59 [label="Exit function test_2" style="filled" fillcolor=red]; 57 [label="Exit function test_2" style="filled" fillcolor=red];
} }
38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41 48};
41 -> {42 49}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {58};
44 -> {60}; 43 -> {44} [color=red];
44 -> {45} [color=red]; 43 -> {58} [style=dashed];
44 -> {60} [style=dashed]; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {54 48};
48 -> {55 49}; 48 -> {49};
48 -> {57} [label=onUncaughtException];
49 -> {50}; 49 -> {50};
49 -> {59} [label=onUncaughtException];
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
@@ -191,58 +190,54 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {54} [color=red];
63 -> {64}; 62 -> {44} [color=green];
64 -> {56} [color=red];
64 -> {45} [color=green];
subgraph cluster_20 { subgraph cluster_20 {
color=red color=red
65 [label="Enter function test_3" style="filled" fillcolor=red]; 63 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
66 [label="Enter block"]; 64 [label="Enter block"];
67 [label="Postponed enter to lambda"]; 65 [label="Postponed enter to lambda"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
75 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 72 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
76 [label="Enter block"]; 73 [label="Enter block"];
77 [label="Function call: R|/materialize|<R|kotlin/String?|>()"]; 74 [label="Function call: R|/materialize|<R|kotlin/String?|>()" style="filled" fillcolor=yellow];
78 [label="Exit block"]; 75 [label="Exit block"];
} }
79 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 76 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
68 [label="Postponed exit from lambda"]; 66 [label="Postponed exit from lambda"];
69 [label="Function call: R|kotlin/run|<R|kotlin/String?|>(...)"]; 67 [label="Function call: R|kotlin/run|<R|kotlin/String?|>(...)" style="filled" fillcolor=yellow];
70 [label="Check not null: R|kotlin/run|<R|kotlin/String?|>(...)!!"]; 68 [label="Check not null: R|kotlin/run|<R|kotlin/String?|>(...)!!" style="filled" fillcolor=yellow];
71 [label="Call arguments union" style="filled" fillcolor=yellow]; 69 [label="Variable declaration: lval x: R|kotlin/String|"];
72 [label="Variable declaration: lval x: R|kotlin/String|"]; 70 [label="Exit block"];
73 [label="Exit block"];
} }
74 [label="Exit function test_3" style="filled" fillcolor=red]; 71 [label="Exit function test_3" style="filled" fillcolor=red];
} }
65 -> {66}; 63 -> {64};
64 -> {65};
65 -> {72};
65 -> {66} [color=red];
65 -> {72} [style=dashed];
66 -> {67}; 66 -> {67};
67 -> {75}; 67 -> {68};
67 -> {68} [color=red];
67 -> {75} [style=dashed];
68 -> {69}; 68 -> {69};
69 -> {70}; 69 -> {70};
70 -> {71}; 70 -> {71};
71 -> {72};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75};
75 -> {76}; 75 -> {76};
76 -> {77}; 76 -> {68} [color=red];
77 -> {78}; 76 -> {66} [color=green];
78 -> {79};
79 -> {71} [color=red];
79 -> {68} [color=green];
} }
+10 -10
View File
@@ -38,7 +38,7 @@ digraph jumps_kt {
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
17 [label="Enter block"]; 17 [label="Enter block"];
18 [label="Function call: R|java/lang/Exception.Exception|()"]; 18 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
19 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 19 [label="Throw: throw R|java/lang/Exception.Exception|()"];
20 [label="Stub" style="filled" fillcolor=gray]; 20 [label="Stub" style="filled" fillcolor=gray];
21 [label="Exit block" style="filled" fillcolor=gray]; 21 [label="Exit block" style="filled" fillcolor=gray];
@@ -48,10 +48,10 @@ digraph jumps_kt {
} }
24 [label="Variable declaration: lval y: R|kotlin/Int|"]; 24 [label="Variable declaration: lval y: R|kotlin/Int|"];
25 [label="Access variable R|<local>/y|"]; 25 [label="Access variable R|<local>/y|"];
26 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"]; 26 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
27 [label="Access variable R|<local>/x|"]; 27 [label="Access variable R|<local>/x|"];
28 [label="Smart cast: R|<local>/x|"]; 28 [label="Smart cast: R|<local>/x|"];
29 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 29 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
30 [label="Exit block"]; 30 [label="Exit block"];
} }
31 [label="Exit function test_1" style="filled" fillcolor=red]; 31 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -133,7 +133,7 @@ digraph jumps_kt {
} }
55 [label="Variable declaration: lval y: R|kotlin/Int?|"]; 55 [label="Variable declaration: lval y: R|kotlin/Int?|"];
56 [label="Access variable R|<local>/y|"]; 56 [label="Access variable R|<local>/y|"];
57 [label="Function call: R|<local>/y|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 57 [label="Function call: R|<local>/y|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
58 [label="Exit block"]; 58 [label="Exit block"];
} }
59 [label="Exit function test_2" style="filled" fillcolor=red]; 59 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -199,7 +199,7 @@ digraph jumps_kt {
} }
75 [label="Access variable R|<local>/x|"]; 75 [label="Access variable R|<local>/x|"];
76 [label="Smart cast: R|<local>/x|"]; 76 [label="Smart cast: R|<local>/x|"];
77 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 77 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
78 [label="Exit block"]; 78 [label="Exit block"];
} }
79 [label="Exit function test_3" style="filled" fillcolor=red]; 79 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -259,7 +259,7 @@ digraph jumps_kt {
} }
95 [label="Access variable R|<local>/x|"]; 95 [label="Access variable R|<local>/x|"];
96 [label="Smart cast: R|<local>/x|"]; 96 [label="Smart cast: R|<local>/x|"];
97 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 97 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
98 [label="Exit block"]; 98 [label="Exit block"];
} }
99 [label="Exit function test_4" style="filled" fillcolor=red]; 99 [label="Exit function test_4" style="filled" fillcolor=red];
@@ -370,7 +370,7 @@ digraph jumps_kt {
subgraph cluster_36 { subgraph cluster_36 {
color=blue color=blue
126 [label="Enter block"]; 126 [label="Enter block"];
127 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 127 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
128 [label="Exit block"]; 128 [label="Exit block"];
} }
129 [label="Exit function run" style="filled" fillcolor=red]; 129 [label="Exit function run" style="filled" fillcolor=red];
@@ -400,7 +400,7 @@ digraph jumps_kt {
142 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 142 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
133 [label="Postponed exit from lambda"]; 133 [label="Postponed exit from lambda"];
134 [label="Function call: R|/run|(...)"]; 134 [label="Function call: R|/run|(...)" style="filled" fillcolor=yellow];
135 [label="Exit block"]; 135 [label="Exit block"];
} }
136 [label="Exit function test_6" style="filled" fillcolor=red]; 136 [label="Exit function test_6" style="filled" fillcolor=red];
@@ -410,15 +410,15 @@ digraph jumps_kt {
132 -> {133 137}; 132 -> {133 137};
132 -> {137} [style=dashed]; 132 -> {137} [style=dashed];
133 -> {134}; 133 -> {134};
133 -> {132} [color=green style=dashed];
134 -> {135}; 134 -> {135};
135 -> {136}; 135 -> {136};
137 -> {142 138}; 137 -> {138};
138 -> {139}; 138 -> {139};
139 -> {142}; 139 -> {142};
139 -> {140} [style=dotted]; 139 -> {140} [style=dotted];
140 -> {141} [style=dotted]; 140 -> {141} [style=dotted];
141 -> {142} [style=dotted]; 141 -> {142} [style=dotted];
142 -> {133}; 142 -> {133};
142 -> {137} [color=green style=dashed];
} }
@@ -21,7 +21,7 @@ digraph lambdaAsReturnOfLambda_kt {
color=blue color=blue
9 [label="Enter block"]; 9 [label="Enter block"];
10 [label="Access variable R|<local>/foo|"]; 10 [label="Access variable R|<local>/foo|"];
11 [label="Function call: R|/bar|(...)"]; 11 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
12 [label="Exit block"]; 12 [label="Exit block"];
} }
13 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 13 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
@@ -37,7 +37,7 @@ digraph lambdaAsReturnOfLambda_kt {
7 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 7 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
16 [label="Postponed exit from lambda"]; 16 [label="Postponed exit from lambda"];
17 [label="Function call: R|/run|<R|(kotlin/String) -> kotlin/Unit|>(...)"]; 17 [label="Function call: R|/run|<R|(kotlin/String) -> kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
18 [label="Exit property" style="filled" fillcolor=red]; 18 [label="Exit property" style="filled" fillcolor=red];
} }
14 -> {15}; 14 -> {15};
@@ -80,7 +80,7 @@ digraph lambdaAsReturnOfLambda_kt {
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
24 [label="Enter block"]; 24 [label="Enter block"];
25 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()"]; 25 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()" style="filled" fillcolor=yellow];
26 [label="Jump: ^run R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()"]; 26 [label="Jump: ^run R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()"];
27 [label="Stub" style="filled" fillcolor=gray]; 27 [label="Stub" style="filled" fillcolor=gray];
28 [label="Exit block" style="filled" fillcolor=gray]; 28 [label="Exit block" style="filled" fillcolor=gray];
@@ -34,7 +34,7 @@ digraph lambdaReturningObject_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
8 [label="Enter function <init>" style="filled" fillcolor=red]; 8 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 9 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
10 [label="Exit function <init>" style="filled" fillcolor=red]; 10 [label="Exit function <init>" style="filled" fillcolor=red];
} }
8 -> {9}; 8 -> {9};
@@ -53,7 +53,7 @@ digraph lambdaReturningObject_kt {
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
14 [label="Enter block"]; 14 [label="Enter block"];
15 [label="Function call: R|kotlin/TODO|()"]; 15 [label="Function call: R|kotlin/TODO|()" style="filled" fillcolor=yellow];
16 [label="Stub" style="filled" fillcolor=gray]; 16 [label="Stub" style="filled" fillcolor=gray];
17 [label="Jump: ^MyOut R|kotlin/TODO|()" style="filled" fillcolor=gray]; 17 [label="Jump: ^MyOut R|kotlin/TODO|()" style="filled" fillcolor=gray];
18 [label="Stub" style="filled" fillcolor=gray]; 18 [label="Stub" style="filled" fillcolor=gray];
@@ -89,8 +89,8 @@ digraph lambdaReturningObject_kt {
33 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 33 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
24 [label="Postponed exit from lambda"]; 24 [label="Postponed exit from lambda"];
25 [label="Function call: R|/MyOut|<R|IrStarProjectionImpl|>(...)"]; 25 [label="Function call: R|/MyOut|<R|IrStarProjectionImpl|>(...)" style="filled" fillcolor=yellow];
26 [label="Function call: R|/bar|(...)"]; 26 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
27 [label="Exit block"]; 27 [label="Exit block"];
} }
28 [label="Exit function foo" style="filled" fillcolor=red]; 28 [label="Exit function foo" style="filled" fillcolor=red];
+96 -98
View File
@@ -9,7 +9,7 @@ digraph lambdas_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
3 [label="Exit block"]; 3 [label="Exit block"];
} }
4 [label="Exit function run" style="filled" fillcolor=red]; 4 [label="Exit function run" style="filled" fillcolor=red];
@@ -49,13 +49,13 @@ digraph lambdas_kt {
24 [label="Enter block"]; 24 [label="Enter block"];
25 [label="Access variable R|<local>/x|"]; 25 [label="Access variable R|<local>/x|"];
26 [label="Smart cast: R|<local>/x|"]; 26 [label="Smart cast: R|<local>/x|"];
27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
28 [label="Exit block"]; 28 [label="Exit block"];
} }
29 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 29 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
16 [label="Postponed exit from lambda"]; 16 [label="Postponed exit from lambda"];
17 [label="Function call: R|/run|(...)"]; 17 [label="Function call: R|/run|(...)" style="filled" fillcolor=yellow];
18 [label="Exit block"]; 18 [label="Exit block"];
} }
19 [label="Exit when branch result"]; 19 [label="Exit when branch result"];
@@ -78,19 +78,19 @@ digraph lambdas_kt {
15 -> {16 23}; 15 -> {16 23};
15 -> {23} [style=dashed]; 15 -> {23} [style=dashed];
16 -> {17}; 16 -> {17};
16 -> {15} [color=green style=dashed];
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
23 -> {29 24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {16}; 29 -> {16};
29 -> {23} [color=green style=dashed];
subgraph cluster_9 { subgraph cluster_9 {
color=red color=red
@@ -114,30 +114,29 @@ digraph lambdas_kt {
color=blue color=blue
39 [label="Enter block"]; 39 [label="Enter block"];
40 [label="Postponed enter to lambda"]; 40 [label="Postponed enter to lambda"];
subgraph cluster_14 { 41 [label="Exit anonymous function expression"];
color=blue 42 [label="Variable declaration: lval lambda: R|() -> kotlin/Int|"];
49 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 43 [label="Exit block"];
subgraph cluster_15 {
color=blue
50 [label="Enter block"];
51 [label="Access variable R|<local>/x|"];
52 [label="Smart cast: R|<local>/x|"];
53 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
54 [label="Exit block"];
}
55 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
41 [label="Postponed exit from lambda"];
42 [label="Exit anonymous function expression"];
43 [label="Variable declaration: lval lambda: R|() -> kotlin/Int|"];
44 [label="Exit block"];
} }
45 [label="Exit when branch result"]; 44 [label="Exit when branch result"];
46 [label="Exit when"]; 45 [label="Exit when"];
} }
47 [label="Exit block"]; 46 [label="Exit block"];
} }
48 [label="Exit function test_2" style="filled" fillcolor=red]; 47 [label="Exit function test_2" style="filled" fillcolor=red];
}
subgraph cluster_14 {
color=blue
48 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
49 [label="Enter block"];
50 [label="Access variable R|<local>/x|"];
51 [label="Smart cast: R|<local>/x|"];
52 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
53 [label="Exit block"];
}
54 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
@@ -146,148 +145,147 @@ digraph lambdas_kt {
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {38 37}; 36 -> {38 37};
37 -> {46}; 37 -> {45};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41 49}; 40 -> {48 41};
40 -> {49} [style=dashed]; 40 -> {48} [style=dashed];
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 48 -> {49};
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55};
subgraph cluster_16 { subgraph cluster_16 {
color=red color=red
56 [label="Enter function getInt" style="filled" fillcolor=red]; 55 [label="Enter function getInt" style="filled" fillcolor=red];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
57 [label="Enter block"]; 56 [label="Enter block"];
58 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 57 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
59 [label="Const: Int(1)"]; 58 [label="Const: Int(1)"];
60 [label="Jump: ^getInt Int(1)"]; 59 [label="Jump: ^getInt Int(1)"];
61 [label="Stub" style="filled" fillcolor=gray]; 60 [label="Stub" style="filled" fillcolor=gray];
62 [label="Exit block" style="filled" fillcolor=gray]; 61 [label="Exit block" style="filled" fillcolor=gray];
} }
63 [label="Exit function getInt" style="filled" fillcolor=red]; 62 [label="Exit function getInt" style="filled" fillcolor=red];
} }
55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {62};
60 -> {63}; 59 -> {60} [style=dotted];
60 -> {61} [style=dotted]; 60 -> {61} [style=dotted];
61 -> {62} [style=dotted]; 61 -> {62} [style=dotted];
62 -> {63} [style=dotted];
subgraph cluster_18 { subgraph cluster_18 {
color=red color=red
64 [label="Enter function test_3" style="filled" fillcolor=red]; 63 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
65 [label="Enter block"]; 64 [label="Enter block"];
66 [label="Postponed enter to lambda"]; 65 [label="Postponed enter to lambda"];
subgraph cluster_20 { subgraph cluster_20 {
color=blue color=blue
73 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 72 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
74 [label="Enter block"]; 73 [label="Enter block"];
75 [label="Const: Int(1)"]; 74 [label="Const: Int(1)"];
76 [label="Jump: ^test_3 Int(1)"]; 75 [label="Jump: ^test_3 Int(1)"];
77 [label="Stub" style="filled" fillcolor=gray]; 76 [label="Stub" style="filled" fillcolor=gray];
78 [label="Exit block" style="filled" fillcolor=gray]; 77 [label="Exit block" style="filled" fillcolor=gray];
} }
79 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 78 [label="Exit function anonymousFunction" style="filled" fillcolor=red style="filled" fillcolor=gray];
} }
67 [label="Postponed exit from lambda"]; 66 [label="Postponed exit from lambda"];
68 [label="Function call: R|/getInt|(...)"]; 67 [label="Function call: R|/getInt|(...)" style="filled" fillcolor=yellow];
69 [label="Jump: ^test_3 R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> { 68 [label="Jump: ^test_3 R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
^test_3 Int(1) ^test_3 Int(1)
} }
)"]; )"];
70 [label="Stub" style="filled" fillcolor=gray]; 69 [label="Stub" style="filled" fillcolor=gray];
71 [label="Exit block" style="filled" fillcolor=gray]; 70 [label="Exit block" style="filled" fillcolor=gray];
} }
72 [label="Exit function test_3" style="filled" fillcolor=red]; 71 [label="Exit function test_3" style="filled" fillcolor=red];
} }
63 -> {64};
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66 72};
66 -> {67 73}; 65 -> {72} [style=dashed];
66 -> {73} [style=dashed]; 66 -> {67};
66 -> {65} [color=green style=dashed];
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {71};
69 -> {72}; 68 -> {69} [style=dotted];
69 -> {70} [style=dotted]; 69 -> {70} [style=dotted];
70 -> {71} [style=dotted]; 70 -> {71} [style=dotted];
71 -> {72} [style=dotted]; 72 -> {73};
73 -> {79 74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {76}; 75 -> {71};
76 -> {72}; 75 -> {76} [style=dotted];
76 -> {77} [style=dotted]; 76 -> {77} [style=dotted];
77 -> {78} [style=dotted]; 77 -> {78} [style=dotted];
78 -> {79} [style=dotted]; 78 -> {66} [style=dotted];
79 -> {67};
79 -> {73} [color=green style=dashed];
subgraph cluster_22 { subgraph cluster_22 {
color=red color=red
80 [label="Enter function test_4" style="filled" fillcolor=red]; 79 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
81 [label="Enter block"]; 80 [label="Enter block"];
82 [label="Postponed enter to lambda"]; 81 [label="Postponed enter to lambda"];
subgraph cluster_24 { subgraph cluster_24 {
color=blue color=blue
89 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 88 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_25 { subgraph cluster_25 {
color=blue color=blue
90 [label="Enter block"]; 89 [label="Enter block"];
91 [label="Const: Int(1)"]; 90 [label="Const: Int(1)"];
92 [label="Jump: ^test_4 Int(1)"]; 91 [label="Jump: ^test_4 Int(1)"];
93 [label="Stub" style="filled" fillcolor=gray]; 92 [label="Stub" style="filled" fillcolor=gray];
94 [label="Exit block" style="filled" fillcolor=gray]; 93 [label="Exit block" style="filled" fillcolor=gray];
} }
95 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 94 [label="Exit function anonymousFunction" style="filled" fillcolor=red style="filled" fillcolor=gray];
} }
83 [label="Postponed exit from lambda"]; 82 [label="Postponed exit from lambda"];
84 [label="Function call: R|/getInt|(...)"]; 83 [label="Function call: R|/getInt|(...)" style="filled" fillcolor=yellow];
85 [label="Jump: ^test_4 R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> { 84 [label="Jump: ^test_4 R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
^test_4 Int(1) ^test_4 Int(1)
} }
)"]; )"];
86 [label="Stub" style="filled" fillcolor=gray]; 85 [label="Stub" style="filled" fillcolor=gray];
87 [label="Exit block" style="filled" fillcolor=gray]; 86 [label="Exit block" style="filled" fillcolor=gray];
} }
88 [label="Exit function test_4" style="filled" fillcolor=red]; 87 [label="Exit function test_4" style="filled" fillcolor=red];
} }
79 -> {80};
80 -> {81}; 80 -> {81};
81 -> {82}; 81 -> {82 88};
82 -> {83 89}; 81 -> {88} [style=dashed];
82 -> {89} [style=dashed]; 82 -> {83};
82 -> {81} [color=green style=dashed];
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {87};
85 -> {88}; 84 -> {85} [style=dotted];
85 -> {86} [style=dotted]; 85 -> {86} [style=dotted];
86 -> {87} [style=dotted]; 86 -> {87} [style=dotted];
87 -> {88} [style=dotted]; 88 -> {89};
89 -> {95 90}; 89 -> {90};
90 -> {91}; 90 -> {91};
91 -> {92}; 91 -> {87};
92 -> {88}; 91 -> {92} [style=dotted];
92 -> {93} [style=dotted]; 92 -> {93} [style=dotted];
93 -> {94} [style=dotted]; 93 -> {94} [style=dotted];
94 -> {95} [style=dotted]; 94 -> {82} [style=dotted];
95 -> {83};
95 -> {89} [color=green style=dashed];
} }
@@ -9,7 +9,7 @@ digraph localClassesWithImplicit_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()"]; 2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()" style="filled" fillcolor=yellow];
3 [label="Jump: ^myRun R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()"]; 3 [label="Jump: ^myRun R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()"];
4 [label="Stub" style="filled" fillcolor=gray]; 4 [label="Stub" style="filled" fillcolor=gray];
5 [label="Exit block" style="filled" fillcolor=gray]; 5 [label="Exit block" style="filled" fillcolor=gray];
@@ -108,7 +108,7 @@ digraph localClassesWithImplicit_kt {
subgraph cluster_9 { subgraph cluster_9 {
color=red color=red
33 [label="Enter function <init>" style="filled" fillcolor=red]; 33 [label="Enter function <init>" style="filled" fillcolor=red];
34 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 34 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
35 [label="Exit function <init>" style="filled" fillcolor=red]; 35 [label="Exit function <init>" style="filled" fillcolor=red];
} }
33 -> {34}; 33 -> {34};
@@ -160,7 +160,7 @@ digraph localClassesWithImplicit_kt {
64 [label="Access variable R|<local>/b|"]; 64 [label="Access variable R|<local>/b|"];
65 [label="Smart cast: R|<local>/b|"]; 65 [label="Smart cast: R|<local>/b|"];
66 [label="Access variable R|kotlin/String.length|"]; 66 [label="Access variable R|kotlin/String.length|"];
67 [label="Function call: this@R|/A|.R|<local>/bar|()"]; 67 [label="Function call: this@R|/A|.R|<local>/bar|()" style="filled" fillcolor=yellow];
68 [label="Exit block"]; 68 [label="Exit block"];
} }
69 [label="Exit when branch result"]; 69 [label="Exit when branch result"];
@@ -171,7 +171,7 @@ digraph localClassesWithImplicit_kt {
72 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 72 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
39 [label="Postponed exit from lambda"]; 39 [label="Postponed exit from lambda"];
40 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"]; 40 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
41 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> { 41 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length| R|<local>/a|.R|kotlin/String.length|
^ when () { ^ when () {
@@ -196,12 +196,13 @@ digraph localClassesWithImplicit_kt {
38 -> {39 45}; 38 -> {39 45};
38 -> {45} [style=dashed]; 38 -> {45} [style=dashed];
39 -> {40}; 39 -> {40};
39 -> {38} [color=green style=dashed];
40 -> {41}; 40 -> {41};
41 -> {44}; 41 -> {44};
41 -> {42} [style=dotted]; 41 -> {42} [style=dotted];
42 -> {43} [style=dotted]; 42 -> {43} [style=dotted];
43 -> {44} [style=dotted]; 43 -> {44} [style=dotted];
45 -> {72 46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
@@ -229,7 +230,6 @@ digraph localClassesWithImplicit_kt {
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {39}; 72 -> {39};
72 -> {45} [color=green style=dashed];
subgraph cluster_19 { subgraph cluster_19 {
color=red color=red
@@ -249,13 +249,13 @@ digraph localClassesWithImplicit_kt {
86 [label="Access variable R|<local>/a|"]; 86 [label="Access variable R|<local>/a|"];
87 [label="Smart cast: R|<local>/a|"]; 87 [label="Smart cast: R|<local>/a|"];
88 [label="Access variable R|kotlin/String.length|"]; 88 [label="Access variable R|kotlin/String.length|"];
89 [label="Function call: this@R|/A|.R|<local>/baz|()"]; 89 [label="Function call: this@R|/A|.R|<local>/baz|()" style="filled" fillcolor=yellow];
90 [label="Exit block"]; 90 [label="Exit block"];
} }
91 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 91 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
76 [label="Postponed exit from lambda"]; 76 [label="Postponed exit from lambda"];
77 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"]; 77 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
78 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> { 78 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/b|.<Unresolved name: length># R|<local>/b|.<Unresolved name: length>#
R|<local>/a|.R|kotlin/String.length| R|<local>/a|.R|kotlin/String.length|
@@ -272,12 +272,13 @@ digraph localClassesWithImplicit_kt {
75 -> {76 82}; 75 -> {76 82};
75 -> {82} [style=dashed]; 75 -> {82} [style=dashed];
76 -> {77}; 76 -> {77};
76 -> {75} [color=green style=dashed];
77 -> {78}; 77 -> {78};
78 -> {81}; 78 -> {81};
78 -> {79} [style=dotted]; 78 -> {79} [style=dotted];
79 -> {80} [style=dotted]; 79 -> {80} [style=dotted];
80 -> {81} [style=dotted]; 80 -> {81} [style=dotted];
82 -> {91 83}; 82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {86}; 85 -> {86};
@@ -287,7 +288,6 @@ digraph localClassesWithImplicit_kt {
89 -> {90}; 89 -> {90};
90 -> {91}; 90 -> {91};
91 -> {76}; 91 -> {76};
91 -> {82} [color=green style=dashed];
subgraph cluster_23 { subgraph cluster_23 {
color=red color=red
@@ -313,7 +313,7 @@ digraph localClassesWithImplicit_kt {
subgraph cluster_25 { subgraph cluster_25 {
color=red color=red
99 [label="Enter function <init>" style="filled" fillcolor=red]; 99 [label="Enter function <init>" style="filled" fillcolor=red];
100 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 100 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
101 [label="Exit function <init>" style="filled" fillcolor=red]; 101 [label="Exit function <init>" style="filled" fillcolor=red];
} }
99 -> {100}; 99 -> {100};
@@ -365,7 +365,7 @@ digraph localClassesWithImplicit_kt {
130 [label="Access variable R|<local>/b|"]; 130 [label="Access variable R|<local>/b|"];
131 [label="Smart cast: R|<local>/b|"]; 131 [label="Smart cast: R|<local>/b|"];
132 [label="Access variable R|kotlin/String.length|"]; 132 [label="Access variable R|kotlin/String.length|"];
133 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.bar|()"]; 133 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.bar|()" style="filled" fillcolor=yellow];
134 [label="Exit block"]; 134 [label="Exit block"];
} }
135 [label="Exit when branch result"]; 135 [label="Exit when branch result"];
@@ -376,7 +376,7 @@ digraph localClassesWithImplicit_kt {
138 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 138 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
105 [label="Postponed exit from lambda"]; 105 [label="Postponed exit from lambda"];
106 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"]; 106 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
107 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> { 107 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length| R|<local>/a|.R|kotlin/String.length|
^ when () { ^ when () {
@@ -401,12 +401,13 @@ digraph localClassesWithImplicit_kt {
104 -> {105 111}; 104 -> {105 111};
104 -> {111} [style=dashed]; 104 -> {111} [style=dashed];
105 -> {106}; 105 -> {106};
105 -> {104} [color=green style=dashed];
106 -> {107}; 106 -> {107};
107 -> {110}; 107 -> {110};
107 -> {108} [style=dotted]; 107 -> {108} [style=dotted];
108 -> {109} [style=dotted]; 108 -> {109} [style=dotted];
109 -> {110} [style=dotted]; 109 -> {110} [style=dotted];
111 -> {138 112}; 111 -> {112};
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {115}; 114 -> {115};
@@ -434,7 +435,6 @@ digraph localClassesWithImplicit_kt {
136 -> {137}; 136 -> {137};
137 -> {138}; 137 -> {138};
138 -> {105}; 138 -> {105};
138 -> {111} [color=green style=dashed];
subgraph cluster_35 { subgraph cluster_35 {
color=red color=red
@@ -454,13 +454,13 @@ digraph localClassesWithImplicit_kt {
152 [label="Access variable R|kotlin/String.length|"]; 152 [label="Access variable R|kotlin/String.length|"];
153 [label="Access variable R|<local>/b|"]; 153 [label="Access variable R|<local>/b|"];
154 [label="Access variable <Unresolved name: length>#"]; 154 [label="Access variable <Unresolved name: length>#"];
155 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.baz|()"]; 155 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.baz|()" style="filled" fillcolor=yellow];
156 [label="Exit block"]; 156 [label="Exit block"];
} }
157 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 157 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
142 [label="Postponed exit from lambda"]; 142 [label="Postponed exit from lambda"];
143 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"]; 143 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
144 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> { 144 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length| R|<local>/a|.R|kotlin/String.length|
R|<local>/b|.<Unresolved name: length># R|<local>/b|.<Unresolved name: length>#
@@ -477,12 +477,13 @@ digraph localClassesWithImplicit_kt {
141 -> {142 148}; 141 -> {142 148};
141 -> {148} [style=dashed]; 141 -> {148} [style=dashed];
142 -> {143}; 142 -> {143};
142 -> {141} [color=green style=dashed];
143 -> {144}; 143 -> {144};
144 -> {147}; 144 -> {147};
144 -> {145} [style=dotted]; 144 -> {145} [style=dotted];
145 -> {146} [style=dotted]; 145 -> {146} [style=dotted];
146 -> {147} [style=dotted]; 146 -> {147} [style=dotted];
148 -> {157 149}; 148 -> {149};
149 -> {150}; 149 -> {150};
150 -> {151}; 150 -> {151};
151 -> {152}; 151 -> {152};
@@ -492,7 +493,6 @@ digraph localClassesWithImplicit_kt {
155 -> {156}; 155 -> {156};
156 -> {157}; 156 -> {157};
157 -> {142}; 157 -> {142};
157 -> {148} [color=green style=dashed];
subgraph cluster_39 { subgraph cluster_39 {
color=red color=red
+4 -4
View File
@@ -123,8 +123,8 @@ digraph loops_kt {
38 [label="Enter block"]; 38 [label="Enter block"];
39 [label="Const: Int(0)"]; 39 [label="Const: Int(0)"];
40 [label="Const: Int(5)"]; 40 [label="Const: Int(5)"];
41 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...)"]; 41 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...)" style="filled" fillcolor=yellow];
42 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...).R|kotlin/ranges/IntProgression.iterator|()"]; 42 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...).R|kotlin/ranges/IntProgression.iterator|()" style="filled" fillcolor=yellow];
43 [label="Variable declaration: lval <iterator>: R|kotlin/collections/IntIterator|"]; 43 [label="Variable declaration: lval <iterator>: R|kotlin/collections/IntIterator|"];
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
@@ -133,7 +133,7 @@ digraph loops_kt {
color=blue color=blue
45 [label="Enter loop condition"]; 45 [label="Enter loop condition"];
46 [label="Access variable R|<local>/<iterator>|"]; 46 [label="Access variable R|<local>/<iterator>|"];
47 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()"]; 47 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()" style="filled" fillcolor=yellow];
48 [label="Exit loop condition"]; 48 [label="Exit loop condition"];
} }
subgraph cluster_17 { subgraph cluster_17 {
@@ -143,7 +143,7 @@ digraph loops_kt {
color=blue color=blue
50 [label="Enter block"]; 50 [label="Enter block"];
51 [label="Access variable R|<local>/<iterator>|"]; 51 [label="Access variable R|<local>/<iterator>|"];
52 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()"]; 52 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()" style="filled" fillcolor=yellow];
53 [label="Variable declaration: lval i: R|kotlin/Int|"]; 53 [label="Variable declaration: lval i: R|kotlin/Int|"];
54 [label="Access variable R|<local>/x|"]; 54 [label="Access variable R|<local>/x|"];
55 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"]; 55 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"];
@@ -6,7 +6,7 @@ digraph postponedLambdaInConstructor_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -26,90 +26,88 @@ digraph postponedLambdaInConstructor_kt {
7 [label="Postponed enter to lambda"]; 7 [label="Postponed enter to lambda"];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
13 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 12 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
14 [label="Enter block"]; 13 [label="Enter block"];
15 [label="Postponed enter to lambda"]; 14 [label="Postponed enter to lambda"];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
19 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 18 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
20 [label="Enter block"]; 19 [label="Enter block"];
21 [label="Access variable R|<local>/it|"]; 20 [label="Access variable R|<local>/it|"];
22 [label="Exit block"]; 21 [label="Exit block"];
} }
23 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 22 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
16 [label="Postponed exit from lambda"]; 15 [label="Postponed exit from lambda"];
17 [label="Exit block"]; 16 [label="Exit block"];
} }
18 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 17 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
8 [label="Postponed exit from lambda"]; 8 [label="Postponed exit from lambda"];
9 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)"]; 9 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)" style="filled" fillcolor=yellow];
10 [label="Call arguments union" style="filled" fillcolor=yellow]; 10 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
11 [label="Delegated constructor call: super<R|A|>(...)"]; 11 [label="Exit function <init>" style="filled" fillcolor=red];
12 [label="Exit function <init>" style="filled" fillcolor=red];
} }
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {13}; 7 -> {12};
7 -> {8} [color=red]; 7 -> {8} [color=red];
7 -> {13} [style=dashed]; 7 -> {12} [style=dashed];
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15 18};
15 -> {16 19}; 14 -> {18} [style=dashed];
15 -> {19} [style=dashed]; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {10} [color=red];
18 -> {10} [color=red]; 17 -> {8} [color=green];
18 -> {8} [color=green]; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23};
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
24 [label="Enter property" style="filled" fillcolor=red]; 23 [label="Enter property" style="filled" fillcolor=red];
25 [label="Access variable R|<local>/s|"]; 24 [label="Access variable R|<local>/s|"];
26 [label="Exit property" style="filled" fillcolor=red]; 25 [label="Exit property" style="filled" fillcolor=red];
} }
23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {33} [color=green];
26 -> {34} [color=green];
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
27 [label="Enter function foo" style="filled" fillcolor=red]; 26 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
28 [label="Enter block"]; 27 [label="Enter block"];
29 [label="Function call: this@R|/B|.R|/B.foo|()"]; 28 [label="Function call: this@R|/B|.R|/B.foo|()" style="filled" fillcolor=yellow];
30 [label="Exit block"]; 29 [label="Exit block"];
} }
31 [label="Exit function foo" style="filled" fillcolor=red]; 30 [label="Exit function foo" style="filled" fillcolor=red];
} }
26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31};
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
32 [label="Enter class B" style="filled" fillcolor=red]; 31 [label="Enter class B" style="filled" fillcolor=red];
33 [label="Part of class initialization"]; 32 [label="Part of class initialization"];
34 [label="Exit class B" style="filled" fillcolor=red]; 33 [label="Exit class B" style="filled" fillcolor=red];
} }
32 -> {33} [color=green]; 31 -> {32} [color=green];
33 -> {34} [style=dotted]; 32 -> {33} [style=dotted];
33 -> {24} [color=green]; 32 -> {23} [color=green];
33 -> {24} [style=dashed]; 32 -> {23} [style=dashed];
} }
@@ -38,7 +38,7 @@ digraph postponedLambdas_kt {
17 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 17 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
9 [label="Postponed exit from lambda"]; 9 [label="Postponed exit from lambda"];
10 [label="Function call: R|/foo|(...)"]; 10 [label="Function call: R|/foo|(...)" style="filled" fillcolor=yellow];
11 [label="Exit block"]; 11 [label="Exit block"];
} }
12 [label="Exit function test" style="filled" fillcolor=red]; 12 [label="Exit function test" style="filled" fillcolor=red];
@@ -50,13 +50,13 @@ digraph postponedLambdas_kt {
8 -> {9 13}; 8 -> {9 13};
8 -> {13} [style=dashed]; 8 -> {13} [style=dashed];
9 -> {10}; 9 -> {10};
9 -> {8} [color=green style=dashed];
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
13 -> {17 14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {9}; 17 -> {9};
17 -> {13} [color=green style=dashed];
} }
@@ -9,7 +9,7 @@ digraph propertiesAndInitBlocks_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
3 [label="Exit block"]; 3 [label="Exit block"];
} }
4 [label="Exit function run" style="filled" fillcolor=red]; 4 [label="Exit function run" style="filled" fillcolor=red];
@@ -84,9 +84,9 @@ digraph propertiesAndInitBlocks_kt {
36 [label="Enter block"]; 36 [label="Enter block"];
37 [label="Const: Int(1)"]; 37 [label="Const: Int(1)"];
38 [label="Const: Int(1)"]; 38 [label="Const: Int(1)"];
39 [label="Function call: Int(1).R|kotlin/Int.plus|(...)"]; 39 [label="Function call: Int(1).R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
40 [label="Variable declaration: lval c: R|kotlin/Int|"]; 40 [label="Variable declaration: lval c: R|kotlin/Int|"];
41 [label="Function call: R|java/lang/Exception.Exception|()"]; 41 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
42 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 42 [label="Throw: throw R|java/lang/Exception.Exception|()"];
43 [label="Stub" style="filled" fillcolor=gray]; 43 [label="Stub" style="filled" fillcolor=gray];
44 [label="Exit block" style="filled" fillcolor=gray]; 44 [label="Exit block" style="filled" fillcolor=gray];
@@ -108,7 +108,7 @@ digraph propertiesAndInitBlocks_kt {
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
46 [label="Enter function <init>" style="filled" fillcolor=red]; 46 [label="Enter function <init>" style="filled" fillcolor=red];
47 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 47 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
48 [label="Exit function <init>" style="filled" fillcolor=red]; 48 [label="Exit function <init>" style="filled" fillcolor=red];
} }
46 -> {47}; 46 -> {47};
@@ -120,7 +120,7 @@ digraph propertiesAndInitBlocks_kt {
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
50 [label="Enter block"]; 50 [label="Enter block"];
51 [label="Function call: R|java/lang/Exception.Exception|()"]; 51 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
52 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 52 [label="Throw: throw R|java/lang/Exception.Exception|()"];
53 [label="Stub" style="filled" fillcolor=gray]; 53 [label="Stub" style="filled" fillcolor=gray];
54 [label="Const: Int(1)" style="filled" fillcolor=gray]; 54 [label="Const: Int(1)" style="filled" fillcolor=gray];
@@ -170,7 +170,7 @@ digraph propertiesAndInitBlocks_kt {
subgraph cluster_16 { subgraph cluster_16 {
color=red color=red
65 [label="Enter function <init>" style="filled" fillcolor=red]; 65 [label="Enter function <init>" style="filled" fillcolor=red];
66 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 66 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
67 [label="Exit function <init>" style="filled" fillcolor=red]; 67 [label="Exit function <init>" style="filled" fillcolor=red];
} }
65 -> {66}; 65 -> {66};
@@ -182,7 +182,7 @@ digraph propertiesAndInitBlocks_kt {
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
69 [label="Enter block"]; 69 [label="Enter block"];
70 [label="Function call: R|java/lang/Exception.Exception|()"]; 70 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
71 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 71 [label="Throw: throw R|java/lang/Exception.Exception|()"];
72 [label="Stub" style="filled" fillcolor=gray]; 72 [label="Stub" style="filled" fillcolor=gray];
73 [label="Exit block" style="filled" fillcolor=gray]; 73 [label="Exit block" style="filled" fillcolor=gray];
@@ -209,29 +209,30 @@ digraph propertiesAndInitBlocks_kt {
color=blue color=blue
25 [label="Enter block"]; 25 [label="Enter block"];
26 [label="Exit local class <anonymous>"]; 26 [label="Exit local class <anonymous>"];
27 [label="Function call: R|java/lang/Exception.Exception|()"]; 27 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
28 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 28 [label="Throw: throw R|java/lang/Exception.Exception|()"];
29 [label="Stub" style="filled" fillcolor=gray]; 29 [label="Stub" style="filled" fillcolor=gray];
30 [label="Exit block" style="filled" fillcolor=gray]; 30 [label="Exit block" style="filled" fillcolor=gray];
} }
subgraph cluster_22 { 31 [label="Exit function anonymousFunction" style="filled" fillcolor=red style="filled" fillcolor=gray];
color=blue }
32 [label="Enter class InitializerLocalClass" style="filled" fillcolor=red]; subgraph cluster_22 {
33 [label="Part of class initialization"]; color=blue
34 [label="Exit class InitializerLocalClass" style="filled" fillcolor=red]; 32 [label="Enter class InitializerLocalClass" style="filled" fillcolor=red];
} 33 [label="Part of class initialization"];
31 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 34 [label="Exit class InitializerLocalClass" style="filled" fillcolor=red];
} }
77 [label="Postponed exit from lambda"]; 77 [label="Postponed exit from lambda"];
78 [label="Function call: R|/run|(...)"]; 78 [label="Function call: R|/run|(...)" style="filled" fillcolor=yellow];
79 [label="Exit property" style="filled" fillcolor=red]; 79 [label="Exit property" style="filled" fillcolor=red];
} }
75 -> {76}; 75 -> {76};
76 -> {77 24}; 76 -> {77 24};
76 -> {24} [style=dashed]; 76 -> {24} [style=dashed];
77 -> {78}; 77 -> {78};
77 -> {76} [color=green style=dashed];
78 -> {79}; 78 -> {79};
24 -> {31 25}; 24 -> {25};
25 -> {26}; 25 -> {26};
25 -> {35 46 49} [color=red]; 25 -> {35 46 49} [color=red];
26 -> {27}; 26 -> {27};
@@ -242,8 +243,7 @@ digraph propertiesAndInitBlocks_kt {
28 -> {29} [style=dotted]; 28 -> {29} [style=dotted];
29 -> {30} [style=dotted]; 29 -> {30} [style=dotted];
30 -> {31} [style=dotted]; 30 -> {31} [style=dotted];
31 -> {77}; 31 -> {77} [style=dotted];
31 -> {24} [color=green style=dashed];
32 -> {33} [color=green]; 32 -> {33} [color=green];
33 -> {34} [style=dotted]; 33 -> {34} [style=dotted];
33 -> {49} [color=green]; 33 -> {49} [color=green];
@@ -13,7 +13,7 @@ digraph returnValuesFromLambda_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function <init>" style="filled" fillcolor=red]; 2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 3 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
4 [label="Exit function <init>" style="filled" fillcolor=red]; 4 [label="Exit function <init>" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
@@ -29,7 +29,7 @@ digraph returnValuesFromLambda_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
7 [label="Enter function <init>" style="filled" fillcolor=red]; 7 [label="Enter function <init>" style="filled" fillcolor=red];
8 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 8 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
9 [label="Exit function <init>" style="filled" fillcolor=red]; 9 [label="Exit function <init>" style="filled" fillcolor=red];
} }
7 -> {8}; 7 -> {8};
@@ -51,170 +51,164 @@ digraph returnValuesFromLambda_kt {
14 [label="Postponed enter to lambda"]; 14 [label="Postponed enter to lambda"];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
21 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 20 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
22 [label="Enter block"]; 21 [label="Enter block"];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
23 [label="Enter when"]; 22 [label="Enter when"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
24 [label="Enter when branch condition "]; 23 [label="Enter when branch condition "];
25 [label="Access variable R|<local>/b|"]; 24 [label="Access variable R|<local>/b|"];
26 [label="Exit when branch condition"]; 25 [label="Exit when branch condition"];
} }
27 [label="Synthetic else branch"]; 26 [label="Synthetic else branch"];
28 [label="Enter when branch result"]; 27 [label="Enter when branch result"];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
29 [label="Enter block"]; 28 [label="Enter block"];
30 [label="Function call: R|/B.B|()"]; 29 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
31 [label="Jump: ^@run R|/B.B|()"]; 30 [label="Jump: ^@run R|/B.B|()"];
32 [label="Stub" style="filled" fillcolor=gray]; 31 [label="Stub" style="filled" fillcolor=gray];
33 [label="Exit block" style="filled" fillcolor=gray]; 32 [label="Exit block" style="filled" fillcolor=gray];
} }
34 [label="Exit when branch result" style="filled" fillcolor=gray]; 33 [label="Exit when branch result" style="filled" fillcolor=gray];
35 [label="Exit when"]; 34 [label="Exit when"];
} }
36 [label="Function call: R|/C.C|()"]; 35 [label="Function call: R|/C.C|()" style="filled" fillcolor=yellow];
37 [label="Exit block"]; 36 [label="Exit block"];
} }
38 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 37 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
15 [label="Call arguments union" style="filled" fillcolor=yellow]; 15 [label="Postponed exit from lambda"];
16 [label="Postponed exit from lambda"]; 16 [label="Function call: R|kotlin/run|<R|A|>(...)" style="filled" fillcolor=yellow];
17 [label="Function call: R|kotlin/run|<R|A|>(...)"]; 17 [label="Variable declaration: lval x: R|A|"];
18 [label="Variable declaration: lval x: R|A|"]; 18 [label="Exit block"];
19 [label="Exit block"];
} }
20 [label="Exit function test_1" style="filled" fillcolor=red]; 19 [label="Exit function test_1" style="filled" fillcolor=red];
} }
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {21}; 14 -> {20};
14 -> {16} [color=red]; 14 -> {15} [color=red];
14 -> {21} [style=dashed]; 14 -> {20} [style=dashed];
15 -> {17} [color=red]; 15 -> {16};
16 -> {17} [color=green]; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {27 26};
26 -> {28 27}; 26 -> {34};
27 -> {35}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {37};
31 -> {38}; 30 -> {31} [style=dotted];
31 -> {32} [style=dotted]; 31 -> {32} [style=dotted];
32 -> {33} [style=dotted]; 32 -> {33} [style=dotted];
33 -> {34} [style=dotted]; 33 -> {34} [style=dotted];
34 -> {35} [style=dotted]; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {16} [color=red];
38 -> {15} [color=red]; 37 -> {15} [color=green];
38 -> {16} [color=green];
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
39 [label="Enter function test_2" style="filled" fillcolor=red]; 38 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
40 [label="Enter block"]; 39 [label="Enter block"];
41 [label="Postponed enter to lambda"]; 40 [label="Postponed enter to lambda"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
48 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 46 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
49 [label="Enter block"]; 47 [label="Enter block"];
50 [label="Function call: R|/C.C|()"]; 48 [label="Function call: R|/C.C|()" style="filled" fillcolor=yellow];
51 [label="Jump: ^@run R|/C.C|()"]; 49 [label="Jump: ^@run R|/C.C|()"];
52 [label="Stub" style="filled" fillcolor=gray]; 50 [label="Stub" style="filled" fillcolor=gray];
53 [label="Exit block" style="filled" fillcolor=gray]; 51 [label="Exit block" style="filled" fillcolor=gray];
} }
54 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 52 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
42 [label="Call arguments union" style="filled" fillcolor=yellow]; 41 [label="Postponed exit from lambda"];
43 [label="Postponed exit from lambda"]; 42 [label="Function call: R|kotlin/run|<R|C|>(...)" style="filled" fillcolor=yellow];
44 [label="Function call: R|kotlin/run|<R|C|>(...)"]; 43 [label="Variable declaration: lval x: R|C|"];
45 [label="Variable declaration: lval x: R|C|"]; 44 [label="Exit block"];
46 [label="Exit block"];
} }
47 [label="Exit function test_2" style="filled" fillcolor=red]; 45 [label="Exit function test_2" style="filled" fillcolor=red];
} }
38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {46};
41 -> {48}; 40 -> {41} [color=red];
41 -> {43} [color=red]; 40 -> {46} [style=dashed];
41 -> {48} [style=dashed]; 41 -> {42};
42 -> {44} [color=red]; 42 -> {43};
43 -> {44} [color=green]; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {52};
50 -> {51}; 49 -> {50} [style=dotted];
51 -> {54}; 50 -> {51} [style=dotted];
51 -> {52} [style=dotted]; 51 -> {52} [style=dotted];
52 -> {53} [style=dotted]; 52 -> {42} [color=red];
53 -> {54} [style=dotted]; 52 -> {41} [color=green];
54 -> {42} [color=red];
54 -> {43} [color=green];
subgraph cluster_16 { subgraph cluster_16 {
color=red color=red
55 [label="Enter function test_3" style="filled" fillcolor=red]; 53 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
56 [label="Enter block"]; 54 [label="Enter block"];
57 [label="Postponed enter to lambda"]; 55 [label="Postponed enter to lambda"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
65 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 62 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
66 [label="Enter block"]; 63 [label="Enter block"];
67 [label="Jump: ^test_3 Unit"]; 64 [label="Jump: ^test_3 Unit"];
68 [label="Stub" style="filled" fillcolor=gray]; 65 [label="Stub" style="filled" fillcolor=gray];
69 [label="Exit block" style="filled" fillcolor=gray]; 66 [label="Exit block" style="filled" fillcolor=gray];
} }
70 [label="Exit function anonymousFunction" style="filled" fillcolor=red style="filled" fillcolor=gray]; 67 [label="Exit function anonymousFunction" style="filled" fillcolor=red style="filled" fillcolor=gray];
} }
58 [label="Call arguments union" style="filled" fillcolor=gray]; 56 [label="Postponed exit from lambda" style="filled" fillcolor=gray];
59 [label="Postponed exit from lambda" style="filled" fillcolor=gray]; 57 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
60 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray]; 58 [label="Stub" style="filled" fillcolor=gray];
61 [label="Stub" style="filled" fillcolor=gray]; 59 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray];
62 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray]; 60 [label="Exit block" style="filled" fillcolor=gray];
63 [label="Exit block" style="filled" fillcolor=gray];
} }
64 [label="Exit function test_3" style="filled" fillcolor=red]; 61 [label="Exit function test_3" style="filled" fillcolor=red];
} }
55 -> {56}; 53 -> {54};
56 -> {57}; 54 -> {55};
57 -> {65}; 55 -> {62};
57 -> {59} [color=red]; 55 -> {56} [color=red];
57 -> {65} [style=dashed]; 55 -> {62} [style=dashed];
58 -> {60} [style=dotted]; 56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
57 -> {61} [style=dotted] [label=onUncaughtException];
58 -> {59} [style=dotted];
59 -> {60} [style=dotted]; 59 -> {60} [style=dotted];
60 -> {61} [style=dotted]; 60 -> {61} [style=dotted];
60 -> {64} [style=dotted] [label=onUncaughtException]; 62 -> {63};
61 -> {62} [style=dotted]; 63 -> {64};
62 -> {63} [style=dotted]; 64 -> {61};
63 -> {64} [style=dotted]; 64 -> {65} [style=dotted];
65 -> {66}; 65 -> {66} [style=dotted];
66 -> {67}; 66 -> {67} [style=dotted];
67 -> {64}; 67 -> {56 57} [style=dotted];
67 -> {68} [style=dotted];
68 -> {69} [style=dotted];
69 -> {70} [style=dotted];
70 -> {59 58} [style=dotted];
} }
@@ -39,10 +39,10 @@ digraph safeCalls_kt {
9 [label="Enter block"]; 9 [label="Enter block"];
10 [label="Access variable R|<local>/x|"]; 10 [label="Access variable R|<local>/x|"];
11 [label="Enter safe call"]; 11 [label="Enter safe call"];
12 [label="Function call: $subj$.R|/A.foo|()"]; 12 [label="Function call: $subj$.R|/A.foo|()" style="filled" fillcolor=yellow];
13 [label="Enter safe call"]; 13 [label="Enter safe call"];
14 [label="Const: String()"]; 14 [label="Const: String()"];
15 [label="Function call: $subj$.R|/A.bar|(...)"]; 15 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow];
16 [label="Exit safe call"]; 16 [label="Exit safe call"];
17 [label="Exit safe call"]; 17 [label="Exit safe call"];
18 [label="Exit block"]; 18 [label="Exit block"];
@@ -105,7 +105,7 @@ digraph safeCalls_kt {
36 [label="Enter safe call"]; 36 [label="Enter safe call"];
37 [label="Access variable R|<local>/y|"]; 37 [label="Access variable R|<local>/y|"];
38 [label="Type operator: (R|<local>/y| as R|kotlin/String|)"]; 38 [label="Type operator: (R|<local>/y| as R|kotlin/String|)"];
39 [label="Function call: $subj$.R|/A.bar|(...)"]; 39 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow];
40 [label="Exit safe call"]; 40 [label="Exit safe call"];
41 [label="Const: Null(null)"]; 41 [label="Const: Null(null)"];
42 [label="Equality operator !="]; 42 [label="Equality operator !="];
@@ -27,9 +27,9 @@ digraph simple_kt {
7 [label="Variable declaration: lval x: R|kotlin/Int|"]; 7 [label="Variable declaration: lval x: R|kotlin/Int|"];
8 [label="Access variable R|<local>/x|"]; 8 [label="Access variable R|<local>/x|"];
9 [label="Const: Int(1)"]; 9 [label="Const: Int(1)"];
10 [label="Function call: R|<local>/x|.R|kotlin/Int.plus|(...)"]; 10 [label="Function call: R|<local>/x|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
11 [label="Variable declaration: lval y: R|kotlin/Int|"]; 11 [label="Variable declaration: lval y: R|kotlin/Int|"];
12 [label="Function call: R|/foo|()"]; 12 [label="Function call: R|/foo|()" style="filled" fillcolor=yellow];
13 [label="Exit block"]; 13 [label="Exit block"];
} }
14 [label="Exit function test" style="filled" fillcolor=red]; 14 [label="Exit function test" style="filled" fillcolor=red];
@@ -202,7 +202,7 @@ digraph tryCatch_kt {
color=blue color=blue
70 [label="Enter when branch condition "]; 70 [label="Enter when branch condition "];
71 [label="Access variable R|<local>/b|"]; 71 [label="Access variable R|<local>/b|"];
72 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 72 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
73 [label="Exit when branch condition"]; 73 [label="Exit when branch condition"];
} }
74 [label="Synthetic else branch"]; 74 [label="Synthetic else branch"];
@@ -19,7 +19,7 @@ digraph variableInitializedInTryBlock_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
5 [label="Enter block"]; 5 [label="Enter block"];
6 [label="Function call: R|/getStringOrNull|()"]; 6 [label="Function call: R|/getStringOrNull|()" style="filled" fillcolor=yellow];
7 [label="Exit lhs of ?:"]; 7 [label="Exit lhs of ?:"];
8 [label="Enter rhs of ?:"]; 8 [label="Enter rhs of ?:"];
9 [label="Jump: ^test Unit"]; 9 [label="Jump: ^test Unit"];
@@ -42,7 +42,7 @@ digraph variableInitializedInTryBlock_kt {
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
22 [label="Enter block"]; 22 [label="Enter block"];
23 [label="Function call: R|/test|()"]; 23 [label="Function call: R|/test|()" style="filled" fillcolor=yellow];
24 [label="Exit block"]; 24 [label="Exit block"];
} }
25 [label="Exit finally"]; 25 [label="Exit finally"];
@@ -50,7 +50,7 @@ digraph variableInitializedInTryBlock_kt {
26 [label="Try expression exit"]; 26 [label="Try expression exit"];
} }
27 [label="Access variable R|<local>/b|"]; 27 [label="Access variable R|<local>/b|"];
28 [label="Function call: R|/takeBoolean|(...)"]; 28 [label="Function call: R|/takeBoolean|(...)" style="filled" fillcolor=yellow];
29 [label="Exit block"]; 29 [label="Exit block"];
} }
30 [label="Exit function test" style="filled" fillcolor=red]; 30 [label="Exit function test" style="filled" fillcolor=red];
+2 -2
View File
@@ -25,7 +25,7 @@ digraph when_kt {
8 [label="Enter when branch condition "]; 8 [label="Enter when branch condition "];
9 [label="Access variable R|<local>/x|"]; 9 [label="Access variable R|<local>/x|"];
10 [label="Const: Int(2)"]; 10 [label="Const: Int(2)"];
11 [label="Function call: R|<local>/x|.R|kotlin/Int.rem|(...)"]; 11 [label="Function call: R|<local>/x|.R|kotlin/Int.rem|(...)" style="filled" fillcolor=yellow];
12 [label="Const: Int(0)"]; 12 [label="Const: Int(0)"];
13 [label="Equality operator =="]; 13 [label="Equality operator =="];
14 [label="Exit when branch condition"]; 14 [label="Exit when branch condition"];
@@ -35,7 +35,7 @@ digraph when_kt {
15 [label="Enter when branch condition "]; 15 [label="Enter when branch condition "];
16 [label="Const: Int(1)"]; 16 [label="Const: Int(1)"];
17 [label="Const: Int(1)"]; 17 [label="Const: Int(1)"];
18 [label="Function call: Int(1).R|kotlin/Int.minus|(...)"]; 18 [label="Function call: Int(1).R|kotlin/Int.minus|(...)" style="filled" fillcolor=yellow];
19 [label="Const: Int(0)"]; 19 [label="Const: Int(0)"];
20 [label="Equality operator =="]; 20 [label="Equality operator =="];
21 [label="Exit when branch condition"]; 21 [label="Exit when branch condition"];
@@ -13,47 +13,45 @@ digraph classCallInLambda_kt {
3 [label="Postponed enter to lambda"]; 3 [label="Postponed enter to lambda"];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
11 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 10 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
12 [label="Enter block"]; 11 [label="Enter block"];
13 [label="Access variable R|<local>/it|"]; 12 [label="Access variable R|<local>/it|"];
14 [label="::class call"]; 13 [label="::class call"];
15 [label="Exit block"]; 14 [label="Exit block"];
} }
16 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 15 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
4 [label="Call arguments union" style="filled" fillcolor=yellow]; 4 [label="Postponed exit from lambda"];
5 [label="Postponed exit from lambda"]; 5 [label="Function call: R|<local>/x|.R|kotlin/let|<R|kotlin/String|, R|kotlin/reflect/KClass<out kotlin/String>|>(...)" style="filled" fillcolor=yellow];
6 [label="Function call: R|<local>/x|.R|kotlin/let|<R|kotlin/String|, R|kotlin/reflect/KClass<out kotlin/String>|>(...)"]; 6 [label="Jump: ^test R|<local>/x|.R|kotlin/let|<R|kotlin/String|, R|kotlin/reflect/KClass<out kotlin/String>|>(<L> = let@fun <anonymous>(it: R|kotlin/String|): R|kotlin/reflect/KClass<out kotlin/String>| <inline=Inline, kind=EXACTLY_ONCE> {
7 [label="Jump: ^test R|<local>/x|.R|kotlin/let|<R|kotlin/String|, R|kotlin/reflect/KClass<out kotlin/String>|>(<L> = let@fun <anonymous>(it: R|kotlin/String|): R|kotlin/reflect/KClass<out kotlin/String>| <inline=Inline, kind=EXACTLY_ONCE> {
^ <getClass>(R|<local>/it|) ^ <getClass>(R|<local>/it|)
} }
)"]; )"];
8 [label="Stub" style="filled" fillcolor=gray]; 7 [label="Stub" style="filled" fillcolor=gray];
9 [label="Exit block" style="filled" fillcolor=gray]; 8 [label="Exit block" style="filled" fillcolor=gray];
} }
10 [label="Exit function test" style="filled" fillcolor=red]; 9 [label="Exit function test" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {11}; 3 -> {10};
3 -> {5} [color=red]; 3 -> {4} [color=red];
3 -> {11} [style=dashed]; 3 -> {10} [style=dashed];
4 -> {6} [color=red]; 4 -> {5};
5 -> {6} [color=green]; 5 -> {6};
6 -> {7}; 6 -> {9};
7 -> {10}; 6 -> {7} [style=dotted];
7 -> {8} [style=dotted]; 7 -> {8} [style=dotted];
8 -> {9} [style=dotted]; 8 -> {9} [style=dotted];
9 -> {10} [style=dotted]; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {5} [color=red];
16 -> {4} [color=red]; 15 -> {4} [color=green];
16 -> {5} [color=green];
} }
@@ -6,7 +6,7 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Enum<SomeEnum>|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Enum<SomeEnum>|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -22,7 +22,7 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter function <init>" style="filled" fillcolor=red]; 5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 6 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
7 [label="Exit function <init>" style="filled" fillcolor=red]; 7 [label="Exit function <init>" style="filled" fillcolor=red];
} }
5 -> {6}; 5 -> {6};
@@ -62,7 +62,7 @@ digraph exhaustiveWhenAndDNNType_kt {
color=blue color=blue
19 [label="Enter when"]; 19 [label="Enter when"];
20 [label="Access variable R|<local>/flag|"]; 20 [label="Access variable R|<local>/flag|"];
21 [label="Check not null: R|<local>/flag|!!"]; 21 [label="Check not null: R|<local>/flag|!!" style="filled" fillcolor=yellow];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
22 [label="Enter when branch condition "]; 22 [label="Enter when branch condition "];
@@ -85,7 +85,7 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
35 [label="Enter block"]; 35 [label="Enter block"];
36 [label="Function call: R|/B.B|()"]; 36 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
37 [label="Exit block"]; 37 [label="Exit block"];
} }
38 [label="Exit when branch result"]; 38 [label="Exit when branch result"];
@@ -93,7 +93,7 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
40 [label="Enter block"]; 40 [label="Enter block"];
41 [label="Function call: R|/B.B|()"]; 41 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
42 [label="Exit block"]; 42 [label="Exit block"];
} }
43 [label="Exit when branch result"]; 43 [label="Exit when branch result"];
@@ -101,7 +101,7 @@ digraph exhaustiveWhenAndDNNType_kt {
} }
45 [label="Variable declaration: lval b: R|B|"]; 45 [label="Variable declaration: lval b: R|B|"];
46 [label="Access variable R|<local>/b|"]; 46 [label="Access variable R|<local>/b|"];
47 [label="Function call: R|/takeB|(...)"]; 47 [label="Function call: R|/takeB|(...)" style="filled" fillcolor=yellow];
48 [label="Exit block"]; 48 [label="Exit block"];
} }
49 [label="Exit function test_1" style="filled" fillcolor=red]; 49 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -155,7 +155,7 @@ digraph exhaustiveWhenAndDNNType_kt {
color=blue color=blue
55 [label="Enter when"]; 55 [label="Enter when"];
56 [label="Access variable R|<local>/flag|"]; 56 [label="Access variable R|<local>/flag|"];
57 [label="Check not null: R|<local>/flag|!!"]; 57 [label="Check not null: R|<local>/flag|!!" style="filled" fillcolor=yellow];
subgraph cluster_16 { subgraph cluster_16 {
color=blue color=blue
58 [label="Enter when branch condition "]; 58 [label="Enter when branch condition "];
@@ -178,7 +178,7 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
71 [label="Enter block"]; 71 [label="Enter block"];
72 [label="Function call: R|/B.B|()"]; 72 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
73 [label="Exit block"]; 73 [label="Exit block"];
} }
74 [label="Exit when branch result"]; 74 [label="Exit when branch result"];
@@ -186,7 +186,7 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
76 [label="Enter block"]; 76 [label="Enter block"];
77 [label="Function call: R|/B.B|()"]; 77 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
78 [label="Exit block"]; 78 [label="Exit block"];
} }
79 [label="Exit when branch result"]; 79 [label="Exit when branch result"];
@@ -194,7 +194,7 @@ digraph exhaustiveWhenAndDNNType_kt {
} }
81 [label="Variable declaration: lval b: R|B|"]; 81 [label="Variable declaration: lval b: R|B|"];
82 [label="Access variable R|<local>/b|"]; 82 [label="Access variable R|<local>/b|"];
83 [label="Function call: R|/takeB|(...)"]; 83 [label="Function call: R|/takeB|(...)" style="filled" fillcolor=yellow];
84 [label="Exit block"]; 84 [label="Exit block"];
} }
85 [label="Exit function test_2" style="filled" fillcolor=red]; 85 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -270,7 +270,7 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_25 { subgraph cluster_25 {
color=blue color=blue
106 [label="Enter block"]; 106 [label="Enter block"];
107 [label="Function call: R|/B.B|()"]; 107 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
108 [label="Exit block"]; 108 [label="Exit block"];
} }
109 [label="Exit when branch result"]; 109 [label="Exit when branch result"];
@@ -278,7 +278,7 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_26 { subgraph cluster_26 {
color=blue color=blue
111 [label="Enter block"]; 111 [label="Enter block"];
112 [label="Function call: R|/B.B|()"]; 112 [label="Function call: R|/B.B|()" style="filled" fillcolor=yellow];
113 [label="Exit block"]; 113 [label="Exit block"];
} }
114 [label="Exit when branch result"]; 114 [label="Exit when branch result"];
@@ -286,7 +286,7 @@ digraph exhaustiveWhenAndDNNType_kt {
} }
116 [label="Variable declaration: lval b: R|B|"]; 116 [label="Variable declaration: lval b: R|B|"];
117 [label="Access variable R|<local>/b|"]; 117 [label="Access variable R|<local>/b|"];
118 [label="Function call: R|/takeB|(...)"]; 118 [label="Function call: R|/takeB|(...)" style="filled" fillcolor=yellow];
119 [label="Exit block"]; 119 [label="Exit block"];
} }
120 [label="Exit function test_3" style="filled" fillcolor=red]; 120 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -6,7 +6,7 @@ digraph secondaryConstructorCfg_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -38,7 +38,7 @@ digraph secondaryConstructorCfg_kt {
color=red color=red
10 [label="Enter function <init>" style="filled" fillcolor=red]; 10 [label="Enter function <init>" style="filled" fillcolor=red];
11 [label="Access variable R|<local>/p0|"]; 11 [label="Access variable R|<local>/p0|"];
12 [label="Delegated constructor call: this<R|B|>(...)"]; 12 [label="Delegated constructor call: this<R|B|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
13 [label="Enter block"]; 13 [label="Enter block"];
@@ -24,11 +24,11 @@ digraph bangbang_kt {
color=blue color=blue
5 [label="Enter block"]; 5 [label="Enter block"];
6 [label="Access variable R|<local>/a|"]; 6 [label="Access variable R|<local>/a|"];
7 [label="Check not null: R|<local>/a|!!"]; 7 [label="Check not null: R|<local>/a|!!" style="filled" fillcolor=yellow];
8 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 8 [label="Function call: R|<local>/a|!!.R|/A.foo|()" style="filled" fillcolor=yellow];
9 [label="Access variable R|<local>/a|"]; 9 [label="Access variable R|<local>/a|"];
10 [label="Smart cast: R|<local>/a|"]; 10 [label="Smart cast: R|<local>/a|"];
11 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 11 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
12 [label="Exit block"]; 12 [label="Exit block"];
} }
13 [label="Exit function test_0" style="filled" fillcolor=red]; 13 [label="Exit function test_0" style="filled" fillcolor=red];
@@ -56,8 +56,8 @@ digraph bangbang_kt {
color=blue color=blue
17 [label="Enter when branch condition "]; 17 [label="Enter when branch condition "];
18 [label="Access variable R|<local>/a|"]; 18 [label="Access variable R|<local>/a|"];
19 [label="Check not null: R|<local>/a|!!"]; 19 [label="Check not null: R|<local>/a|!!" style="filled" fillcolor=yellow];
20 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 20 [label="Function call: R|<local>/a|!!.R|/A.foo|()" style="filled" fillcolor=yellow];
21 [label="Exit when branch condition"]; 21 [label="Exit when branch condition"];
} }
22 [label="Synthetic else branch"]; 22 [label="Synthetic else branch"];
@@ -67,7 +67,7 @@ digraph bangbang_kt {
24 [label="Enter block"]; 24 [label="Enter block"];
25 [label="Access variable R|<local>/a|"]; 25 [label="Access variable R|<local>/a|"];
26 [label="Smart cast: R|<local>/a|"]; 26 [label="Smart cast: R|<local>/a|"];
27 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 27 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
28 [label="Exit block"]; 28 [label="Exit block"];
} }
29 [label="Exit when branch result"]; 29 [label="Exit when branch result"];
@@ -75,7 +75,7 @@ digraph bangbang_kt {
} }
31 [label="Access variable R|<local>/a|"]; 31 [label="Access variable R|<local>/a|"];
32 [label="Smart cast: R|<local>/a|"]; 32 [label="Smart cast: R|<local>/a|"];
33 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 33 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
34 [label="Exit block"]; 34 [label="Exit block"];
} }
35 [label="Exit function test_1" style="filled" fillcolor=red]; 35 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -118,8 +118,8 @@ digraph bangbang_kt {
color=blue color=blue
40 [label="Enter &&"]; 40 [label="Enter &&"];
41 [label="Access variable R|<local>/a|"]; 41 [label="Access variable R|<local>/a|"];
42 [label="Check not null: R|<local>/a|!!"]; 42 [label="Check not null: R|<local>/a|!!" style="filled" fillcolor=yellow];
43 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 43 [label="Function call: R|<local>/a|!!.R|/A.foo|()" style="filled" fillcolor=yellow];
44 [label="Exit left part of &&"]; 44 [label="Exit left part of &&"];
45 [label="Enter right part of &&"]; 45 [label="Enter right part of &&"];
46 [label="Access variable R|<local>/b|"]; 46 [label="Access variable R|<local>/b|"];
@@ -134,7 +134,7 @@ digraph bangbang_kt {
51 [label="Enter block"]; 51 [label="Enter block"];
52 [label="Access variable R|<local>/a|"]; 52 [label="Access variable R|<local>/a|"];
53 [label="Smart cast: R|<local>/a|"]; 53 [label="Smart cast: R|<local>/a|"];
54 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 54 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
55 [label="Exit block"]; 55 [label="Exit block"];
} }
56 [label="Exit when branch result"]; 56 [label="Exit when branch result"];
@@ -142,7 +142,7 @@ digraph bangbang_kt {
} }
58 [label="Access variable R|<local>/a|"]; 58 [label="Access variable R|<local>/a|"];
59 [label="Smart cast: R|<local>/a|"]; 59 [label="Smart cast: R|<local>/a|"];
60 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 60 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
61 [label="Exit block"]; 61 [label="Exit block"];
} }
62 [label="Exit function test_2" style="filled" fillcolor=red]; 62 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -193,8 +193,8 @@ digraph bangbang_kt {
69 [label="Exit left part of &&"]; 69 [label="Exit left part of &&"];
70 [label="Enter right part of &&"]; 70 [label="Enter right part of &&"];
71 [label="Access variable R|<local>/a|"]; 71 [label="Access variable R|<local>/a|"];
72 [label="Check not null: R|<local>/a|!!"]; 72 [label="Check not null: R|<local>/a|!!" style="filled" fillcolor=yellow];
73 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 73 [label="Function call: R|<local>/a|!!.R|/A.foo|()" style="filled" fillcolor=yellow];
74 [label="Exit &&"]; 74 [label="Exit &&"];
} }
75 [label="Exit when branch condition"]; 75 [label="Exit when branch condition"];
@@ -206,14 +206,14 @@ digraph bangbang_kt {
78 [label="Enter block"]; 78 [label="Enter block"];
79 [label="Access variable R|<local>/a|"]; 79 [label="Access variable R|<local>/a|"];
80 [label="Smart cast: R|<local>/a|"]; 80 [label="Smart cast: R|<local>/a|"];
81 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 81 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
82 [label="Exit block"]; 82 [label="Exit block"];
} }
83 [label="Exit when branch result"]; 83 [label="Exit when branch result"];
84 [label="Exit when"]; 84 [label="Exit when"];
} }
85 [label="Access variable R|<local>/a|"]; 85 [label="Access variable R|<local>/a|"];
86 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 86 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
87 [label="Exit block"]; 87 [label="Exit block"];
} }
88 [label="Exit function test_3" style="filled" fillcolor=red]; 88 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -260,8 +260,8 @@ digraph bangbang_kt {
color=blue color=blue
93 [label="Enter ||"]; 93 [label="Enter ||"];
94 [label="Access variable R|<local>/a|"]; 94 [label="Access variable R|<local>/a|"];
95 [label="Check not null: R|<local>/a|!!"]; 95 [label="Check not null: R|<local>/a|!!" style="filled" fillcolor=yellow];
96 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 96 [label="Function call: R|<local>/a|!!.R|/A.foo|()" style="filled" fillcolor=yellow];
97 [label="Exit left part of ||"]; 97 [label="Exit left part of ||"];
98 [label="Enter right part of ||"]; 98 [label="Enter right part of ||"];
99 [label="Access variable R|<local>/b|"]; 99 [label="Access variable R|<local>/b|"];
@@ -276,7 +276,7 @@ digraph bangbang_kt {
104 [label="Enter block"]; 104 [label="Enter block"];
105 [label="Access variable R|<local>/a|"]; 105 [label="Access variable R|<local>/a|"];
106 [label="Smart cast: R|<local>/a|"]; 106 [label="Smart cast: R|<local>/a|"];
107 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 107 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
108 [label="Exit block"]; 108 [label="Exit block"];
} }
109 [label="Exit when branch result"]; 109 [label="Exit when branch result"];
@@ -284,7 +284,7 @@ digraph bangbang_kt {
} }
111 [label="Access variable R|<local>/a|"]; 111 [label="Access variable R|<local>/a|"];
112 [label="Smart cast: R|<local>/a|"]; 112 [label="Smart cast: R|<local>/a|"];
113 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 113 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
114 [label="Exit block"]; 114 [label="Exit block"];
} }
115 [label="Exit function test_4" style="filled" fillcolor=red]; 115 [label="Exit function test_4" style="filled" fillcolor=red];
@@ -335,8 +335,8 @@ digraph bangbang_kt {
122 [label="Exit left part of ||"]; 122 [label="Exit left part of ||"];
123 [label="Enter right part of ||"]; 123 [label="Enter right part of ||"];
124 [label="Access variable R|<local>/a|"]; 124 [label="Access variable R|<local>/a|"];
125 [label="Check not null: R|<local>/a|!!"]; 125 [label="Check not null: R|<local>/a|!!" style="filled" fillcolor=yellow];
126 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 126 [label="Function call: R|<local>/a|!!.R|/A.foo|()" style="filled" fillcolor=yellow];
127 [label="Exit ||"]; 127 [label="Exit ||"];
} }
128 [label="Exit when branch condition"]; 128 [label="Exit when branch condition"];
@@ -347,14 +347,14 @@ digraph bangbang_kt {
color=blue color=blue
131 [label="Enter block"]; 131 [label="Enter block"];
132 [label="Access variable R|<local>/a|"]; 132 [label="Access variable R|<local>/a|"];
133 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 133 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
134 [label="Exit block"]; 134 [label="Exit block"];
} }
135 [label="Exit when branch result"]; 135 [label="Exit when branch result"];
136 [label="Exit when"]; 136 [label="Exit when"];
} }
137 [label="Access variable R|<local>/a|"]; 137 [label="Access variable R|<local>/a|"];
138 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 138 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
139 [label="Exit block"]; 139 [label="Exit block"];
} }
140 [label="Exit function test_5" style="filled" fillcolor=red]; 140 [label="Exit function test_5" style="filled" fillcolor=red];
@@ -391,8 +391,8 @@ digraph bangbang_kt {
color=blue color=blue
142 [label="Enter block"]; 142 [label="Enter block"];
143 [label="Access variable R|<local>/x|"]; 143 [label="Access variable R|<local>/x|"];
144 [label="Check not null: R|<local>/x|!!"]; 144 [label="Check not null: R|<local>/x|!!" style="filled" fillcolor=yellow];
145 [label="Function call: R|<local>/x|!!.R|/A.foo|()"]; 145 [label="Function call: R|<local>/x|!!.R|/A.foo|()" style="filled" fillcolor=yellow];
146 [label="Exit block"]; 146 [label="Exit block"];
} }
147 [label="Exit function test_6" style="filled" fillcolor=red]; 147 [label="Exit function test_6" style="filled" fillcolor=red];
@@ -411,8 +411,8 @@ digraph bangbang_kt {
color=blue color=blue
149 [label="Enter block"]; 149 [label="Enter block"];
150 [label="Access variable R|<local>/x|"]; 150 [label="Access variable R|<local>/x|"];
151 [label="Check not null: R|<local>/x|!!"]; 151 [label="Check not null: R|<local>/x|!!" style="filled" fillcolor=yellow];
152 [label="Function call: R|<local>/x|!!.R|/A.foo|()"]; 152 [label="Function call: R|<local>/x|!!.R|/A.foo|()" style="filled" fillcolor=yellow];
153 [label="Exit block"]; 153 [label="Exit block"];
} }
154 [label="Exit function test_7" style="filled" fillcolor=red]; 154 [label="Exit function test_7" style="filled" fillcolor=red];
@@ -85,13 +85,13 @@ digraph booleanOperators_kt {
30 [label="Enter block"]; 30 [label="Enter block"];
31 [label="Access variable R|<local>/x|"]; 31 [label="Access variable R|<local>/x|"];
32 [label="Smart cast: R|<local>/x|"]; 32 [label="Smart cast: R|<local>/x|"];
33 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 33 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
34 [label="Access variable R|<local>/x|"]; 34 [label="Access variable R|<local>/x|"];
35 [label="Smart cast: R|<local>/x|"]; 35 [label="Smart cast: R|<local>/x|"];
36 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 36 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
37 [label="Access variable R|<local>/x|"]; 37 [label="Access variable R|<local>/x|"];
38 [label="Smart cast: R|<local>/x|"]; 38 [label="Smart cast: R|<local>/x|"];
39 [label="Function call: R|<local>/x|.R|/C.baz|()"]; 39 [label="Function call: R|<local>/x|.R|/C.baz|()" style="filled" fillcolor=yellow];
40 [label="Exit block"]; 40 [label="Exit block"];
} }
41 [label="Exit when branch result"]; 41 [label="Exit when branch result"];
@@ -164,13 +164,13 @@ digraph booleanOperators_kt {
60 [label="Enter block"]; 60 [label="Enter block"];
61 [label="Access variable R|<local>/x|"]; 61 [label="Access variable R|<local>/x|"];
62 [label="Smart cast: R|<local>/x|"]; 62 [label="Smart cast: R|<local>/x|"];
63 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 63 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
64 [label="Access variable R|<local>/x|"]; 64 [label="Access variable R|<local>/x|"];
65 [label="Smart cast: R|<local>/x|"]; 65 [label="Smart cast: R|<local>/x|"];
66 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"]; 66 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()" style="filled" fillcolor=yellow];
67 [label="Access variable R|<local>/x|"]; 67 [label="Access variable R|<local>/x|"];
68 [label="Smart cast: R|<local>/x|"]; 68 [label="Smart cast: R|<local>/x|"];
69 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"]; 69 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()" style="filled" fillcolor=yellow];
70 [label="Exit block"]; 70 [label="Exit block"];
} }
71 [label="Exit when branch result"]; 71 [label="Exit when branch result"];
@@ -224,7 +224,7 @@ digraph booleanOperators_kt {
78 [label="Enter when branch condition "]; 78 [label="Enter when branch condition "];
79 [label="Access variable R|<local>/x|"]; 79 [label="Access variable R|<local>/x|"];
80 [label="Type operator: (R|<local>/x| !is R|A|)"]; 80 [label="Type operator: (R|<local>/x| !is R|A|)"];
81 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()"]; 81 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
82 [label="Exit when branch condition"]; 82 [label="Exit when branch condition"];
} }
83 [label="Synthetic else branch"]; 83 [label="Synthetic else branch"];
@@ -234,7 +234,7 @@ digraph booleanOperators_kt {
85 [label="Enter block"]; 85 [label="Enter block"];
86 [label="Access variable R|<local>/x|"]; 86 [label="Access variable R|<local>/x|"];
87 [label="Smart cast: R|<local>/x|"]; 87 [label="Smart cast: R|<local>/x|"];
88 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 88 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
89 [label="Exit block"]; 89 [label="Exit block"];
} }
90 [label="Exit when branch result"]; 90 [label="Exit when branch result"];
@@ -358,7 +358,7 @@ digraph booleanOperators_kt {
130 [label="Enter right part of &&"]; 130 [label="Enter right part of &&"];
131 [label="Access variable R|<local>/x|"]; 131 [label="Access variable R|<local>/x|"];
132 [label="Smart cast: R|<local>/x|"]; 132 [label="Smart cast: R|<local>/x|"];
133 [label="Function call: R|<local>/x|.R|/A.bool|()"]; 133 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=yellow];
134 [label="Exit &&"]; 134 [label="Exit &&"];
} }
135 [label="Exit when branch condition"]; 135 [label="Exit when branch condition"];
@@ -370,7 +370,7 @@ digraph booleanOperators_kt {
138 [label="Enter block"]; 138 [label="Enter block"];
139 [label="Access variable R|<local>/x|"]; 139 [label="Access variable R|<local>/x|"];
140 [label="Smart cast: R|<local>/x|"]; 140 [label="Smart cast: R|<local>/x|"];
141 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 141 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
142 [label="Exit block"]; 142 [label="Exit block"];
} }
143 [label="Exit when branch result"]; 143 [label="Exit when branch result"];
@@ -419,7 +419,7 @@ digraph booleanOperators_kt {
150 [label="Enter when branch condition "]; 150 [label="Enter when branch condition "];
151 [label="Access variable R|<local>/x|"]; 151 [label="Access variable R|<local>/x|"];
152 [label="Type operator: (R|<local>/x| !is R|A|)"]; 152 [label="Type operator: (R|<local>/x| !is R|A|)"];
153 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()"]; 153 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
154 [label="Exit when branch condition"]; 154 [label="Exit when branch condition"];
} }
155 [label="Synthetic else branch"]; 155 [label="Synthetic else branch"];
@@ -429,7 +429,7 @@ digraph booleanOperators_kt {
157 [label="Enter block"]; 157 [label="Enter block"];
158 [label="Access variable R|<local>/x|"]; 158 [label="Access variable R|<local>/x|"];
159 [label="Smart cast: R|<local>/x|"]; 159 [label="Smart cast: R|<local>/x|"];
160 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 160 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
161 [label="Exit block"]; 161 [label="Exit block"];
} }
162 [label="Exit when branch result"]; 162 [label="Exit when branch result"];
@@ -488,7 +488,7 @@ digraph booleanOperators_kt {
color=blue color=blue
180 [label="Enter block"]; 180 [label="Enter block"];
181 [label="Access variable R|<local>/x|"]; 181 [label="Access variable R|<local>/x|"];
182 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"]; 182 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
183 [label="Exit block"]; 183 [label="Exit block"];
} }
184 [label="Exit when branch result"]; 184 [label="Exit when branch result"];
@@ -550,7 +550,7 @@ digraph booleanOperators_kt {
color=blue color=blue
202 [label="Enter block"]; 202 [label="Enter block"];
203 [label="Access variable R|<local>/x|"]; 203 [label="Access variable R|<local>/x|"];
204 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"]; 204 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
205 [label="Exit block"]; 205 [label="Exit block"];
} }
206 [label="Exit when branch result"]; 206 [label="Exit when branch result"];
@@ -613,7 +613,7 @@ digraph booleanOperators_kt {
color=blue color=blue
224 [label="Enter block"]; 224 [label="Enter block"];
225 [label="Access variable R|<local>/x|"]; 225 [label="Access variable R|<local>/x|"];
226 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"]; 226 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
227 [label="Exit block"]; 227 [label="Exit block"];
} }
228 [label="Exit when branch result"]; 228 [label="Exit when branch result"];
@@ -675,7 +675,7 @@ digraph booleanOperators_kt {
color=blue color=blue
246 [label="Enter block"]; 246 [label="Enter block"];
247 [label="Access variable R|<local>/x|"]; 247 [label="Access variable R|<local>/x|"];
248 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"]; 248 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
249 [label="Exit block"]; 249 [label="Exit block"];
} }
250 [label="Exit when branch result"]; 250 [label="Exit when branch result"];
@@ -738,7 +738,7 @@ digraph booleanOperators_kt {
color=blue color=blue
268 [label="Enter block"]; 268 [label="Enter block"];
269 [label="Access variable R|<local>/x|"]; 269 [label="Access variable R|<local>/x|"];
270 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"]; 270 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
271 [label="Exit block"]; 271 [label="Exit block"];
} }
272 [label="Exit when branch result"]; 272 [label="Exit when branch result"];
@@ -802,7 +802,7 @@ digraph booleanOperators_kt {
290 [label="Enter block"]; 290 [label="Enter block"];
291 [label="Access variable R|<local>/x|"]; 291 [label="Access variable R|<local>/x|"];
292 [label="Smart cast: R|<local>/x|"]; 292 [label="Smart cast: R|<local>/x|"];
293 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 293 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
294 [label="Exit block"]; 294 [label="Exit block"];
} }
295 [label="Exit when branch result"]; 295 [label="Exit when branch result"];
@@ -866,7 +866,7 @@ digraph booleanOperators_kt {
313 [label="Enter block"]; 313 [label="Enter block"];
314 [label="Access variable R|<local>/x|"]; 314 [label="Access variable R|<local>/x|"];
315 [label="Smart cast: R|<local>/x|"]; 315 [label="Smart cast: R|<local>/x|"];
316 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 316 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
317 [label="Exit block"]; 317 [label="Exit block"];
} }
318 [label="Exit when branch result"]; 318 [label="Exit when branch result"];
@@ -931,7 +931,7 @@ digraph booleanOperators_kt {
336 [label="Enter block"]; 336 [label="Enter block"];
337 [label="Access variable R|<local>/x|"]; 337 [label="Access variable R|<local>/x|"];
338 [label="Smart cast: R|<local>/x|"]; 338 [label="Smart cast: R|<local>/x|"];
339 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 339 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
340 [label="Exit block"]; 340 [label="Exit block"];
} }
341 [label="Exit when branch result"]; 341 [label="Exit when branch result"];
@@ -46,7 +46,7 @@ digraph equalsToBoolean_kt {
color=blue color=blue
17 [label="Enter block"]; 17 [label="Enter block"];
18 [label="Access variable R|<local>/b|"]; 18 [label="Access variable R|<local>/b|"];
19 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"]; 19 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
20 [label="Exit block"]; 20 [label="Exit block"];
} }
21 [label="Exit when branch result"]; 21 [label="Exit when branch result"];
@@ -56,7 +56,7 @@ digraph equalsToBoolean_kt {
23 [label="Enter block"]; 23 [label="Enter block"];
24 [label="Access variable R|<local>/b|"]; 24 [label="Access variable R|<local>/b|"];
25 [label="Smart cast: R|<local>/b|"]; 25 [label="Smart cast: R|<local>/b|"];
26 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 26 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
27 [label="Exit block"]; 27 [label="Exit block"];
} }
28 [label="Exit when branch result"]; 28 [label="Exit when branch result"];
@@ -124,7 +124,7 @@ digraph equalsToBoolean_kt {
45 [label="Enter block"]; 45 [label="Enter block"];
46 [label="Access variable R|<local>/b|"]; 46 [label="Access variable R|<local>/b|"];
47 [label="Smart cast: R|<local>/b|"]; 47 [label="Smart cast: R|<local>/b|"];
48 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 48 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
49 [label="Exit block"]; 49 [label="Exit block"];
} }
50 [label="Exit when branch result"]; 50 [label="Exit when branch result"];
@@ -133,7 +133,7 @@ digraph equalsToBoolean_kt {
color=blue color=blue
52 [label="Enter block"]; 52 [label="Enter block"];
53 [label="Access variable R|<local>/b|"]; 53 [label="Access variable R|<local>/b|"];
54 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"]; 54 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
55 [label="Exit block"]; 55 [label="Exit block"];
} }
56 [label="Exit when branch result"]; 56 [label="Exit when branch result"];
@@ -201,7 +201,7 @@ digraph equalsToBoolean_kt {
73 [label="Enter block"]; 73 [label="Enter block"];
74 [label="Access variable R|<local>/b|"]; 74 [label="Access variable R|<local>/b|"];
75 [label="Smart cast: R|<local>/b|"]; 75 [label="Smart cast: R|<local>/b|"];
76 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 76 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
77 [label="Exit block"]; 77 [label="Exit block"];
} }
78 [label="Exit when branch result"]; 78 [label="Exit when branch result"];
@@ -210,7 +210,7 @@ digraph equalsToBoolean_kt {
color=blue color=blue
80 [label="Enter block"]; 80 [label="Enter block"];
81 [label="Access variable R|<local>/b|"]; 81 [label="Access variable R|<local>/b|"];
82 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"]; 82 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
83 [label="Exit block"]; 83 [label="Exit block"];
} }
84 [label="Exit when branch result"]; 84 [label="Exit when branch result"];
@@ -277,7 +277,7 @@ digraph equalsToBoolean_kt {
color=blue color=blue
101 [label="Enter block"]; 101 [label="Enter block"];
102 [label="Access variable R|<local>/b|"]; 102 [label="Access variable R|<local>/b|"];
103 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"]; 103 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
104 [label="Exit block"]; 104 [label="Exit block"];
} }
105 [label="Exit when branch result"]; 105 [label="Exit when branch result"];
@@ -287,7 +287,7 @@ digraph equalsToBoolean_kt {
107 [label="Enter block"]; 107 [label="Enter block"];
108 [label="Access variable R|<local>/b|"]; 108 [label="Access variable R|<local>/b|"];
109 [label="Smart cast: R|<local>/b|"]; 109 [label="Smart cast: R|<local>/b|"];
110 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 110 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
111 [label="Exit block"]; 111 [label="Exit block"];
} }
112 [label="Exit when branch result"]; 112 [label="Exit when branch result"];
@@ -355,7 +355,7 @@ digraph equalsToBoolean_kt {
129 [label="Enter block"]; 129 [label="Enter block"];
130 [label="Access variable R|<local>/b|"]; 130 [label="Access variable R|<local>/b|"];
131 [label="Smart cast: R|<local>/b|"]; 131 [label="Smart cast: R|<local>/b|"];
132 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 132 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
133 [label="Exit block"]; 133 [label="Exit block"];
} }
134 [label="Exit when branch result"]; 134 [label="Exit when branch result"];
@@ -364,7 +364,7 @@ digraph equalsToBoolean_kt {
color=blue color=blue
136 [label="Enter block"]; 136 [label="Enter block"];
137 [label="Access variable R|<local>/b|"]; 137 [label="Access variable R|<local>/b|"];
138 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"]; 138 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
139 [label="Exit block"]; 139 [label="Exit block"];
} }
140 [label="Exit when branch result"]; 140 [label="Exit when branch result"];
@@ -431,7 +431,7 @@ digraph equalsToBoolean_kt {
color=blue color=blue
157 [label="Enter block"]; 157 [label="Enter block"];
158 [label="Access variable R|<local>/b|"]; 158 [label="Access variable R|<local>/b|"];
159 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"]; 159 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
160 [label="Exit block"]; 160 [label="Exit block"];
} }
161 [label="Exit when branch result"]; 161 [label="Exit when branch result"];
@@ -441,7 +441,7 @@ digraph equalsToBoolean_kt {
163 [label="Enter block"]; 163 [label="Enter block"];
164 [label="Access variable R|<local>/b|"]; 164 [label="Access variable R|<local>/b|"];
165 [label="Smart cast: R|<local>/b|"]; 165 [label="Smart cast: R|<local>/b|"];
166 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 166 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
167 [label="Exit block"]; 167 [label="Exit block"];
} }
168 [label="Exit when branch result"]; 168 [label="Exit when branch result"];
@@ -508,7 +508,7 @@ digraph equalsToBoolean_kt {
color=blue color=blue
185 [label="Enter block"]; 185 [label="Enter block"];
186 [label="Access variable R|<local>/b|"]; 186 [label="Access variable R|<local>/b|"];
187 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"]; 187 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
188 [label="Exit block"]; 188 [label="Exit block"];
} }
189 [label="Exit when branch result"]; 189 [label="Exit when branch result"];
@@ -518,7 +518,7 @@ digraph equalsToBoolean_kt {
191 [label="Enter block"]; 191 [label="Enter block"];
192 [label="Access variable R|<local>/b|"]; 192 [label="Access variable R|<local>/b|"];
193 [label="Smart cast: R|<local>/b|"]; 193 [label="Smart cast: R|<local>/b|"];
194 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 194 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
195 [label="Exit block"]; 195 [label="Exit block"];
} }
196 [label="Exit when branch result"]; 196 [label="Exit when branch result"];
@@ -586,7 +586,7 @@ digraph equalsToBoolean_kt {
213 [label="Enter block"]; 213 [label="Enter block"];
214 [label="Access variable R|<local>/b|"]; 214 [label="Access variable R|<local>/b|"];
215 [label="Smart cast: R|<local>/b|"]; 215 [label="Smart cast: R|<local>/b|"];
216 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 216 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
217 [label="Exit block"]; 217 [label="Exit block"];
} }
218 [label="Exit when branch result"]; 218 [label="Exit when branch result"];
@@ -595,7 +595,7 @@ digraph equalsToBoolean_kt {
color=blue color=blue
220 [label="Enter block"]; 220 [label="Enter block"];
221 [label="Access variable R|<local>/b|"]; 221 [label="Access variable R|<local>/b|"];
222 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"]; 222 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
223 [label="Exit block"]; 223 [label="Exit block"];
} }
224 [label="Exit when branch result"]; 224 [label="Exit when branch result"];
@@ -31,14 +31,14 @@ digraph jumpFromRhsOfOperator_kt {
9 [label="Equality operator !="]; 9 [label="Equality operator !="];
10 [label="Exit left part of ||"]; 10 [label="Exit left part of ||"];
11 [label="Enter right part of ||"]; 11 [label="Enter right part of ||"];
12 [label="Function call: R|java/lang/Exception.Exception|()"]; 12 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
13 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 13 [label="Throw: throw R|java/lang/Exception.Exception|()"];
14 [label="Stub" style="filled" fillcolor=gray]; 14 [label="Stub" style="filled" fillcolor=gray];
15 [label="Exit ||"]; 15 [label="Exit ||"];
} }
16 [label="Access variable R|<local>/a|"]; 16 [label="Access variable R|<local>/a|"];
17 [label="Smart cast: R|<local>/a|"]; 17 [label="Smart cast: R|<local>/a|"];
18 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 18 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
19 [label="Exit block"]; 19 [label="Exit block"];
} }
20 [label="Exit function test_1" style="filled" fillcolor=red]; 20 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -75,14 +75,14 @@ digraph jumpFromRhsOfOperator_kt {
26 [label="Equality operator =="]; 26 [label="Equality operator =="];
27 [label="Exit left part of &&"]; 27 [label="Exit left part of &&"];
28 [label="Enter right part of &&"]; 28 [label="Enter right part of &&"];
29 [label="Function call: R|java/lang/Exception.Exception|()"]; 29 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
30 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 30 [label="Throw: throw R|java/lang/Exception.Exception|()"];
31 [label="Stub" style="filled" fillcolor=gray]; 31 [label="Stub" style="filled" fillcolor=gray];
32 [label="Exit &&"]; 32 [label="Exit &&"];
} }
33 [label="Access variable R|<local>/a|"]; 33 [label="Access variable R|<local>/a|"];
34 [label="Smart cast: R|<local>/a|"]; 34 [label="Smart cast: R|<local>/a|"];
35 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 35 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
36 [label="Exit block"]; 36 [label="Exit block"];
} }
37 [label="Exit function teat_2" style="filled" fillcolor=red]; 37 [label="Exit function teat_2" style="filled" fillcolor=red];
@@ -125,7 +125,7 @@ digraph jumpFromRhsOfOperator_kt {
45 [label="Equality operator !="]; 45 [label="Equality operator !="];
46 [label="Exit left part of ||"]; 46 [label="Exit left part of ||"];
47 [label="Enter right part of ||"]; 47 [label="Enter right part of ||"];
48 [label="Function call: R|java/lang/Exception.Exception|()"]; 48 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
49 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 49 [label="Throw: throw R|java/lang/Exception.Exception|()"];
50 [label="Stub" style="filled" fillcolor=gray]; 50 [label="Stub" style="filled" fillcolor=gray];
51 [label="Exit ||"]; 51 [label="Exit ||"];
@@ -139,7 +139,7 @@ digraph jumpFromRhsOfOperator_kt {
55 [label="Enter block"]; 55 [label="Enter block"];
56 [label="Access variable R|<local>/a|"]; 56 [label="Access variable R|<local>/a|"];
57 [label="Smart cast: R|<local>/a|"]; 57 [label="Smart cast: R|<local>/a|"];
58 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 58 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
59 [label="Exit block"]; 59 [label="Exit block"];
} }
60 [label="Exit when branch result"]; 60 [label="Exit when branch result"];
@@ -147,7 +147,7 @@ digraph jumpFromRhsOfOperator_kt {
} }
62 [label="Access variable R|<local>/a|"]; 62 [label="Access variable R|<local>/a|"];
63 [label="Smart cast: R|<local>/a|"]; 63 [label="Smart cast: R|<local>/a|"];
64 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 64 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
65 [label="Exit block"]; 65 [label="Exit block"];
} }
66 [label="Exit function test_3" style="filled" fillcolor=red]; 66 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -202,7 +202,7 @@ digraph jumpFromRhsOfOperator_kt {
74 [label="Equality operator =="]; 74 [label="Equality operator =="];
75 [label="Exit left part of &&"]; 75 [label="Exit left part of &&"];
76 [label="Enter right part of &&"]; 76 [label="Enter right part of &&"];
77 [label="Function call: R|java/lang/Exception.Exception|()"]; 77 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
78 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 78 [label="Throw: throw R|java/lang/Exception.Exception|()"];
79 [label="Stub" style="filled" fillcolor=gray]; 79 [label="Stub" style="filled" fillcolor=gray];
80 [label="Exit &&"]; 80 [label="Exit &&"];
@@ -216,7 +216,7 @@ digraph jumpFromRhsOfOperator_kt {
84 [label="Enter block"]; 84 [label="Enter block"];
85 [label="Access variable R|<local>/a|"]; 85 [label="Access variable R|<local>/a|"];
86 [label="Smart cast: R|<local>/a|"]; 86 [label="Smart cast: R|<local>/a|"];
87 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 87 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
88 [label="Exit block"]; 88 [label="Exit block"];
} }
89 [label="Exit when branch result"]; 89 [label="Exit when branch result"];
@@ -224,7 +224,7 @@ digraph jumpFromRhsOfOperator_kt {
} }
91 [label="Access variable R|<local>/a|"]; 91 [label="Access variable R|<local>/a|"];
92 [label="Smart cast: R|<local>/a|"]; 92 [label="Smart cast: R|<local>/a|"];
93 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 93 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
94 [label="Exit block"]; 94 [label="Exit block"];
} }
95 [label="Exit function test_4" style="filled" fillcolor=red]; 95 [label="Exit function test_4" style="filled" fillcolor=red];
@@ -273,14 +273,14 @@ digraph jumpFromRhsOfOperator_kt {
101 [label="Equality operator =="]; 101 [label="Equality operator =="];
102 [label="Exit left part of ||"]; 102 [label="Exit left part of ||"];
103 [label="Enter right part of ||"]; 103 [label="Enter right part of ||"];
104 [label="Function call: R|java/lang/Exception.Exception|()"]; 104 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
105 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 105 [label="Throw: throw R|java/lang/Exception.Exception|()"];
106 [label="Stub" style="filled" fillcolor=gray]; 106 [label="Stub" style="filled" fillcolor=gray];
107 [label="Exit ||"]; 107 [label="Exit ||"];
} }
108 [label="Access variable R|<local>/a|"]; 108 [label="Access variable R|<local>/a|"];
109 [label="Smart cast: R|<local>/a|"]; 109 [label="Smart cast: R|<local>/a|"];
110 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 110 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
111 [label="Exit block"]; 111 [label="Exit block"];
} }
112 [label="Exit function test_5" style="filled" fillcolor=red]; 112 [label="Exit function test_5" style="filled" fillcolor=red];
@@ -317,14 +317,14 @@ digraph jumpFromRhsOfOperator_kt {
118 [label="Equality operator !="]; 118 [label="Equality operator !="];
119 [label="Exit left part of &&"]; 119 [label="Exit left part of &&"];
120 [label="Enter right part of &&"]; 120 [label="Enter right part of &&"];
121 [label="Function call: R|java/lang/Exception.Exception|()"]; 121 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
122 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 122 [label="Throw: throw R|java/lang/Exception.Exception|()"];
123 [label="Stub" style="filled" fillcolor=gray]; 123 [label="Stub" style="filled" fillcolor=gray];
124 [label="Exit &&"]; 124 [label="Exit &&"];
} }
125 [label="Access variable R|<local>/a|"]; 125 [label="Access variable R|<local>/a|"];
126 [label="Smart cast: R|<local>/a|"]; 126 [label="Smart cast: R|<local>/a|"];
127 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 127 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
128 [label="Exit block"]; 128 [label="Exit block"];
} }
129 [label="Exit function teat_6" style="filled" fillcolor=red]; 129 [label="Exit function teat_6" style="filled" fillcolor=red];
@@ -367,7 +367,7 @@ digraph jumpFromRhsOfOperator_kt {
137 [label="Equality operator =="]; 137 [label="Equality operator =="];
138 [label="Exit left part of ||"]; 138 [label="Exit left part of ||"];
139 [label="Enter right part of ||"]; 139 [label="Enter right part of ||"];
140 [label="Function call: R|java/lang/Exception.Exception|()"]; 140 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
141 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 141 [label="Throw: throw R|java/lang/Exception.Exception|()"];
142 [label="Stub" style="filled" fillcolor=gray]; 142 [label="Stub" style="filled" fillcolor=gray];
143 [label="Exit ||"]; 143 [label="Exit ||"];
@@ -381,7 +381,7 @@ digraph jumpFromRhsOfOperator_kt {
147 [label="Enter block"]; 147 [label="Enter block"];
148 [label="Access variable R|<local>/a|"]; 148 [label="Access variable R|<local>/a|"];
149 [label="Smart cast: R|<local>/a|"]; 149 [label="Smart cast: R|<local>/a|"];
150 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 150 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
151 [label="Exit block"]; 151 [label="Exit block"];
} }
152 [label="Exit when branch result"]; 152 [label="Exit when branch result"];
@@ -389,7 +389,7 @@ digraph jumpFromRhsOfOperator_kt {
} }
154 [label="Access variable R|<local>/a|"]; 154 [label="Access variable R|<local>/a|"];
155 [label="Smart cast: R|<local>/a|"]; 155 [label="Smart cast: R|<local>/a|"];
156 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 156 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
157 [label="Exit block"]; 157 [label="Exit block"];
} }
158 [label="Exit function test_7" style="filled" fillcolor=red]; 158 [label="Exit function test_7" style="filled" fillcolor=red];
@@ -444,7 +444,7 @@ digraph jumpFromRhsOfOperator_kt {
166 [label="Equality operator !="]; 166 [label="Equality operator !="];
167 [label="Exit left part of &&"]; 167 [label="Exit left part of &&"];
168 [label="Enter right part of &&"]; 168 [label="Enter right part of &&"];
169 [label="Function call: R|java/lang/Exception.Exception|()"]; 169 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
170 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 170 [label="Throw: throw R|java/lang/Exception.Exception|()"];
171 [label="Stub" style="filled" fillcolor=gray]; 171 [label="Stub" style="filled" fillcolor=gray];
172 [label="Exit &&"]; 172 [label="Exit &&"];
@@ -458,7 +458,7 @@ digraph jumpFromRhsOfOperator_kt {
176 [label="Enter block"]; 176 [label="Enter block"];
177 [label="Access variable R|<local>/a|"]; 177 [label="Access variable R|<local>/a|"];
178 [label="Smart cast: R|<local>/a|"]; 178 [label="Smart cast: R|<local>/a|"];
179 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 179 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
180 [label="Exit block"]; 180 [label="Exit block"];
} }
181 [label="Exit when branch result"]; 181 [label="Exit when branch result"];
@@ -466,7 +466,7 @@ digraph jumpFromRhsOfOperator_kt {
} }
183 [label="Access variable R|<local>/a|"]; 183 [label="Access variable R|<local>/a|"];
184 [label="Smart cast: R|<local>/a|"]; 184 [label="Smart cast: R|<local>/a|"];
185 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 185 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
186 [label="Exit block"]; 186 [label="Exit block"];
} }
187 [label="Exit function test_8" style="filled" fillcolor=red]; 187 [label="Exit function test_8" style="filled" fillcolor=red];
@@ -56,10 +56,10 @@ digraph boundSmartcasts_kt {
19 [label="Enter block"]; 19 [label="Enter block"];
20 [label="Access variable R|<local>/x|"]; 20 [label="Access variable R|<local>/x|"];
21 [label="Smart cast: R|<local>/x|"]; 21 [label="Smart cast: R|<local>/x|"];
22 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 22 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
23 [label="Access variable R|<local>/y|"]; 23 [label="Access variable R|<local>/y|"];
24 [label="Smart cast: R|<local>/y|"]; 24 [label="Smart cast: R|<local>/y|"];
25 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 25 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
26 [label="Exit block"]; 26 [label="Exit block"];
} }
27 [label="Exit when branch result"]; 27 [label="Exit when branch result"];
@@ -117,10 +117,10 @@ digraph boundSmartcasts_kt {
42 [label="Enter block"]; 42 [label="Enter block"];
43 [label="Access variable R|<local>/x|"]; 43 [label="Access variable R|<local>/x|"];
44 [label="Smart cast: R|<local>/x|"]; 44 [label="Smart cast: R|<local>/x|"];
45 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 45 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
46 [label="Access variable R|<local>/y|"]; 46 [label="Access variable R|<local>/y|"];
47 [label="Smart cast: R|<local>/y|"]; 47 [label="Smart cast: R|<local>/y|"];
48 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 48 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
49 [label="Exit block"]; 49 [label="Exit block"];
} }
50 [label="Exit when branch result"]; 50 [label="Exit when branch result"];
@@ -178,7 +178,7 @@ digraph boundSmartcasts_kt {
65 [label="Enter block"]; 65 [label="Enter block"];
66 [label="Access variable R|<local>/z|"]; 66 [label="Access variable R|<local>/z|"];
67 [label="Smart cast: R|<local>/z|"]; 67 [label="Smart cast: R|<local>/z|"];
68 [label="Function call: R|<local>/z|.R|/A.foo|()"]; 68 [label="Function call: R|<local>/z|.R|/A.foo|()" style="filled" fillcolor=yellow];
69 [label="Exit block"]; 69 [label="Exit block"];
} }
70 [label="Exit when branch result"]; 70 [label="Exit when branch result"];
@@ -203,10 +203,10 @@ digraph boundSmartcasts_kt {
81 [label="Enter block"]; 81 [label="Enter block"];
82 [label="Access variable R|<local>/z|"]; 82 [label="Access variable R|<local>/z|"];
83 [label="Smart cast: R|<local>/z|"]; 83 [label="Smart cast: R|<local>/z|"];
84 [label="Function call: R|<local>/z|.<Unresolved name: foo>#()"]; 84 [label="Function call: R|<local>/z|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
85 [label="Access variable R|<local>/z|"]; 85 [label="Access variable R|<local>/z|"];
86 [label="Smart cast: R|<local>/z|"]; 86 [label="Smart cast: R|<local>/z|"];
87 [label="Function call: R|<local>/z|.R|/B.bar|()"]; 87 [label="Function call: R|<local>/z|.R|/B.bar|()" style="filled" fillcolor=yellow];
88 [label="Exit block"]; 88 [label="Exit block"];
} }
89 [label="Exit when branch result"]; 89 [label="Exit when branch result"];
@@ -267,11 +267,11 @@ digraph boundSmartcasts_kt {
98 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"]; 98 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
99 [label="Access variable R|<local>/x|"]; 99 [label="Access variable R|<local>/x|"];
100 [label="Smart cast: R|<local>/x|"]; 100 [label="Smart cast: R|<local>/x|"];
101 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 101 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
102 [label="Access variable R|<local>/y|"]; 102 [label="Access variable R|<local>/y|"];
103 [label="Assignment: R|<local>/x|"]; 103 [label="Assignment: R|<local>/x|"];
104 [label="Access variable R|<local>/x|"]; 104 [label="Access variable R|<local>/x|"];
105 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"]; 105 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()" style="filled" fillcolor=yellow];
subgraph cluster_24 { subgraph cluster_24 {
color=blue color=blue
106 [label="Enter when"]; 106 [label="Enter when"];
@@ -289,10 +289,10 @@ digraph boundSmartcasts_kt {
113 [label="Enter block"]; 113 [label="Enter block"];
114 [label="Access variable R|<local>/x|"]; 114 [label="Access variable R|<local>/x|"];
115 [label="Smart cast: R|<local>/x|"]; 115 [label="Smart cast: R|<local>/x|"];
116 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 116 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
117 [label="Access variable R|<local>/y|"]; 117 [label="Access variable R|<local>/y|"];
118 [label="Smart cast: R|<local>/y|"]; 118 [label="Smart cast: R|<local>/y|"];
119 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 119 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
120 [label="Exit block"]; 120 [label="Exit block"];
} }
121 [label="Exit when branch result"]; 121 [label="Exit when branch result"];
@@ -337,7 +337,7 @@ digraph boundSmartcasts_kt {
subgraph cluster_27 { subgraph cluster_27 {
color=red color=red
125 [label="Enter function <init>" style="filled" fillcolor=red]; 125 [label="Enter function <init>" style="filled" fillcolor=red];
126 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 126 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
127 [label="Exit function <init>" style="filled" fillcolor=red]; 127 [label="Exit function <init>" style="filled" fillcolor=red];
} }
125 -> {126}; 125 -> {126};
@@ -394,16 +394,16 @@ digraph boundSmartcasts_kt {
147 [label="Exit ?:"]; 147 [label="Exit ?:"];
148 [label="Variable declaration: lval a: R|kotlin/Any|"]; 148 [label="Variable declaration: lval a: R|kotlin/Any|"];
149 [label="Access variable R|<local>/a|"]; 149 [label="Access variable R|<local>/a|"];
150 [label="Function call: R|<local>/a|.R|/baz|()"]; 150 [label="Function call: R|<local>/a|.R|/baz|()" style="filled" fillcolor=yellow];
151 [label="Access variable R|<local>/d|"]; 151 [label="Access variable R|<local>/d|"];
152 [label="Access variable R|/D.any|"]; 152 [label="Access variable R|/D.any|"];
153 [label="Smart cast: R|<local>/d|.R|/D.any|"]; 153 [label="Smart cast: R|<local>/d|.R|/D.any|"];
154 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"]; 154 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()" style="filled" fillcolor=yellow];
155 [label="Access variable R|<local>/a|"]; 155 [label="Access variable R|<local>/a|"];
156 [label="Type operator: (R|<local>/a| as R|A|)"]; 156 [label="Type operator: (R|<local>/a| as R|A|)"];
157 [label="Access variable R|<local>/a|"]; 157 [label="Access variable R|<local>/a|"];
158 [label="Smart cast: R|<local>/a|"]; 158 [label="Smart cast: R|<local>/a|"];
159 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 159 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
160 [label="Exit block"]; 160 [label="Exit block"];
} }
161 [label="Exit function test_5" style="filled" fillcolor=red]; 161 [label="Exit function test_5" style="filled" fillcolor=red];
@@ -446,15 +446,15 @@ digraph boundSmartcasts_kt {
168 [label="Type operator: (R|<local>/a| as R|A|)"]; 168 [label="Type operator: (R|<local>/a| as R|A|)"];
169 [label="Access variable R|<local>/a|"]; 169 [label="Access variable R|<local>/a|"];
170 [label="Smart cast: R|<local>/a|"]; 170 [label="Smart cast: R|<local>/a|"];
171 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 171 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
172 [label="Access variable R|<local>/d1|"]; 172 [label="Access variable R|<local>/d1|"];
173 [label="Access variable R|/D.any|"]; 173 [label="Access variable R|/D.any|"];
174 [label="Smart cast: R|<local>/d1|.R|/D.any|"]; 174 [label="Smart cast: R|<local>/d1|.R|/D.any|"];
175 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"]; 175 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()" style="filled" fillcolor=yellow];
176 [label="Access variable R|<local>/d1|"]; 176 [label="Access variable R|<local>/d1|"];
177 [label="Access variable R|/D.any|"]; 177 [label="Access variable R|/D.any|"];
178 [label="Smart cast: R|<local>/d1|.R|/D.any|"]; 178 [label="Smart cast: R|<local>/d1|.R|/D.any|"];
179 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"]; 179 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()" style="filled" fillcolor=yellow];
180 [label="Exit block"]; 180 [label="Exit block"];
} }
181 [label="Exit function test_6" style="filled" fillcolor=red]; 181 [label="Exit function test_6" style="filled" fillcolor=red];
@@ -499,12 +499,12 @@ digraph boundSmartcasts_kt {
195 [label="Type operator: (R|<local>/a| as R|A|)"]; 195 [label="Type operator: (R|<local>/a| as R|A|)"];
196 [label="Access variable R|<local>/a|"]; 196 [label="Access variable R|<local>/a|"];
197 [label="Smart cast: R|<local>/a|"]; 197 [label="Smart cast: R|<local>/a|"];
198 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 198 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
199 [label="Access variable R|<local>/b|"]; 199 [label="Access variable R|<local>/b|"];
200 [label="Type operator: (R|<local>/b| as R|B|)"]; 200 [label="Type operator: (R|<local>/b| as R|B|)"];
201 [label="Access variable R|<local>/b|"]; 201 [label="Access variable R|<local>/b|"];
202 [label="Smart cast: R|<local>/b|"]; 202 [label="Smart cast: R|<local>/b|"];
203 [label="Function call: R|<local>/b|.R|/B.bar|()"]; 203 [label="Function call: R|<local>/b|.R|/B.bar|()" style="filled" fillcolor=yellow];
204 [label="Exit block"]; 204 [label="Exit block"];
} }
205 [label="Exit function test_7" style="filled" fillcolor=red]; 205 [label="Exit function test_7" style="filled" fillcolor=red];
@@ -6,7 +6,7 @@ digraph boundSmartcastsInBranches_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -45,7 +45,7 @@ digraph boundSmartcastsInBranches_kt {
color=blue color=blue
13 [label="Enter block"]; 13 [label="Enter block"];
14 [label="Access variable R|<local>/list|"]; 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>|>|()"]; 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>|"]; 16 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<A>|"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
@@ -54,7 +54,7 @@ digraph boundSmartcastsInBranches_kt {
color=blue color=blue
18 [label="Enter loop condition"]; 18 [label="Enter loop condition"];
19 [label="Access variable R|<local>/<iterator>|"]; 19 [label="Access variable R|<local>/<iterator>|"];
20 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()"]; 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"]; 21 [label="Exit loop condition"];
} }
subgraph cluster_8 { subgraph cluster_8 {
@@ -64,7 +64,7 @@ digraph boundSmartcastsInBranches_kt {
color=blue color=blue
23 [label="Enter block"]; 23 [label="Enter block"];
24 [label="Access variable R|<local>/<iterator>|"]; 24 [label="Access variable R|<local>/<iterator>|"];
25 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|A|>|()"]; 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|"]; 26 [label="Variable declaration: lval a: R|A|"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
@@ -184,7 +184,7 @@ digraph boundSmartcastsInBranches_kt {
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
68 [label="Enter block"]; 68 [label="Enter block"];
69 [label="Function call: R|/A.A|()"]; 69 [label="Function call: R|/A.A|()" style="filled" fillcolor=yellow];
70 [label="Assignment: R|<local>/x|"]; 70 [label="Assignment: R|<local>/x|"];
71 [label="Exit block"]; 71 [label="Exit block"];
} }
@@ -261,7 +261,7 @@ digraph boundSmartcastsInBranches_kt {
subgraph cluster_26 { subgraph cluster_26 {
color=blue color=blue
97 [label="Enter block"]; 97 [label="Enter block"];
98 [label="Function call: R|/A.A|()"]; 98 [label="Function call: R|/A.A|()" style="filled" fillcolor=yellow];
99 [label="Assignment: R|<local>/x|"]; 99 [label="Assignment: R|<local>/x|"];
100 [label="Exit block"]; 100 [label="Exit block"];
} }
@@ -341,7 +341,7 @@ digraph boundSmartcastsInBranches_kt {
subgraph cluster_33 { subgraph cluster_33 {
color=blue color=blue
127 [label="Enter block"]; 127 [label="Enter block"];
128 [label="Function call: R|/A.A|()"]; 128 [label="Function call: R|/A.A|()" style="filled" fillcolor=yellow];
129 [label="Assignment: R|<local>/x|"]; 129 [label="Assignment: R|<local>/x|"];
130 [label="Exit block"]; 130 [label="Exit block"];
} }
@@ -6,7 +6,7 @@ digraph functionCallBound_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -22,7 +22,7 @@ digraph functionCallBound_kt {
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter function <init>" style="filled" fillcolor=red]; 5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|Base|>()"]; 6 [label="Delegated constructor call: super<R|Base|>()" style="filled" fillcolor=yellow];
7 [label="Exit function <init>" style="filled" fillcolor=red]; 7 [label="Exit function <init>" style="filled" fillcolor=red];
} }
5 -> {6}; 5 -> {6};
@@ -85,7 +85,7 @@ digraph functionCallBound_kt {
25 [label="Access variable R|<local>/base|"]; 25 [label="Access variable R|<local>/base|"];
26 [label="Type operator: (R|<local>/base| as? R|Sub|)"]; 26 [label="Type operator: (R|<local>/base| as? R|Sub|)"];
27 [label="Enter safe call"]; 27 [label="Enter safe call"];
28 [label="Function call: $subj$.R|/isOk|()"]; 28 [label="Function call: $subj$.R|/isOk|()" style="filled" fillcolor=yellow];
29 [label="Exit safe call"]; 29 [label="Exit safe call"];
30 [label="Const: Boolean(true)"]; 30 [label="Const: Boolean(true)"];
31 [label="Equality operator =="]; 31 [label="Equality operator =="];
@@ -50,7 +50,7 @@ digraph casts_kt {
18 [label="Enter block"]; 18 [label="Enter block"];
19 [label="Access variable R|<local>/x|"]; 19 [label="Access variable R|<local>/x|"];
20 [label="Smart cast: R|<local>/x|"]; 20 [label="Smart cast: R|<local>/x|"];
21 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"]; 21 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
22 [label="Exit block"]; 22 [label="Exit block"];
} }
23 [label="Exit when branch result"]; 23 [label="Exit when branch result"];
@@ -58,7 +58,7 @@ digraph casts_kt {
} }
25 [label="Access variable R|<local>/x|"]; 25 [label="Access variable R|<local>/x|"];
26 [label="Smart cast: R|<local>/x|"]; 26 [label="Smart cast: R|<local>/x|"];
27 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"]; 27 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
28 [label="Exit block"]; 28 [label="Exit block"];
} }
29 [label="Exit function test_2" style="filled" fillcolor=red]; 29 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -115,14 +115,14 @@ digraph casts_kt {
44 [label="Enter block"]; 44 [label="Enter block"];
45 [label="Access variable R|<local>/x|"]; 45 [label="Access variable R|<local>/x|"];
46 [label="Smart cast: R|<local>/x|"]; 46 [label="Smart cast: R|<local>/x|"];
47 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"]; 47 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
48 [label="Exit block"]; 48 [label="Exit block"];
} }
49 [label="Exit when branch result"]; 49 [label="Exit when branch result"];
50 [label="Exit when"]; 50 [label="Exit when"];
} }
51 [label="Access variable R|<local>/x|"]; 51 [label="Access variable R|<local>/x|"];
52 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"]; 52 [label="Function call: R|<local>/x|.<Unresolved name: not>#()" style="filled" fillcolor=yellow];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
53 [label="Enter when"]; 53 [label="Enter when"];
@@ -150,14 +150,14 @@ digraph casts_kt {
67 [label="Enter block"]; 67 [label="Enter block"];
68 [label="Access variable R|<local>/x|"]; 68 [label="Access variable R|<local>/x|"];
69 [label="Smart cast: R|<local>/x|"]; 69 [label="Smart cast: R|<local>/x|"];
70 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"]; 70 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
71 [label="Exit block"]; 71 [label="Exit block"];
} }
72 [label="Exit when branch result"]; 72 [label="Exit when branch result"];
73 [label="Exit when"]; 73 [label="Exit when"];
} }
74 [label="Access variable R|<local>/x|"]; 74 [label="Access variable R|<local>/x|"];
75 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"]; 75 [label="Function call: R|<local>/x|.<Unresolved name: not>#()" style="filled" fillcolor=yellow];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
76 [label="Enter when"]; 76 [label="Enter when"];
@@ -182,14 +182,14 @@ digraph casts_kt {
color=blue color=blue
88 [label="Enter block"]; 88 [label="Enter block"];
89 [label="Access variable R|<local>/x|"]; 89 [label="Access variable R|<local>/x|"];
90 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"]; 90 [label="Function call: R|<local>/x|.<Unresolved name: not>#()" style="filled" fillcolor=yellow];
91 [label="Exit block"]; 91 [label="Exit block"];
} }
92 [label="Exit when branch result"]; 92 [label="Exit when branch result"];
93 [label="Exit when"]; 93 [label="Exit when"];
} }
94 [label="Access variable R|<local>/x|"]; 94 [label="Access variable R|<local>/x|"];
95 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"]; 95 [label="Function call: R|<local>/x|.<Unresolved name: not>#()" style="filled" fillcolor=yellow];
96 [label="Exit block"]; 96 [label="Exit block"];
} }
97 [label="Exit function test_3" style="filled" fillcolor=red]; 97 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -290,7 +290,7 @@ digraph casts_kt {
color=blue color=blue
110 [label="Enter block"]; 110 [label="Enter block"];
111 [label="Access variable R|<local>/b|"]; 111 [label="Access variable R|<local>/b|"];
112 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"]; 112 [label="Function call: R|<local>/b|.<Unresolved name: not>#()" style="filled" fillcolor=yellow];
113 [label="Exit block"]; 113 [label="Exit block"];
} }
114 [label="Exit when branch result"]; 114 [label="Exit when branch result"];
@@ -300,14 +300,14 @@ digraph casts_kt {
116 [label="Enter block"]; 116 [label="Enter block"];
117 [label="Access variable R|<local>/b|"]; 117 [label="Access variable R|<local>/b|"];
118 [label="Smart cast: R|<local>/b|"]; 118 [label="Smart cast: R|<local>/b|"];
119 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 119 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
120 [label="Exit block"]; 120 [label="Exit block"];
} }
121 [label="Exit when branch result"]; 121 [label="Exit when branch result"];
122 [label="Exit when"]; 122 [label="Exit when"];
} }
123 [label="Access variable R|<local>/b|"]; 123 [label="Access variable R|<local>/b|"];
124 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"]; 124 [label="Function call: R|<local>/b|.<Unresolved name: not>#()" style="filled" fillcolor=yellow];
subgraph cluster_28 { subgraph cluster_28 {
color=blue color=blue
125 [label="Enter when"]; 125 [label="Enter when"];
@@ -331,7 +331,7 @@ digraph casts_kt {
135 [label="Enter block"]; 135 [label="Enter block"];
136 [label="Access variable R|<local>/b|"]; 136 [label="Access variable R|<local>/b|"];
137 [label="Smart cast: R|<local>/b|"]; 137 [label="Smart cast: R|<local>/b|"];
138 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 138 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
139 [label="Exit block"]; 139 [label="Exit block"];
} }
140 [label="Exit when branch result"]; 140 [label="Exit when branch result"];
@@ -340,14 +340,14 @@ digraph casts_kt {
color=blue color=blue
142 [label="Enter block"]; 142 [label="Enter block"];
143 [label="Access variable R|<local>/b|"]; 143 [label="Access variable R|<local>/b|"];
144 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"]; 144 [label="Function call: R|<local>/b|.<Unresolved name: not>#()" style="filled" fillcolor=yellow];
145 [label="Exit block"]; 145 [label="Exit block"];
} }
146 [label="Exit when branch result"]; 146 [label="Exit when branch result"];
147 [label="Exit when"]; 147 [label="Exit when"];
} }
148 [label="Access variable R|<local>/b|"]; 148 [label="Access variable R|<local>/b|"];
149 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"]; 149 [label="Function call: R|<local>/b|.<Unresolved name: not>#()" style="filled" fillcolor=yellow];
150 [label="Exit block"]; 150 [label="Exit block"];
} }
151 [label="Exit function test_4" style="filled" fillcolor=red]; 151 [label="Exit function test_4" style="filled" fillcolor=red];
@@ -48,7 +48,7 @@ digraph elvis_kt {
21 [label="Enter block"]; 21 [label="Enter block"];
22 [label="Access variable R|<local>/x|"]; 22 [label="Access variable R|<local>/x|"];
23 [label="Smart cast: R|<local>/x|"]; 23 [label="Smart cast: R|<local>/x|"];
24 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 24 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
25 [label="Exit block"]; 25 [label="Exit block"];
} }
26 [label="Exit when branch result"]; 26 [label="Exit when branch result"];
@@ -237,7 +237,7 @@ digraph returns_kt {
85 [label="Enter block"]; 85 [label="Enter block"];
86 [label="Access variable R|<local>/x|"]; 86 [label="Access variable R|<local>/x|"];
87 [label="Smart cast: R|<local>/x|"]; 87 [label="Smart cast: R|<local>/x|"];
88 [label="Function call: R|<local>/x|.R|/C.baz|()"]; 88 [label="Function call: R|<local>/x|.R|/C.baz|()" style="filled" fillcolor=yellow];
89 [label="Exit block"]; 89 [label="Exit block"];
} }
90 [label="Exit when branch result"]; 90 [label="Exit when branch result"];
@@ -247,7 +247,7 @@ digraph returns_kt {
92 [label="Enter block"]; 92 [label="Enter block"];
93 [label="Access variable R|<local>/x|"]; 93 [label="Access variable R|<local>/x|"];
94 [label="Smart cast: R|<local>/x|"]; 94 [label="Smart cast: R|<local>/x|"];
95 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 95 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
96 [label="Exit block"]; 96 [label="Exit block"];
} }
97 [label="Exit when branch result"]; 97 [label="Exit when branch result"];
@@ -255,13 +255,13 @@ digraph returns_kt {
} }
99 [label="Access variable R|<local>/x|"]; 99 [label="Access variable R|<local>/x|"];
100 [label="Smart cast: R|<local>/x|"]; 100 [label="Smart cast: R|<local>/x|"];
101 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 101 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
102 [label="Access variable R|<local>/x|"]; 102 [label="Access variable R|<local>/x|"];
103 [label="Smart cast: R|<local>/x|"]; 103 [label="Smart cast: R|<local>/x|"];
104 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"]; 104 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()" style="filled" fillcolor=yellow];
105 [label="Access variable R|<local>/x|"]; 105 [label="Access variable R|<local>/x|"];
106 [label="Smart cast: R|<local>/x|"]; 106 [label="Smart cast: R|<local>/x|"];
107 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"]; 107 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()" style="filled" fillcolor=yellow];
108 [label="Exit block"]; 108 [label="Exit block"];
} }
109 [label="Exit function test_2" style="filled" fillcolor=red]; 109 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -342,7 +342,7 @@ digraph returns_kt {
123 [label="Enter block"]; 123 [label="Enter block"];
124 [label="Access variable R|<local>/x|"]; 124 [label="Access variable R|<local>/x|"];
125 [label="Smart cast: R|<local>/x|"]; 125 [label="Smart cast: R|<local>/x|"];
126 [label="Function call: R|<local>/x|.R|/C.baz|()"]; 126 [label="Function call: R|<local>/x|.R|/C.baz|()" style="filled" fillcolor=yellow];
127 [label="Exit block"]; 127 [label="Exit block"];
} }
128 [label="Exit when branch result"]; 128 [label="Exit when branch result"];
@@ -352,18 +352,18 @@ digraph returns_kt {
130 [label="Enter block"]; 130 [label="Enter block"];
131 [label="Access variable R|<local>/x|"]; 131 [label="Access variable R|<local>/x|"];
132 [label="Smart cast: R|<local>/x|"]; 132 [label="Smart cast: R|<local>/x|"];
133 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 133 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
134 [label="Exit block"]; 134 [label="Exit block"];
} }
135 [label="Exit when branch result"]; 135 [label="Exit when branch result"];
136 [label="Exit when"]; 136 [label="Exit when"];
} }
137 [label="Access variable R|<local>/x|"]; 137 [label="Access variable R|<local>/x|"];
138 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"]; 138 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
139 [label="Access variable R|<local>/x|"]; 139 [label="Access variable R|<local>/x|"];
140 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"]; 140 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()" style="filled" fillcolor=yellow];
141 [label="Access variable R|<local>/x|"]; 141 [label="Access variable R|<local>/x|"];
142 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"]; 142 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()" style="filled" fillcolor=yellow];
143 [label="Exit block"]; 143 [label="Exit block"];
} }
144 [label="Exit function test_3" style="filled" fillcolor=red]; 144 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -409,7 +409,7 @@ digraph returns_kt {
subgraph cluster_37 { subgraph cluster_37 {
color=blue color=blue
146 [label="Enter block"]; 146 [label="Enter block"];
147 [label="Function call: R|<local>/f|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()"]; 147 [label="Function call: R|<local>/f|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()" style="filled" fillcolor=yellow];
148 [label="Jump: ^runHigherOrder R|<local>/f|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()"]; 148 [label="Jump: ^runHigherOrder R|<local>/f|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()"];
149 [label="Stub" style="filled" fillcolor=gray]; 149 [label="Stub" style="filled" fillcolor=gray];
150 [label="Exit block" style="filled" fillcolor=gray]; 150 [label="Exit block" style="filled" fillcolor=gray];
@@ -480,7 +480,7 @@ digraph returns_kt {
186 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 186 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
176 [label="Postponed exit from lambda"]; 176 [label="Postponed exit from lambda"];
177 [label="Function call: R|/runHigherOrder|<R|kotlin/Int|>(...)"]; 177 [label="Function call: R|/runHigherOrder|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
178 [label="Exit block"]; 178 [label="Exit block"];
} }
179 [label="Exit function test_4" style="filled" fillcolor=red]; 179 [label="Exit function test_4" style="filled" fillcolor=red];
@@ -155,7 +155,7 @@ digraph simpleIf_kt {
60 [label="Access variable R|kotlin/String.length|"]; 60 [label="Access variable R|kotlin/String.length|"];
61 [label="Access variable R|<local>/x|"]; 61 [label="Access variable R|<local>/x|"];
62 [label="Smart cast: R|<local>/x|"]; 62 [label="Smart cast: R|<local>/x|"];
63 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 63 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
64 [label="Exit block"]; 64 [label="Exit block"];
} }
65 [label="Exit when branch result"]; 65 [label="Exit when branch result"];
@@ -58,7 +58,7 @@ digraph smartcastFromArgument_kt {
20 [label="Stub" style="filled" fillcolor=gray]; 20 [label="Stub" style="filled" fillcolor=gray];
21 [label="Lhs of ?: is not null"]; 21 [label="Lhs of ?: is not null"];
22 [label="Exit ?:"]; 22 [label="Exit ?:"];
23 [label="Function call: R|/takeA|(...)"]; 23 [label="Function call: R|/takeA|(...)" style="filled" fillcolor=yellow];
24 [label="Exit when branch condition"]; 24 [label="Exit when branch condition"];
} }
25 [label="Synthetic else branch"]; 25 [label="Synthetic else branch"];
@@ -68,7 +68,7 @@ digraph smartcastFromArgument_kt {
27 [label="Enter block"]; 27 [label="Enter block"];
28 [label="Access variable R|<local>/a|"]; 28 [label="Access variable R|<local>/a|"];
29 [label="Smart cast: R|<local>/a|"]; 29 [label="Smart cast: R|<local>/a|"];
30 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 30 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
31 [label="Exit block"]; 31 [label="Exit block"];
} }
32 [label="Exit when branch result"]; 32 [label="Exit when branch result"];
@@ -61,7 +61,7 @@ digraph when_kt {
21 [label="Enter block"]; 21 [label="Enter block"];
22 [label="Access variable R|<local>/x|"]; 22 [label="Access variable R|<local>/x|"];
23 [label="Smart cast: R|<local>/x|"]; 23 [label="Smart cast: R|<local>/x|"];
24 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 24 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
25 [label="Exit block"]; 25 [label="Exit block"];
} }
26 [label="Exit when branch result"]; 26 [label="Exit when branch result"];
@@ -71,7 +71,7 @@ digraph when_kt {
28 [label="Enter block"]; 28 [label="Enter block"];
29 [label="Access variable R|<local>/x|"]; 29 [label="Access variable R|<local>/x|"];
30 [label="Smart cast: R|<local>/x|"]; 30 [label="Smart cast: R|<local>/x|"];
31 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 31 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
32 [label="Exit block"]; 32 [label="Exit block"];
} }
33 [label="Exit when branch result"]; 33 [label="Exit when branch result"];
@@ -114,10 +114,10 @@ digraph when_kt {
53 [label="Enter block"]; 53 [label="Enter block"];
54 [label="Access variable R|<local>/x|"]; 54 [label="Access variable R|<local>/x|"];
55 [label="Smart cast: R|<local>/x|"]; 55 [label="Smart cast: R|<local>/x|"];
56 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 56 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
57 [label="Access variable R|<local>/x|"]; 57 [label="Access variable R|<local>/x|"];
58 [label="Smart cast: R|<local>/x|"]; 58 [label="Smart cast: R|<local>/x|"];
59 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 59 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
60 [label="Exit block"]; 60 [label="Exit block"];
} }
61 [label="Exit when branch result"]; 61 [label="Exit when branch result"];
@@ -127,13 +127,13 @@ digraph when_kt {
63 [label="Enter block"]; 63 [label="Enter block"];
64 [label="Access variable R|<local>/x|"]; 64 [label="Access variable R|<local>/x|"];
65 [label="Smart cast: R|<local>/x|"]; 65 [label="Smart cast: R|<local>/x|"];
66 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 66 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
67 [label="Access variable R|<local>/x|"]; 67 [label="Access variable R|<local>/x|"];
68 [label="Smart cast: R|<local>/x|"]; 68 [label="Smart cast: R|<local>/x|"];
69 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 69 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
70 [label="Access variable R|<local>/x|"]; 70 [label="Access variable R|<local>/x|"];
71 [label="Smart cast: R|<local>/x|"]; 71 [label="Smart cast: R|<local>/x|"];
72 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 72 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
73 [label="Exit block"]; 73 [label="Exit block"];
} }
74 [label="Exit when branch result"]; 74 [label="Exit when branch result"];
@@ -143,7 +143,7 @@ digraph when_kt {
76 [label="Enter block"]; 76 [label="Enter block"];
77 [label="Access variable R|<local>/x|"]; 77 [label="Access variable R|<local>/x|"];
78 [label="Smart cast: R|<local>/x|"]; 78 [label="Smart cast: R|<local>/x|"];
79 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 79 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
80 [label="Exit block"]; 80 [label="Exit block"];
} }
81 [label="Exit when branch result"]; 81 [label="Exit when branch result"];
@@ -272,7 +272,7 @@ digraph when_kt {
103 [label="Enter block"]; 103 [label="Enter block"];
104 [label="Access variable R|<local>/x|"]; 104 [label="Access variable R|<local>/x|"];
105 [label="Smart cast: R|<local>/x|"]; 105 [label="Smart cast: R|<local>/x|"];
106 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 106 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
107 [label="Exit block"]; 107 [label="Exit block"];
} }
108 [label="Exit when branch result"]; 108 [label="Exit when branch result"];
@@ -282,7 +282,7 @@ digraph when_kt {
110 [label="Enter block"]; 110 [label="Enter block"];
111 [label="Access variable R|<local>/x|"]; 111 [label="Access variable R|<local>/x|"];
112 [label="Smart cast: R|<local>/x|"]; 112 [label="Smart cast: R|<local>/x|"];
113 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 113 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
114 [label="Exit block"]; 114 [label="Exit block"];
} }
115 [label="Exit when branch result"]; 115 [label="Exit when branch result"];
@@ -324,10 +324,10 @@ digraph when_kt {
134 [label="Enter block"]; 134 [label="Enter block"];
135 [label="Access variable R|<local>/x|"]; 135 [label="Access variable R|<local>/x|"];
136 [label="Smart cast: R|<local>/x|"]; 136 [label="Smart cast: R|<local>/x|"];
137 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 137 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
138 [label="Access variable R|<local>/x|"]; 138 [label="Access variable R|<local>/x|"];
139 [label="Smart cast: R|<local>/x|"]; 139 [label="Smart cast: R|<local>/x|"];
140 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 140 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
141 [label="Exit block"]; 141 [label="Exit block"];
} }
142 [label="Exit when branch result"]; 142 [label="Exit when branch result"];
@@ -337,13 +337,13 @@ digraph when_kt {
144 [label="Enter block"]; 144 [label="Enter block"];
145 [label="Access variable R|<local>/x|"]; 145 [label="Access variable R|<local>/x|"];
146 [label="Smart cast: R|<local>/x|"]; 146 [label="Smart cast: R|<local>/x|"];
147 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 147 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
148 [label="Access variable R|<local>/x|"]; 148 [label="Access variable R|<local>/x|"];
149 [label="Smart cast: R|<local>/x|"]; 149 [label="Smart cast: R|<local>/x|"];
150 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 150 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
151 [label="Access variable R|<local>/x|"]; 151 [label="Access variable R|<local>/x|"];
152 [label="Smart cast: R|<local>/x|"]; 152 [label="Smart cast: R|<local>/x|"];
153 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 153 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
154 [label="Exit block"]; 154 [label="Exit block"];
} }
155 [label="Exit when branch result"]; 155 [label="Exit when branch result"];
@@ -353,7 +353,7 @@ digraph when_kt {
157 [label="Enter block"]; 157 [label="Enter block"];
158 [label="Access variable R|<local>/x|"]; 158 [label="Access variable R|<local>/x|"];
159 [label="Smart cast: R|<local>/x|"]; 159 [label="Smart cast: R|<local>/x|"];
160 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 160 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
161 [label="Exit block"]; 161 [label="Exit block"];
} }
162 [label="Exit when branch result"]; 162 [label="Exit when branch result"];
@@ -483,10 +483,10 @@ digraph when_kt {
185 [label="Enter block"]; 185 [label="Enter block"];
186 [label="Access variable R|<local>/x|"]; 186 [label="Access variable R|<local>/x|"];
187 [label="Smart cast: R|<local>/x|"]; 187 [label="Smart cast: R|<local>/x|"];
188 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 188 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
189 [label="Access variable R|<local>/y|"]; 189 [label="Access variable R|<local>/y|"];
190 [label="Smart cast: R|<local>/y|"]; 190 [label="Smart cast: R|<local>/y|"];
191 [label="Function call: R|<local>/y|.R|/B.bar|()"]; 191 [label="Function call: R|<local>/y|.R|/B.bar|()" style="filled" fillcolor=yellow];
192 [label="Exit block"]; 192 [label="Exit block"];
} }
193 [label="Exit when branch result"]; 193 [label="Exit when branch result"];
@@ -496,10 +496,10 @@ digraph when_kt {
195 [label="Enter block"]; 195 [label="Enter block"];
196 [label="Access variable R|<local>/x|"]; 196 [label="Access variable R|<local>/x|"];
197 [label="Smart cast: R|<local>/x|"]; 197 [label="Smart cast: R|<local>/x|"];
198 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 198 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
199 [label="Access variable R|<local>/y|"]; 199 [label="Access variable R|<local>/y|"];
200 [label="Smart cast: R|<local>/y|"]; 200 [label="Smart cast: R|<local>/y|"];
201 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 201 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
202 [label="Exit block"]; 202 [label="Exit block"];
} }
203 [label="Exit when branch result"]; 203 [label="Exit when branch result"];
@@ -542,16 +542,16 @@ digraph when_kt {
223 [label="Enter block"]; 223 [label="Enter block"];
224 [label="Access variable R|<local>/x|"]; 224 [label="Access variable R|<local>/x|"];
225 [label="Smart cast: R|<local>/x|"]; 225 [label="Smart cast: R|<local>/x|"];
226 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 226 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
227 [label="Access variable R|<local>/x|"]; 227 [label="Access variable R|<local>/x|"];
228 [label="Smart cast: R|<local>/x|"]; 228 [label="Smart cast: R|<local>/x|"];
229 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 229 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
230 [label="Access variable R|<local>/y|"]; 230 [label="Access variable R|<local>/y|"];
231 [label="Smart cast: R|<local>/y|"]; 231 [label="Smart cast: R|<local>/y|"];
232 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 232 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
233 [label="Access variable R|<local>/y|"]; 233 [label="Access variable R|<local>/y|"];
234 [label="Smart cast: R|<local>/y|"]; 234 [label="Smart cast: R|<local>/y|"];
235 [label="Function call: R|<local>/y|.R|/B.bar|()"]; 235 [label="Function call: R|<local>/y|.R|/B.bar|()" style="filled" fillcolor=yellow];
236 [label="Exit block"]; 236 [label="Exit block"];
} }
237 [label="Exit when branch result"]; 237 [label="Exit when branch result"];
@@ -561,22 +561,22 @@ digraph when_kt {
239 [label="Enter block"]; 239 [label="Enter block"];
240 [label="Access variable R|<local>/x|"]; 240 [label="Access variable R|<local>/x|"];
241 [label="Smart cast: R|<local>/x|"]; 241 [label="Smart cast: R|<local>/x|"];
242 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 242 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
243 [label="Access variable R|<local>/x|"]; 243 [label="Access variable R|<local>/x|"];
244 [label="Smart cast: R|<local>/x|"]; 244 [label="Smart cast: R|<local>/x|"];
245 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 245 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
246 [label="Access variable R|<local>/x|"]; 246 [label="Access variable R|<local>/x|"];
247 [label="Smart cast: R|<local>/x|"]; 247 [label="Smart cast: R|<local>/x|"];
248 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 248 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
249 [label="Access variable R|<local>/y|"]; 249 [label="Access variable R|<local>/y|"];
250 [label="Smart cast: R|<local>/y|"]; 250 [label="Smart cast: R|<local>/y|"];
251 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 251 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
252 [label="Access variable R|<local>/y|"]; 252 [label="Access variable R|<local>/y|"];
253 [label="Smart cast: R|<local>/y|"]; 253 [label="Smart cast: R|<local>/y|"];
254 [label="Function call: R|<local>/y|.R|/B.bar|()"]; 254 [label="Function call: R|<local>/y|.R|/B.bar|()" style="filled" fillcolor=yellow];
255 [label="Access variable R|<local>/y|"]; 255 [label="Access variable R|<local>/y|"];
256 [label="Smart cast: R|<local>/y|"]; 256 [label="Smart cast: R|<local>/y|"];
257 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"]; 257 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
258 [label="Exit block"]; 258 [label="Exit block"];
} }
259 [label="Exit when branch result"]; 259 [label="Exit when branch result"];
@@ -586,10 +586,10 @@ digraph when_kt {
261 [label="Enter block"]; 261 [label="Enter block"];
262 [label="Access variable R|<local>/x|"]; 262 [label="Access variable R|<local>/x|"];
263 [label="Smart cast: R|<local>/x|"]; 263 [label="Smart cast: R|<local>/x|"];
264 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 264 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
265 [label="Access variable R|<local>/y|"]; 265 [label="Access variable R|<local>/y|"];
266 [label="Smart cast: R|<local>/y|"]; 266 [label="Smart cast: R|<local>/y|"];
267 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 267 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
268 [label="Exit block"]; 268 [label="Exit block"];
} }
269 [label="Exit when branch result"]; 269 [label="Exit when branch result"];
@@ -739,7 +739,7 @@ digraph when_kt {
289 [label="Enter block"]; 289 [label="Enter block"];
290 [label="Access variable R|<local>/x|"]; 290 [label="Access variable R|<local>/x|"];
291 [label="Smart cast: R|<local>/x|"]; 291 [label="Smart cast: R|<local>/x|"];
292 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 292 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
293 [label="Exit block"]; 293 [label="Exit block"];
} }
294 [label="Exit when branch result"]; 294 [label="Exit when branch result"];
@@ -747,7 +747,7 @@ digraph when_kt {
} }
296 [label="Access variable R|<local>/x|"]; 296 [label="Access variable R|<local>/x|"];
297 [label="Smart cast: R|<local>/x|"]; 297 [label="Smart cast: R|<local>/x|"];
298 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 298 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
299 [label="Exit block"]; 299 [label="Exit block"];
} }
300 [label="Exit function test_4" style="filled" fillcolor=red]; 300 [label="Exit function test_4" style="filled" fillcolor=red];
@@ -39,7 +39,7 @@ digraph whenSubjectExpression_kt {
16 [label="Enter block"]; 16 [label="Enter block"];
17 [label="Access variable R|<local>/x|"]; 17 [label="Access variable R|<local>/x|"];
18 [label="Smart cast: R|<local>/x|"]; 18 [label="Smart cast: R|<local>/x|"];
19 [label="Function call: R|<local>/x|.R|kotlin/Double.toInt|()"]; 19 [label="Function call: R|<local>/x|.R|kotlin/Double.toInt|()" style="filled" fillcolor=yellow];
20 [label="Exit block"]; 20 [label="Exit block"];
} }
21 [label="Exit when branch result"]; 21 [label="Exit when branch result"];
@@ -137,7 +137,7 @@ digraph whenSubjectExpression_kt {
52 [label="Enter block"]; 52 [label="Enter block"];
53 [label="Access variable R|<local>/y|"]; 53 [label="Access variable R|<local>/y|"];
54 [label="Smart cast: R|<local>/y|"]; 54 [label="Smart cast: R|<local>/y|"];
55 [label="Function call: R|<local>/y|.R|kotlin/Double.toInt|()"]; 55 [label="Function call: R|<local>/y|.R|kotlin/Double.toInt|()" style="filled" fillcolor=yellow];
56 [label="Exit block"]; 56 [label="Exit block"];
} }
57 [label="Exit when branch result"]; 57 [label="Exit when branch result"];
@@ -40,10 +40,10 @@ digraph equalsAndIdentity_kt {
color=blue color=blue
14 [label="Enter block"]; 14 [label="Enter block"];
15 [label="Access variable R|<local>/x|"]; 15 [label="Access variable R|<local>/x|"];
16 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 16 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
17 [label="Access variable R|<local>/y|"]; 17 [label="Access variable R|<local>/y|"];
18 [label="Smart cast: R|<local>/y|"]; 18 [label="Smart cast: R|<local>/y|"];
19 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 19 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
20 [label="Exit block"]; 20 [label="Exit block"];
} }
21 [label="Exit when branch result"]; 21 [label="Exit when branch result"];
@@ -66,10 +66,10 @@ digraph equalsAndIdentity_kt {
color=blue color=blue
31 [label="Enter block"]; 31 [label="Enter block"];
32 [label="Access variable R|<local>/x|"]; 32 [label="Access variable R|<local>/x|"];
33 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 33 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
34 [label="Access variable R|<local>/y|"]; 34 [label="Access variable R|<local>/y|"];
35 [label="Smart cast: R|<local>/y|"]; 35 [label="Smart cast: R|<local>/y|"];
36 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 36 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
37 [label="Exit block"]; 37 [label="Exit block"];
} }
38 [label="Exit when branch result"]; 38 [label="Exit when branch result"];
@@ -140,9 +140,9 @@ digraph equalsAndIdentity_kt {
color=blue color=blue
52 [label="Enter block"]; 52 [label="Enter block"];
53 [label="Access variable R|<local>/x|"]; 53 [label="Access variable R|<local>/x|"];
54 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 54 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
55 [label="Access variable R|<local>/y|"]; 55 [label="Access variable R|<local>/y|"];
56 [label="Function call: R|<local>/y|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 56 [label="Function call: R|<local>/y|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
57 [label="Exit block"]; 57 [label="Exit block"];
} }
58 [label="Exit when branch result"]; 58 [label="Exit when branch result"];
@@ -165,9 +165,9 @@ digraph equalsAndIdentity_kt {
color=blue color=blue
68 [label="Enter block"]; 68 [label="Enter block"];
69 [label="Access variable R|<local>/x|"]; 69 [label="Access variable R|<local>/x|"];
70 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 70 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
71 [label="Access variable R|<local>/y|"]; 71 [label="Access variable R|<local>/y|"];
72 [label="Function call: R|<local>/y|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 72 [label="Function call: R|<local>/y|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
73 [label="Exit block"]; 73 [label="Exit block"];
} }
74 [label="Exit when branch result"]; 74 [label="Exit when branch result"];
@@ -261,10 +261,10 @@ digraph equalsAndIdentity_kt {
103 [label="Enter block"]; 103 [label="Enter block"];
104 [label="Access variable R|<local>/x|"]; 104 [label="Access variable R|<local>/x|"];
105 [label="Smart cast: R|<local>/x|"]; 105 [label="Smart cast: R|<local>/x|"];
106 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 106 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
107 [label="Access variable R|<local>/y|"]; 107 [label="Access variable R|<local>/y|"];
108 [label="Smart cast: R|<local>/y|"]; 108 [label="Smart cast: R|<local>/y|"];
109 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 109 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
110 [label="Exit block"]; 110 [label="Exit block"];
} }
111 [label="Exit when branch result"]; 111 [label="Exit when branch result"];
@@ -289,10 +289,10 @@ digraph equalsAndIdentity_kt {
122 [label="Enter block"]; 122 [label="Enter block"];
123 [label="Access variable R|<local>/x|"]; 123 [label="Access variable R|<local>/x|"];
124 [label="Smart cast: R|<local>/x|"]; 124 [label="Smart cast: R|<local>/x|"];
125 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 125 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
126 [label="Access variable R|<local>/y|"]; 126 [label="Access variable R|<local>/y|"];
127 [label="Smart cast: R|<local>/y|"]; 127 [label="Smart cast: R|<local>/y|"];
128 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 128 [label="Function call: R|<local>/y|.R|/A.foo|()" style="filled" fillcolor=yellow];
129 [label="Exit block"]; 129 [label="Exit block"];
} }
130 [label="Exit when branch result"]; 130 [label="Exit when branch result"];
@@ -7,7 +7,7 @@ digraph incorrectSmartcastToNothing_kt {
color=red color=red
0 [label="Enter property" style="filled" fillcolor=red]; 0 [label="Enter property" style="filled" fillcolor=red];
1 [label="Const: String(foo)"]; 1 [label="Const: String(foo)"];
2 [label="Function call: R|java/io/File.File|(...)"]; 2 [label="Function call: R|java/io/File.File|(...)" style="filled" fillcolor=yellow];
3 [label="Exit property" style="filled" fillcolor=red]; 3 [label="Exit property" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -36,7 +36,7 @@ digraph incorrectSmartcastToNothing_kt {
12 [label="Enter when branch condition "]; 12 [label="Enter when branch condition "];
13 [label="Access variable R|<local>/cacheExtSetting|"]; 13 [label="Access variable R|<local>/cacheExtSetting|"];
14 [label="Smart cast: R|<local>/cacheExtSetting|"]; 14 [label="Smart cast: R|<local>/cacheExtSetting|"];
15 [label="Function call: R|<local>/cacheExtSetting|.R|kotlin/text/isBlank|()"]; 15 [label="Function call: R|<local>/cacheExtSetting|.R|kotlin/text/isBlank|()" style="filled" fillcolor=yellow];
16 [label="Exit when branch condition"]; 16 [label="Exit when branch condition"];
} }
subgraph cluster_6 { subgraph cluster_6 {
@@ -50,7 +50,7 @@ digraph incorrectSmartcastToNothing_kt {
20 [label="Enter block"]; 20 [label="Enter block"];
21 [label="Access variable R|<local>/cacheExtSetting|"]; 21 [label="Access variable R|<local>/cacheExtSetting|"];
22 [label="Smart cast: R|<local>/cacheExtSetting|"]; 22 [label="Smart cast: R|<local>/cacheExtSetting|"];
23 [label="Function call: R|java/io/File.File|(...)"]; 23 [label="Function call: R|java/io/File.File|(...)" style="filled" fillcolor=yellow];
24 [label="Exit block"]; 24 [label="Exit block"];
} }
25 [label="Exit when branch result"]; 25 [label="Exit when branch result"];
@@ -71,32 +71,31 @@ digraph incorrectSmartcastToNothing_kt {
35 [label="Postponed enter to lambda"]; 35 [label="Postponed enter to lambda"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
47 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 46 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
48 [label="Enter block"]; 47 [label="Enter block"];
49 [label="Access variable R|<local>/it|"]; 48 [label="Access variable R|<local>/it|"];
50 [label="Const: String(main.kts.compiled.cache)"]; 49 [label="Const: String(main.kts.compiled.cache)"];
51 [label="Function call: R|java/io/File.File|(...)"]; 50 [label="Function call: R|java/io/File.File|(...)" style="filled" fillcolor=yellow];
52 [label="Exit block"]; 51 [label="Exit block"];
} }
53 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 52 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
36 [label="Postponed exit from lambda"]; 36 [label="Postponed exit from lambda"];
37 [label="Function call: $subj$.R|kotlin/let|<R|java/io/File|, R|java/io/File|>(...)"]; 37 [label="Function call: $subj$.R|kotlin/let|<R|java/io/File|, R|java/io/File|>(...)" style="filled" fillcolor=yellow];
38 [label="Exit safe call"]; 38 [label="Exit safe call"];
39 [label="Exit block"]; 39 [label="Exit block"];
} }
40 [label="Exit when branch result"]; 40 [label="Exit when branch result"];
41 [label="Exit when"]; 41 [label="Merge postponed lambda exits"];
42 [label="Exit when"];
} }
42 [label="Variable declaration: lval cacheBaseDir: R|java/io/File?|"]; 43 [label="Variable declaration: lval cacheBaseDir: R|java/io/File?|"];
43 [label="Exit block"]; 44 [label="Exit block"];
} }
44 [label="Exit function test" style="filled" fillcolor=red]; 45 [label="Exit function test" style="filled" fillcolor=red];
} }
45 [label="Merge postponed lambda exits"];
46 [label="Merge postponed lambda exits"];
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
@@ -118,35 +117,35 @@ digraph incorrectSmartcastToNothing_kt {
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {41}; 25 -> {42};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {41}; 30 -> {42};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34 38}; 33 -> {34 38};
34 -> {35}; 34 -> {35};
35 -> {47}; 35 -> {46};
35 -> {36} [color=red]; 35 -> {36} [color=red];
35 -> {47} [style=dashed]; 35 -> {46} [style=dashed];
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {45 39}; 38 -> {41 39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {42};
41 -> {46 42}; 41 -> {42} [color=red];
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
45 -> {46} [color=red]; 44 -> {45};
46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {41} [color=red];
53 -> {45} [color=red]; 52 -> {36} [color=green];
53 -> {36} [color=green];
} }
@@ -55,28 +55,27 @@ digraph inPlaceLambdas_kt {
18 [label="Postponed enter to lambda"]; 18 [label="Postponed enter to lambda"];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
27 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 26 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
28 [label="Enter block"]; 27 [label="Enter block"];
29 [label="Access variable R|<local>/x|"]; 28 [label="Access variable R|<local>/x|"];
30 [label="Smart cast: R|<local>/x|"]; 29 [label="Smart cast: R|<local>/x|"];
31 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 30 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
32 [label="Exit block"]; 31 [label="Exit block"];
} }
33 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 32 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
19 [label="Call arguments union" style="filled" fillcolor=yellow]; 19 [label="Postponed exit from lambda"];
20 [label="Postponed exit from lambda"]; 20 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
21 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)"]; 21 [label="Exit block"];
22 [label="Exit block"];
} }
23 [label="Exit when branch result"]; 22 [label="Exit when branch result"];
24 [label="Exit when"]; 23 [label="Exit when"];
} }
25 [label="Exit block"]; 24 [label="Exit block"];
} }
26 [label="Exit function test_1" style="filled" fillcolor=red]; 25 [label="Exit function test_1" style="filled" fillcolor=red];
} }
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
@@ -85,163 +84,158 @@ digraph inPlaceLambdas_kt {
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {16 15}; 14 -> {16 15};
15 -> {24}; 15 -> {23};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {27}; 18 -> {26};
18 -> {20} [color=red]; 18 -> {19} [color=red];
18 -> {27} [style=dashed]; 18 -> {26} [style=dashed];
19 -> {21} [color=red]; 19 -> {20};
20 -> {21} [color=green]; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {20} [color=red];
33 -> {19} [color=red]; 32 -> {19} [color=green];
33 -> {20} [color=green];
subgraph cluster_11 { subgraph cluster_11 {
color=red color=red
34 [label="Enter function test_2" style="filled" fillcolor=red]; 33 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
35 [label="Enter block"]; 34 [label="Enter block"];
36 [label="Postponed enter to lambda"]; 35 [label="Postponed enter to lambda"];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
45 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 43 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
46 [label="Enter block"]; 44 [label="Enter block"];
47 [label="Access variable R|<local>/x|"]; 45 [label="Access variable R|<local>/x|"];
48 [label="Type operator: (R|<local>/x| as R|B|)"]; 46 [label="Type operator: (R|<local>/x| as R|B|)"];
49 [label="Exit block"]; 47 [label="Exit block"];
} }
50 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 48 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
37 [label="Call arguments union" style="filled" fillcolor=yellow]; 36 [label="Postponed exit from lambda"];
38 [label="Postponed exit from lambda"]; 37 [label="Function call: R|kotlin/run|<R|B|>(...)" style="filled" fillcolor=yellow];
39 [label="Function call: R|kotlin/run|<R|B|>(...)"]; 38 [label="Access variable R|<local>/x|"];
40 [label="Access variable R|<local>/x|"]; 39 [label="Smart cast: R|<local>/x|"];
41 [label="Smart cast: R|<local>/x|"]; 40 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
42 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 41 [label="Exit block"];
43 [label="Exit block"];
} }
44 [label="Exit function test_2" style="filled" fillcolor=red]; 42 [label="Exit function test_2" style="filled" fillcolor=red];
} }
33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {43};
36 -> {45}; 35 -> {36} [color=red];
36 -> {38} [color=red]; 35 -> {43} [style=dashed];
36 -> {45} [style=dashed]; 36 -> {37};
37 -> {39} [color=red]; 37 -> {38};
38 -> {39} [color=green]; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {37} [color=red];
49 -> {50}; 48 -> {36} [color=green];
50 -> {37} [color=red];
50 -> {38} [color=green];
subgraph cluster_15 { subgraph cluster_15 {
color=red color=red
51 [label="Enter function test_3" style="filled" fillcolor=red]; 49 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_16 { subgraph cluster_16 {
color=blue color=blue
52 [label="Enter block"]; 50 [label="Enter block"];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
53 [label="Enter when"]; 51 [label="Enter when"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
54 [label="Enter when branch condition "]; 52 [label="Enter when branch condition "];
55 [label="Access variable R|<local>/x|"]; 53 [label="Access variable R|<local>/x|"];
56 [label="Type operator: (R|<local>/x| is R|A|)"]; 54 [label="Type operator: (R|<local>/x| is R|A|)"];
57 [label="Exit when branch condition"]; 55 [label="Exit when branch condition"];
} }
58 [label="Synthetic else branch"]; 56 [label="Synthetic else branch"];
59 [label="Enter when branch result"]; 57 [label="Enter when branch result"];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
60 [label="Enter block"]; 58 [label="Enter block"];
61 [label="Postponed enter to lambda"]; 59 [label="Postponed enter to lambda"];
subgraph cluster_20 { subgraph cluster_20 {
color=blue color=blue
73 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 70 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
74 [label="Enter block"]; 71 [label="Enter block"];
72 [label="Access variable R|<local>/x|"];
73 [label="Smart cast: R|<local>/x|"];
74 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
75 [label="Access variable R|<local>/x|"]; 75 [label="Access variable R|<local>/x|"];
76 [label="Smart cast: R|<local>/x|"]; 76 [label="Smart cast: R|<local>/x|"];
77 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 77 [label="Type operator: (R|<local>/x| as R|B|)"];
78 [label="Access variable R|<local>/x|"]; 78 [label="Exit block"];
79 [label="Smart cast: R|<local>/x|"];
80 [label="Type operator: (R|<local>/x| as R|B|)"];
81 [label="Exit block"];
} }
82 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 79 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
62 [label="Call arguments union" style="filled" fillcolor=yellow]; 60 [label="Postponed exit from lambda"];
63 [label="Postponed exit from lambda"]; 61 [label="Function call: R|kotlin/run|<R|B|>(...)" style="filled" fillcolor=yellow];
64 [label="Function call: R|kotlin/run|<R|B|>(...)"]; 62 [label="Access variable R|<local>/x|"];
65 [label="Access variable R|<local>/x|"]; 63 [label="Smart cast: R|<local>/x|"];
66 [label="Smart cast: R|<local>/x|"]; 64 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
67 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 65 [label="Exit block"];
68 [label="Exit block"];
} }
69 [label="Exit when branch result"]; 66 [label="Exit when branch result"];
70 [label="Exit when"]; 67 [label="Exit when"];
} }
71 [label="Exit block"]; 68 [label="Exit block"];
} }
72 [label="Exit function test_3" style="filled" fillcolor=red]; 69 [label="Exit function test_3" style="filled" fillcolor=red];
} }
49 -> {50};
50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {57 56};
56 -> {57}; 56 -> {67};
57 -> {59 58}; 57 -> {58};
58 -> {70}; 58 -> {59};
59 -> {60}; 59 -> {70};
59 -> {60} [color=red];
59 -> {70} [style=dashed];
60 -> {61}; 60 -> {61};
61 -> {73}; 61 -> {62};
61 -> {63} [color=red]; 62 -> {63};
61 -> {73} [style=dashed]; 63 -> {64};
62 -> {64} [color=red];
63 -> {64} [color=green];
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
69 -> {70};
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {76}; 75 -> {76};
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {61} [color=red];
80 -> {81}; 79 -> {60} [color=green];
81 -> {82};
82 -> {62} [color=red];
82 -> {63} [color=green];
} }
@@ -6,7 +6,7 @@ digraph lambdaInWhenBranch_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -22,7 +22,7 @@ digraph lambdaInWhenBranch_kt {
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter function <init>" style="filled" fillcolor=red]; 5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|Sealed|>()"]; 6 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow];
7 [label="Exit function <init>" style="filled" fillcolor=red]; 7 [label="Exit function <init>" style="filled" fillcolor=red];
} }
5 -> {6}; 5 -> {6};
@@ -75,7 +75,7 @@ digraph lambdaInWhenBranch_kt {
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
21 [label="Enter function <init>" style="filled" fillcolor=red]; 21 [label="Enter function <init>" style="filled" fillcolor=red];
22 [label="Delegated constructor call: super<R|Sealed|>()"]; 22 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow];
23 [label="Exit function <init>" style="filled" fillcolor=red]; 23 [label="Exit function <init>" style="filled" fillcolor=red];
} }
21 -> {22}; 21 -> {22};
@@ -135,17 +135,17 @@ digraph lambdaInWhenBranch_kt {
48 [label="Postponed enter to lambda"]; 48 [label="Postponed enter to lambda"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
83 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 82 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
84 [label="Enter block"]; 83 [label="Enter block"];
85 [label="Access variable R|<local>/it|"]; 84 [label="Access variable R|<local>/it|"];
86 [label="Exit block"]; 85 [label="Exit block"];
} }
87 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 86 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
49 [label="Postponed exit from lambda"]; 49 [label="Postponed exit from lambda"];
50 [label="Function call: String().R|kotlin/let|<R|kotlin/String|, R|kotlin/String|>(...)"]; 50 [label="Function call: String().R|kotlin/let|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
51 [label="Exit block"]; 51 [label="Exit block"];
} }
52 [label="Exit when branch result"]; 52 [label="Exit when branch result"];
@@ -196,7 +196,6 @@ digraph lambdaInWhenBranch_kt {
} }
81 [label="Exit function foo" style="filled" fillcolor=red]; 81 [label="Exit function foo" style="filled" fillcolor=red];
} }
82 [label="Merge postponed lambda exits"];
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
@@ -217,14 +216,14 @@ digraph lambdaInWhenBranch_kt {
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {83}; 48 -> {82};
48 -> {49} [color=red]; 48 -> {49} [color=red];
48 -> {83} [style=dashed]; 48 -> {82} [style=dashed];
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {82 54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {57};
@@ -252,11 +251,11 @@ digraph lambdaInWhenBranch_kt {
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {81}; 80 -> {81};
82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {86}; 85 -> {86};
86 -> {87}; 86 -> {53} [color=red];
87 -> {82} [color=red]; 86 -> {49} [color=green];
87 -> {49} [color=green];
} }
@@ -25,7 +25,7 @@ digraph smartcastOnLambda_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
10 [label="Enter block"]; 10 [label="Enter block"];
11 [label="Function call: R|<local>/func|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 11 [label="Function call: R|<local>/func|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
12 [label="Exit block"]; 12 [label="Exit block"];
} }
13 [label="Exit when branch result"]; 13 [label="Exit when branch result"];
@@ -66,7 +66,7 @@ digraph dataFlowInfoFromWhileCondition_kt {
24 [label="Enter block"]; 24 [label="Enter block"];
25 [label="Access variable R|<local>/a|"]; 25 [label="Access variable R|<local>/a|"];
26 [label="Smart cast: R|<local>/a|"]; 26 [label="Smart cast: R|<local>/a|"];
27 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 27 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
28 [label="Exit block"]; 28 [label="Exit block"];
} }
29 [label="Exit loop block"]; 29 [label="Exit loop block"];
@@ -69,7 +69,7 @@ digraph endlessLoops_kt {
} }
29 [label="Access variable R|<local>/x|"]; 29 [label="Access variable R|<local>/x|"];
30 [label="Smart cast: R|<local>/x|"]; 30 [label="Smart cast: R|<local>/x|"];
31 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 31 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
32 [label="Exit block"]; 32 [label="Exit block"];
} }
33 [label="Exit function test_1" style="filled" fillcolor=red]; 33 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -158,7 +158,7 @@ digraph endlessLoops_kt {
} }
59 [label="Access variable R|<local>/x|"]; 59 [label="Access variable R|<local>/x|"];
60 [label="Smart cast: R|<local>/x|"]; 60 [label="Smart cast: R|<local>/x|"];
61 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 61 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
62 [label="Exit block"]; 62 [label="Exit block"];
} }
63 [label="Exit function test_2" style="filled" fillcolor=red]; 63 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -268,7 +268,7 @@ digraph endlessLoops_kt {
} }
101 [label="Access variable R|<local>/x|"]; 101 [label="Access variable R|<local>/x|"];
102 [label="Smart cast: R|<local>/x|"]; 102 [label="Smart cast: R|<local>/x|"];
103 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 103 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
104 [label="Exit block"]; 104 [label="Exit block"];
} }
105 [label="Exit function test_3" style="filled" fillcolor=red]; 105 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -371,7 +371,7 @@ digraph endlessLoops_kt {
132 [label="Exit whileloop"]; 132 [label="Exit whileloop"];
} }
133 [label="Access variable R|<local>/x|"]; 133 [label="Access variable R|<local>/x|"];
134 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"]; 134 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
135 [label="Exit block"]; 135 [label="Exit block"];
} }
136 [label="Exit function test_4" style="filled" fillcolor=red]; 136 [label="Exit function test_4" style="filled" fillcolor=red];
@@ -462,7 +462,7 @@ digraph endlessLoops_kt {
} }
162 [label="Access variable R|<local>/x|"]; 162 [label="Access variable R|<local>/x|"];
163 [label="Smart cast: R|<local>/x|"]; 163 [label="Smart cast: R|<local>/x|"];
164 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 164 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
165 [label="Exit block"]; 165 [label="Exit block"];
} }
166 [label="Exit function test_5" style="filled" fillcolor=red]; 166 [label="Exit function test_5" style="filled" fillcolor=red];
@@ -551,7 +551,7 @@ digraph endlessLoops_kt {
} }
192 [label="Access variable R|<local>/x|"]; 192 [label="Access variable R|<local>/x|"];
193 [label="Smart cast: R|<local>/x|"]; 193 [label="Smart cast: R|<local>/x|"];
194 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 194 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
195 [label="Exit block"]; 195 [label="Exit block"];
} }
196 [label="Exit function test_6" style="filled" fillcolor=red]; 196 [label="Exit function test_6" style="filled" fillcolor=red];
@@ -58,20 +58,20 @@ digraph multipleCasts_kt {
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
16 [label="Enter block"]; 16 [label="Enter block"];
17 [label="Function call: R|/getAny|()"]; 17 [label="Function call: R|/getAny|()" style="filled" fillcolor=yellow];
18 [label="Variable declaration: lval a: R|kotlin/Any?|"]; 18 [label="Variable declaration: lval a: R|kotlin/Any?|"];
19 [label="Function call: R|/getAny|()"]; 19 [label="Function call: R|/getAny|()" style="filled" fillcolor=yellow];
20 [label="Variable declaration: lval b: R|kotlin/Any?|"]; 20 [label="Variable declaration: lval b: R|kotlin/Any?|"];
21 [label="Access variable R|<local>/a|"]; 21 [label="Access variable R|<local>/a|"];
22 [label="Type operator: (R|<local>/a| as R|A|)"]; 22 [label="Type operator: (R|<local>/a| as R|A|)"];
23 [label="Access variable R|<local>/a|"]; 23 [label="Access variable R|<local>/a|"];
24 [label="Smart cast: R|<local>/a|"]; 24 [label="Smart cast: R|<local>/a|"];
25 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 25 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
26 [label="Access variable R|<local>/b|"]; 26 [label="Access variable R|<local>/b|"];
27 [label="Type operator: (R|<local>/b| as R|B|)"]; 27 [label="Type operator: (R|<local>/b| as R|B|)"];
28 [label="Access variable R|<local>/b|"]; 28 [label="Access variable R|<local>/b|"];
29 [label="Smart cast: R|<local>/b|"]; 29 [label="Smart cast: R|<local>/b|"];
30 [label="Function call: R|<local>/b|.R|/B.foo|()"]; 30 [label="Function call: R|<local>/b|.R|/B.foo|()" style="filled" fillcolor=yellow];
31 [label="Exit block"]; 31 [label="Exit block"];
} }
32 [label="Exit function test_0" style="filled" fillcolor=red]; 32 [label="Exit function test_0" style="filled" fillcolor=red];
@@ -100,9 +100,9 @@ digraph multipleCasts_kt {
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
34 [label="Enter block"]; 34 [label="Enter block"];
35 [label="Function call: R|/getAny|()"]; 35 [label="Function call: R|/getAny|()" style="filled" fillcolor=yellow];
36 [label="Variable declaration: lval a: R|kotlin/Any?|"]; 36 [label="Variable declaration: lval a: R|kotlin/Any?|"];
37 [label="Function call: R|/getAny|()"]; 37 [label="Function call: R|/getAny|()" style="filled" fillcolor=yellow];
38 [label="Variable declaration: lval b: R|kotlin/Any?|"]; 38 [label="Variable declaration: lval b: R|kotlin/Any?|"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
@@ -130,10 +130,10 @@ digraph multipleCasts_kt {
52 [label="Enter block"]; 52 [label="Enter block"];
53 [label="Access variable R|<local>/a|"]; 53 [label="Access variable R|<local>/a|"];
54 [label="Smart cast: R|<local>/a|"]; 54 [label="Smart cast: R|<local>/a|"];
55 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 55 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
56 [label="Access variable R|<local>/b|"]; 56 [label="Access variable R|<local>/b|"];
57 [label="Smart cast: R|<local>/b|"]; 57 [label="Smart cast: R|<local>/b|"];
58 [label="Function call: R|<local>/b|.R|/B.foo|()"]; 58 [label="Function call: R|<local>/b|.R|/B.foo|()" style="filled" fillcolor=yellow];
59 [label="Exit block"]; 59 [label="Exit block"];
} }
60 [label="Exit when branch result"]; 60 [label="Exit when branch result"];
@@ -55,7 +55,7 @@ digraph nullability_kt {
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
14 [label="Enter function <init>" style="filled" fillcolor=red]; 14 [label="Enter function <init>" style="filled" fillcolor=red];
15 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 15 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
16 [label="Exit function <init>" style="filled" fillcolor=red]; 16 [label="Exit function <init>" style="filled" fillcolor=red];
} }
14 -> {15}; 14 -> {15};
@@ -106,7 +106,7 @@ digraph nullability_kt {
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
30 [label="Enter function <init>" style="filled" fillcolor=red]; 30 [label="Enter function <init>" style="filled" fillcolor=red];
31 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 31 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
32 [label="Exit function <init>" style="filled" fillcolor=red]; 32 [label="Exit function <init>" style="filled" fillcolor=red];
} }
30 -> {31}; 30 -> {31};
@@ -157,7 +157,7 @@ digraph nullability_kt {
subgraph cluster_17 { subgraph cluster_17 {
color=red color=red
46 [label="Enter function <init>" style="filled" fillcolor=red]; 46 [label="Enter function <init>" style="filled" fillcolor=red];
47 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 47 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
48 [label="Exit function <init>" style="filled" fillcolor=red]; 48 [label="Exit function <init>" style="filled" fillcolor=red];
} }
46 -> {47}; 46 -> {47};
@@ -240,7 +240,7 @@ digraph nullability_kt {
76 [label="Enter block"]; 76 [label="Enter block"];
77 [label="Access variable R|<local>/x|"]; 77 [label="Access variable R|<local>/x|"];
78 [label="Smart cast: R|<local>/x|"]; 78 [label="Smart cast: R|<local>/x|"];
79 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 79 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
80 [label="Exit block"]; 80 [label="Exit block"];
} }
81 [label="Exit when branch result"]; 81 [label="Exit when branch result"];
@@ -250,14 +250,14 @@ digraph nullability_kt {
83 [label="Enter block"]; 83 [label="Enter block"];
84 [label="Access variable R|<local>/x|"]; 84 [label="Access variable R|<local>/x|"];
85 [label="Smart cast: R|<local>/x|"]; 85 [label="Smart cast: R|<local>/x|"];
86 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 86 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
87 [label="Exit block"]; 87 [label="Exit block"];
} }
88 [label="Exit when branch result"]; 88 [label="Exit when branch result"];
89 [label="Exit when"]; 89 [label="Exit when"];
} }
90 [label="Access variable R|<local>/x|"]; 90 [label="Access variable R|<local>/x|"];
91 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 91 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
92 [label="Exit block"]; 92 [label="Exit block"];
} }
93 [label="Exit function test_1" style="filled" fillcolor=red]; 93 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -319,7 +319,7 @@ digraph nullability_kt {
105 [label="Enter block"]; 105 [label="Enter block"];
106 [label="Access variable R|<local>/x|"]; 106 [label="Access variable R|<local>/x|"];
107 [label="Smart cast: R|<local>/x|"]; 107 [label="Smart cast: R|<local>/x|"];
108 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 108 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
109 [label="Exit block"]; 109 [label="Exit block"];
} }
110 [label="Exit when branch result"]; 110 [label="Exit when branch result"];
@@ -329,14 +329,14 @@ digraph nullability_kt {
112 [label="Enter block"]; 112 [label="Enter block"];
113 [label="Access variable R|<local>/x|"]; 113 [label="Access variable R|<local>/x|"];
114 [label="Smart cast: R|<local>/x|"]; 114 [label="Smart cast: R|<local>/x|"];
115 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 115 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
116 [label="Exit block"]; 116 [label="Exit block"];
} }
117 [label="Exit when branch result"]; 117 [label="Exit when branch result"];
118 [label="Exit when"]; 118 [label="Exit when"];
} }
119 [label="Access variable R|<local>/x|"]; 119 [label="Access variable R|<local>/x|"];
120 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 120 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
121 [label="Exit block"]; 121 [label="Exit block"];
} }
122 [label="Exit function test_2" style="filled" fillcolor=red]; 122 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -385,7 +385,7 @@ digraph nullability_kt {
131 [label="Exit ?:"]; 131 [label="Exit ?:"];
132 [label="Access variable R|<local>/x|"]; 132 [label="Access variable R|<local>/x|"];
133 [label="Smart cast: R|<local>/x|"]; 133 [label="Smart cast: R|<local>/x|"];
134 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 134 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
135 [label="Exit block"]; 135 [label="Exit block"];
} }
136 [label="Exit function test_3" style="filled" fillcolor=red]; 136 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -419,7 +419,7 @@ digraph nullability_kt {
140 [label="Enter when branch condition "]; 140 [label="Enter when branch condition "];
141 [label="Access variable R|<local>/x|"]; 141 [label="Access variable R|<local>/x|"];
142 [label="Enter safe call"]; 142 [label="Enter safe call"];
143 [label="Function call: $subj$.R|/A.getA|()"]; 143 [label="Function call: $subj$.R|/A.getA|()" style="filled" fillcolor=yellow];
144 [label="Exit safe call"]; 144 [label="Exit safe call"];
145 [label="Const: Null(null)"]; 145 [label="Const: Null(null)"];
146 [label="Equality operator =="]; 146 [label="Equality operator =="];
@@ -439,7 +439,7 @@ digraph nullability_kt {
} }
156 [label="Access variable R|<local>/x|"]; 156 [label="Access variable R|<local>/x|"];
157 [label="Smart cast: R|<local>/x|"]; 157 [label="Smart cast: R|<local>/x|"];
158 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 158 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
159 [label="Exit block"]; 159 [label="Exit block"];
} }
160 [label="Exit function test_4" style="filled" fillcolor=red]; 160 [label="Exit function test_4" style="filled" fillcolor=red];
@@ -487,7 +487,7 @@ digraph nullability_kt {
168 [label="Enter safe call"]; 168 [label="Enter safe call"];
169 [label="Access variable R|/MyData.s|"]; 169 [label="Access variable R|/MyData.s|"];
170 [label="Enter safe call"]; 170 [label="Enter safe call"];
171 [label="Function call: $subj$.R|kotlin/Int.inc|()"]; 171 [label="Function call: $subj$.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
172 [label="Exit safe call"]; 172 [label="Exit safe call"];
173 [label="Exit safe call"]; 173 [label="Exit safe call"];
174 [label="Exit safe call"]; 174 [label="Exit safe call"];
@@ -514,7 +514,7 @@ digraph nullability_kt {
192 [label="Access variable R|/Q.data|"]; 192 [label="Access variable R|/Q.data|"];
193 [label="Smart cast: R|<local>/q|.R|/Q.data|"]; 193 [label="Smart cast: R|<local>/q|.R|/Q.data|"];
194 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#"]; 194 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#"];
195 [label="Function call: R|<local>/q|.R|/Q.data|.<Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#.R|kotlin/Int.inc|()"]; 195 [label="Function call: R|<local>/q|.R|/Q.data|.<Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
196 [label="Exit block"]; 196 [label="Exit block"];
} }
197 [label="Exit when branch result"]; 197 [label="Exit when branch result"];
@@ -576,7 +576,7 @@ digraph nullability_kt {
206 [label="Enter safe call"]; 206 [label="Enter safe call"];
207 [label="Access variable R|/MyData.s|"]; 207 [label="Access variable R|/MyData.s|"];
208 [label="Enter safe call"]; 208 [label="Enter safe call"];
209 [label="Function call: $subj$.R|kotlin/Int.inc|()"]; 209 [label="Function call: $subj$.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
210 [label="Exit safe call"]; 210 [label="Exit safe call"];
211 [label="Exit lhs of ?:"]; 211 [label="Exit lhs of ?:"];
212 [label="Lhs of ?: is not null"]; 212 [label="Lhs of ?: is not null"];
@@ -600,7 +600,7 @@ digraph nullability_kt {
230 [label="Access variable R|/Q.data|"]; 230 [label="Access variable R|/Q.data|"];
231 [label="Smart cast: R|<local>/q|.R|/Q.data|"]; 231 [label="Smart cast: R|<local>/q|.R|/Q.data|"];
232 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#"]; 232 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#"];
233 [label="Function call: R|<local>/q|.R|/Q.data|.<Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#.R|kotlin/Int.inc|()"]; 233 [label="Function call: R|<local>/q|.R|/Q.data|.<Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
234 [label="Exit block"]; 234 [label="Exit block"];
} }
235 [label="Exit function test_6" style="filled" fillcolor=red]; 235 [label="Exit function test_6" style="filled" fillcolor=red];
@@ -655,11 +655,11 @@ digraph nullability_kt {
239 [label="Enter when branch condition "]; 239 [label="Enter when branch condition "];
240 [label="Access variable R|<local>/q|"]; 240 [label="Access variable R|<local>/q|"];
241 [label="Enter safe call"]; 241 [label="Enter safe call"];
242 [label="Function call: $subj$.R|/Q.fdata|()"]; 242 [label="Function call: $subj$.R|/Q.fdata|()" style="filled" fillcolor=yellow];
243 [label="Enter safe call"]; 243 [label="Enter safe call"];
244 [label="Function call: $subj$.R|/MyData.fs|()"]; 244 [label="Function call: $subj$.R|/MyData.fs|()" style="filled" fillcolor=yellow];
245 [label="Enter safe call"]; 245 [label="Enter safe call"];
246 [label="Function call: $subj$.R|kotlin/Int.inc|()"]; 246 [label="Function call: $subj$.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
247 [label="Exit safe call"]; 247 [label="Exit safe call"];
248 [label="Exit safe call"]; 248 [label="Exit safe call"];
249 [label="Exit safe call"]; 249 [label="Exit safe call"];
@@ -674,16 +674,16 @@ digraph nullability_kt {
255 [label="Enter block"]; 255 [label="Enter block"];
256 [label="Access variable R|<local>/q|"]; 256 [label="Access variable R|<local>/q|"];
257 [label="Smart cast: R|<local>/q|"]; 257 [label="Smart cast: R|<local>/q|"];
258 [label="Function call: R|<local>/q|.R|/Q.fdata|()"]; 258 [label="Function call: R|<local>/q|.R|/Q.fdata|()" style="filled" fillcolor=yellow];
259 [label="Access variable R|<local>/q|"]; 259 [label="Access variable R|<local>/q|"];
260 [label="Smart cast: R|<local>/q|"]; 260 [label="Smart cast: R|<local>/q|"];
261 [label="Function call: R|<local>/q|.R|/Q.fdata|()"]; 261 [label="Function call: R|<local>/q|.R|/Q.fdata|()" style="filled" fillcolor=yellow];
262 [label="Function call: R|<local>/q|.R|/Q.fdata|().<Inapplicable(UNSAFE_CALL): /MyData.fs>#()"]; 262 [label="Function call: R|<local>/q|.R|/Q.fdata|().<Inapplicable(UNSAFE_CALL): /MyData.fs>#()" style="filled" fillcolor=yellow];
263 [label="Access variable R|<local>/q|"]; 263 [label="Access variable R|<local>/q|"];
264 [label="Smart cast: R|<local>/q|"]; 264 [label="Smart cast: R|<local>/q|"];
265 [label="Function call: R|<local>/q|.R|/Q.fdata|()"]; 265 [label="Function call: R|<local>/q|.R|/Q.fdata|()" style="filled" fillcolor=yellow];
266 [label="Function call: R|<local>/q|.R|/Q.fdata|().<Inapplicable(UNSAFE_CALL): /MyData.fs>#()"]; 266 [label="Function call: R|<local>/q|.R|/Q.fdata|().<Inapplicable(UNSAFE_CALL): /MyData.fs>#()" style="filled" fillcolor=yellow];
267 [label="Function call: R|<local>/q|.R|/Q.fdata|().<Inapplicable(UNSAFE_CALL): /MyData.fs>#().R|kotlin/Int.inc|()"]; 267 [label="Function call: R|<local>/q|.R|/Q.fdata|().<Inapplicable(UNSAFE_CALL): /MyData.fs>#().R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
268 [label="Exit block"]; 268 [label="Exit block"];
} }
269 [label="Exit when branch result"]; 269 [label="Exit when branch result"];
@@ -754,7 +754,7 @@ digraph nullability_kt {
283 [label="Enter block"]; 283 [label="Enter block"];
284 [label="Access variable R|<local>/b|"]; 284 [label="Access variable R|<local>/b|"];
285 [label="Smart cast: R|<local>/b|"]; 285 [label="Smart cast: R|<local>/b|"];
286 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 286 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
287 [label="Exit block"]; 287 [label="Exit block"];
} }
288 [label="Exit when branch result"]; 288 [label="Exit when branch result"];
@@ -807,14 +807,14 @@ digraph nullability_kt {
302 [label="Enter block"]; 302 [label="Enter block"];
303 [label="Access variable R|<local>/b|"]; 303 [label="Access variable R|<local>/b|"];
304 [label="Smart cast: R|<local>/b|"]; 304 [label="Smart cast: R|<local>/b|"];
305 [label="Function call: R|<local>/b|.R|kotlin/Int.inc|()"]; 305 [label="Function call: R|<local>/b|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
306 [label="Exit block"]; 306 [label="Exit block"];
} }
307 [label="Exit when branch result"]; 307 [label="Exit when branch result"];
308 [label="Exit when"]; 308 [label="Exit when"];
} }
309 [label="Access variable R|<local>/b|"]; 309 [label="Access variable R|<local>/b|"];
310 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 310 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
subgraph cluster_66 { subgraph cluster_66 {
color=blue color=blue
311 [label="Enter when"]; 311 [label="Enter when"];
@@ -833,14 +833,14 @@ digraph nullability_kt {
319 [label="Enter block"]; 319 [label="Enter block"];
320 [label="Access variable R|<local>/b|"]; 320 [label="Access variable R|<local>/b|"];
321 [label="Smart cast: R|<local>/b|"]; 321 [label="Smart cast: R|<local>/b|"];
322 [label="Function call: R|<local>/b|.R|kotlin/Int.inc|()"]; 322 [label="Function call: R|<local>/b|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
323 [label="Exit block"]; 323 [label="Exit block"];
} }
324 [label="Exit when branch result"]; 324 [label="Exit when branch result"];
325 [label="Exit when"]; 325 [label="Exit when"];
} }
326 [label="Access variable R|<local>/b|"]; 326 [label="Access variable R|<local>/b|"];
327 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 327 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
subgraph cluster_69 { subgraph cluster_69 {
color=blue color=blue
328 [label="Enter when"]; 328 [label="Enter when"];
@@ -859,14 +859,14 @@ digraph nullability_kt {
336 [label="Enter block"]; 336 [label="Enter block"];
337 [label="Access variable R|<local>/b|"]; 337 [label="Access variable R|<local>/b|"];
338 [label="Smart cast: R|<local>/b|"]; 338 [label="Smart cast: R|<local>/b|"];
339 [label="Function call: R|<local>/b|.R|kotlin/Int.inc|()"]; 339 [label="Function call: R|<local>/b|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
340 [label="Exit block"]; 340 [label="Exit block"];
} }
341 [label="Exit when branch result"]; 341 [label="Exit when branch result"];
342 [label="Exit when"]; 342 [label="Exit when"];
} }
343 [label="Access variable R|<local>/b|"]; 343 [label="Access variable R|<local>/b|"];
344 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 344 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
subgraph cluster_72 { subgraph cluster_72 {
color=blue color=blue
345 [label="Enter when"]; 345 [label="Enter when"];
@@ -885,14 +885,14 @@ digraph nullability_kt {
353 [label="Enter block"]; 353 [label="Enter block"];
354 [label="Access variable R|<local>/b|"]; 354 [label="Access variable R|<local>/b|"];
355 [label="Smart cast: R|<local>/b|"]; 355 [label="Smart cast: R|<local>/b|"];
356 [label="Function call: R|<local>/b|.R|kotlin/Int.inc|()"]; 356 [label="Function call: R|<local>/b|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
357 [label="Exit block"]; 357 [label="Exit block"];
} }
358 [label="Exit when branch result"]; 358 [label="Exit when branch result"];
359 [label="Exit when"]; 359 [label="Exit when"];
} }
360 [label="Access variable R|<local>/b|"]; 360 [label="Access variable R|<local>/b|"];
361 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 361 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
362 [label="Exit block"]; 362 [label="Exit block"];
} }
363 [label="Exit function test_9" style="filled" fillcolor=red]; 363 [label="Exit function test_9" style="filled" fillcolor=red];
@@ -992,14 +992,14 @@ digraph nullability_kt {
color=blue color=blue
374 [label="Enter block"]; 374 [label="Enter block"];
375 [label="Access variable R|<local>/b|"]; 375 [label="Access variable R|<local>/b|"];
376 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 376 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
377 [label="Exit block"]; 377 [label="Exit block"];
} }
378 [label="Exit when branch result"]; 378 [label="Exit when branch result"];
379 [label="Exit when"]; 379 [label="Exit when"];
} }
380 [label="Access variable R|<local>/b|"]; 380 [label="Access variable R|<local>/b|"];
381 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 381 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
subgraph cluster_80 { subgraph cluster_80 {
color=blue color=blue
382 [label="Enter when"]; 382 [label="Enter when"];
@@ -1017,14 +1017,14 @@ digraph nullability_kt {
color=blue color=blue
390 [label="Enter block"]; 390 [label="Enter block"];
391 [label="Access variable R|<local>/b|"]; 391 [label="Access variable R|<local>/b|"];
392 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 392 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
393 [label="Exit block"]; 393 [label="Exit block"];
} }
394 [label="Exit when branch result"]; 394 [label="Exit when branch result"];
395 [label="Exit when"]; 395 [label="Exit when"];
} }
396 [label="Access variable R|<local>/b|"]; 396 [label="Access variable R|<local>/b|"];
397 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 397 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
subgraph cluster_83 { subgraph cluster_83 {
color=blue color=blue
398 [label="Enter when"]; 398 [label="Enter when"];
@@ -1042,14 +1042,14 @@ digraph nullability_kt {
color=blue color=blue
406 [label="Enter block"]; 406 [label="Enter block"];
407 [label="Access variable R|<local>/b|"]; 407 [label="Access variable R|<local>/b|"];
408 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 408 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
409 [label="Exit block"]; 409 [label="Exit block"];
} }
410 [label="Exit when branch result"]; 410 [label="Exit when branch result"];
411 [label="Exit when"]; 411 [label="Exit when"];
} }
412 [label="Access variable R|<local>/b|"]; 412 [label="Access variable R|<local>/b|"];
413 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 413 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
subgraph cluster_86 { subgraph cluster_86 {
color=blue color=blue
414 [label="Enter when"]; 414 [label="Enter when"];
@@ -1067,14 +1067,14 @@ digraph nullability_kt {
color=blue color=blue
422 [label="Enter block"]; 422 [label="Enter block"];
423 [label="Access variable R|<local>/b|"]; 423 [label="Access variable R|<local>/b|"];
424 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 424 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
425 [label="Exit block"]; 425 [label="Exit block"];
} }
426 [label="Exit when branch result"]; 426 [label="Exit when branch result"];
427 [label="Exit when"]; 427 [label="Exit when"];
} }
428 [label="Access variable R|<local>/b|"]; 428 [label="Access variable R|<local>/b|"];
429 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"]; 429 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()" style="filled" fillcolor=yellow];
430 [label="Exit block"]; 430 [label="Exit block"];
} }
431 [label="Exit function test_10" style="filled" fillcolor=red]; 431 [label="Exit function test_10" style="filled" fillcolor=red];
@@ -1165,7 +1165,7 @@ digraph nullability_kt {
439 [label="Enter safe call"]; 439 [label="Enter safe call"];
440 [label="Access variable R|/MyData.s|"]; 440 [label="Access variable R|/MyData.s|"];
441 [label="Enter safe call"]; 441 [label="Enter safe call"];
442 [label="Function call: $subj$.R|kotlin/Int.inc|()"]; 442 [label="Function call: $subj$.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
443 [label="Exit safe call"]; 443 [label="Exit safe call"];
444 [label="Exit safe call"]; 444 [label="Exit safe call"];
445 [label="Exit safe call"]; 445 [label="Exit safe call"];
@@ -1192,7 +1192,7 @@ digraph nullability_kt {
463 [label="Access variable R|/QImpl.data|"]; 463 [label="Access variable R|/QImpl.data|"];
464 [label="Smart cast: R|<local>/q|.R|/QImpl.data|"]; 464 [label="Smart cast: R|<local>/q|.R|/QImpl.data|"];
465 [label="Access variable R|/MyData.s|"]; 465 [label="Access variable R|/MyData.s|"];
466 [label="Function call: R|<local>/q|.R|/QImpl.data|.R|/MyData.s|.R|kotlin/Int.inc|()"]; 466 [label="Function call: R|<local>/q|.R|/QImpl.data|.R|/MyData.s|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
467 [label="Access variable R|<local>/q2|"]; 467 [label="Access variable R|<local>/q2|"];
468 [label="Access variable R|/QImpl.data|"]; 468 [label="Access variable R|/QImpl.data|"];
469 [label="Access variable R|<local>/q2|"]; 469 [label="Access variable R|<local>/q2|"];
@@ -1201,7 +1201,7 @@ digraph nullability_kt {
472 [label="Access variable R|<local>/q2|"]; 472 [label="Access variable R|<local>/q2|"];
473 [label="Access variable R|/QImpl.data|"]; 473 [label="Access variable R|/QImpl.data|"];
474 [label="Access variable <Inapplicable(UNSAFE_CALL): /MyData.s>#"]; 474 [label="Access variable <Inapplicable(UNSAFE_CALL): /MyData.s>#"];
475 [label="Function call: R|<local>/q2|.R|/QImpl.data|.<Inapplicable(UNSAFE_CALL): /MyData.s>#.R|kotlin/Int.inc|()"]; 475 [label="Function call: R|<local>/q2|.R|/QImpl.data|.<Inapplicable(UNSAFE_CALL): /MyData.s>#.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
subgraph cluster_94 { subgraph cluster_94 {
color=blue color=blue
476 [label="Enter when"]; 476 [label="Enter when"];
@@ -1227,7 +1227,7 @@ digraph nullability_kt {
491 [label="Access variable R|/QImpl.data|"]; 491 [label="Access variable R|/QImpl.data|"];
492 [label="Smart cast: R|<local>/q2|.R|/QImpl.data|"]; 492 [label="Smart cast: R|<local>/q2|.R|/QImpl.data|"];
493 [label="Access variable R|/MyData.s|"]; 493 [label="Access variable R|/MyData.s|"];
494 [label="Function call: R|<local>/q2|.R|/QImpl.data|.R|/MyData.s|.R|kotlin/Int.inc|()"]; 494 [label="Function call: R|<local>/q2|.R|/QImpl.data|.R|/MyData.s|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
495 [label="Exit block"]; 495 [label="Exit block"];
} }
496 [label="Exit when branch result"]; 496 [label="Exit when branch result"];
@@ -1331,7 +1331,7 @@ digraph nullability_kt {
510 [label="Enter safe call"]; 510 [label="Enter safe call"];
511 [label="Access variable R|/MyData.s|"]; 511 [label="Access variable R|/MyData.s|"];
512 [label="Enter safe call"]; 512 [label="Enter safe call"];
513 [label="Function call: $subj$.R|kotlin/Int.inc|()"]; 513 [label="Function call: $subj$.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
514 [label="Exit safe call"]; 514 [label="Exit safe call"];
515 [label="Exit safe call"]; 515 [label="Exit safe call"];
516 [label="Exit safe call"]; 516 [label="Exit safe call"];
@@ -1358,7 +1358,7 @@ digraph nullability_kt {
534 [label="Access variable R|/QImplWithCustomGetter.data|"]; 534 [label="Access variable R|/QImplWithCustomGetter.data|"];
535 [label="Smart cast: R|<local>/q|.R|/QImplWithCustomGetter.data|"]; 535 [label="Smart cast: R|<local>/q|.R|/QImplWithCustomGetter.data|"];
536 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#"]; 536 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#"];
537 [label="Function call: R|<local>/q|.R|/QImplWithCustomGetter.data|.<Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#.R|kotlin/Int.inc|()"]; 537 [label="Function call: R|<local>/q|.R|/QImplWithCustomGetter.data|.<Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
538 [label="Exit block"]; 538 [label="Exit block"];
} }
539 [label="Exit when branch result"]; 539 [label="Exit when branch result"];
@@ -1426,7 +1426,7 @@ digraph nullability_kt {
550 [label="Enter safe call"]; 550 [label="Enter safe call"];
551 [label="Access variable R|/MyData.s|"]; 551 [label="Access variable R|/MyData.s|"];
552 [label="Enter safe call"]; 552 [label="Enter safe call"];
553 [label="Function call: $subj$.R|kotlin/Int.inc|()"]; 553 [label="Function call: $subj$.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
554 [label="Exit safe call"]; 554 [label="Exit safe call"];
555 [label="Exit safe call"]; 555 [label="Exit safe call"];
556 [label="Exit safe call"]; 556 [label="Exit safe call"];
@@ -1453,7 +1453,7 @@ digraph nullability_kt {
574 [label="Access variable R|/QImplMutable.data|"]; 574 [label="Access variable R|/QImplMutable.data|"];
575 [label="Smart cast: R|<local>/q|.R|/QImplMutable.data|"]; 575 [label="Smart cast: R|<local>/q|.R|/QImplMutable.data|"];
576 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#"]; 576 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#"];
577 [label="Function call: R|<local>/q|.R|/QImplMutable.data|.<Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#.R|kotlin/Int.inc|()"]; 577 [label="Function call: R|<local>/q|.R|/QImplMutable.data|.<Inapplicable(UNSTABLE_SMARTCAST): /MyData.s>#.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
578 [label="Exit block"]; 578 [label="Exit block"];
} }
579 [label="Exit when branch result"]; 579 [label="Exit when branch result"];
@@ -6,7 +6,7 @@ digraph implicitReceivers_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -36,7 +36,7 @@ digraph implicitReceivers_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
9 [label="Enter function <init>" style="filled" fillcolor=red]; 9 [label="Enter function <init>" style="filled" fillcolor=red];
10 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 10 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
11 [label="Exit function <init>" style="filled" fillcolor=red]; 11 [label="Exit function <init>" style="filled" fillcolor=red];
} }
9 -> {10}; 9 -> {10};
@@ -103,8 +103,8 @@ digraph implicitReceivers_kt {
color=blue color=blue
32 [label="Enter block"]; 32 [label="Enter block"];
33 [label="Access variable this@R|/test_1|"]; 33 [label="Access variable this@R|/test_1|"];
34 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"]; 34 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
35 [label="Function call: <Unresolved name: foo>#()"]; 35 [label="Function call: <Unresolved name: foo>#()" style="filled" fillcolor=yellow];
36 [label="Exit block"]; 36 [label="Exit block"];
} }
37 [label="Exit when branch result"]; 37 [label="Exit when branch result"];
@@ -114,16 +114,16 @@ digraph implicitReceivers_kt {
39 [label="Enter block"]; 39 [label="Enter block"];
40 [label="Access variable this@R|/test_1|"]; 40 [label="Access variable this@R|/test_1|"];
41 [label="Smart cast: this@R|/test_1|"]; 41 [label="Smart cast: this@R|/test_1|"];
42 [label="Function call: this@R|/test_1|.R|/A.foo|()"]; 42 [label="Function call: this@R|/test_1|.R|/A.foo|()" style="filled" fillcolor=yellow];
43 [label="Function call: this@R|/test_1|.R|/A.foo|()"]; 43 [label="Function call: this@R|/test_1|.R|/A.foo|()" style="filled" fillcolor=yellow];
44 [label="Exit block"]; 44 [label="Exit block"];
} }
45 [label="Exit when branch result"]; 45 [label="Exit when branch result"];
46 [label="Exit when"]; 46 [label="Exit when"];
} }
47 [label="Access variable this@R|/test_1|"]; 47 [label="Access variable this@R|/test_1|"];
48 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"]; 48 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
49 [label="Function call: <Unresolved name: foo>#()"]; 49 [label="Function call: <Unresolved name: foo>#()" style="filled" fillcolor=yellow];
50 [label="Exit block"]; 50 [label="Exit block"];
} }
51 [label="Exit function test_1" style="filled" fillcolor=red]; 51 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -185,8 +185,8 @@ digraph implicitReceivers_kt {
62 [label="Enter block"]; 62 [label="Enter block"];
63 [label="Access variable this@R|/test_2|"]; 63 [label="Access variable this@R|/test_2|"];
64 [label="Smart cast: this@R|/test_2|"]; 64 [label="Smart cast: this@R|/test_2|"];
65 [label="Function call: this@R|/test_2|.R|/A.foo|()"]; 65 [label="Function call: this@R|/test_2|.R|/A.foo|()" style="filled" fillcolor=yellow];
66 [label="Function call: this@R|/test_2|.R|/A.foo|()"]; 66 [label="Function call: this@R|/test_2|.R|/A.foo|()" style="filled" fillcolor=yellow];
67 [label="Exit block"]; 67 [label="Exit block"];
} }
68 [label="Exit when branch result"]; 68 [label="Exit when branch result"];
@@ -195,16 +195,16 @@ digraph implicitReceivers_kt {
color=blue color=blue
70 [label="Enter block"]; 70 [label="Enter block"];
71 [label="Access variable this@R|/test_2|"]; 71 [label="Access variable this@R|/test_2|"];
72 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"]; 72 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
73 [label="Function call: <Unresolved name: foo>#()"]; 73 [label="Function call: <Unresolved name: foo>#()" style="filled" fillcolor=yellow];
74 [label="Exit block"]; 74 [label="Exit block"];
} }
75 [label="Exit when branch result"]; 75 [label="Exit when branch result"];
76 [label="Exit when"]; 76 [label="Exit when"];
} }
77 [label="Access variable this@R|/test_2|"]; 77 [label="Access variable this@R|/test_2|"];
78 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"]; 78 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
79 [label="Function call: <Unresolved name: foo>#()"]; 79 [label="Function call: <Unresolved name: foo>#()" style="filled" fillcolor=yellow];
80 [label="Exit block"]; 80 [label="Exit block"];
} }
81 [label="Exit function test_2" style="filled" fillcolor=red]; 81 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -249,96 +249,94 @@ digraph implicitReceivers_kt {
85 [label="Postponed enter to lambda"]; 85 [label="Postponed enter to lambda"];
subgraph cluster_26 { subgraph cluster_26 {
color=blue color=blue
91 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 90 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_27 { subgraph cluster_27 {
color=blue color=blue
92 [label="Enter block"]; 91 [label="Enter block"];
93 [label="Access variable R|<local>/b|"]; 92 [label="Access variable R|<local>/b|"];
94 [label="Postponed enter to lambda"]; 93 [label="Postponed enter to lambda"];
subgraph cluster_28 { subgraph cluster_28 {
color=blue color=blue
99 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 98 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_29 { subgraph cluster_29 {
color=blue color=blue
100 [label="Enter block"]; 99 [label="Enter block"];
101 [label="Access variable R|<local>/c|"]; 100 [label="Access variable R|<local>/c|"];
102 [label="Postponed enter to lambda"]; 101 [label="Postponed enter to lambda"];
subgraph cluster_30 { subgraph cluster_30 {
color=blue color=blue
112 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 110 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_31 { subgraph cluster_31 {
color=blue color=blue
113 [label="Enter block"]; 111 [label="Enter block"];
112 [label="Access variable this@R|special/anonymous|"];
113 [label="Type operator: (this@R|special/anonymous| as R|A|)"];
114 [label="Access variable this@R|special/anonymous|"]; 114 [label="Access variable this@R|special/anonymous|"];
115 [label="Type operator: (this@R|special/anonymous| as R|A|)"]; 115 [label="Smart cast: this@R|special/anonymous|"];
116 [label="Access variable this@R|special/anonymous|"]; 116 [label="Function call: this@R|special/anonymous|.R|/A.foo|()" style="filled" fillcolor=yellow];
117 [label="Smart cast: this@R|special/anonymous|"]; 117 [label="Function call: this@R|special/anonymous|.R|/A.foo|()" style="filled" fillcolor=yellow];
118 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"]; 118 [label="Exit block"];
119 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
120 [label="Exit block"];
} }
121 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 119 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
103 [label="Call arguments union" style="filled" fillcolor=yellow]; 102 [label="Postponed exit from lambda"];
104 [label="Postponed exit from lambda"]; 103 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
105 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"]; 104 [label="Access variable this@R|special/anonymous|"];
106 [label="Access variable this@R|special/anonymous|"]; 105 [label="Smart cast: this@R|special/anonymous|"];
107 [label="Smart cast: this@R|special/anonymous|"]; 106 [label="Function call: this@R|special/anonymous|.R|/A.foo|()" style="filled" fillcolor=yellow];
108 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"]; 107 [label="Function call: this@R|special/anonymous|.R|/A.foo|()" style="filled" fillcolor=yellow];
109 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"]; 108 [label="Exit block"];
110 [label="Exit block"];
} }
111 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 109 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
95 [label="Postponed exit from lambda"]; 94 [label="Postponed exit from lambda"];
96 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"]; 95 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
97 [label="Exit block"]; 96 [label="Exit block"];
} }
98 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 97 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
86 [label="Call arguments union" style="filled" fillcolor=yellow]; 86 [label="Postponed exit from lambda"];
87 [label="Postponed exit from lambda"]; 87 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
88 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"]; 88 [label="Exit block"];
89 [label="Exit block"];
} }
90 [label="Exit function test_3" style="filled" fillcolor=red]; 89 [label="Exit function test_3" style="filled" fillcolor=red];
} }
82 -> {83}; 82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {91}; 85 -> {90};
85 -> {87} [color=red]; 85 -> {86} [color=red];
85 -> {91} [style=dashed]; 85 -> {90} [style=dashed];
86 -> {88} [color=red]; 86 -> {87};
87 -> {88} [color=green]; 87 -> {88};
88 -> {89}; 88 -> {89};
89 -> {90}; 90 -> {91};
91 -> {92}; 91 -> {92};
92 -> {93}; 92 -> {93};
93 -> {94}; 93 -> {98};
94 -> {99}; 93 -> {94} [color=red];
94 -> {95} [color=red]; 93 -> {98} [style=dashed];
94 -> {99} [style=dashed]; 94 -> {95};
95 -> {96}; 95 -> {96};
96 -> {97}; 96 -> {97};
97 -> {98}; 97 -> {87} [color=red];
98 -> {86} [color=red]; 97 -> {86} [color=green];
98 -> {87} [color=green]; 98 -> {99};
99 -> {100}; 99 -> {100};
100 -> {101}; 100 -> {101};
101 -> {102}; 101 -> {110};
102 -> {112}; 101 -> {102} [color=red];
102 -> {104} [color=red]; 101 -> {110} [style=dashed];
102 -> {112} [style=dashed]; 102 -> {103};
103 -> {105} [color=red]; 103 -> {104};
104 -> {105} [color=green]; 104 -> {105};
105 -> {106}; 105 -> {106};
106 -> {107}; 106 -> {107};
107 -> {108}; 107 -> {108};
108 -> {109}; 108 -> {109};
109 -> {110}; 109 -> {94} [color=green];
110 -> {111}; 110 -> {111};
111 -> {95} [color=green]; 111 -> {112};
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {115}; 114 -> {115};
@@ -346,107 +344,107 @@ digraph implicitReceivers_kt {
116 -> {117}; 116 -> {117};
117 -> {118}; 117 -> {118};
118 -> {119}; 118 -> {119};
119 -> {120}; 119 -> {103} [color=red];
120 -> {121}; 119 -> {102} [color=green];
121 -> {103} [color=red];
121 -> {104} [color=green];
subgraph cluster_32 { subgraph cluster_32 {
color=red color=red
122 [label="Enter function test_4" style="filled" fillcolor=red]; 120 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_33 { subgraph cluster_33 {
color=blue color=blue
123 [label="Enter block"]; 121 [label="Enter block"];
subgraph cluster_34 { subgraph cluster_34 {
color=blue color=blue
124 [label="Enter when"]; 122 [label="Enter when"];
subgraph cluster_35 { subgraph cluster_35 {
color=blue color=blue
125 [label="Enter when branch condition "]; 123 [label="Enter when branch condition "];
126 [label="Access variable this@R|/test_4|"]; 124 [label="Access variable this@R|/test_4|"];
127 [label="Type operator: (this@R|/test_4| !is R|A|)"]; 125 [label="Type operator: (this@R|/test_4| !is R|A|)"];
128 [label="Exit when branch condition"]; 126 [label="Exit when branch condition"];
} }
subgraph cluster_36 { subgraph cluster_36 {
color=blue color=blue
129 [label="Enter when branch condition "]; 127 [label="Enter when branch condition "];
130 [label="Access variable this@R|/test_4|"]; 128 [label="Access variable this@R|/test_4|"];
131 [label="Smart cast: this@R|/test_4|"]; 129 [label="Smart cast: this@R|/test_4|"];
132 [label="Type operator: (this@R|/test_4| !is R|B|)"]; 130 [label="Type operator: (this@R|/test_4| !is R|B|)"];
133 [label="Exit when branch condition"]; 131 [label="Exit when branch condition"];
} }
subgraph cluster_37 { subgraph cluster_37 {
color=blue color=blue
134 [label="Enter when branch condition else"]; 132 [label="Enter when branch condition else"];
135 [label="Exit when branch condition"]; 133 [label="Exit when branch condition"];
} }
136 [label="Enter when branch result"]; 134 [label="Enter when branch result"];
subgraph cluster_38 { subgraph cluster_38 {
color=blue color=blue
137 [label="Enter block"]; 135 [label="Enter block"];
138 [label="Access variable this@R|/test_4|"]; 136 [label="Access variable this@R|/test_4|"];
139 [label="Smart cast: this@R|/test_4|"]; 137 [label="Smart cast: this@R|/test_4|"];
140 [label="Function call: this@R|/test_4|.R|/A.foo|()"]; 138 [label="Function call: this@R|/test_4|.R|/A.foo|()" style="filled" fillcolor=yellow];
141 [label="Function call: this@R|/test_4|.R|/A.foo|()"]; 139 [label="Function call: this@R|/test_4|.R|/A.foo|()" style="filled" fillcolor=yellow];
142 [label="Access variable this@R|/test_4|"]; 140 [label="Access variable this@R|/test_4|"];
143 [label="Smart cast: this@R|/test_4|"]; 141 [label="Smart cast: this@R|/test_4|"];
144 [label="Function call: this@R|/test_4|.R|/B.bar|()"]; 142 [label="Function call: this@R|/test_4|.R|/B.bar|()" style="filled" fillcolor=yellow];
145 [label="Function call: this@R|/test_4|.R|/B.bar|()"]; 143 [label="Function call: this@R|/test_4|.R|/B.bar|()" style="filled" fillcolor=yellow];
146 [label="Exit block"]; 144 [label="Exit block"];
} }
147 [label="Exit when branch result"]; 145 [label="Exit when branch result"];
148 [label="Enter when branch result"]; 146 [label="Enter when branch result"];
subgraph cluster_39 { subgraph cluster_39 {
color=blue color=blue
149 [label="Enter block"]; 147 [label="Enter block"];
150 [label="Access variable this@R|/test_4|"]; 148 [label="Access variable this@R|/test_4|"];
151 [label="Smart cast: this@R|/test_4|"]; 149 [label="Smart cast: this@R|/test_4|"];
152 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"]; 150 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()" style="filled" fillcolor=yellow];
153 [label="Function call: <Unresolved name: bar>#()"]; 151 [label="Function call: <Unresolved name: bar>#()" style="filled" fillcolor=yellow];
154 [label="Access variable this@R|/test_4|"]; 152 [label="Access variable this@R|/test_4|"];
155 [label="Smart cast: this@R|/test_4|"]; 153 [label="Smart cast: this@R|/test_4|"];
156 [label="Function call: this@R|/test_4|.R|/A.foo|()"]; 154 [label="Function call: this@R|/test_4|.R|/A.foo|()" style="filled" fillcolor=yellow];
157 [label="Function call: this@R|/test_4|.R|/A.foo|()"]; 155 [label="Function call: this@R|/test_4|.R|/A.foo|()" style="filled" fillcolor=yellow];
158 [label="Exit block"]; 156 [label="Exit block"];
} }
159 [label="Exit when branch result"]; 157 [label="Exit when branch result"];
160 [label="Enter when branch result"]; 158 [label="Enter when branch result"];
subgraph cluster_40 { subgraph cluster_40 {
color=blue color=blue
161 [label="Enter block"]; 159 [label="Enter block"];
162 [label="Access variable this@R|/test_4|"]; 160 [label="Access variable this@R|/test_4|"];
163 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"]; 161 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
164 [label="Function call: <Unresolved name: foo>#()"]; 162 [label="Function call: <Unresolved name: foo>#()" style="filled" fillcolor=yellow];
165 [label="Access variable this@R|/test_4|"]; 163 [label="Access variable this@R|/test_4|"];
166 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"]; 164 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()" style="filled" fillcolor=yellow];
167 [label="Function call: <Unresolved name: bar>#()"]; 165 [label="Function call: <Unresolved name: bar>#()" style="filled" fillcolor=yellow];
168 [label="Exit block"]; 166 [label="Exit block"];
} }
169 [label="Exit when branch result"]; 167 [label="Exit when branch result"];
170 [label="Exit when"]; 168 [label="Exit when"];
} }
171 [label="Access variable this@R|/test_4|"]; 169 [label="Access variable this@R|/test_4|"];
172 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"]; 170 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
173 [label="Function call: <Unresolved name: foo>#()"]; 171 [label="Function call: <Unresolved name: foo>#()" style="filled" fillcolor=yellow];
174 [label="Access variable this@R|/test_4|"]; 172 [label="Access variable this@R|/test_4|"];
175 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"]; 173 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()" style="filled" fillcolor=yellow];
176 [label="Function call: <Unresolved name: bar>#()"]; 174 [label="Function call: <Unresolved name: bar>#()" style="filled" fillcolor=yellow];
177 [label="Exit block"]; 175 [label="Exit block"];
} }
178 [label="Exit function test_4" style="filled" fillcolor=red]; 176 [label="Exit function test_4" style="filled" fillcolor=red];
} }
120 -> {121};
121 -> {122};
122 -> {123}; 122 -> {123};
123 -> {124}; 123 -> {124};
124 -> {125}; 124 -> {125};
125 -> {126}; 125 -> {126};
126 -> {127}; 126 -> {158 127};
127 -> {128}; 127 -> {128};
128 -> {160 129}; 128 -> {129};
129 -> {130}; 129 -> {130};
130 -> {131}; 130 -> {131};
131 -> {132}; 131 -> {146 132};
132 -> {133}; 132 -> {133};
133 -> {148 134}; 133 -> {134};
134 -> {135}; 134 -> {135};
135 -> {136}; 135 -> {136};
136 -> {137}; 136 -> {137};
@@ -458,9 +456,9 @@ digraph implicitReceivers_kt {
142 -> {143}; 142 -> {143};
143 -> {144}; 143 -> {144};
144 -> {145}; 144 -> {145};
145 -> {146}; 145 -> {168};
146 -> {147}; 146 -> {147};
147 -> {170}; 147 -> {148};
148 -> {149}; 148 -> {149};
149 -> {150}; 149 -> {150};
150 -> {151}; 150 -> {151};
@@ -470,9 +468,9 @@ digraph implicitReceivers_kt {
154 -> {155}; 154 -> {155};
155 -> {156}; 155 -> {156};
156 -> {157}; 156 -> {157};
157 -> {158}; 157 -> {168};
158 -> {159}; 158 -> {159};
159 -> {170}; 159 -> {160};
160 -> {161}; 160 -> {161};
161 -> {162}; 161 -> {162};
162 -> {163}; 162 -> {163};
@@ -489,64 +487,62 @@ digraph implicitReceivers_kt {
173 -> {174}; 173 -> {174};
174 -> {175}; 174 -> {175};
175 -> {176}; 175 -> {176};
176 -> {177};
177 -> {178};
subgraph cluster_41 { subgraph cluster_41 {
color=red color=red
179 [label="Enter function test_5" style="filled" fillcolor=red]; 177 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_42 { subgraph cluster_42 {
color=blue color=blue
180 [label="Enter block"]; 178 [label="Enter block"];
subgraph cluster_43 { subgraph cluster_43 {
color=blue color=blue
181 [label="Enter when"]; 179 [label="Enter when"];
subgraph cluster_44 { subgraph cluster_44 {
color=blue color=blue
182 [label="Enter when branch condition "]; 180 [label="Enter when branch condition "];
183 [label="Access variable this@R|/test_5|"]; 181 [label="Access variable this@R|/test_5|"];
184 [label="Type operator: (this@R|/test_5| is R|kotlin/collections/List<*>|)"]; 182 [label="Type operator: (this@R|/test_5| is R|kotlin/collections/List<*>|)"];
185 [label="Exit when branch condition"]; 183 [label="Exit when branch condition"];
} }
subgraph cluster_45 { subgraph cluster_45 {
color=blue color=blue
186 [label="Enter when branch condition "]; 184 [label="Enter when branch condition "];
187 [label="Access variable this@R|/test_5|"]; 185 [label="Access variable this@R|/test_5|"];
188 [label="Type operator: (this@R|/test_5| is R|kotlin/String|)"]; 186 [label="Type operator: (this@R|/test_5| is R|kotlin/String|)"];
189 [label="Exit when branch condition"]; 187 [label="Exit when branch condition"];
} }
subgraph cluster_46 { subgraph cluster_46 {
color=blue color=blue
190 [label="Enter when branch condition else"]; 188 [label="Enter when branch condition else"];
191 [label="Exit when branch condition"]; 189 [label="Exit when branch condition"];
} }
192 [label="Enter when branch result"]; 190 [label="Enter when branch result"];
subgraph cluster_47 { subgraph cluster_47 {
color=blue color=blue
193 [label="Enter block"]; 191 [label="Enter block"];
194 [label="Const: Int(0)"]; 192 [label="Const: Int(0)"];
195 [label="Exit block"]; 193 [label="Exit block"];
} }
196 [label="Exit when branch result"]; 194 [label="Exit when branch result"];
197 [label="Enter when branch result"]; 195 [label="Enter when branch result"];
subgraph cluster_48 { subgraph cluster_48 {
color=blue color=blue
198 [label="Enter block"]; 196 [label="Enter block"];
199 [label="Access variable R|kotlin/String.length|"]; 197 [label="Access variable R|kotlin/String.length|"];
200 [label="Exit block"]; 198 [label="Exit block"];
} }
201 [label="Exit when branch result"]; 199 [label="Exit when branch result"];
202 [label="Enter when branch result"]; 200 [label="Enter when branch result"];
subgraph cluster_49 { subgraph cluster_49 {
color=blue color=blue
203 [label="Enter block"]; 201 [label="Enter block"];
204 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"]; 202 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
205 [label="Exit block"]; 203 [label="Exit block"];
} }
206 [label="Exit when branch result"]; 204 [label="Exit when branch result"];
207 [label="Exit when"]; 205 [label="Exit when"];
} }
208 [label="Jump: ^test_5 when () { 206 [label="Jump: ^test_5 when () {
(this@R|/test_5| is R|kotlin/collections/List<*>|) -> { (this@R|/test_5| is R|kotlin/collections/List<*>|) -> {
this@R|/test_5|.R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>| this@R|/test_5|.R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|
} }
@@ -558,62 +554,64 @@ digraph implicitReceivers_kt {
} }
} }
"]; "];
209 [label="Stub" style="filled" fillcolor=gray]; 207 [label="Stub" style="filled" fillcolor=gray];
210 [label="Exit block" style="filled" fillcolor=gray]; 208 [label="Exit block" style="filled" fillcolor=gray];
} }
211 [label="Exit function test_5" style="filled" fillcolor=red]; 209 [label="Exit function test_5" style="filled" fillcolor=red];
} }
177 -> {178};
178 -> {179};
179 -> {180}; 179 -> {180};
180 -> {181}; 180 -> {181};
181 -> {182}; 181 -> {182};
182 -> {183}; 182 -> {183};
183 -> {184}; 183 -> {200 184};
184 -> {185}; 184 -> {185};
185 -> {202 186}; 185 -> {186};
186 -> {187}; 186 -> {187};
187 -> {188}; 187 -> {195 188};
188 -> {189}; 188 -> {189};
189 -> {197 190}; 189 -> {190};
190 -> {191}; 190 -> {191};
191 -> {192}; 191 -> {192};
192 -> {193}; 192 -> {193};
193 -> {194}; 193 -> {194};
194 -> {195}; 194 -> {205};
195 -> {196}; 195 -> {196};
196 -> {207}; 196 -> {197};
197 -> {198}; 197 -> {198};
198 -> {199}; 198 -> {199};
199 -> {200}; 199 -> {205};
200 -> {201}; 200 -> {201};
201 -> {207}; 201 -> {202};
202 -> {203}; 202 -> {203};
203 -> {204}; 203 -> {204};
204 -> {205}; 204 -> {205};
205 -> {206}; 205 -> {206};
206 -> {207}; 206 -> {209};
207 -> {208}; 206 -> {207} [style=dotted];
208 -> {211}; 207 -> {208} [style=dotted];
208 -> {209} [style=dotted]; 208 -> {209} [style=dotted];
209 -> {210} [style=dotted];
210 -> {211} [style=dotted];
subgraph cluster_50 { subgraph cluster_50 {
color=red color=red
212 [label="Enter function test_6" style="filled" fillcolor=red]; 210 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_51 { subgraph cluster_51 {
color=blue color=blue
213 [label="Enter block"]; 211 [label="Enter block"];
214 [label="Access variable this@R|/test_6|"]; 212 [label="Access variable this@R|/test_6|"];
215 [label="Type operator: (this@R|/test_6| as R|kotlin/collections/List<*>|)"]; 213 [label="Type operator: (this@R|/test_6| as R|kotlin/collections/List<*>|)"];
216 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"]; 214 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
217 [label="Access variable this@R|/test_6|"]; 215 [label="Access variable this@R|/test_6|"];
218 [label="Smart cast: this@R|/test_6|"]; 216 [label="Smart cast: this@R|/test_6|"];
219 [label="Type operator: (this@R|/test_6| as R|kotlin/String|)"]; 217 [label="Type operator: (this@R|/test_6| as R|kotlin/String|)"];
220 [label="Access variable R|kotlin/String.length|"]; 218 [label="Access variable R|kotlin/String.length|"];
221 [label="Exit block"]; 219 [label="Exit block"];
} }
222 [label="Exit function test_6" style="filled" fillcolor=red]; 220 [label="Exit function test_6" style="filled" fillcolor=red];
} }
210 -> {211};
211 -> {212};
212 -> {213}; 212 -> {213};
213 -> {214}; 213 -> {214};
214 -> {215}; 214 -> {215};
@@ -622,7 +620,5 @@ digraph implicitReceivers_kt {
217 -> {218}; 217 -> {218};
218 -> {219}; 218 -> {219};
219 -> {220}; 219 -> {220};
220 -> {221};
221 -> {222};
} }
@@ -6,7 +6,7 @@ digraph assignSafeCall_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -97,7 +97,7 @@ digraph assignSafeCall_kt {
35 [label="Enter block"]; 35 [label="Enter block"];
36 [label="Access variable R|<local>/a|"]; 36 [label="Access variable R|<local>/a|"];
37 [label="Smart cast: R|<local>/a|"]; 37 [label="Smart cast: R|<local>/a|"];
38 [label="Function call: R|<local>/a|.R|/A.bar|()"]; 38 [label="Function call: R|<local>/a|.R|/A.bar|()" style="filled" fillcolor=yellow];
39 [label="Exit block"]; 39 [label="Exit block"];
} }
40 [label="Exit when branch result"]; 40 [label="Exit when branch result"];
@@ -139,7 +139,7 @@ digraph assignSafeCall_kt {
45 [label="Enter block"]; 45 [label="Enter block"];
46 [label="Access variable R|<local>/a|"]; 46 [label="Access variable R|<local>/a|"];
47 [label="Enter safe call"]; 47 [label="Enter safe call"];
48 [label="Function call: $subj$.R|/A.foo|()"]; 48 [label="Function call: $subj$.R|/A.foo|()" style="filled" fillcolor=yellow];
49 [label="Exit safe call"]; 49 [label="Exit safe call"];
50 [label="Variable declaration: lval x: R|kotlin/Int?|"]; 50 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_14 { subgraph cluster_14 {
@@ -160,7 +160,7 @@ digraph assignSafeCall_kt {
59 [label="Enter block"]; 59 [label="Enter block"];
60 [label="Access variable R|<local>/a|"]; 60 [label="Access variable R|<local>/a|"];
61 [label="Smart cast: R|<local>/a|"]; 61 [label="Smart cast: R|<local>/a|"];
62 [label="Function call: R|<local>/a|.R|/A.bar|()"]; 62 [label="Function call: R|<local>/a|.R|/A.bar|()" style="filled" fillcolor=yellow];
63 [label="Exit block"]; 63 [label="Exit block"];
} }
64 [label="Exit when branch result"]; 64 [label="Exit when branch result"];
@@ -210,10 +210,10 @@ digraph assignSafeCall_kt {
77 [label="Exit ?:"]; 77 [label="Exit ?:"];
78 [label="Variable declaration: lval a: R|A|"]; 78 [label="Variable declaration: lval a: R|A|"];
79 [label="Access variable R|<local>/a|"]; 79 [label="Access variable R|<local>/a|"];
80 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 80 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
81 [label="Access variable R|<local>/x|"]; 81 [label="Access variable R|<local>/x|"];
82 [label="Smart cast: R|<local>/x|"]; 82 [label="Smart cast: R|<local>/x|"];
83 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 83 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
84 [label="Exit block"]; 84 [label="Exit block"];
} }
85 [label="Exit function test_3" style="filled" fillcolor=red]; 85 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -287,7 +287,7 @@ digraph assignSafeCall_kt {
107 [label="Enter block"]; 107 [label="Enter block"];
108 [label="Access variable R|<local>/a|"]; 108 [label="Access variable R|<local>/a|"];
109 [label="Smart cast: R|<local>/a|"]; 109 [label="Smart cast: R|<local>/a|"];
110 [label="Function call: R|<local>/a|.R|/B.bar|()"]; 110 [label="Function call: R|<local>/a|.R|/B.bar|()" style="filled" fillcolor=yellow];
111 [label="Exit block"]; 111 [label="Exit block"];
} }
112 [label="Exit when branch result"]; 112 [label="Exit when branch result"];
@@ -329,7 +329,7 @@ digraph assignSafeCall_kt {
117 [label="Enter block"]; 117 [label="Enter block"];
118 [label="Access variable R|<local>/a|"]; 118 [label="Access variable R|<local>/a|"];
119 [label="Enter safe call"]; 119 [label="Enter safe call"];
120 [label="Function call: $subj$.R|/B.foo|()"]; 120 [label="Function call: $subj$.R|/B.foo|()" style="filled" fillcolor=yellow];
121 [label="Exit safe call"]; 121 [label="Exit safe call"];
122 [label="Variable declaration: lval x: R|kotlin/Int?|"]; 122 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_29 { subgraph cluster_29 {
@@ -350,7 +350,7 @@ digraph assignSafeCall_kt {
131 [label="Enter block"]; 131 [label="Enter block"];
132 [label="Access variable R|<local>/a|"]; 132 [label="Access variable R|<local>/a|"];
133 [label="Smart cast: R|<local>/a|"]; 133 [label="Smart cast: R|<local>/a|"];
134 [label="Function call: R|<local>/a|.R|/B.bar|()"]; 134 [label="Function call: R|<local>/a|.R|/B.bar|()" style="filled" fillcolor=yellow];
135 [label="Exit block"]; 135 [label="Exit block"];
} }
136 [label="Exit when branch result"]; 136 [label="Exit when branch result"];
@@ -400,10 +400,10 @@ digraph assignSafeCall_kt {
149 [label="Exit ?:"]; 149 [label="Exit ?:"];
150 [label="Variable declaration: lval a: R|B|"]; 150 [label="Variable declaration: lval a: R|B|"];
151 [label="Access variable R|<local>/a|"]; 151 [label="Access variable R|<local>/a|"];
152 [label="Function call: R|<local>/a|.R|/B.foo|()"]; 152 [label="Function call: R|<local>/a|.R|/B.foo|()" style="filled" fillcolor=yellow];
153 [label="Access variable R|<local>/x|"]; 153 [label="Access variable R|<local>/x|"];
154 [label="Smart cast: R|<local>/x|"]; 154 [label="Smart cast: R|<local>/x|"];
155 [label="Function call: R|<local>/x|.R|/B.foo|()"]; 155 [label="Function call: R|<local>/x|.R|/B.foo|()" style="filled" fillcolor=yellow];
156 [label="Exit block"]; 156 [label="Exit block"];
} }
157 [label="Exit function test_3" style="filled" fillcolor=red]; 157 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -38,7 +38,7 @@ digraph safeCallAndEqualityToBool_kt {
10 [label="Enter when branch condition "]; 10 [label="Enter when branch condition "];
11 [label="Access variable R|<local>/s|"]; 11 [label="Access variable R|<local>/s|"];
12 [label="Enter safe call"]; 12 [label="Enter safe call"];
13 [label="Function call: $subj$.R|/check|()"]; 13 [label="Function call: $subj$.R|/check|()" style="filled" fillcolor=yellow];
14 [label="Exit safe call"]; 14 [label="Exit safe call"];
15 [label="Const: Boolean(true)"]; 15 [label="Const: Boolean(true)"];
16 [label="Equality operator =="]; 16 [label="Equality operator =="];
@@ -117,7 +117,7 @@ digraph safeCallAndEqualityToBool_kt {
39 [label="Enter when branch condition "]; 39 [label="Enter when branch condition "];
40 [label="Access variable R|<local>/s|"]; 40 [label="Access variable R|<local>/s|"];
41 [label="Enter safe call"]; 41 [label="Enter safe call"];
42 [label="Function call: $subj$.R|/check|()"]; 42 [label="Function call: $subj$.R|/check|()" style="filled" fillcolor=yellow];
43 [label="Exit safe call"]; 43 [label="Exit safe call"];
44 [label="Const: Boolean(false)"]; 44 [label="Const: Boolean(false)"];
45 [label="Equality operator =="]; 45 [label="Equality operator =="];
@@ -196,7 +196,7 @@ digraph safeCallAndEqualityToBool_kt {
68 [label="Enter when branch condition "]; 68 [label="Enter when branch condition "];
69 [label="Access variable R|<local>/s|"]; 69 [label="Access variable R|<local>/s|"];
70 [label="Enter safe call"]; 70 [label="Enter safe call"];
71 [label="Function call: $subj$.R|/check|()"]; 71 [label="Function call: $subj$.R|/check|()" style="filled" fillcolor=yellow];
72 [label="Exit safe call"]; 72 [label="Exit safe call"];
73 [label="Const: Boolean(true)"]; 73 [label="Const: Boolean(true)"];
74 [label="Equality operator !="]; 74 [label="Equality operator !="];
@@ -275,7 +275,7 @@ digraph safeCallAndEqualityToBool_kt {
97 [label="Enter when branch condition "]; 97 [label="Enter when branch condition "];
98 [label="Access variable R|<local>/s|"]; 98 [label="Access variable R|<local>/s|"];
99 [label="Enter safe call"]; 99 [label="Enter safe call"];
100 [label="Function call: $subj$.R|/check|()"]; 100 [label="Function call: $subj$.R|/check|()" style="filled" fillcolor=yellow];
101 [label="Exit safe call"]; 101 [label="Exit safe call"];
102 [label="Const: Boolean(false)"]; 102 [label="Const: Boolean(false)"];
103 [label="Equality operator !="]; 103 [label="Equality operator !="];
@@ -51,7 +51,7 @@ digraph safeCalls_kt {
17 [label="Access variable R|kotlin/String.length|"]; 17 [label="Access variable R|kotlin/String.length|"];
18 [label="Const: Int(1)"]; 18 [label="Const: Int(1)"];
19 [label="Equality operator =="]; 19 [label="Equality operator =="];
20 [label="Function call: $subj$.R|/foo|(...)"]; 20 [label="Function call: $subj$.R|/foo|(...)" style="filled" fillcolor=yellow];
21 [label="Exit safe call"]; 21 [label="Exit safe call"];
22 [label="Access variable R|<local>/x|"]; 22 [label="Access variable R|<local>/x|"];
23 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"]; 23 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
@@ -113,7 +113,7 @@ digraph safeCalls_kt {
38 [label="Enter safe call"]; 38 [label="Enter safe call"];
39 [label="Access variable R|<local>/x|"]; 39 [label="Access variable R|<local>/x|"];
40 [label="Smart cast: R|<local>/x|"]; 40 [label="Smart cast: R|<local>/x|"];
41 [label="Function call: $subj$.R|/A.bar|(...)"]; 41 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow];
42 [label="Exit safe call"]; 42 [label="Exit safe call"];
43 [label="Exit block"]; 43 [label="Exit block"];
} }
@@ -141,12 +141,12 @@ digraph safeCalls_kt {
49 [label="Enter safe call"]; 49 [label="Enter safe call"];
50 [label="Access variable R|<local>/x|"]; 50 [label="Access variable R|<local>/x|"];
51 [label="Smart cast: R|<local>/x|"]; 51 [label="Smart cast: R|<local>/x|"];
52 [label="Function call: $subj$.R|/A.bar|(...)"]; 52 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow];
53 [label="Enter safe call"]; 53 [label="Enter safe call"];
54 [label="Access variable R|<local>/x|"]; 54 [label="Access variable R|<local>/x|"];
55 [label="Smart cast: R|<local>/x|"]; 55 [label="Smart cast: R|<local>/x|"];
56 [label="Function call: R|<local>/x|.R|/A.bool|()"]; 56 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=yellow];
57 [label="Function call: $subj$.R|/foo|(...)"]; 57 [label="Function call: $subj$.R|/foo|(...)" style="filled" fillcolor=yellow];
58 [label="Enter safe call"]; 58 [label="Enter safe call"];
59 [label="Postponed enter to lambda"]; 59 [label="Postponed enter to lambda"];
subgraph cluster_14 { subgraph cluster_14 {
@@ -157,18 +157,18 @@ digraph safeCalls_kt {
70 [label="Enter block"]; 70 [label="Enter block"];
71 [label="Access variable R|<local>/x|"]; 71 [label="Access variable R|<local>/x|"];
72 [label="Smart cast: R|<local>/x|"]; 72 [label="Smart cast: R|<local>/x|"];
73 [label="Function call: R|<local>/x|.R|/A.bool|()"]; 73 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=yellow];
74 [label="Exit block"]; 74 [label="Exit block"];
} }
75 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 75 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
60 [label="Postponed exit from lambda"]; 60 [label="Postponed exit from lambda"];
61 [label="Function call: $subj$.R|/let|(...)"]; 61 [label="Function call: $subj$.R|/let|(...)" style="filled" fillcolor=yellow];
62 [label="Exit safe call"]; 62 [label="Exit safe call"];
63 [label="Exit safe call"]; 63 [label="Exit safe call"];
64 [label="Exit safe call"]; 64 [label="Exit safe call"];
65 [label="Access variable R|<local>/x|"]; 65 [label="Access variable R|<local>/x|"];
66 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()"]; 66 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()" style="filled" fillcolor=yellow];
67 [label="Exit block"]; 67 [label="Exit block"];
} }
68 [label="Exit function test_3" style="filled" fillcolor=red]; 68 [label="Exit function test_3" style="filled" fillcolor=red];
@@ -212,13 +212,13 @@ digraph safeCalls_kt {
77 [label="Enter block"]; 77 [label="Enter block"];
78 [label="Access variable R|<local>/x|"]; 78 [label="Access variable R|<local>/x|"];
79 [label="Enter safe call"]; 79 [label="Enter safe call"];
80 [label="Function call: $subj$.R|/A.id|()"]; 80 [label="Function call: $subj$.R|/A.id|()" style="filled" fillcolor=yellow];
81 [label="Enter safe call"]; 81 [label="Enter safe call"];
82 [label="Function call: $subj$.R|/A.bool|()"]; 82 [label="Function call: $subj$.R|/A.bool|()" style="filled" fillcolor=yellow];
83 [label="Exit safe call"]; 83 [label="Exit safe call"];
84 [label="Exit safe call"]; 84 [label="Exit safe call"];
85 [label="Access variable R|<local>/x|"]; 85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.id>#()"]; 86 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.id>#()" style="filled" fillcolor=yellow];
87 [label="Exit block"]; 87 [label="Exit block"];
} }
88 [label="Exit function test_4" style="filled" fillcolor=red]; 88 [label="Exit function test_4" style="filled" fillcolor=red];
@@ -261,61 +261,59 @@ digraph safeCalls_kt {
97 [label="Postponed enter to lambda"]; 97 [label="Postponed enter to lambda"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
113 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 112 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
114 [label="Enter block"]; 113 [label="Enter block"];
115 [label="Jump: ^test_5 Unit"]; 114 [label="Jump: ^test_5 Unit"];
116 [label="Stub" style="filled" fillcolor=gray]; 115 [label="Stub" style="filled" fillcolor=gray];
117 [label="Exit block" style="filled" fillcolor=gray]; 116 [label="Exit block" style="filled" fillcolor=gray];
} }
118 [label="Exit function anonymousFunction" style="filled" fillcolor=red style="filled" fillcolor=gray]; 117 [label="Exit function anonymousFunction" style="filled" fillcolor=red style="filled" fillcolor=gray];
} }
98 [label="Call arguments union" style="filled" fillcolor=gray]; 98 [label="Postponed exit from lambda" style="filled" fillcolor=gray];
99 [label="Postponed exit from lambda" style="filled" fillcolor=gray]; 99 [label="Function call: $subj$.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
100 [label="Function call: $subj$.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray]; 100 [label="Stub" style="filled" fillcolor=gray];
101 [label="Stub" style="filled" fillcolor=gray]; 101 [label="Enter safe call" style="filled" fillcolor=gray];
102 [label="Enter safe call" style="filled" fillcolor=gray]; 102 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray];
103 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray]; 103 [label="Smart cast: R|<local>/x|" style="filled" fillcolor=gray];
104 [label="Smart cast: R|<local>/x|" style="filled" fillcolor=gray]; 104 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=gray];
105 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=gray]; 105 [label="Function call: $subj$.R|/boo|(...)" style="filled" fillcolor=gray];
106 [label="Function call: $subj$.R|/boo|(...)" style="filled" fillcolor=gray]; 106 [label="Exit safe call"];
107 [label="Exit safe call"]; 107 [label="Exit safe call"];
108 [label="Exit safe call"]; 108 [label="Access variable R|<local>/x|"];
109 [label="Access variable R|<local>/x|"]; 109 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.id>#()" style="filled" fillcolor=yellow];
110 [label="Function call: R|<local>/x|.<Inapplicable(UNSAFE_CALL): /A.id>#()"]; 110 [label="Exit block"];
111 [label="Exit block"];
} }
112 [label="Exit function test_5" style="filled" fillcolor=red]; 111 [label="Exit function test_5" style="filled" fillcolor=red];
} }
93 -> {94}; 93 -> {94};
94 -> {95}; 94 -> {95};
95 -> {96 107}; 95 -> {96 106};
96 -> {97}; 96 -> {97};
97 -> {113}; 97 -> {112};
97 -> {99} [color=red]; 97 -> {98} [color=red];
97 -> {113} [style=dashed]; 97 -> {112} [style=dashed];
98 -> {100} [style=dotted]; 98 -> {99} [style=dotted];
99 -> {100} [style=dotted]; 99 -> {100} [style=dotted];
100 -> {101} [style=dotted]; 99 -> {111} [style=dotted] [label=onUncaughtException];
100 -> {112} [style=dotted] [label=onUncaughtException]; 100 -> {106 101} [style=dotted];
101 -> {107 102} [style=dotted]; 101 -> {102} [style=dotted];
102 -> {103} [style=dotted]; 102 -> {103} [style=dotted];
103 -> {104} [style=dotted]; 103 -> {104} [style=dotted];
104 -> {105} [style=dotted]; 104 -> {105} [style=dotted];
105 -> {106} [style=dotted]; 105 -> {107} [style=dotted];
106 -> {108} [style=dotted]; 106 -> {107};
107 -> {108}; 107 -> {108};
108 -> {109}; 108 -> {109};
109 -> {110}; 109 -> {110};
110 -> {111}; 110 -> {111};
111 -> {112}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {115}; 114 -> {111};
115 -> {112}; 114 -> {115} [style=dotted];
115 -> {116} [style=dotted]; 115 -> {116} [style=dotted];
116 -> {117} [style=dotted]; 116 -> {117} [style=dotted];
117 -> {118} [style=dotted]; 117 -> {98 99} [style=dotted];
118 -> {99 98} [style=dotted];
} }
@@ -30,7 +30,7 @@ digraph smartCastInInit_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
7 [label="Enter block"]; 7 [label="Enter block"];
8 [label="Function call: R|kotlin/TODO|()"]; 8 [label="Function call: R|kotlin/TODO|()" style="filled" fillcolor=yellow];
9 [label="Stub" style="filled" fillcolor=gray]; 9 [label="Stub" style="filled" fillcolor=gray];
10 [label="Jump: ^s R|kotlin/TODO|()" style="filled" fillcolor=gray]; 10 [label="Jump: ^s R|kotlin/TODO|()" style="filled" fillcolor=gray];
11 [label="Stub" style="filled" fillcolor=gray]; 11 [label="Stub" style="filled" fillcolor=gray];
@@ -50,7 +50,7 @@ digraph smartCastInInit_kt {
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
14 [label="Enter function <init>" style="filled" fillcolor=red]; 14 [label="Enter function <init>" style="filled" fillcolor=red];
15 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 15 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
16 [label="Exit function <init>" style="filled" fillcolor=red]; 16 [label="Exit function <init>" style="filled" fillcolor=red];
} }
14 -> {15}; 14 -> {15};
@@ -62,11 +62,11 @@ digraph smartCastInInit_kt {
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
18 [label="Enter block"]; 18 [label="Enter block"];
19 [label="Function call: R|/s|()"]; 19 [label="Function call: R|/s|()" style="filled" fillcolor=yellow];
20 [label="Assignment: R|/Main.x|"]; 20 [label="Assignment: R|/Main.x|"];
21 [label="Access variable R|/Main.x|"]; 21 [label="Access variable R|/Main.x|"];
22 [label="Smart cast: this@R|/Main|.R|/Main.x|"]; 22 [label="Smart cast: this@R|/Main|.R|/Main.x|"];
23 [label="Function call: this@R|/Main|.R|/Main.x|.R|/S.foo|()"]; 23 [label="Function call: this@R|/Main|.R|/Main.x|.R|/S.foo|()" style="filled" fillcolor=yellow];
24 [label="Exit block"]; 24 [label="Exit block"];
} }
25 [label="Exit init block" style="filled" fillcolor=red]; 25 [label="Exit init block" style="filled" fillcolor=red];
@@ -6,7 +6,7 @@ digraph smartcastInByClause_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -57,7 +57,7 @@ digraph smartcastInByClause_kt {
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
15 [label="Enter function <init>" style="filled" fillcolor=red]; 15 [label="Enter function <init>" style="filled" fillcolor=red];
16 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 16 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
17 [label="Exit function <init>" style="filled" fillcolor=red]; 17 [label="Exit function <init>" style="filled" fillcolor=red];
} }
15 -> {16}; 15 -> {16};
@@ -105,7 +105,7 @@ digraph smartcastInByClause_kt {
38 [label="Access variable R|<local>/a|"]; 38 [label="Access variable R|<local>/a|"];
39 [label="Smart cast: R|<local>/a|"]; 39 [label="Smart cast: R|<local>/a|"];
40 [label="Access variable R|/A.index|"]; 40 [label="Access variable R|/A.index|"];
41 [label="Function call: R|/takeInt|(...)"]; 41 [label="Function call: R|/takeInt|(...)" style="filled" fillcolor=yellow];
42 [label="Enter anonymous object"]; 42 [label="Enter anonymous object"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
@@ -180,7 +180,7 @@ digraph smartcastInByClause_kt {
subgraph cluster_11 { subgraph cluster_11 {
color=red color=red
53 [label="Enter function <init>" style="filled" fillcolor=red]; 53 [label="Enter function <init>" style="filled" fillcolor=red];
54 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 54 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
55 [label="Exit function <init>" style="filled" fillcolor=red]; 55 [label="Exit function <init>" style="filled" fillcolor=red];
} }
53 -> {54}; 53 -> {54};
@@ -192,7 +192,7 @@ digraph smartcastInByClause_kt {
57 [label="Access variable R|<local>/a|"]; 57 [label="Access variable R|<local>/a|"];
58 [label="Smart cast: R|<local>/a|"]; 58 [label="Smart cast: R|<local>/a|"];
59 [label="Access variable R|/A.index|"]; 59 [label="Access variable R|/A.index|"];
60 [label="Function call: R|/Derived.Derived|(...)"]; 60 [label="Function call: R|/Derived.Derived|(...)" style="filled" fillcolor=yellow];
61 [label="Exit field" style="filled" fillcolor=red]; 61 [label="Exit field" style="filled" fillcolor=red];
} }
56 -> {57}; 56 -> {57};
@@ -225,7 +225,7 @@ digraph smartcastInByClause_kt {
69 [label="Access variable R|<local>/a|"]; 69 [label="Access variable R|<local>/a|"];
70 [label="Smart cast: R|<local>/a|"]; 70 [label="Smart cast: R|<local>/a|"];
71 [label="Access variable R|/A.index|"]; 71 [label="Access variable R|/A.index|"];
72 [label="Function call: R|/takeInt|(...)"]; 72 [label="Function call: R|/takeInt|(...)" style="filled" fillcolor=yellow];
73 [label="Exit block"]; 73 [label="Exit block"];
} }
74 [label="Exit function foo" style="filled" fillcolor=red]; 74 [label="Exit function foo" style="filled" fillcolor=red];
@@ -9,7 +9,7 @@ digraph smartcastToNothing_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Function call: R|java/lang/Exception.Exception|()"]; 2 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
3 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 3 [label="Throw: throw R|java/lang/Exception.Exception|()"];
4 [label="Stub" style="filled" fillcolor=gray]; 4 [label="Stub" style="filled" fillcolor=gray];
5 [label="Jump: ^getNothing throw R|java/lang/Exception.Exception|()" style="filled" fillcolor=gray]; 5 [label="Jump: ^getNothing throw R|java/lang/Exception.Exception|()" style="filled" fillcolor=gray];
@@ -98,7 +98,7 @@ digraph smartcastToNothing_kt {
color=blue color=blue
31 [label="Enter block"]; 31 [label="Enter block"];
32 [label="Const: Null(null)"]; 32 [label="Const: Null(null)"];
33 [label="Check not null: Null(null)!!"]; 33 [label="Check not null: Null(null)!!" style="filled" fillcolor=yellow];
34 [label="Stub" style="filled" fillcolor=gray]; 34 [label="Stub" style="filled" fillcolor=gray];
35 [label="Jump: ^myListOf Null(null)!!" style="filled" fillcolor=gray]; 35 [label="Jump: ^myListOf Null(null)!!" style="filled" fillcolor=gray];
36 [label="Stub" style="filled" fillcolor=gray]; 36 [label="Stub" style="filled" fillcolor=gray];
@@ -119,7 +119,7 @@ digraph smartcastToNothing_kt {
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
39 [label="Enter function <init>" style="filled" fillcolor=red]; 39 [label="Enter function <init>" style="filled" fillcolor=red];
40 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 40 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
41 [label="Exit function <init>" style="filled" fillcolor=red]; 41 [label="Exit function <init>" style="filled" fillcolor=red];
} }
39 -> {40}; 39 -> {40};
@@ -172,7 +172,7 @@ digraph smartcastToNothing_kt {
color=blue color=blue
56 [label="Enter block"]; 56 [label="Enter block"];
57 [label="Access variable R|<local>/results|"]; 57 [label="Access variable R|<local>/results|"];
58 [label="Function call: R|<local>/results|.R|SubstitutionOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Nothing>|>|()"]; 58 [label="Function call: R|<local>/results|.R|SubstitutionOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Nothing>|>|()" style="filled" fillcolor=yellow];
59 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Nothing>|"]; 59 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Nothing>|"];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
@@ -181,7 +181,7 @@ digraph smartcastToNothing_kt {
color=blue color=blue
61 [label="Enter loop condition"]; 61 [label="Enter loop condition"];
62 [label="Access variable R|<local>/<iterator>|"]; 62 [label="Access variable R|<local>/<iterator>|"];
63 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()"]; 63 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()" style="filled" fillcolor=yellow];
64 [label="Exit loop condition"]; 64 [label="Exit loop condition"];
} }
subgraph cluster_19 { subgraph cluster_19 {
@@ -191,7 +191,7 @@ digraph smartcastToNothing_kt {
color=blue color=blue
66 [label="Enter block"]; 66 [label="Enter block"];
67 [label="Access variable R|<local>/<iterator>|"]; 67 [label="Access variable R|<local>/<iterator>|"];
68 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|kotlin/Nothing|>|()"]; 68 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|kotlin/Nothing|>|()" style="filled" fillcolor=yellow];
69 [label="Stub" style="filled" fillcolor=gray]; 69 [label="Stub" style="filled" fillcolor=gray];
70 [label="Variable declaration: lval result: R|kotlin/Nothing|" style="filled" fillcolor=gray]; 70 [label="Variable declaration: lval result: R|kotlin/Nothing|" style="filled" fillcolor=gray];
71 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray]; 71 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
@@ -233,23 +233,22 @@ digraph smartcastToNothing_kt {
94 [label="Postponed enter to lambda"]; 94 [label="Postponed enter to lambda"];
subgraph cluster_24 { subgraph cluster_24 {
color=blue color=blue
101 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 100 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_25 { subgraph cluster_25 {
color=blue color=blue
102 [label="Enter block"]; 101 [label="Enter block"];
103 [label="Access variable R|<local>/it|"]; 102 [label="Access variable R|<local>/it|"];
104 [label="Access variable R|/A.a|"]; 103 [label="Access variable R|/A.a|"];
105 [label="Exit block"]; 104 [label="Exit block"];
} }
106 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 105 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
95 [label="Call arguments union" style="filled" fillcolor=yellow]; 95 [label="Postponed exit from lambda"];
96 [label="Postponed exit from lambda"]; 96 [label="Function call: $subj$.R|kotlin/let|<R|A|, R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
97 [label="Function call: $subj$.R|kotlin/let|<R|A|, R|kotlin/Int|>(...)"]; 97 [label="Exit safe call"];
98 [label="Exit safe call"]; 98 [label="Exit block"];
99 [label="Exit block"];
} }
100 [label="Exit function test_0" style="filled" fillcolor=red]; 99 [label="Exit function test_0" style="filled" fillcolor=red];
} }
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
@@ -267,18 +266,18 @@ digraph smartcastToNothing_kt {
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {100} [label=onUncaughtException]; 68 -> {99} [label=onUncaughtException];
68 -> {69} [style=dotted]; 68 -> {69} [style=dotted];
69 -> {70} [style=dotted]; 69 -> {70} [style=dotted];
70 -> {71} [style=dotted]; 70 -> {71} [style=dotted];
71 -> {72} [style=dotted]; 71 -> {72} [style=dotted];
71 -> {100} [style=dotted] [label=onUncaughtException]; 71 -> {99} [style=dotted] [label=onUncaughtException];
72 -> {73} [style=dotted]; 72 -> {73} [style=dotted];
73 -> {74} [style=dotted]; 73 -> {74} [style=dotted];
74 -> {75} [style=dotted]; 74 -> {75} [style=dotted];
75 -> {76} [style=dotted]; 75 -> {76} [style=dotted];
76 -> {77} [style=dotted]; 76 -> {77} [style=dotted];
76 -> {100} [style=dotted] [label=onUncaughtException]; 76 -> {99} [style=dotted] [label=onUncaughtException];
77 -> {78} [style=dotted]; 77 -> {78} [style=dotted];
78 -> {79} [style=dotted]; 78 -> {79} [style=dotted];
79 -> {81 80} [style=dotted]; 79 -> {81 80} [style=dotted];
@@ -294,97 +293,97 @@ digraph smartcastToNothing_kt {
89 -> {61} [color=green style=dotted]; 89 -> {61} [color=green style=dotted];
90 -> {91}; 90 -> {91};
91 -> {92}; 91 -> {92};
92 -> {93 98}; 92 -> {93 97};
93 -> {94}; 93 -> {94};
94 -> {101}; 94 -> {100};
94 -> {96} [color=red]; 94 -> {95} [color=red];
94 -> {101} [style=dashed]; 94 -> {100} [style=dashed];
95 -> {97} [color=red]; 95 -> {96};
96 -> {97} [color=green]; 96 -> {97};
97 -> {98}; 97 -> {98};
98 -> {99}; 98 -> {99};
99 -> {100}; 100 -> {101};
101 -> {102}; 101 -> {102};
102 -> {103}; 102 -> {103};
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {106}; 105 -> {96} [color=red];
106 -> {95} [color=red]; 105 -> {95} [color=green];
106 -> {96} [color=green];
subgraph cluster_26 { subgraph cluster_26 {
color=red color=red
107 [label="Enter function test_1" style="filled" fillcolor=red]; 106 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_27 { subgraph cluster_27 {
color=blue color=blue
108 [label="Enter block"]; 107 [label="Enter block"];
subgraph cluster_28 { subgraph cluster_28 {
color=blue color=blue
109 [label="Enter when"]; 108 [label="Enter when"];
subgraph cluster_29 { subgraph cluster_29 {
color=blue color=blue
110 [label="Enter when branch condition "]; 109 [label="Enter when branch condition "];
111 [label="Access variable R|<local>/a|"]; 110 [label="Access variable R|<local>/a|"];
112 [label="Type operator: (R|<local>/a| is R|kotlin/Nothing?|)"]; 111 [label="Type operator: (R|<local>/a| is R|kotlin/Nothing?|)"];
113 [label="Exit when branch condition"]; 112 [label="Exit when branch condition"];
} }
114 [label="Synthetic else branch"]; 113 [label="Synthetic else branch"];
115 [label="Enter when branch result"]; 114 [label="Enter when branch result"];
subgraph cluster_30 { subgraph cluster_30 {
color=blue color=blue
116 [label="Enter block"]; 115 [label="Enter block"];
117 [label="Access variable R|<local>/a|"]; 116 [label="Access variable R|<local>/a|"];
118 [label="Smart cast: R|<local>/a|"]; 117 [label="Smart cast: R|<local>/a|"];
119 [label="Enter safe call"]; 118 [label="Enter safe call"];
120 [label="Access variable R|kotlin/String.length|"]; 119 [label="Access variable R|kotlin/String.length|"];
121 [label="Exit safe call"]; 120 [label="Exit safe call"];
122 [label="Variable declaration: lval b: R|kotlin/Int?|"]; 121 [label="Variable declaration: lval b: R|kotlin/Int?|"];
123 [label="Exit block"]; 122 [label="Exit block"];
} }
124 [label="Exit when branch result"]; 123 [label="Exit when branch result"];
125 [label="Exit when"]; 124 [label="Exit when"];
} }
subgraph cluster_31 { subgraph cluster_31 {
color=blue color=blue
126 [label="Enter when"]; 125 [label="Enter when"];
subgraph cluster_32 { subgraph cluster_32 {
color=blue color=blue
127 [label="Enter when branch condition "]; 126 [label="Enter when branch condition "];
128 [label="Access variable R|<local>/a|"]; 127 [label="Access variable R|<local>/a|"];
129 [label="Type operator: (R|<local>/a| is R|kotlin/Nothing|)"]; 128 [label="Type operator: (R|<local>/a| is R|kotlin/Nothing|)"];
130 [label="Exit when branch condition"]; 129 [label="Exit when branch condition"];
} }
131 [label="Synthetic else branch"]; 130 [label="Synthetic else branch"];
132 [label="Enter when branch result"]; 131 [label="Enter when branch result"];
subgraph cluster_33 { subgraph cluster_33 {
color=blue color=blue
133 [label="Enter block"]; 132 [label="Enter block"];
134 [label="Access variable R|<local>/a|"]; 133 [label="Access variable R|<local>/a|"];
135 [label="Smart cast: R|<local>/a|"]; 134 [label="Smart cast: R|<local>/a|"];
136 [label="Stub" style="filled" fillcolor=gray]; 135 [label="Stub" style="filled" fillcolor=gray];
137 [label="Access variable R|kotlin/String.length|" style="filled" fillcolor=gray]; 136 [label="Access variable R|kotlin/String.length|" style="filled" fillcolor=gray];
138 [label="Variable declaration: lval b: R|kotlin/Int|" style="filled" fillcolor=gray]; 137 [label="Variable declaration: lval b: R|kotlin/Int|" style="filled" fillcolor=gray];
139 [label="Exit block" style="filled" fillcolor=gray]; 138 [label="Exit block" style="filled" fillcolor=gray];
} }
140 [label="Exit when branch result" style="filled" fillcolor=gray]; 139 [label="Exit when branch result" style="filled" fillcolor=gray];
141 [label="Exit when"]; 140 [label="Exit when"];
} }
142 [label="Exit block"]; 141 [label="Exit block"];
} }
143 [label="Exit function test_1" style="filled" fillcolor=red]; 142 [label="Exit function test_1" style="filled" fillcolor=red];
} }
106 -> {107};
107 -> {108}; 107 -> {108};
108 -> {109}; 108 -> {109};
109 -> {110}; 109 -> {110};
110 -> {111}; 110 -> {111};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {114 113};
113 -> {115 114}; 113 -> {124};
114 -> {125}; 114 -> {115};
115 -> {116}; 115 -> {116};
116 -> {117}; 116 -> {117};
117 -> {118}; 117 -> {118 120};
118 -> {119 121}; 118 -> {119};
119 -> {120}; 119 -> {120};
120 -> {121}; 120 -> {121};
121 -> {122}; 121 -> {122};
@@ -395,20 +394,19 @@ digraph smartcastToNothing_kt {
126 -> {127}; 126 -> {127};
127 -> {128}; 127 -> {128};
128 -> {129}; 128 -> {129};
129 -> {130}; 129 -> {131 130};
130 -> {132 131}; 130 -> {140};
131 -> {141}; 131 -> {132};
132 -> {133}; 132 -> {133};
133 -> {134}; 133 -> {134};
134 -> {135}; 134 -> {142} [label=onUncaughtException];
135 -> {143} [label=onUncaughtException]; 134 -> {135} [style=dotted];
135 -> {136} [style=dotted]; 135 -> {136} [style=dotted];
136 -> {137} [style=dotted]; 136 -> {137} [style=dotted];
137 -> {138} [style=dotted]; 137 -> {138} [style=dotted];
138 -> {139} [style=dotted]; 138 -> {139} [style=dotted];
139 -> {140} [style=dotted]; 139 -> {140} [style=dotted];
140 -> {141} [style=dotted]; 140 -> {141};
141 -> {142}; 141 -> {142};
142 -> {143};
} }
@@ -6,7 +6,7 @@ digraph overridenOpenVal_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -37,7 +37,7 @@ digraph overridenOpenVal_kt {
color=red color=red
9 [label="Enter function <init>" style="filled" fillcolor=red]; 9 [label="Enter function <init>" style="filled" fillcolor=red];
10 [label="Access variable R|<local>/x|"]; 10 [label="Access variable R|<local>/x|"];
11 [label="Delegated constructor call: super<R|A|>(...)"]; 11 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
12 [label="Exit function <init>" style="filled" fillcolor=red]; 12 [label="Exit function <init>" style="filled" fillcolor=red];
} }
9 -> {10}; 9 -> {10};
@@ -6,7 +6,7 @@ digraph delayedAssignment_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -67,18 +67,18 @@ digraph delayedAssignment_kt {
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
25 [label="Enter block"]; 25 [label="Enter block"];
26 [label="Function call: R|/A.A|()"]; 26 [label="Function call: R|/A.A|()" style="filled" fillcolor=yellow];
27 [label="Assignment: R|<local>/a|"]; 27 [label="Assignment: R|<local>/a|"];
28 [label="Access variable R|<local>/a|"]; 28 [label="Access variable R|<local>/a|"];
29 [label="Smart cast: R|<local>/a|"]; 29 [label="Smart cast: R|<local>/a|"];
30 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 30 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
31 [label="Exit block"]; 31 [label="Exit block"];
} }
32 [label="Exit when branch result"]; 32 [label="Exit when branch result"];
33 [label="Exit when"]; 33 [label="Exit when"];
} }
34 [label="Access variable R|<local>/a|"]; 34 [label="Access variable R|<local>/a|"];
35 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"]; 35 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
36 [label="Exit block"]; 36 [label="Exit block"];
} }
37 [label="Exit function test" style="filled" fillcolor=red]; 37 [label="Exit function test" style="filled" fillcolor=red];
@@ -24,119 +24,115 @@ digraph complexPostponedCfg_kt {
color=blue color=blue
5 [label="Enter block"]; 5 [label="Enter block"];
6 [label="Access variable R|<local>/statements|"]; 6 [label="Access variable R|<local>/statements|"];
7 [label="Function call: R|<local>/statements|.R|kotlin/collections/last|<R|FirBase|>()"]; 7 [label="Function call: R|<local>/statements|.R|kotlin/collections/last|<R|FirBase|>()" style="filled" fillcolor=yellow];
8 [label="Type operator: (R|<local>/statements|.R|kotlin/collections/last|<R|FirBase|>() as R|FirFunctionCall|)"]; 8 [label="Type operator: (R|<local>/statements|.R|kotlin/collections/last|<R|FirBase|>() as R|FirFunctionCall|)"];
9 [label="Postponed enter to lambda"]; 9 [label="Postponed enter to lambda"];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
19 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 18 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
20 [label="Enter block"]; 19 [label="Enter block"];
21 [label="Postponed enter to lambda"]; 20 [label="Postponed enter to lambda"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
26 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 25 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
27 [label="Enter block"]; 26 [label="Enter block"];
28 [label="Access variable this@R|special/anonymous|"]; 27 [label="Access variable this@R|special/anonymous|"];
29 [label="Function call: this@R|special/anonymous|.R|SubstitutionOverride<kotlin/collections/MutableList.add: R|kotlin/Boolean|>|(...)"]; 28 [label="Function call: this@R|special/anonymous|.R|SubstitutionOverride<kotlin/collections/MutableList.add: R|kotlin/Boolean|>|(...)" style="filled" fillcolor=yellow];
30 [label="Access variable R|<local>/arguments|"]; 29 [label="Access variable R|<local>/arguments|"];
31 [label="Function call: R|<local>/arguments|.R|kotlin/collections/last|<R|FirBase|>()"]; 30 [label="Function call: R|<local>/arguments|.R|kotlin/collections/last|<R|FirBase|>()" style="filled" fillcolor=yellow];
32 [label="Type operator: (R|<local>/arguments|.R|kotlin/collections/last|<R|FirBase|>() as R|FirFunctionCall|)"]; 31 [label="Type operator: (R|<local>/arguments|.R|kotlin/collections/last|<R|FirBase|>() as R|FirFunctionCall|)"];
33 [label="Postponed enter to lambda"]; 32 [label="Postponed enter to lambda"];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
39 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 37 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
40 [label="Enter block"]; 38 [label="Enter block"];
41 [label="Access variable this@R|special/anonymous|"]; 39 [label="Access variable this@R|special/anonymous|"];
42 [label="Function call: this@R|special/anonymous|.R|SubstitutionOverride<kotlin/collections/MutableList.add: R|kotlin/Boolean|>|(...)"]; 40 [label="Function call: this@R|special/anonymous|.R|SubstitutionOverride<kotlin/collections/MutableList.add: R|kotlin/Boolean|>|(...)" style="filled" fillcolor=yellow];
43 [label="Access variable R|<local>/explicitReceiver|"]; 41 [label="Access variable R|<local>/explicitReceiver|"];
44 [label="Type operator: (R|<local>/explicitReceiver| as R|FirFunctionCall|)"]; 42 [label="Type operator: (R|<local>/explicitReceiver| as R|FirFunctionCall|)"];
45 [label="Function call: this@R|special/anonymous|.R|SubstitutionOverride<kotlin/collections/MutableList.add: R|kotlin/Boolean|>|(...)"]; 43 [label="Function call: this@R|special/anonymous|.R|SubstitutionOverride<kotlin/collections/MutableList.add: R|kotlin/Boolean|>|(...)" style="filled" fillcolor=yellow];
46 [label="Exit block"]; 44 [label="Exit block"];
} }
47 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 45 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
34 [label="Call arguments union" style="filled" fillcolor=yellow]; 33 [label="Postponed exit from lambda"];
35 [label="Postponed exit from lambda"]; 34 [label="Function call: R|kotlin/with|<R|FirFunctionCall|, R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
36 [label="Function call: R|kotlin/with|<R|FirFunctionCall|, R|kotlin/Unit|>(...)"]; 35 [label="Exit block"];
37 [label="Exit block"];
} }
38 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 36 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
22 [label="Postponed exit from lambda"]; 21 [label="Postponed exit from lambda"];
23 [label="Function call: R|kotlin/collections/buildList|<R|FirFunctionCall|>(...)"]; 22 [label="Function call: R|kotlin/collections/buildList|<R|FirFunctionCall|>(...)" style="filled" fillcolor=yellow];
24 [label="Exit block"]; 23 [label="Exit block"];
} }
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 24 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
10 [label="Call arguments union" style="filled" fillcolor=yellow]; 10 [label="Postponed exit from lambda"];
11 [label="Postponed exit from lambda"]; 11 [label="Function call: R|kotlin/with|<R|FirFunctionCall|, R|kotlin/collections/List<FirFunctionCall>|>(...)" style="filled" fillcolor=yellow];
12 [label="Function call: R|kotlin/with|<R|FirFunctionCall|, R|kotlin/collections/List<FirFunctionCall>|>(...)"]; 12 [label="Variable declaration: lval firstCalls: R|kotlin/collections/List<FirFunctionCall>|"];
13 [label="Variable declaration: lval firstCalls: R|kotlin/collections/List<FirFunctionCall>|"]; 13 [label="Access variable R|<local>/firstCalls|"];
14 [label="Access variable R|<local>/firstCalls|"]; 14 [label="Jump: ^foo R|<local>/firstCalls|"];
15 [label="Jump: ^foo R|<local>/firstCalls|"]; 15 [label="Stub" style="filled" fillcolor=gray];
16 [label="Stub" style="filled" fillcolor=gray]; 16 [label="Exit block" style="filled" fillcolor=gray];
17 [label="Exit block" style="filled" fillcolor=gray];
} }
18 [label="Exit function foo" style="filled" fillcolor=red]; 17 [label="Exit function foo" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {19}; 9 -> {18};
9 -> {11} [color=red]; 9 -> {10} [color=red];
9 -> {19} [style=dashed]; 9 -> {18} [style=dashed];
10 -> {12} [color=red]; 10 -> {11};
11 -> {12} [color=green]; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {17};
15 -> {18}; 14 -> {15} [style=dotted];
15 -> {16} [style=dotted]; 15 -> {16} [style=dotted];
16 -> {17} [style=dotted]; 16 -> {17} [style=dotted];
17 -> {18} [style=dotted]; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {25};
21 -> {26}; 20 -> {21} [color=red];
21 -> {22} [color=red]; 20 -> {25} [style=dashed];
21 -> {26} [style=dashed]; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {11} [color=red];
25 -> {10} [color=red]; 24 -> {10} [color=green];
25 -> {11} [color=green]; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {37};
33 -> {39}; 32 -> {33} [color=red];
33 -> {35} [color=red]; 32 -> {37} [style=dashed];
33 -> {39} [style=dashed]; 33 -> {34};
34 -> {36} [color=red]; 34 -> {35};
35 -> {36} [color=green]; 35 -> {36};
36 -> {37}; 36 -> {11} [color=red];
36 -> {21} [color=green];
37 -> {38}; 37 -> {38};
38 -> {10} [color=red]; 38 -> {39};
38 -> {22} [color=green];
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {34} [color=red];
46 -> {47}; 45 -> {33} [color=green];
47 -> {34} [color=red];
47 -> {35} [color=green];
} }
@@ -13,415 +13,409 @@ digraph callsInPlace_kt {
3 [label="Postponed enter to lambda"]; 3 [label="Postponed enter to lambda"];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
11 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 10 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
12 [label="Enter block"]; 11 [label="Enter block"];
13 [label="Const: Int(1)"]; 12 [label="Const: Int(1)"];
14 [label="Assignment: R|<local>/x|"]; 13 [label="Assignment: R|<local>/x|"];
15 [label="Exit block"]; 14 [label="Exit block"];
} }
16 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 15 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
4 [label="Call arguments union" style="filled" fillcolor=yellow]; 4 [label="Postponed exit from lambda"];
5 [label="Postponed exit from lambda"]; 5 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
6 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)"]; 6 [label="Access variable R|<local>/x|"];
7 [label="Access variable R|<local>/x|"]; 7 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
8 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 8 [label="Exit block"];
9 [label="Exit block"];
} }
10 [label="Exit function test" style="filled" fillcolor=red]; 9 [label="Exit function test" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {11}; 3 -> {10};
3 -> {5} [color=red]; 3 -> {4} [color=red];
3 -> {11} [style=dashed]; 3 -> {10} [style=dashed];
4 -> {6} [color=red]; 4 -> {5};
5 -> {6} [color=green]; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {5} [color=red];
16 -> {4} [color=red]; 15 -> {4} [color=green];
16 -> {5} [color=green];
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
17 [label="Enter function test_2" style="filled" fillcolor=red]; 16 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
18 [label="Enter block"]; 17 [label="Enter block"];
19 [label="Const: Int(10)"]; 18 [label="Const: Int(10)"];
20 [label="Postponed enter to lambda"]; 19 [label="Postponed enter to lambda"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
25 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 24 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
26 [label="Enter block"]; 25 [label="Enter block"];
27 [label="Const: String(test_2)"]; 26 [label="Const: String(test_2)"];
28 [label="Exit block"]; 27 [label="Exit block"];
} }
29 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 28 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
21 [label="Postponed exit from lambda"]; 20 [label="Postponed exit from lambda"];
22 [label="Function call: R|kotlin/repeat|(...)"]; 21 [label="Function call: R|kotlin/repeat|(...)" style="filled" fillcolor=yellow];
23 [label="Exit block"]; 22 [label="Exit block"];
} }
24 [label="Exit function test_2" style="filled" fillcolor=red]; 23 [label="Exit function test_2" style="filled" fillcolor=red];
} }
16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20 24};
20 -> {21 25}; 19 -> {24} [style=dashed];
20 -> {25} [style=dashed]; 20 -> {21};
20 -> {19} [color=green style=dashed];
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 24 -> {25};
25 -> {29 26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {20};
29 -> {21};
29 -> {25} [color=green style=dashed];
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
30 [label="Enter function test_3" style="filled" fillcolor=red]; 29 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
31 [label="Enter block"]; 30 [label="Enter block"];
32 [label="Postponed enter to lambda"]; 31 [label="Postponed enter to lambda"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
38 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 37 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
39 [label="Enter block"]; 38 [label="Enter block"];
40 [label="Const: String(test_3)"]; 39 [label="Const: String(test_3)"];
41 [label="Exit block"]; 40 [label="Exit block"];
} }
42 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
33 [label="Postponed exit from lambda"]; 32 [label="Postponed exit from lambda"];
34 [label="Const: Int(10)"]; 33 [label="Const: Int(10)"];
35 [label="Function call: R|kotlin/repeat|(...)"]; 34 [label="Function call: R|kotlin/repeat|(...)" style="filled" fillcolor=yellow];
36 [label="Exit block"]; 35 [label="Exit block"];
} }
37 [label="Exit function test_3" style="filled" fillcolor=red]; 36 [label="Exit function test_3" style="filled" fillcolor=red];
} }
29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32 37};
32 -> {33 38}; 31 -> {37} [style=dashed];
32 -> {38} [style=dashed]; 32 -> {33};
32 -> {31} [color=green style=dashed];
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 37 -> {38};
38 -> {42 39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {32};
42 -> {33};
42 -> {38} [color=green style=dashed];
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
43 [label="Enter function test_4" style="filled" fillcolor=red]; 42 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
44 [label="Enter block"]; 43 [label="Enter block"];
45 [label="Const: Int(1)"]; 44 [label="Const: Int(1)"];
46 [label="Postponed enter to lambda"]; 45 [label="Postponed enter to lambda"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
52 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 50 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
53 [label="Enter block"]; 51 [label="Enter block"];
54 [label="Const: String(test_4)"]; 52 [label="Const: String(test_4)"];
55 [label="Access variable R|<local>/it|"]; 53 [label="Access variable R|<local>/it|"];
56 [label="Const: Int(0)"]; 54 [label="Const: Int(0)"];
57 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)"]; 55 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)" style="filled" fillcolor=yellow];
58 [label="Comparison >"]; 56 [label="Comparison >"];
59 [label="Exit block"]; 57 [label="Exit block"];
} }
60 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 58 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
47 [label="Call arguments union" style="filled" fillcolor=yellow]; 46 [label="Postponed exit from lambda"];
48 [label="Postponed exit from lambda"]; 47 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
49 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)"]; 48 [label="Exit block"];
50 [label="Exit block"];
} }
51 [label="Exit function test_4" style="filled" fillcolor=red]; 49 [label="Exit function test_4" style="filled" fillcolor=red];
} }
42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {50};
46 -> {52}; 45 -> {46} [color=red];
46 -> {48} [color=red]; 45 -> {50} [style=dashed];
46 -> {52} [style=dashed]; 46 -> {47};
47 -> {49} [color=red]; 47 -> {48};
48 -> {49} [color=green]; 48 -> {49};
49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {58};
58 -> {59}; 58 -> {47} [color=red];
59 -> {60}; 58 -> {46} [color=green];
60 -> {47} [color=red];
60 -> {48} [color=green];
subgraph cluster_16 { subgraph cluster_16 {
color=red color=red
61 [label="Enter function test_5" style="filled" fillcolor=red]; 59 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
62 [label="Enter block"]; 60 [label="Enter block"];
63 [label="Const: Int(1)"]; 61 [label="Const: Int(1)"];
64 [label="Postponed enter to lambda"]; 62 [label="Postponed enter to lambda"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
70 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 67 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
71 [label="Enter block"]; 68 [label="Enter block"];
72 [label="Const: String(test_5)"]; 69 [label="Const: String(test_5)"];
73 [label="Access variable R|<local>/it|"]; 70 [label="Access variable R|<local>/it|"];
74 [label="Const: Int(0)"]; 71 [label="Const: Int(0)"];
75 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)"]; 72 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)" style="filled" fillcolor=yellow];
76 [label="Comparison >"]; 73 [label="Comparison >"];
77 [label="Exit block"]; 74 [label="Exit block"];
} }
78 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 75 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
65 [label="Call arguments union" style="filled" fillcolor=yellow]; 63 [label="Postponed exit from lambda"];
66 [label="Postponed exit from lambda"]; 64 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
67 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)"]; 65 [label="Exit block"];
68 [label="Exit block"];
} }
69 [label="Exit function test_5" style="filled" fillcolor=red]; 66 [label="Exit function test_5" style="filled" fillcolor=red];
} }
59 -> {60};
60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {67};
62 -> {63} [color=red];
62 -> {67} [style=dashed];
63 -> {64}; 63 -> {64};
64 -> {70}; 64 -> {65};
64 -> {66} [color=red]; 65 -> {66};
64 -> {70} [style=dashed];
65 -> {67} [color=red];
66 -> {67} [color=green];
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
69 -> {70};
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {76}; 75 -> {64} [color=red];
76 -> {77}; 75 -> {63} [color=green];
77 -> {78};
78 -> {65} [color=red];
78 -> {66} [color=green];
subgraph cluster_20 { subgraph cluster_20 {
color=red color=red
79 [label="Enter function myRun" style="filled" fillcolor=red]; 76 [label="Enter function myRun" style="filled" fillcolor=red];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
80 [label="Enter block"]; 77 [label="Enter block"];
81 [label="Function call: R|<local>/block1|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 78 [label="Function call: R|<local>/block1|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
82 [label="Function call: R|<local>/block2|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 79 [label="Function call: R|<local>/block2|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
83 [label="Exit block"]; 80 [label="Exit block"];
} }
84 [label="Exit function myRun" style="filled" fillcolor=red]; 81 [label="Exit function myRun" style="filled" fillcolor=red];
} }
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {81}; 80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
subgraph cluster_22 { subgraph cluster_22 {
color=red color=red
85 [label="Enter function test_6" style="filled" fillcolor=red]; 82 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
86 [label="Enter block"]; 83 [label="Enter block"];
87 [label="Postponed enter to lambda"]; 84 [label="Postponed enter to lambda"];
subgraph cluster_24 { subgraph cluster_24 {
color=blue color=blue
99 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 96 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_25 { subgraph cluster_25 {
color=blue color=blue
100 [label="Enter block"]; 97 [label="Enter block"];
101 [label="Const: String(test_6_2)"]; 98 [label="Const: String(test_6_2)"];
102 [label="Exit block"]; 99 [label="Exit block"];
} }
103 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 100 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
88 [label="Postponed exit from lambda"]; 85 [label="Postponed exit from lambda"];
89 [label="Postponed enter to lambda"]; 86 [label="Postponed enter to lambda"];
subgraph cluster_26 { subgraph cluster_26 {
color=blue color=blue
94 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 91 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_27 { subgraph cluster_27 {
color=blue color=blue
95 [label="Enter block"]; 92 [label="Enter block"];
96 [label="Const: String(test_6_1)"]; 93 [label="Const: String(test_6_1)"];
97 [label="Exit block"]; 94 [label="Exit block"];
} }
98 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 95 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
90 [label="Postponed exit from lambda"]; 87 [label="Postponed exit from lambda"];
91 [label="Function call: R|/myRun|(...)"]; 88 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
92 [label="Exit block"]; 89 [label="Exit block"];
} }
93 [label="Exit function test_6" style="filled" fillcolor=red]; 90 [label="Exit function test_6" style="filled" fillcolor=red];
} }
82 -> {83};
83 -> {84};
84 -> {85 96};
84 -> {96} [style=dashed];
85 -> {86}; 85 -> {86};
86 -> {87}; 85 -> {84} [color=green style=dashed];
87 -> {88 99}; 86 -> {87 91};
87 -> {99} [style=dashed]; 86 -> {91} [style=dashed];
87 -> {88};
87 -> {86} [color=green style=dashed];
88 -> {89}; 88 -> {89};
89 -> {90 94}; 89 -> {90};
89 -> {94} [style=dashed];
90 -> {91};
91 -> {92}; 91 -> {92};
92 -> {93}; 92 -> {93};
94 -> {98 95}; 93 -> {94};
95 -> {96}; 94 -> {95};
95 -> {87};
96 -> {97}; 96 -> {97};
97 -> {98}; 97 -> {98};
98 -> {90}; 98 -> {99};
98 -> {94} [color=green style=dashed]; 99 -> {100};
99 -> {103 100}; 100 -> {85};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {88};
103 -> {99} [color=green style=dashed];
subgraph cluster_28 { subgraph cluster_28 {
color=red color=red
104 [label="Enter function test_7" style="filled" fillcolor=red]; 101 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_29 { subgraph cluster_29 {
color=blue color=blue
105 [label="Enter block"]; 102 [label="Enter block"];
106 [label="Postponed enter to lambda"]; 103 [label="Postponed enter to lambda"];
subgraph cluster_30 { subgraph cluster_30 {
color=blue color=blue
113 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 110 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_31 { subgraph cluster_31 {
color=blue color=blue
114 [label="Enter block"]; 111 [label="Enter block"];
115 [label="Const: String(test_7_2)"]; 112 [label="Const: String(test_7_2)"];
116 [label="Exit block"]; 113 [label="Exit block"];
} }
117 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 114 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
107 [label="Postponed exit from lambda"]; 104 [label="Postponed exit from lambda"];
108 [label="Postponed enter to lambda"]; 105 [label="Postponed enter to lambda"];
subgraph cluster_32 { subgraph cluster_32 {
color=blue color=blue
118 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 115 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_33 { subgraph cluster_33 {
color=blue color=blue
119 [label="Enter block"]; 116 [label="Enter block"];
120 [label="Const: String(test_7_1)"]; 117 [label="Const: String(test_7_1)"];
121 [label="Exit block"]; 118 [label="Exit block"];
} }
122 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 119 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
109 [label="Postponed exit from lambda"]; 106 [label="Postponed exit from lambda"];
110 [label="Function call: R|/myRun|(...)"]; 107 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
111 [label="Exit block"]; 108 [label="Exit block"];
} }
112 [label="Exit function test_7" style="filled" fillcolor=red]; 109 [label="Exit function test_7" style="filled" fillcolor=red];
} }
101 -> {102};
102 -> {103};
103 -> {104 110};
103 -> {110} [style=dashed];
104 -> {105}; 104 -> {105};
105 -> {106}; 104 -> {103} [color=green style=dashed];
106 -> {107 113}; 105 -> {106 115};
106 -> {113} [style=dashed]; 105 -> {115} [style=dashed];
106 -> {107};
106 -> {105} [color=green style=dashed];
107 -> {108}; 107 -> {108};
108 -> {109 118}; 108 -> {109};
108 -> {118} [style=dashed];
109 -> {110};
110 -> {111}; 110 -> {111};
111 -> {112}; 111 -> {112};
113 -> {117 114}; 112 -> {113};
114 -> {115}; 113 -> {114};
114 -> {104};
115 -> {116}; 115 -> {116};
116 -> {117}; 116 -> {117};
117 -> {107}; 117 -> {118};
117 -> {113} [color=green style=dashed]; 118 -> {119};
118 -> {122 119}; 119 -> {106};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {109};
122 -> {118} [color=green style=dashed];
subgraph cluster_34 { subgraph cluster_34 {
color=red color=red
123 [label="Enter function myDummyRun" style="filled" fillcolor=red]; 120 [label="Enter function myDummyRun" style="filled" fillcolor=red];
subgraph cluster_35 { subgraph cluster_35 {
color=blue color=blue
124 [label="Enter block"]; 121 [label="Enter block"];
125 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 122 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
126 [label="Exit block"]; 123 [label="Exit block"];
} }
127 [label="Exit function myDummyRun" style="filled" fillcolor=red]; 124 [label="Exit function myDummyRun" style="filled" fillcolor=red];
} }
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124}; 123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
subgraph cluster_36 { subgraph cluster_36 {
color=red color=red
128 [label="Enter function test_8" style="filled" fillcolor=red]; 125 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_37 { subgraph cluster_37 {
color=blue color=blue
129 [label="Enter block"]; 126 [label="Enter block"];
130 [label="Postponed enter to lambda"]; 127 [label="Postponed enter to lambda"];
subgraph cluster_38 { subgraph cluster_38 {
color=blue color=blue
135 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 132 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_39 { subgraph cluster_39 {
color=blue color=blue
136 [label="Enter block"]; 133 [label="Enter block"];
137 [label="Const: String(test_8)"]; 134 [label="Const: String(test_8)"];
138 [label="Exit block"]; 135 [label="Exit block"];
} }
139 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 136 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
131 [label="Postponed exit from lambda"]; 128 [label="Postponed exit from lambda"];
132 [label="Function call: R|/myDummyRun|(...)"]; 129 [label="Function call: R|/myDummyRun|(...)" style="filled" fillcolor=yellow];
133 [label="Exit block"]; 130 [label="Exit block"];
} }
134 [label="Exit function test_8" style="filled" fillcolor=red]; 131 [label="Exit function test_8" style="filled" fillcolor=red];
} }
125 -> {126};
126 -> {127};
127 -> {128 132};
127 -> {132} [style=dashed];
128 -> {129}; 128 -> {129};
129 -> {130}; 129 -> {130};
130 -> {131 135}; 130 -> {131};
130 -> {135} [style=dashed];
131 -> {132};
132 -> {133}; 132 -> {133};
133 -> {134}; 133 -> {134};
134 -> {135};
135 -> {136}; 135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
} }
@@ -11,10 +11,10 @@ digraph conditionalEffects_kt {
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Access variable R|<local>/x|"]; 2 [label="Access variable R|<local>/x|"];
3 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"]; 3 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"];
4 [label="Function call: R|kotlin/require|(...)"]; 4 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
5 [label="Access variable R|<local>/x|"]; 5 [label="Access variable R|<local>/x|"];
6 [label="Smart cast: R|<local>/x|"]; 6 [label="Smart cast: R|<local>/x|"];
7 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 7 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
8 [label="Exit block"]; 8 [label="Exit block"];
} }
9 [label="Exit function test_1" style="filled" fillcolor=red]; 9 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -36,7 +36,7 @@ digraph conditionalEffects_kt {
color=blue color=blue
11 [label="Enter block"]; 11 [label="Enter block"];
12 [label="Access variable R|<local>/x|"]; 12 [label="Access variable R|<local>/x|"];
13 [label="Function call: R|kotlin/requireNotNull|<R|kotlin/String|>(...)"]; 13 [label="Function call: R|kotlin/requireNotNull|<R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
14 [label="Access variable R|<local>/x|"]; 14 [label="Access variable R|<local>/x|"];
15 [label="Smart cast: R|<local>/x|"]; 15 [label="Smart cast: R|<local>/x|"];
16 [label="Access variable R|kotlin/String.length|"]; 16 [label="Access variable R|kotlin/String.length|"];
@@ -62,7 +62,7 @@ digraph conditionalEffects_kt {
21 [label="Access variable R|<local>/x|"]; 21 [label="Access variable R|<local>/x|"];
22 [label="Const: Null(null)"]; 22 [label="Const: Null(null)"];
23 [label="Equality operator !="]; 23 [label="Equality operator !="];
24 [label="Function call: R|kotlin/require|(...)"]; 24 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
25 [label="Access variable R|<local>/x|"]; 25 [label="Access variable R|<local>/x|"];
26 [label="Smart cast: R|<local>/x|"]; 26 [label="Smart cast: R|<local>/x|"];
27 [label="Access variable R|kotlin/String.length|"]; 27 [label="Access variable R|kotlin/String.length|"];
@@ -99,7 +99,7 @@ digraph conditionalEffects_kt {
39 [label="Equality operator !="]; 39 [label="Equality operator !="];
40 [label="Exit &&"]; 40 [label="Exit &&"];
} }
41 [label="Function call: R|kotlin/require|(...)"]; 41 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
42 [label="Access variable R|<local>/x|"]; 42 [label="Access variable R|<local>/x|"];
43 [label="Smart cast: R|<local>/x|"]; 43 [label="Smart cast: R|<local>/x|"];
44 [label="Access variable R|kotlin/String.length|"]; 44 [label="Access variable R|kotlin/String.length|"];
@@ -165,7 +165,7 @@ digraph conditionalEffects_kt {
65 [label="Enter block"]; 65 [label="Enter block"];
66 [label="Access variable R|<local>/x|"]; 66 [label="Access variable R|<local>/x|"];
67 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"]; 67 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"];
68 [label="Function call: R|kotlin/require|(...)"]; 68 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
69 [label="Access variable R|<local>/x|"]; 69 [label="Access variable R|<local>/x|"];
70 [label="Smart cast: R|<local>/x|"]; 70 [label="Smart cast: R|<local>/x|"];
71 [label="Access variable R|kotlin/String.length|"]; 71 [label="Access variable R|kotlin/String.length|"];
@@ -235,7 +235,7 @@ digraph conditionalEffects_kt {
88 [label="Enter block"]; 88 [label="Enter block"];
89 [label="Access variable R|<local>/x|"]; 89 [label="Access variable R|<local>/x|"];
90 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"]; 90 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"];
91 [label="Function call: R|kotlin/require|(...)"]; 91 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
92 [label="Access variable R|<local>/x|"]; 92 [label="Access variable R|<local>/x|"];
93 [label="Smart cast: R|<local>/x|"]; 93 [label="Smart cast: R|<local>/x|"];
94 [label="Access variable R|kotlin/String.length|"]; 94 [label="Access variable R|kotlin/String.length|"];
@@ -248,7 +248,7 @@ digraph conditionalEffects_kt {
98 [label="Enter block"]; 98 [label="Enter block"];
99 [label="Access variable R|<local>/x|"]; 99 [label="Access variable R|<local>/x|"];
100 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"]; 100 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"];
101 [label="Function call: R|kotlin/require|(...)"]; 101 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
102 [label="Access variable R|<local>/x|"]; 102 [label="Access variable R|<local>/x|"];
103 [label="Smart cast: R|<local>/x|"]; 103 [label="Smart cast: R|<local>/x|"];
104 [label="Access variable R|kotlin/String.length|"]; 104 [label="Access variable R|kotlin/String.length|"];
@@ -21,8 +21,8 @@ digraph inAnonymousObject_kt {
4 [label="Exit anonymous object expression"]; 4 [label="Exit anonymous object expression"];
5 [label="Variable declaration: lval obj: R|<anonymous>|"]; 5 [label="Variable declaration: lval obj: R|<anonymous>|"];
6 [label="Access variable R|<local>/obj|"]; 6 [label="Access variable R|<local>/obj|"];
7 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()"]; 7 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
8 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 8 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
9 [label="Exit block"]; 9 [label="Exit block"];
} }
10 [label="Exit function foo" style="filled" fillcolor=red]; 10 [label="Exit function foo" style="filled" fillcolor=red];
@@ -54,7 +54,7 @@ digraph inAnonymousObject_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
15 [label="Enter function <init>" style="filled" fillcolor=red]; 15 [label="Enter function <init>" style="filled" fillcolor=red];
16 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 16 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
17 [label="Exit function <init>" style="filled" fillcolor=red]; 17 [label="Exit function <init>" style="filled" fillcolor=red];
} }
15 -> {16}; 15 -> {16};
@@ -95,7 +95,7 @@ digraph inAnonymousObject_kt {
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
28 [label="Enter block"]; 28 [label="Enter block"];
29 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 29 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
30 [label="Exit block"]; 30 [label="Exit block"];
} }
31 [label="Exit function run" style="filled" fillcolor=red]; 31 [label="Exit function run" style="filled" fillcolor=red];
@@ -10,9 +10,9 @@ digraph inLocalClass_kt {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Exit local class foo"]; 2 [label="Exit local class foo"];
3 [label="Function call: R|/LocalClass.LocalClass|()"]; 3 [label="Function call: R|/LocalClass.LocalClass|()" style="filled" fillcolor=yellow];
4 [label="Function call: R|/LocalClass.LocalClass|().R|<local>/run|()"]; 4 [label="Function call: R|/LocalClass.LocalClass|().R|<local>/run|()" style="filled" fillcolor=yellow];
5 [label="Function call: R|<local>/e|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 5 [label="Function call: R|<local>/e|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
6 [label="Exit block"]; 6 [label="Exit block"];
} }
7 [label="Exit function foo" style="filled" fillcolor=red]; 7 [label="Exit function foo" style="filled" fillcolor=red];
@@ -55,11 +55,11 @@ digraph inLocalClass_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
15 [label="Enter function <init>" style="filled" fillcolor=red]; 15 [label="Enter function <init>" style="filled" fillcolor=red];
16 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 16 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
17 [label="Enter block"]; 17 [label="Enter block"];
18 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 18 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
19 [label="Exit block"]; 19 [label="Exit block"];
} }
20 [label="Exit function <init>" style="filled" fillcolor=red]; 20 [label="Exit function <init>" style="filled" fillcolor=red];
@@ -95,7 +95,7 @@ digraph inLocalClass_kt {
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
28 [label="Enter block"]; 28 [label="Enter block"];
29 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 29 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
30 [label="Exit block"]; 30 [label="Exit block"];
} }
31 [label="Exit function run" style="filled" fillcolor=red]; 31 [label="Exit function run" style="filled" fillcolor=red];
@@ -10,8 +10,8 @@ digraph inLocalFunction_kt {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Local function declaration foo"]; 2 [label="Local function declaration foo"];
3 [label="Function call: R|<local>/localFun|()"]; 3 [label="Function call: R|<local>/localFun|()" style="filled" fillcolor=yellow];
4 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 4 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
5 [label="Exit block"]; 5 [label="Exit block"];
} }
6 [label="Exit function foo" style="filled" fillcolor=red]; 6 [label="Exit function foo" style="filled" fillcolor=red];
@@ -23,8 +23,8 @@ digraph inLocalFunction_kt {
color=blue color=blue
8 [label="Enter block"]; 8 [label="Enter block"];
9 [label="Access variable R|<local>/a|"]; 9 [label="Access variable R|<local>/a|"];
10 [label="Function call: R|<local>/a|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 10 [label="Function call: R|<local>/a|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
11 [label="Function call: R|<local>/a|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 11 [label="Function call: R|<local>/a|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
12 [label="Exit block"]; 12 [label="Exit block"];
} }
13 [label="Exit function localFun" style="filled" fillcolor=red]; 13 [label="Exit function localFun" style="filled" fillcolor=red];
@@ -43,7 +43,7 @@ digraph toLocalVariables_kt {
13 [label="Enter block"]; 13 [label="Enter block"];
14 [label="Access variable R|<local>/y|"]; 14 [label="Access variable R|<local>/y|"];
15 [label="Variable declaration: lval yCopy: R|() -> kotlin/Unit|"]; 15 [label="Variable declaration: lval yCopy: R|() -> kotlin/Unit|"];
16 [label="Function call: R|<local>/yCopy|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 16 [label="Function call: R|<local>/yCopy|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
17 [label="Exit block"]; 17 [label="Exit block"];
} }
18 [label="Exit when branch result"]; 18 [label="Exit when branch result"];
@@ -52,7 +52,7 @@ digraph toLocalVariables_kt {
color=blue color=blue
20 [label="Enter block"]; 20 [label="Enter block"];
21 [label="Access variable R|<local>/x|"]; 21 [label="Access variable R|<local>/x|"];
22 [label="Function call: R|/bar|(...)"]; 22 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
23 [label="Exit block"]; 23 [label="Exit block"];
} }
24 [label="Exit when branch result"]; 24 [label="Exit when branch result"];
@@ -61,7 +61,7 @@ digraph toLocalVariables_kt {
26 [label="Variable declaration: lval zCopy: R|() -> kotlin/Unit|"]; 26 [label="Variable declaration: lval zCopy: R|() -> kotlin/Unit|"];
27 [label="Access variable R|<local>/z|"]; 27 [label="Access variable R|<local>/z|"];
28 [label="Assignment: R|<local>/zCopy|"]; 28 [label="Assignment: R|<local>/zCopy|"];
29 [label="Function call: R|<local>/zCopy|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 29 [label="Function call: R|<local>/zCopy|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
30 [label="Exit block"]; 30 [label="Exit block"];
} }
31 [label="Exit function foo" style="filled" fillcolor=red]; 31 [label="Exit function foo" style="filled" fillcolor=red];
@@ -9,7 +9,7 @@ digraph atLeastOnce_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
3 [label="Exit block"]; 3 [label="Exit block"];
} }
4 [label="Exit function inlineRun" style="filled" fillcolor=red]; 4 [label="Exit function inlineRun" style="filled" fillcolor=red];
@@ -25,7 +25,7 @@ digraph atLeastOnce_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter block"]; 6 [label="Enter block"];
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
8 [label="Exit block"]; 8 [label="Exit block"];
} }
9 [label="Exit function myRun" style="filled" fillcolor=red]; 9 [label="Exit function myRun" style="filled" fillcolor=red];
@@ -45,94 +45,90 @@ digraph atLeastOnce_kt {
13 [label="Postponed enter to lambda"]; 13 [label="Postponed enter to lambda"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
21 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 20 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
22 [label="Enter block"]; 21 [label="Enter block"];
23 [label="Const: Int(1)"]; 22 [label="Const: Int(1)"];
24 [label="Assignment: R|<local>/x|"]; 23 [label="Assignment: R|<local>/x|"];
25 [label="Exit block"]; 24 [label="Exit block"];
} }
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
14 [label="Call arguments union" style="filled" fillcolor=yellow]; 14 [label="Postponed exit from lambda"];
15 [label="Postponed exit from lambda"]; 15 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
16 [label="Function call: R|/inlineRun|(...)"]; 16 [label="Access variable R|<local>/x|"];
17 [label="Access variable R|<local>/x|"]; 17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
18 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 18 [label="Exit block"];
19 [label="Exit block"];
} }
20 [label="Exit function test_1" style="filled" fillcolor=red]; 19 [label="Exit function test_1" style="filled" fillcolor=red];
} }
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {21}; 13 -> {20};
13 -> {15} [color=red]; 13 -> {14} [color=red];
13 -> {21} [style=dashed]; 13 -> {20} [style=dashed];
14 -> {16} [color=red]; 14 -> {15};
15 -> {16} [color=green]; 14 -> {13} [color=green style=dashed];
15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {15} [color=red];
26 -> {14} [color=red]; 25 -> {14} [color=green];
26 -> {15} [color=green];
26 -> {21} [color=green style=dashed];
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
27 [label="Enter function test_2" style="filled" fillcolor=red]; 26 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
28 [label="Enter block"]; 27 [label="Enter block"];
29 [label="Variable declaration: lval x: R|kotlin/Int|"]; 28 [label="Variable declaration: lval x: R|kotlin/Int|"];
30 [label="Postponed enter to lambda"]; 29 [label="Postponed enter to lambda"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
38 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 36 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
39 [label="Enter block"]; 37 [label="Enter block"];
40 [label="Const: Int(1)"]; 38 [label="Const: Int(1)"];
41 [label="Assignment: R|<local>/x|"]; 39 [label="Assignment: R|<local>/x|"];
42 [label="Exit block"]; 40 [label="Exit block"];
} }
43 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
31 [label="Call arguments union" style="filled" fillcolor=yellow]; 30 [label="Postponed exit from lambda"];
32 [label="Postponed exit from lambda"]; 31 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
33 [label="Function call: R|/myRun|(...)"]; 32 [label="Access variable R|<local>/x|"];
34 [label="Access variable R|<local>/x|"]; 33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
35 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 34 [label="Exit block"];
36 [label="Exit block"];
} }
37 [label="Exit function test_2" style="filled" fillcolor=red]; 35 [label="Exit function test_2" style="filled" fillcolor=red];
} }
26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {36};
30 -> {38}; 29 -> {30} [color=red];
30 -> {32} [color=red]; 29 -> {36} [style=dashed];
30 -> {38} [style=dashed]; 30 -> {31};
31 -> {33} [color=red]; 30 -> {29} [color=green style=dashed];
32 -> {33} [color=green]; 31 -> {32};
32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {31} [color=red];
42 -> {43}; 41 -> {30} [color=green];
43 -> {31} [color=red];
43 -> {32} [color=green];
43 -> {38} [color=green style=dashed];
} }
@@ -9,7 +9,7 @@ digraph atMostOnce_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
3 [label="Exit block"]; 3 [label="Exit block"];
} }
4 [label="Exit function inlineRun" style="filled" fillcolor=red]; 4 [label="Exit function inlineRun" style="filled" fillcolor=red];
@@ -25,7 +25,7 @@ digraph atMostOnce_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter block"]; 6 [label="Enter block"];
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
8 [label="Exit block"]; 8 [label="Exit block"];
} }
9 [label="Exit function myRun" style="filled" fillcolor=red]; 9 [label="Exit function myRun" style="filled" fillcolor=red];
@@ -56,9 +56,9 @@ digraph atMostOnce_kt {
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
14 [label="Postponed exit from lambda"]; 14 [label="Postponed exit from lambda"];
15 [label="Function call: R|/inlineRun|(...)"]; 15 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
16 [label="Access variable R|<local>/x|"]; 16 [label="Access variable R|<local>/x|"];
17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
18 [label="Exit block"]; 18 [label="Exit block"];
} }
19 [label="Exit function test_1" style="filled" fillcolor=red]; 19 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -73,7 +73,7 @@ digraph atMostOnce_kt {
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
20 -> {25 21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
@@ -101,9 +101,9 @@ digraph atMostOnce_kt {
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
30 [label="Postponed exit from lambda"]; 30 [label="Postponed exit from lambda"];
31 [label="Function call: R|/myRun|(...)"]; 31 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
32 [label="Access variable R|<local>/x|"]; 32 [label="Access variable R|<local>/x|"];
33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
34 [label="Exit block"]; 34 [label="Exit block"];
} }
35 [label="Exit function test_2" style="filled" fillcolor=red]; 35 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -118,7 +118,7 @@ digraph atMostOnce_kt {
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
36 -> {41 37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
@@ -10,7 +10,7 @@ digraph contractsUsage_kt {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Access variable R|<local>/x|"]; 2 [label="Access variable R|<local>/x|"];
3 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 3 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
4 [label="Exit block"]; 4 [label="Exit block"];
} }
5 [label="Exit function bar" style="filled" fillcolor=red]; 5 [label="Exit function bar" style="filled" fillcolor=red];
@@ -42,7 +42,7 @@ digraph contractsUsage_kt {
color=blue color=blue
14 [label="Enter block"]; 14 [label="Enter block"];
15 [label="Access variable this@R|/baz|"]; 15 [label="Access variable this@R|/baz|"];
16 [label="Function call: this@R|/baz|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 16 [label="Function call: this@R|/baz|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
17 [label="Exit block"]; 17 [label="Exit block"];
} }
18 [label="Exit when branch result"]; 18 [label="Exit when branch result"];
@@ -89,9 +89,9 @@ digraph contractsUsage_kt {
color=blue color=blue
30 [label="Enter block"]; 30 [label="Enter block"];
31 [label="Access variable R|<local>/x|"]; 31 [label="Access variable R|<local>/x|"];
32 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 32 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
33 [label="Access variable R|<local>/y|"]; 33 [label="Access variable R|<local>/y|"];
34 [label="Function call: R|<local>/y|.R|/baz|()"]; 34 [label="Function call: R|<local>/y|.R|/baz|()" style="filled" fillcolor=yellow];
35 [label="Jump: ^foo Unit"]; 35 [label="Jump: ^foo Unit"];
36 [label="Stub" style="filled" fillcolor=gray]; 36 [label="Stub" style="filled" fillcolor=gray];
37 [label="Exit block" style="filled" fillcolor=gray]; 37 [label="Exit block" style="filled" fillcolor=gray];
@@ -100,7 +100,7 @@ digraph contractsUsage_kt {
39 [label="Exit when"]; 39 [label="Exit when"];
} }
40 [label="Access variable R|<local>/x|"]; 40 [label="Access variable R|<local>/x|"];
41 [label="Function call: R|/bar|(...)"]; 41 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
42 [label="Exit block"]; 42 [label="Exit block"];
} }
43 [label="Exit function foo" style="filled" fillcolor=red]; 43 [label="Exit function foo" style="filled" fillcolor=red];
@@ -9,7 +9,7 @@ digraph exactlyOnce_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
3 [label="Exit block"]; 3 [label="Exit block"];
} }
4 [label="Exit function inlineRun" style="filled" fillcolor=red]; 4 [label="Exit function inlineRun" style="filled" fillcolor=red];
@@ -25,7 +25,7 @@ digraph exactlyOnce_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter block"]; 6 [label="Enter block"];
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
8 [label="Exit block"]; 8 [label="Exit block"];
} }
9 [label="Exit function myRun" style="filled" fillcolor=red]; 9 [label="Exit function myRun" style="filled" fillcolor=red];
@@ -45,92 +45,88 @@ digraph exactlyOnce_kt {
13 [label="Postponed enter to lambda"]; 13 [label="Postponed enter to lambda"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
21 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 20 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
22 [label="Enter block"]; 21 [label="Enter block"];
23 [label="Const: Int(1)"]; 22 [label="Const: Int(1)"];
24 [label="Assignment: R|<local>/x|"]; 23 [label="Assignment: R|<local>/x|"];
25 [label="Exit block"]; 24 [label="Exit block"];
} }
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
14 [label="Call arguments union" style="filled" fillcolor=yellow]; 14 [label="Postponed exit from lambda"];
15 [label="Postponed exit from lambda"]; 15 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
16 [label="Function call: R|/inlineRun|(...)"]; 16 [label="Access variable R|<local>/x|"];
17 [label="Access variable R|<local>/x|"]; 17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
18 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 18 [label="Exit block"];
19 [label="Exit block"];
} }
20 [label="Exit function test_1" style="filled" fillcolor=red]; 19 [label="Exit function test_1" style="filled" fillcolor=red];
} }
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {21}; 13 -> {20};
13 -> {15} [color=red]; 13 -> {14} [color=red];
13 -> {21} [style=dashed]; 13 -> {20} [style=dashed];
14 -> {16} [color=red]; 14 -> {15};
15 -> {16} [color=green]; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {15} [color=red];
26 -> {14} [color=red]; 25 -> {14} [color=green];
26 -> {15} [color=green];
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
27 [label="Enter function test_2" style="filled" fillcolor=red]; 26 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
28 [label="Enter block"]; 27 [label="Enter block"];
29 [label="Variable declaration: lval x: R|kotlin/Int|"]; 28 [label="Variable declaration: lval x: R|kotlin/Int|"];
30 [label="Postponed enter to lambda"]; 29 [label="Postponed enter to lambda"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
38 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 36 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
39 [label="Enter block"]; 37 [label="Enter block"];
40 [label="Const: Int(1)"]; 38 [label="Const: Int(1)"];
41 [label="Assignment: R|<local>/x|"]; 39 [label="Assignment: R|<local>/x|"];
42 [label="Exit block"]; 40 [label="Exit block"];
} }
43 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
31 [label="Call arguments union" style="filled" fillcolor=yellow]; 30 [label="Postponed exit from lambda"];
32 [label="Postponed exit from lambda"]; 31 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
33 [label="Function call: R|/myRun|(...)"]; 32 [label="Access variable R|<local>/x|"];
34 [label="Access variable R|<local>/x|"]; 33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
35 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 34 [label="Exit block"];
36 [label="Exit block"];
} }
37 [label="Exit function test_2" style="filled" fillcolor=red]; 35 [label="Exit function test_2" style="filled" fillcolor=red];
} }
26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {36};
30 -> {38}; 29 -> {30} [color=red];
30 -> {32} [color=red]; 29 -> {36} [style=dashed];
30 -> {38} [style=dashed]; 30 -> {31};
31 -> {33} [color=red]; 31 -> {32};
32 -> {33} [color=green]; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {31} [color=red];
42 -> {43}; 41 -> {30} [color=green];
43 -> {31} [color=red];
43 -> {32} [color=green];
} }
@@ -24,7 +24,7 @@ digraph flow_kt {
color=blue color=blue
8 [label="Enter block"]; 8 [label="Enter block"];
9 [label="Access variable R|<local>/x|"]; 9 [label="Access variable R|<local>/x|"];
10 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 10 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
11 [label="Jump: ^bar Unit"]; 11 [label="Jump: ^bar Unit"];
12 [label="Stub" style="filled" fillcolor=gray]; 12 [label="Stub" style="filled" fillcolor=gray];
13 [label="Exit block" style="filled" fillcolor=gray]; 13 [label="Exit block" style="filled" fillcolor=gray];
@@ -33,7 +33,7 @@ digraph flow_kt {
15 [label="Exit when"]; 15 [label="Exit when"];
} }
16 [label="Access variable R|<local>/x|"]; 16 [label="Access variable R|<local>/x|"];
17 [label="Function call: R|/bar|(...)"]; 17 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
18 [label="Exit block"]; 18 [label="Exit block"];
} }
19 [label="Exit function bar" style="filled" fillcolor=red]; 19 [label="Exit function bar" style="filled" fillcolor=red];
@@ -102,9 +102,9 @@ digraph flow_kt {
color=blue color=blue
37 [label="Enter block"]; 37 [label="Enter block"];
38 [label="Access variable R|<local>/y|"]; 38 [label="Access variable R|<local>/y|"];
39 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 39 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
40 [label="Access variable R|<local>/z|"]; 40 [label="Access variable R|<local>/z|"];
41 [label="Function call: R|<local>/z|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 41 [label="Function call: R|<local>/z|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
42 [label="Jump: ^foo Unit"]; 42 [label="Jump: ^foo Unit"];
43 [label="Stub" style="filled" fillcolor=gray]; 43 [label="Stub" style="filled" fillcolor=gray];
44 [label="Exit block" style="filled" fillcolor=gray]; 44 [label="Exit block" style="filled" fillcolor=gray];
@@ -115,7 +115,7 @@ digraph flow_kt {
color=blue color=blue
47 [label="Enter block"]; 47 [label="Enter block"];
48 [label="Access variable R|<local>/y|"]; 48 [label="Access variable R|<local>/y|"];
49 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 49 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
50 [label="Exit block"]; 50 [label="Exit block"];
} }
51 [label="Exit when branch result"]; 51 [label="Exit when branch result"];
@@ -133,8 +133,8 @@ digraph flow_kt {
57 [label="Enter block"]; 57 [label="Enter block"];
58 [label="Const: Int(0)"]; 58 [label="Const: Int(0)"];
59 [label="Const: Int(0)"]; 59 [label="Const: Int(0)"];
60 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...)"]; 60 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...)" style="filled" fillcolor=yellow];
61 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...).R|kotlin/ranges/IntProgression.iterator|()"]; 61 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...).R|kotlin/ranges/IntProgression.iterator|()" style="filled" fillcolor=yellow];
62 [label="Variable declaration: lval <iterator>: R|kotlin/collections/IntIterator|"]; 62 [label="Variable declaration: lval <iterator>: R|kotlin/collections/IntIterator|"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
@@ -143,7 +143,7 @@ digraph flow_kt {
color=blue color=blue
64 [label="Enter loop condition"]; 64 [label="Enter loop condition"];
65 [label="Access variable R|<local>/<iterator>|"]; 65 [label="Access variable R|<local>/<iterator>|"];
66 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()"]; 66 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()" style="filled" fillcolor=yellow];
67 [label="Exit loop condition"]; 67 [label="Exit loop condition"];
} }
subgraph cluster_20 { subgraph cluster_20 {
@@ -153,10 +153,10 @@ digraph flow_kt {
color=blue color=blue
69 [label="Enter block"]; 69 [label="Enter block"];
70 [label="Access variable R|<local>/<iterator>|"]; 70 [label="Access variable R|<local>/<iterator>|"];
71 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()"]; 71 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()" style="filled" fillcolor=yellow];
72 [label="Variable declaration: lval i: R|kotlin/Int|"]; 72 [label="Variable declaration: lval i: R|kotlin/Int|"];
73 [label="Access variable R|<local>/x|"]; 73 [label="Access variable R|<local>/x|"];
74 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 74 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
75 [label="Exit block"]; 75 [label="Exit block"];
} }
76 [label="Exit loop block"]; 76 [label="Exit loop block"];
@@ -166,7 +166,7 @@ digraph flow_kt {
78 [label="Exit block"]; 78 [label="Exit block"];
} }
79 [label="Access variable R|<local>/y|"]; 79 [label="Access variable R|<local>/y|"];
80 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 80 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
81 [label="Exit block"]; 81 [label="Exit block"];
} }
82 [label="Exit when branch result"]; 82 [label="Exit when branch result"];
@@ -182,7 +182,7 @@ digraph flow_kt {
color=blue color=blue
86 [label="Enter block"]; 86 [label="Enter block"];
87 [label="Access variable R|<local>/z|"]; 87 [label="Access variable R|<local>/z|"];
88 [label="Function call: R|/bar|(...)"]; 88 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
89 [label="Exit block"]; 89 [label="Exit block"];
} }
90 [label="Exit loop block"]; 90 [label="Exit loop block"];
@@ -23,7 +23,7 @@ digraph inPlaceLambda_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
8 [label="Enter block"]; 8 [label="Enter block"];
9 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 9 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
10 [label="Exit block"]; 10 [label="Exit block"];
} }
11 [label="Exit when branch result"]; 11 [label="Exit when branch result"];
@@ -54,7 +54,7 @@ digraph inPlaceLambda_kt {
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
16 [label="Enter block"]; 16 [label="Enter block"];
17 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 17 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
18 [label="Postponed enter to lambda"]; 18 [label="Postponed enter to lambda"];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
@@ -62,13 +62,13 @@ digraph inPlaceLambda_kt {
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
24 [label="Enter block"]; 24 [label="Enter block"];
25 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 25 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
26 [label="Exit block"]; 26 [label="Exit block"];
} }
27 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 27 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
19 [label="Postponed exit from lambda"]; 19 [label="Postponed exit from lambda"];
20 [label="Function call: R|/bar|(...)"]; 20 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
21 [label="Exit block"]; 21 [label="Exit block"];
} }
22 [label="Exit function foo" style="filled" fillcolor=red]; 22 [label="Exit function foo" style="filled" fillcolor=red];
@@ -81,7 +81,7 @@ digraph inPlaceLambda_kt {
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
23 -> {27 24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
@@ -10,7 +10,7 @@ digraph simple_kt {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Access variable R|<local>/x|"]; 2 [label="Access variable R|<local>/x|"];
3 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 3 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
4 [label="Exit block"]; 4 [label="Exit block"];
} }
5 [label="Exit function bar" style="filled" fillcolor=red]; 5 [label="Exit function bar" style="filled" fillcolor=red];
@@ -28,7 +28,7 @@ digraph simple_kt {
color=blue color=blue
7 [label="Enter block"]; 7 [label="Enter block"];
8 [label="Access variable R|<local>/x|"]; 8 [label="Access variable R|<local>/x|"];
9 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 9 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
10 [label="Enter when"]; 10 [label="Enter when"];
@@ -43,14 +43,14 @@ digraph simple_kt {
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
16 [label="Enter block"]; 16 [label="Enter block"];
17 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 17 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
18 [label="Exit block"]; 18 [label="Exit block"];
} }
19 [label="Exit when branch result"]; 19 [label="Exit when branch result"];
20 [label="Exit when"]; 20 [label="Exit when"];
} }
21 [label="Access variable R|<local>/z|"]; 21 [label="Access variable R|<local>/z|"];
22 [label="Function call: R|/bar|(...)"]; 22 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
23 [label="Exit block"]; 23 [label="Exit block"];
} }
24 [label="Exit function foo" style="filled" fillcolor=red]; 24 [label="Exit function foo" style="filled" fillcolor=red];
@@ -9,7 +9,7 @@ digraph unknown_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
3 [label="Exit block"]; 3 [label="Exit block"];
} }
4 [label="Exit function inlineRun" style="filled" fillcolor=red]; 4 [label="Exit function inlineRun" style="filled" fillcolor=red];
@@ -25,7 +25,7 @@ digraph unknown_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter block"]; 6 [label="Enter block"];
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
8 [label="Exit block"]; 8 [label="Exit block"];
} }
9 [label="Exit function myRun" style="filled" fillcolor=red]; 9 [label="Exit function myRun" style="filled" fillcolor=red];
@@ -56,9 +56,9 @@ digraph unknown_kt {
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
14 [label="Postponed exit from lambda"]; 14 [label="Postponed exit from lambda"];
15 [label="Function call: R|/inlineRun|(...)"]; 15 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
16 [label="Access variable R|<local>/x|"]; 16 [label="Access variable R|<local>/x|"];
17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
18 [label="Exit block"]; 18 [label="Exit block"];
} }
19 [label="Exit function test_1" style="filled" fillcolor=red]; 19 [label="Exit function test_1" style="filled" fillcolor=red];
@@ -69,17 +69,17 @@ digraph unknown_kt {
13 -> {14 20}; 13 -> {14 20};
13 -> {20} [style=dashed]; 13 -> {20} [style=dashed];
14 -> {15}; 14 -> {15};
14 -> {13} [color=green style=dashed];
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
20 -> {25 21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {14}; 25 -> {14};
25 -> {20} [color=green style=dashed];
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
@@ -102,9 +102,9 @@ digraph unknown_kt {
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
30 [label="Postponed exit from lambda"]; 30 [label="Postponed exit from lambda"];
31 [label="Function call: R|/myRun|(...)"]; 31 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
32 [label="Access variable R|<local>/x|"]; 32 [label="Access variable R|<local>/x|"];
33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
34 [label="Exit block"]; 34 [label="Exit block"];
} }
35 [label="Exit function test_2" style="filled" fillcolor=red]; 35 [label="Exit function test_2" style="filled" fillcolor=red];
@@ -115,16 +115,16 @@ digraph unknown_kt {
29 -> {30 36}; 29 -> {30 36};
29 -> {36} [style=dashed]; 29 -> {36} [style=dashed];
30 -> {31}; 30 -> {31};
30 -> {29} [color=green style=dashed];
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
36 -> {41 37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {30}; 41 -> {30};
41 -> {36} [color=green style=dashed];
} }
@@ -6,7 +6,7 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Exit function <init>" style="filled" fillcolor=red]; 2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
@@ -26,7 +26,7 @@ digraph delegateWithAnonymousObject_kt {
color=blue color=blue
6 [label="Enter block"]; 6 [label="Enter block"];
7 [label="Const: Null(null)"]; 7 [label="Const: Null(null)"];
8 [label="Check not null: Null(null)!!"]; 8 [label="Check not null: Null(null)!!" style="filled" fillcolor=yellow];
9 [label="Stub" style="filled" fillcolor=gray]; 9 [label="Stub" style="filled" fillcolor=gray];
10 [label="Jump: ^delegate Null(null)!!" style="filled" fillcolor=gray]; 10 [label="Jump: ^delegate Null(null)!!" style="filled" fillcolor=gray];
11 [label="Stub" style="filled" fillcolor=gray]; 11 [label="Stub" style="filled" fillcolor=gray];
@@ -47,7 +47,7 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
14 [label="Enter function <init>" style="filled" fillcolor=red]; 14 [label="Enter function <init>" style="filled" fillcolor=red];
15 [label="Delegated constructor call: super<R|DelegateProvider<IssueListView>|>()"]; 15 [label="Delegated constructor call: super<R|DelegateProvider<IssueListView>|>()" style="filled" fillcolor=yellow];
16 [label="Exit function <init>" style="filled" fillcolor=red]; 16 [label="Exit function <init>" style="filled" fillcolor=red];
} }
14 -> {15}; 14 -> {15};
@@ -77,7 +77,7 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
23 [label="Enter function <init>" style="filled" fillcolor=red]; 23 [label="Enter function <init>" style="filled" fillcolor=red];
24 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()"]; 24 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()" style="filled" fillcolor=yellow];
25 [label="Exit function <init>" style="filled" fillcolor=red]; 25 [label="Exit function <init>" style="filled" fillcolor=red];
} }
23 -> {24}; 23 -> {24};
@@ -118,7 +118,7 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
35 [label="Enter function <init>" style="filled" fillcolor=red]; 35 [label="Enter function <init>" style="filled" fillcolor=red];
36 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 36 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
37 [label="Exit function <init>" style="filled" fillcolor=red]; 37 [label="Exit function <init>" style="filled" fillcolor=red];
} }
35 -> {36}; 35 -> {36};
@@ -130,7 +130,7 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
39 [label="Enter block"]; 39 [label="Enter block"];
40 [label="Function call: R|/IssueListView.IssueListView|()"]; 40 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
41 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"]; 41 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
42 [label="Stub" style="filled" fillcolor=gray]; 42 [label="Stub" style="filled" fillcolor=gray];
43 [label="Exit block" style="filled" fillcolor=gray]; 43 [label="Exit block" style="filled" fillcolor=gray];
@@ -151,9 +151,9 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_16 { subgraph cluster_16 {
color=blue color=blue
46 [label="Enter block"]; 46 [label="Enter block"];
47 [label="Function call: R|/IssueListView.IssueListView|()"]; 47 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
48 [label="Access variable R|<local>/value|"]; 48 [label="Access variable R|<local>/value|"];
49 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)"]; 49 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)" style="filled" fillcolor=yellow];
50 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"]; 50 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
51 [label="Stub" style="filled" fillcolor=gray]; 51 [label="Stub" style="filled" fillcolor=gray];
52 [label="Exit block" style="filled" fillcolor=gray]; 52 [label="Exit block" style="filled" fillcolor=gray];
@@ -178,7 +178,7 @@ digraph delegateWithAnonymousObject_kt {
55 [label="Enter block"]; 55 [label="Enter block"];
56 [label="Access variable D|/IssuesListUserProfile.issueListView|"]; 56 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
57 [label="Access variable this@R|/IssuesListUserProfile|"]; 57 [label="Access variable this@R|/IssuesListUserProfile|"];
58 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|Stub (chain inference): TypeVariable(_Target)|>|(...)"]; 58 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|Stub (chain inference): TypeVariable(_Target)|>|(...)" style="filled" fillcolor=yellow];
59 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|Stub (chain inference): TypeVariable(_Target)|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"]; 59 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|Stub (chain inference): TypeVariable(_Target)|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"];
60 [label="Stub" style="filled" fillcolor=gray]; 60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Exit block" style="filled" fillcolor=gray]; 61 [label="Exit block" style="filled" fillcolor=gray];
@@ -204,7 +204,7 @@ digraph delegateWithAnonymousObject_kt {
65 [label="Access variable D|/IssuesListUserProfile.issueListView|"]; 65 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
66 [label="Access variable this@R|/IssuesListUserProfile|"]; 66 [label="Access variable this@R|/IssuesListUserProfile|"];
67 [label="Access variable R|<local>/issueListView|"]; 67 [label="Access variable R|<local>/issueListView|"];
68 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)"]; 68 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
69 [label="Exit block"]; 69 [label="Exit block"];
} }
70 [label="Exit function setter" style="filled" fillcolor=red]; 70 [label="Exit function setter" style="filled" fillcolor=red];
@@ -222,9 +222,9 @@ digraph delegateWithAnonymousObject_kt {
71 [label="Enter property" style="filled" fillcolor=red]; 71 [label="Enter property" style="filled" fillcolor=red];
72 [label="Postponed enter to lambda"]; 72 [label="Postponed enter to lambda"];
73 [label="Postponed exit from lambda"]; 73 [label="Postponed exit from lambda"];
74 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"]; 74 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)" style="filled" fillcolor=yellow];
75 [label="Access variable this@R|/IssuesListUserProfile|"]; 75 [label="Access variable this@R|/IssuesListUserProfile|"];
76 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)"]; 76 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)" style="filled" fillcolor=yellow];
77 [label="Exit property" style="filled" fillcolor=red]; 77 [label="Exit property" style="filled" fillcolor=red];
} }
71 -> {72}; 71 -> {72};
@@ -10,7 +10,7 @@ digraph plusAssignWithLambdaInRhs_kt {
color=blue color=blue
1 [label="Enter block"]; 1 [label="Enter block"];
2 [label="Const: Null(null)"]; 2 [label="Const: Null(null)"];
3 [label="Check not null: Null(null)!!"]; 3 [label="Check not null: Null(null)!!" style="filled" fillcolor=yellow];
4 [label="Stub" style="filled" fillcolor=gray]; 4 [label="Stub" style="filled" fillcolor=gray];
5 [label="Variable declaration: lval list: R|kotlin/collections/MutableList<kotlin/Function1<kotlin/String, kotlin/String>>|" style="filled" fillcolor=gray]; 5 [label="Variable declaration: lval list: R|kotlin/collections/MutableList<kotlin/Function1<kotlin/String, kotlin/String>>|" style="filled" fillcolor=gray];
6 [label="Access variable R|<local>/list|" style="filled" fillcolor=gray]; 6 [label="Access variable R|<local>/list|" style="filled" fillcolor=gray];
@@ -43,19 +43,19 @@ digraph plusAssignWithLambdaInRhs_kt {
7 -> {8 12} [style=dotted]; 7 -> {8 12} [style=dotted];
7 -> {12} [style=dashed]; 7 -> {12} [style=dashed];
8 -> {9} [style=dotted]; 8 -> {9} [style=dotted];
8 -> {7} [color=green style=dotted];
9 -> {10} [style=dotted]; 9 -> {10} [style=dotted];
10 -> {11} [style=dotted]; 10 -> {11} [style=dotted];
12 -> {16 13} [style=dotted]; 12 -> {13} [style=dotted];
13 -> {14} [style=dotted]; 13 -> {14} [style=dotted];
14 -> {15} [style=dotted]; 14 -> {15} [style=dotted];
15 -> {16} [style=dotted]; 15 -> {16} [style=dotted];
16 -> {8} [style=dotted]; 16 -> {8} [style=dotted];
16 -> {12} [color=green style=dotted];
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
17 [label="Enter function <init>" style="filled" fillcolor=red]; 17 [label="Enter function <init>" style="filled" fillcolor=red];
18 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 18 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
19 [label="Exit function <init>" style="filled" fillcolor=red]; 19 [label="Exit function <init>" style="filled" fillcolor=red];
} }
17 -> {18}; 17 -> {18};
@@ -88,7 +88,7 @@ digraph plusAssignWithLambdaInRhs_kt {
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
27 [label="Enter block"]; 27 [label="Enter block"];
28 [label="Function call: R|kotlin/collections/mutableListOf|<R|() -> kotlin/Unit|>()"]; 28 [label="Function call: R|kotlin/collections/mutableListOf|<R|() -> kotlin/Unit|>()" style="filled" fillcolor=yellow];
29 [label="Variable declaration: lval queue: R|kotlin/collections/MutableList<kotlin/Function0<kotlin/Unit>>|"]; 29 [label="Variable declaration: lval queue: R|kotlin/collections/MutableList<kotlin/Function0<kotlin/Unit>>|"];
30 [label="Postponed enter to lambda"]; 30 [label="Postponed enter to lambda"];
subgraph cluster_9 { subgraph cluster_9 {
@@ -105,20 +105,20 @@ digraph plusAssignWithLambdaInRhs_kt {
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
46 [label="Enter block"]; 46 [label="Enter block"];
47 [label="Function call: R|<local>/computation|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()"]; 47 [label="Function call: R|<local>/computation|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()" style="filled" fillcolor=yellow];
48 [label="Function call: R|<local>/resolve|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(...)"]; 48 [label="Function call: R|<local>/resolve|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
49 [label="Exit block"]; 49 [label="Exit block"];
} }
50 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 50 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
41 [label="Postponed exit from lambda"]; 41 [label="Postponed exit from lambda"];
42 [label="Function call: R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(...)"]; 42 [label="Function call: R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
43 [label="Exit block"]; 43 [label="Exit block"];
} }
44 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 44 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
31 [label="Postponed exit from lambda"]; 31 [label="Postponed exit from lambda"];
32 [label="Function call: R|/A.A|<R|T|>(...)"]; 32 [label="Function call: R|/A.A|<R|T|>(...)" style="filled" fillcolor=yellow];
33 [label="Jump: ^postpone R|/A.A|<R|T|>(<L> = A@fun <anonymous>(resolve: R|(T) -> kotlin/Unit|): R|kotlin/Unit| <inline=NoInline> { 33 [label="Jump: ^postpone R|/A.A|<R|T|>(<L> = A@fun <anonymous>(resolve: R|(T) -> kotlin/Unit|): R|kotlin/Unit| <inline=NoInline> {
R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(A@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> { R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(A@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
R|<local>/resolve|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(R|<local>/computation|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()) R|<local>/resolve|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(R|<local>/computation|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|())
@@ -149,14 +149,14 @@ digraph plusAssignWithLambdaInRhs_kt {
40 -> {41 45}; 40 -> {41 45};
40 -> {45} [style=dashed]; 40 -> {45} [style=dashed];
41 -> {42}; 41 -> {42};
41 -> {40} [color=green style=dashed];
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
45 -> {50 46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
50 -> {41}; 50 -> {41};
50 -> {45} [color=green style=dashed];
} }
@@ -67,7 +67,7 @@ digraph tryWithLambdaInside_kt {
35 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 35 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
18 [label="Postponed exit from lambda"]; 18 [label="Postponed exit from lambda"];
19 [label="Function call: R|<local>/list|.R|kotlin/collections/filter|<R|kotlin/Boolean|>(...)"]; 19 [label="Function call: R|<local>/list|.R|kotlin/collections/filter|<R|kotlin/Boolean|>(...)" style="filled" fillcolor=yellow];
20 [label="Exit block"]; 20 [label="Exit block"];
} }
21 [label="Try main block exit"]; 21 [label="Try main block exit"];
@@ -108,6 +108,7 @@ finally {
17 -> {18 31}; 17 -> {18 31};
17 -> {31} [style=dashed]; 17 -> {31} [style=dashed];
18 -> {19}; 18 -> {19};
18 -> {17} [color=green style=dashed];
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
@@ -121,12 +122,11 @@ finally {
27 -> {28} [style=dotted]; 27 -> {28} [style=dotted];
28 -> {29} [style=dotted]; 28 -> {29} [style=dotted];
29 -> {30} [style=dotted]; 29 -> {30} [style=dotted];
31 -> {35 32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {18}; 35 -> {18};
35 -> {31} [color=green style=dashed];
subgraph cluster_13 { subgraph cluster_13 {
color=red color=red
@@ -157,7 +157,7 @@ finally {
60 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 60 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
43 [label="Postponed exit from lambda"]; 43 [label="Postponed exit from lambda"];
44 [label="Function call: R|<local>/list|.R|/notInPlaceFilter|<R|kotlin/Boolean|>(...)"]; 44 [label="Function call: R|<local>/list|.R|/notInPlaceFilter|<R|kotlin/Boolean|>(...)" style="filled" fillcolor=yellow];
45 [label="Exit block"]; 45 [label="Exit block"];
} }
46 [label="Try main block exit"]; 46 [label="Try main block exit"];
@@ -155,6 +155,8 @@ object FirCallsEffectAnalyzer : FirControlFlowChecker() {
override fun visitNode(node: CFGNode<*>, data: IllegalScopeContext) {} override fun visitNode(node: CFGNode<*>, data: IllegalScopeContext) {}
override fun <T> visitUnionNode(node: T, data: IllegalScopeContext) where T : CFGNode<*>, T : UnionNodeMarker {}
override fun visitFunctionEnterNode(node: FunctionEnterNode, data: IllegalScopeContext) { override fun visitFunctionEnterNode(node: FunctionEnterNode, data: IllegalScopeContext) {
data.enterScope(node.fir === rootFunction || node.fir.isInPlaceLambda()) data.enterScope(node.fir === rootFunction || node.fir.isInPlaceLambda())
} }
@@ -235,22 +237,15 @@ object FirCallsEffectAnalyzer : FirControlFlowChecker() {
private class InvocationDataCollector( private class InvocationDataCollector(
val functionalTypeSymbols: Set<FirBasedSymbol<*>> val functionalTypeSymbols: Set<FirBasedSymbol<*>>
) : ControlFlowGraphVisitor<PathAwareLambdaInvocationInfo, Collection<Pair<EdgeLabel, PathAwareLambdaInvocationInfo>>>() { ) : PathAwareControlFlowGraphVisitor<PathAwareLambdaInvocationInfo>() {
override val emptyInfo: PathAwareLambdaInvocationInfo
override fun visitNode( get() = PathAwareLambdaInvocationInfo.EMPTY
node: CFGNode<*>,
data: Collection<Pair<EdgeLabel, PathAwareLambdaInvocationInfo>>
): PathAwareLambdaInvocationInfo {
if (data.isEmpty()) return PathAwareLambdaInvocationInfo.EMPTY
return data.map { (label, info) -> info.applyLabel(node, label) }
.reduce(PathAwareLambdaInvocationInfo::merge)
}
override fun visitFunctionCallNode( override fun visitFunctionCallNode(
node: FunctionCallNode, node: FunctionCallNode,
data: Collection<Pair<EdgeLabel, PathAwareLambdaInvocationInfo>> data: Collection<Pair<EdgeLabel, PathAwareLambdaInvocationInfo>>
): PathAwareLambdaInvocationInfo { ): PathAwareLambdaInvocationInfo {
var dataForNode = visitNode(node, data) var dataForNode = visitUnionNode(node, data)
val functionSymbol = node.fir.toResolvedCallableSymbol() as? FirFunctionSymbol<*>? val functionSymbol = node.fir.toResolvedCallableSymbol() as? FirFunctionSymbol<*>?
val contractDescription = functionSymbol?.resolvedContractDescription val contractDescription = functionSymbol?.resolvedContractDescription
@@ -63,6 +63,8 @@ object FirPropertyInitializationAnalyzer : AbstractFirPropertyInitializationChec
) : ControlFlowGraphVisitorVoid() { ) : ControlFlowGraphVisitorVoid() {
override fun visitNode(node: CFGNode<*>) {} override fun visitNode(node: CFGNode<*>) {}
override fun <T> visitUnionNode(node: T) where T : CFGNode<*>, T : UnionNodeMarker {}
private fun getPropertySymbol(node: CFGNode<*>): FirPropertySymbol? { private fun getPropertySymbol(node: CFGNode<*>): FirPropertySymbol? {
return (node.fir as? FirQualifiedAccess)?.referredPropertySymbol return (node.fir as? FirQualifiedAccess)?.referredPropertySymbol
} }
@@ -36,4 +36,6 @@ abstract class ControlFlowInfo<S : ControlFlowInfo<S, K, V>, K : Any, V : Any> p
} }
abstract fun merge(other: S): S abstract fun merge(other: S): S
abstract fun plus(other: S): S
} }
@@ -33,6 +33,8 @@ class LocalPropertyAndCapturedWriteCollector private constructor() : ControlFlow
override fun visitNode(node: CFGNode<*>) {} override fun visitNode(node: CFGNode<*>) {}
override fun <T> visitUnionNode(node: T) where T : CFGNode<*>, T : UnionNodeMarker {}
override fun visitVariableDeclarationNode(node: VariableDeclarationNode) { override fun visitVariableDeclarationNode(node: VariableDeclarationNode) {
symbols[node.fir.symbol] = lambdaOrLocalFunctionStack.lastOrNull() == null symbols[node.fir.symbol] = lambdaOrLocalFunctionStack.lastOrNull() == null
} }
@@ -0,0 +1,28 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.analysis.cfa.util
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.CFGNode
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.ControlFlowGraphVisitor
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.EdgeLabel
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.UnionNodeMarker
import org.jetbrains.kotlin.utils.addToStdlib.foldMap
abstract class PathAwareControlFlowGraphVisitor<P : PathAwareControlFlowInfo<P, *>>
: ControlFlowGraphVisitor<P, Collection<Pair<EdgeLabel, P>>>() {
protected abstract val emptyInfo: P
override fun visitNode(node: CFGNode<*>, data: Collection<Pair<EdgeLabel, P>>): P {
if (data.isEmpty()) return emptyInfo
return data.foldMap({ (label, info) -> info.applyLabel(node, label) }) { a, b -> a.merge(b) }
}
override fun <T> visitUnionNode(node: T, data: Collection<Pair<EdgeLabel, P>>): P where T : CFGNode<*>, T : UnionNodeMarker {
if (data.isEmpty()) return emptyInfo
return data.foldMap({ (label, info) -> info.applyLabel(node, label) }) { a, b -> a.plus(b) }
}
}
@@ -68,7 +68,7 @@ abstract class PathAwareControlFlowInfo<P : PathAwareControlFlowInfo<P, S>, S :
} }
} }
override fun merge(other: P): P { private fun join(other: P, union: Boolean): P {
var resultMap = persistentMapOf<EdgeLabel, S>() var resultMap = persistentMapOf<EdgeLabel, S>()
for (label in keys.union(other.keys)) { for (label in keys.union(other.keys)) {
// disjoint merging to preserve paths. i.e., merge the property initialization info if and only if both have the key. // disjoint merging to preserve paths. i.e., merge the property initialization info if and only if both have the key.
@@ -78,7 +78,7 @@ abstract class PathAwareControlFlowInfo<P : PathAwareControlFlowInfo<P, S>, S :
val i2 = other[label] val i2 = other[label]
resultMap = when { resultMap = when {
i1 != null && i2 != null -> i1 != null && i2 != null ->
resultMap.put(label, i1.merge(i2)) resultMap.put(label, if (union) i1.plus(i2) else i1.merge(i2))
i1 != null -> i1 != null ->
resultMap.put(label, i1) resultMap.put(label, i1)
i2 != null -> i2 != null ->
@@ -89,4 +89,8 @@ abstract class PathAwareControlFlowInfo<P : PathAwareControlFlowInfo<P, S>, S :
} }
return constructor(resultMap) return constructor(resultMap)
} }
override fun merge(other: P): P = join(other, union = false)
override fun plus(other: P): P = join(other, union = true)
} }
@@ -19,7 +19,7 @@ abstract class EventOccurrencesRangeInfo<E : EventOccurrencesRangeInfo<E, K>, K
override fun merge(other: E): E = override fun merge(other: E): E =
operation(other, EventOccurrencesRange::or) operation(other, EventOccurrencesRange::or)
fun plus(other: E): E = override fun plus(other: E): E =
when { when {
isEmpty() -> other isEmpty() -> other
other.isEmpty() -> other.isEmpty() ->
@@ -16,18 +16,9 @@ import org.jetbrains.kotlin.fir.symbols.impl.FirPropertySymbol
class PropertyInitializationInfoCollector( class PropertyInitializationInfoCollector(
private val localProperties: Set<FirPropertySymbol>, private val localProperties: Set<FirPropertySymbol>,
private val declaredVariableCollector: DeclaredVariableCollector = DeclaredVariableCollector(), private val declaredVariableCollector: DeclaredVariableCollector = DeclaredVariableCollector(),
) : ControlFlowGraphVisitor<PathAwarePropertyInitializationInfo, Collection<Pair<EdgeLabel, PathAwarePropertyInitializationInfo>>>() { ) : PathAwareControlFlowGraphVisitor<PathAwarePropertyInitializationInfo>() {
override fun visitNode( override val emptyInfo: PathAwarePropertyInitializationInfo
node: CFGNode<*>, get() = PathAwarePropertyInitializationInfo.EMPTY
data: Collection<Pair<EdgeLabel, PathAwarePropertyInitializationInfo>>
): PathAwarePropertyInitializationInfo {
var result: PathAwarePropertyInitializationInfo? = null
for ((label, info) in data) {
val resultItem = info.applyLabel(node, label)
result = result?.merge(resultItem) ?: resultItem
}
return result ?: PathAwarePropertyInitializationInfo.EMPTY
}
override fun visitVariableAssignmentNode( override fun visitVariableAssignmentNode(
node: VariableAssignmentNode, node: VariableAssignmentNode,
@@ -16,10 +16,7 @@ import org.jetbrains.kotlin.fir.declarations.FirProperty
import org.jetbrains.kotlin.fir.declarations.FirRegularClass import org.jetbrains.kotlin.fir.declarations.FirRegularClass
import org.jetbrains.kotlin.fir.expressions.FirVariableAssignment import org.jetbrains.kotlin.fir.expressions.FirVariableAssignment
import org.jetbrains.kotlin.fir.expressions.toResolvedCallableSymbol import org.jetbrains.kotlin.fir.expressions.toResolvedCallableSymbol
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.CFGNode import org.jetbrains.kotlin.fir.resolve.dfa.cfg.*
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.ControlFlowGraphVisitor
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.EdgeLabel
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.VariableAssignmentNode
import org.jetbrains.kotlin.fir.resolve.dfa.controlFlowGraph import org.jetbrains.kotlin.fir.resolve.dfa.controlFlowGraph
import org.jetbrains.kotlin.fir.symbols.impl.FirPropertySymbol import org.jetbrains.kotlin.fir.symbols.impl.FirPropertySymbol
@@ -62,6 +59,13 @@ object FirPropertyInitializationChecker : FirRegularClassChecker() {
return data.map { it.second }.reduce { l, r -> l.intersect(r) } return data.map { it.second }.reduce { l, r -> l.intersect(r) }
} }
override fun <T> visitUnionNode(
node: T, data: Collection<Pair<EdgeLabel, Properties>>
): Properties where T : CFGNode<*>, T : UnionNodeMarker {
if (data.isEmpty()) return emptySet()
return data.map { it.second }.reduce { l, r -> l + r }
}
override fun visitVariableAssignmentNode(node: VariableAssignmentNode, data: Collection<Pair<EdgeLabel, Properties>>): Properties { override fun visitVariableAssignmentNode(node: VariableAssignmentNode, data: Collection<Pair<EdgeLabel, Properties>>): Properties {
val input = visitNode(node, data) val input = visitNode(node, data)
val propertySymbol = node.fir.lValue.toResolvedCallableSymbol() as? FirPropertySymbol ?: return input val propertySymbol = node.fir.lValue.toResolvedCallableSymbol() as? FirPropertySymbol ?: return input
@@ -41,6 +41,8 @@ object FirTailrecFunctionChecker : FirSimpleFunctionChecker() {
graph.traverse(TraverseDirection.Forward, object : ControlFlowGraphVisitorVoid() { graph.traverse(TraverseDirection.Forward, object : ControlFlowGraphVisitorVoid() {
override fun visitNode(node: CFGNode<*>) {} override fun visitNode(node: CFGNode<*>) {}
override fun <T> visitUnionNode(node: T) where T : CFGNode<*>, T : UnionNodeMarker {}
override fun visitTryMainBlockEnterNode(node: TryMainBlockEnterNode) { override fun visitTryMainBlockEnterNode(node: TryMainBlockEnterNode) {
tryScopeCount++ tryScopeCount++
} }
@@ -84,6 +84,8 @@ object CanBeValChecker : AbstractFirPropertyInitializationChecker() {
) : ControlFlowGraphVisitorVoid() { ) : ControlFlowGraphVisitorVoid() {
override fun visitNode(node: CFGNode<*>) {} override fun visitNode(node: CFGNode<*>) {}
override fun <T> visitUnionNode(node: T) where T : CFGNode<*>, T : UnionNodeMarker {}
override fun visitVariableAssignmentNode(node: VariableAssignmentNode) { override fun visitVariableAssignmentNode(node: VariableAssignmentNode) {
val symbol = node.fir.calleeReference.resolvedSymbol as? FirPropertySymbol ?: return val symbol = node.fir.calleeReference.resolvedSymbol as? FirPropertySymbol ?: return
if (symbol !in localProperties) return if (symbol !in localProperties) return
@@ -49,6 +49,8 @@ object UnusedChecker : FirControlFlowChecker() {
) : ControlFlowGraphVisitorVoid() { ) : ControlFlowGraphVisitorVoid() {
override fun visitNode(node: CFGNode<*>) {} override fun visitNode(node: CFGNode<*>) {}
override fun <T> visitUnionNode(node: T) where T : CFGNode<*>, T : UnionNodeMarker {}
override fun visitVariableAssignmentNode(node: VariableAssignmentNode) { override fun visitVariableAssignmentNode(node: VariableAssignmentNode) {
val variableSymbol = node.fir.calleeReference.resolvedSymbol ?: return val variableSymbol = node.fir.calleeReference.resolvedSymbol ?: return
val dataPerNode = data[node] ?: return val dataPerNode = data[node] ?: return
@@ -117,6 +119,7 @@ object UnusedChecker : FirControlFlowChecker() {
else variableUseState else variableUseState
return base.also { return base.also {
// TODO: is this modifying constant enum values???
it.isRead = this.isRead || variableUseState?.isRead == true it.isRead = this.isRead || variableUseState?.isRead == true
it.isRedundantInit = this.isRedundantInit && variableUseState?.isRedundantInit == true it.isRedundantInit = this.isRedundantInit && variableUseState?.isRedundantInit == true
} }
@@ -147,6 +150,8 @@ object UnusedChecker : FirControlFlowChecker() {
return result return result
} }
override fun plus(other: VariableStatusInfo): VariableStatusInfo =
merge(other) // TODO: not sure
} }
class PathAwareVariableStatusInfo( class PathAwareVariableStatusInfo(
@@ -166,21 +171,28 @@ object UnusedChecker : FirControlFlowChecker() {
private class ValueWritesWithoutReading( private class ValueWritesWithoutReading(
private val session: FirSession, private val session: FirSession,
private val localProperties: Set<FirPropertySymbol> private val localProperties: Set<FirPropertySymbol>
) : ControlFlowGraphVisitor<PathAwareVariableStatusInfo, Collection<Pair<EdgeLabel, PathAwareVariableStatusInfo>>>() { ) : PathAwareControlFlowGraphVisitor<PathAwareVariableStatusInfo>() {
override val emptyInfo: PathAwareVariableStatusInfo
get() = PathAwareVariableStatusInfo.EMPTY
fun getData(graph: ControlFlowGraph): Map<CFGNode<*>, PathAwareVariableStatusInfo> { fun getData(graph: ControlFlowGraph): Map<CFGNode<*>, PathAwareVariableStatusInfo> {
return graph.collectDataForNode(TraverseDirection.Backward, PathAwareVariableStatusInfo.EMPTY, this) return graph.collectDataForNode(TraverseDirection.Backward, PathAwareVariableStatusInfo.EMPTY, this)
} }
private fun PathAwareVariableStatusInfo.withAnnotationsFrom(node: CFGNode<*>): PathAwareVariableStatusInfo =
(node.fir as? FirAnnotationContainer)?.annotations?.fold(this, ::visitAnnotation) ?: this
override fun visitNode( override fun visitNode(
node: CFGNode<*>, node: CFGNode<*>,
data: Collection<Pair<EdgeLabel, PathAwareVariableStatusInfo>> data: Collection<Pair<EdgeLabel, PathAwareVariableStatusInfo>>
): PathAwareVariableStatusInfo { ): PathAwareVariableStatusInfo =
if (data.isEmpty()) return PathAwareVariableStatusInfo.EMPTY super.visitNode(node, data).withAnnotationsFrom(node)
val result = data.map { (label, info) -> info.applyLabel(node, label) }
.reduce(PathAwareVariableStatusInfo::merge) override fun <T> visitUnionNode(
return (node.fir as? FirAnnotationContainer)?.annotations?.fold(result, ::visitAnnotation) node: T,
?: result data: Collection<Pair<EdgeLabel, PathAwareVariableStatusInfo>>
} ): PathAwareVariableStatusInfo where T : CFGNode<*>, T : UnionNodeMarker =
super.visitUnionNode(node, data).withAnnotationsFrom(node)
override fun visitVariableDeclarationNode( override fun visitVariableDeclarationNode(
node: VariableDeclarationNode, node: VariableDeclarationNode,
@@ -284,7 +296,7 @@ object UnusedChecker : FirControlFlowChecker() {
node: FunctionCallNode, node: FunctionCallNode,
data: Collection<Pair<EdgeLabel, PathAwareVariableStatusInfo>> data: Collection<Pair<EdgeLabel, PathAwareVariableStatusInfo>>
): PathAwareVariableStatusInfo { ): PathAwareVariableStatusInfo {
val dataForNode = visitNode(node, data) val dataForNode = visitUnionNode(node, data)
val reference = node.fir.calleeReference.resolved ?: return dataForNode val reference = node.fir.calleeReference.resolved ?: return dataForNode
val functionSymbol = reference.resolvedSymbol as? FirFunctionSymbol<*> ?: return dataForNode val functionSymbol = reference.resolvedSymbol as? FirFunctionSymbol<*> ?: return dataForNode
val symbol = if (functionSymbol.callableId.callableName.identifier == "invoke") { val symbol = if (functionSymbol.callableId.callableName.identifier == "invoke") {
@@ -224,21 +224,13 @@ abstract class FirDataFlowAnalyzer(
postponedLambdaEnterNode?.mergeIncomingFlow() postponedLambdaEnterNode?.mergeIncomingFlow()
functionEnterNode.mergeIncomingFlow { functionEnterNode.mergeIncomingFlow {
if (anonymousFunction.invocationKind?.canBeRevisited() != false) { if (anonymousFunction.invocationKind?.canBeRevisited() != false) {
// TODO: if invocation can happen 0 times, there will be an edge from `functionEnterNode`
// to `functionExitNode`, so erasing statements here causes all information to be lost
// even though `statements from before && statements made inside the lambda` are correct.
// x = ""
// callUnknownNumberOfTimes { x = "" }
// /* x is String no matter how many times the lambda is called, but that information got lost */
enterCapturingStatement(it, anonymousFunction) enterCapturingStatement(it, anonymousFunction)
} }
} }
} }
private fun exitAnonymousFunction(anonymousFunction: FirAnonymousFunction): FirControlFlowGraphReference { private fun exitAnonymousFunction(anonymousFunction: FirAnonymousFunction): FirControlFlowGraphReference {
getOrCreateLocalVariableAssignmentAnalyzer(anonymousFunction)?.exitLocalFunction( getOrCreateLocalVariableAssignmentAnalyzer(anonymousFunction)?.exitLocalFunction(anonymousFunction)
anonymousFunction
)
val (functionExitNode, postponedLambdaExitNode, graph) = graphBuilder.exitAnonymousFunction(anonymousFunction) val (functionExitNode, postponedLambdaExitNode, graph) = graphBuilder.exitAnonymousFunction(anonymousFunction)
if (anonymousFunction.invocationKind?.canBeRevisited() != false) { if (anonymousFunction.invocationKind?.canBeRevisited() != false) {
exitCapturingStatement(anonymousFunction) exitCapturingStatement(anonymousFunction)
@@ -248,6 +240,7 @@ abstract class FirDataFlowAnalyzer(
// Data flow changed, need to recompute. TODO: this violates the "flow computed only once" principle. // Data flow changed, need to recompute. TODO: this violates the "flow computed only once" principle.
postponedLambdaExitNode.mergeIncomingFlow() postponedLambdaExitNode.mergeIncomingFlow()
} else { } else {
// The current node should be `postponedLambdaExitNode` but we don't get a reference to it.
resetReceivers() resetReceivers()
} }
return FirControlFlowGraphReferenceImpl(graph) return FirControlFlowGraphReferenceImpl(graph)
@@ -350,13 +343,9 @@ abstract class FirDataFlowAnalyzer(
// ----------------------------------- Delegate ----------------------------------- // ----------------------------------- Delegate -----------------------------------
fun enterDelegateExpression() { fun enterDelegateExpression() {}
graphBuilder.enterDelegateExpression()
}
fun exitDelegateExpression() { fun exitDelegateExpression() {}
graphBuilder.exitDelegateExpression()
}
// ----------------------------------- Block ----------------------------------- // ----------------------------------- Block -----------------------------------
@@ -601,13 +590,15 @@ abstract class FirDataFlowAnalyzer(
// ----------------------------------- Check not null call ----------------------------------- // ----------------------------------- Check not null call -----------------------------------
fun enterCheckNotNullCall() {
graphBuilder.enterCall()
}
fun exitCheckNotNullCall(checkNotNullCall: FirCheckNotNullCall, callCompleted: Boolean) { fun exitCheckNotNullCall(checkNotNullCall: FirCheckNotNullCall, callCompleted: Boolean) {
val (node, unionNode) = graphBuilder.exitCheckNotNullCall(checkNotNullCall, callCompleted) graphBuilder.exitCheckNotNullCall(checkNotNullCall, callCompleted).mergeIncomingFlow { flow ->
node.mergeIncomingFlow { flow ->
val argumentVariable = variableStorage.getOrCreateIfReal(flow, checkNotNullCall.argument) ?: return@mergeIncomingFlow val argumentVariable = variableStorage.getOrCreateIfReal(flow, checkNotNullCall.argument) ?: return@mergeIncomingFlow
flow.commitOperationStatement(argumentVariable notEq null) flow.commitOperationStatement(argumentVariable notEq null)
} }
unionNode?.unionFlowFromArguments()
} }
// ----------------------------------- When ----------------------------------- // ----------------------------------- When -----------------------------------
@@ -644,8 +635,9 @@ abstract class FirDataFlowAnalyzer(
graphBuilder.exitWhenBranchResult(whenBranch).mergeIncomingFlow() graphBuilder.exitWhenBranchResult(whenBranch).mergeIncomingFlow()
} }
fun exitWhenExpression(whenExpression: FirWhenExpression) { fun exitWhenExpression(whenExpression: FirWhenExpression, callCompleted: Boolean) {
val (whenExitNode, syntheticElseNode, mergePostponedLambdaExitsNode) = graphBuilder.exitWhenExpression(whenExpression) val (whenExitNode, syntheticElseNode, mergePostponedLambdaExitsNode) =
graphBuilder.exitWhenExpression(whenExpression, callCompleted)
syntheticElseNode?.mergeWhenBranchEntryFlow() syntheticElseNode?.mergeWhenBranchEntryFlow()
whenExitNode.mergeIncomingFlow() whenExitNode.mergeIncomingFlow()
mergePostponedLambdaExitsNode?.mergeIncomingFlow() mergePostponedLambdaExitsNode?.mergeIncomingFlow()
@@ -789,9 +781,9 @@ abstract class FirDataFlowAnalyzer(
} }
fun exitTryExpression(callCompleted: Boolean) { fun exitTryExpression(callCompleted: Boolean) {
val (tryExpressionExitNode, unionNode) = graphBuilder.exitTryExpression(callCompleted) val (tryExpressionExitNode, mergePostponedLambdaExitsNode) = graphBuilder.exitTryExpression(callCompleted)
tryExpressionExitNode.mergeIncomingFlow() tryExpressionExitNode.mergeIncomingFlow()
unionNode?.unionFlowFromArguments() mergePostponedLambdaExitsNode?.mergeIncomingFlow()
} }
// ----------------------------------- Resolvable call ----------------------------------- // ----------------------------------- Resolvable call -----------------------------------
@@ -838,10 +830,6 @@ abstract class FirDataFlowAnalyzer(
graphBuilder.exitResolvedQualifierNode(resolvedQualifier).mergeIncomingFlow() graphBuilder.exitResolvedQualifierNode(resolvedQualifier).mergeIncomingFlow()
} }
fun enterCall() {
graphBuilder.enterCall()
}
private tailrec fun FirExpression.getAnonymousFunction(): FirAnonymousFunction? = when (this) { private tailrec fun FirExpression.getAnonymousFunction(): FirAnonymousFunction? = when (this) {
is FirAnonymousFunctionExpression -> anonymousFunction is FirAnonymousFunctionExpression -> anonymousFunction
is FirLambdaArgumentExpression -> expression.getAnonymousFunction() is FirLambdaArgumentExpression -> expression.getAnonymousFunction()
@@ -850,7 +838,11 @@ abstract class FirDataFlowAnalyzer(
private var functionCallLevel = 0 private var functionCallLevel = 0
@OptIn(PrivateForInline::class)
fun enterFunctionCall(functionCall: FirFunctionCall) { fun enterFunctionCall(functionCall: FirFunctionCall) {
if (!ignoreFunctionCalls) {
graphBuilder.enterCall()
}
val lambdaArgs = functionCall.arguments.mapNotNullTo(mutableSetOf()) { it.getAnonymousFunction() } val lambdaArgs = functionCall.arguments.mapNotNullTo(mutableSetOf()) { it.getAnonymousFunction() }
val localVariableAssignmentAnalyzer = context.firLocalVariableAssignmentAnalyzer val localVariableAssignmentAnalyzer = context.firLocalVariableAssignmentAnalyzer
?: if (lambdaArgs.isNotEmpty()) getOrCreateLocalVariableAssignmentAnalyzer(lambdaArgs.first()) else null ?: if (lambdaArgs.isNotEmpty()) getOrCreateLocalVariableAssignmentAnalyzer(lambdaArgs.first()) else null
@@ -863,26 +855,27 @@ abstract class FirDataFlowAnalyzer(
functionCallLevel-- functionCallLevel--
context.firLocalVariableAssignmentAnalyzer?.exitFunctionCall(callCompleted) context.firLocalVariableAssignmentAnalyzer?.exitFunctionCall(callCompleted)
if (ignoreFunctionCalls) { if (ignoreFunctionCalls) {
graphBuilder.exitIgnoredCall(functionCall)
return return
} }
val (functionCallNode, unionNode) = graphBuilder.exitFunctionCall(functionCall, callCompleted) graphBuilder.exitFunctionCall(functionCall, callCompleted).mergeIncomingFlow {
unionNode?.unionFlowFromArguments()
functionCallNode.mergeIncomingFlow {
processConditionalContract(it, functionCall) processConditionalContract(it, functionCall)
} }
} }
fun enterDelegatedConstructorCall() {
graphBuilder.enterCall()
}
fun exitDelegatedConstructorCall(call: FirDelegatedConstructorCall, callCompleted: Boolean) { fun exitDelegatedConstructorCall(call: FirDelegatedConstructorCall, callCompleted: Boolean) {
val (callNode, unionNode) = graphBuilder.exitDelegatedConstructorCall(call, callCompleted) graphBuilder.exitDelegatedConstructorCall(call, callCompleted).mergeIncomingFlow()
unionNode?.unionFlowFromArguments() }
callNode.mergeIncomingFlow()
fun enterStringConcatenationCall() {
graphBuilder.enterCall()
} }
fun exitStringConcatenationCall(call: FirStringConcatenationCall) { fun exitStringConcatenationCall(call: FirStringConcatenationCall) {
val (callNode, unionNode) = graphBuilder.exitStringConcatenationCall(call) graphBuilder.exitStringConcatenationCall(call).mergeIncomingFlow()
unionNode?.unionFlowFromArguments()
callNode.mergeIncomingFlow()
} }
private fun FirQualifiedAccess.orderedArguments(callee: FirFunction): Array<out FirExpression?>? { private fun FirQualifiedAccess.orderedArguments(callee: FirFunction): Array<out FirExpression?>? {
@@ -1164,8 +1157,8 @@ abstract class FirDataFlowAnalyzer(
} }
} }
fun exitElvis(elvisExpression: FirElvisExpression, isLhsNotNull: Boolean) { fun exitElvis(elvisExpression: FirElvisExpression, isLhsNotNull: Boolean, callCompleted: Boolean) {
val (node, mergePostponedLambdaExitsNode) = graphBuilder.exitElvis(isLhsNotNull) val (node, mergePostponedLambdaExitsNode) = graphBuilder.exitElvis(isLhsNotNull, callCompleted)
node.mergeIncomingFlow { flow -> node.mergeIncomingFlow { flow ->
// If LHS is never null, then the edge from RHS is dead and this node's flow already contains // If LHS is never null, then the edge from RHS is dead and this node's flow already contains
// all statements from LHS unconditionally. // all statements from LHS unconditionally.
@@ -1218,7 +1211,7 @@ abstract class FirDataFlowAnalyzer(
val incomingEdgeKind = incomingEdges.getValue(it).kind val incomingEdgeKind = incomingEdges.getValue(it).kind
it.takeIf { incomingEdgeKind.usedInDfa || (isDead && incomingEdgeKind.usedInDeadDfa) }?.flow it.takeIf { incomingEdgeKind.usedInDfa || (isDead && incomingEdgeKind.usedInDeadDfa) }?.flow
} }
val result = logicSystem.joinFlow(previousFlows, union = false) val result = logicSystem.joinFlow(previousFlows, union = this is UnionNodeMarker)
if (graphBuilder.lastNodeOrNull == this) { if (graphBuilder.lastNodeOrNull == this) {
// Here it is, the new `lastNode`. If the previous state is the only predecessor, then there is actually // Here it is, the new `lastNode`. If the previous state is the only predecessor, then there is actually
// nothing to update; `addTypeStatement` has already ensured we have the correct information. // nothing to update; `addTypeStatement` has already ensured we have the correct information.
@@ -1230,11 +1223,6 @@ abstract class FirDataFlowAnalyzer(
return result return result
} }
@OptIn(CfgInternals::class)
private fun UnionFunctionCallArgumentsNode.unionFlowFromArguments() {
flow = logicSystem.joinFlow(previousNodes.map { it.flow }, union = true).freeze()
}
@OptIn(CfgInternals::class) @OptIn(CfgInternals::class)
private fun CFGNode<*>.setFlow(builder: MutableFlow): PersistentFlow { private fun CFGNode<*>.setFlow(builder: MutableFlow): PersistentFlow {
val flow = builder.freeze().also { this.flow = it } val flow = builder.freeze().also { this.flow = it }
@@ -5,8 +5,7 @@
package org.jetbrains.kotlin.fir.resolve.dfa.cfg package org.jetbrains.kotlin.fir.resolve.dfa.cfg
import org.jetbrains.kotlin.contracts.description.EventOccurrencesRange import org.jetbrains.kotlin.contracts.description.*
import org.jetbrains.kotlin.contracts.description.isInPlace
import org.jetbrains.kotlin.fir.FirElement import org.jetbrains.kotlin.fir.FirElement
import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.declarations.*
import org.jetbrains.kotlin.fir.declarations.utils.hasExplicitBackingField import org.jetbrains.kotlin.fir.declarations.utils.hasExplicitBackingField
@@ -23,7 +22,6 @@ import org.jetbrains.kotlin.fir.types.*
import org.jetbrains.kotlin.fir.util.ListMultimap import org.jetbrains.kotlin.fir.util.ListMultimap
import org.jetbrains.kotlin.fir.util.listMultimapOf import org.jetbrains.kotlin.fir.util.listMultimapOf
import org.jetbrains.kotlin.fir.visitors.FirDefaultVisitor import org.jetbrains.kotlin.fir.visitors.FirDefaultVisitor
import org.jetbrains.kotlin.utils.addToStdlib.popLast
import org.jetbrains.kotlin.utils.addToStdlib.runIf import org.jetbrains.kotlin.utils.addToStdlib.runIf
import kotlin.random.Random import kotlin.random.Random
@@ -51,21 +49,6 @@ class ControlFlowGraphBuilder {
private val modes: Stack<Mode> = stackOf(Mode.TopLevel) private val modes: Stack<Mode> = stackOf(Mode.TopLevel)
private val mode: Mode get() = modes.top() private val mode: Mode get() = modes.top()
/*
* TODO: it's temporary hack for anonymous functions resolved twice in delegate expressions
* Example: val x: Boolean by lazy { true }
*
* Note that this hack breaks passing data flow from inplace lambdas inside lambdas of delegates:
* val x: Boolean by lazy {
* val b: Any = ...
* run {
* require(b is Boolean)
* }
* b // there will be no smartcast, but it should be
* }
*/
private val shouldPassFlowFromInplaceLambda: Stack<Boolean> = stackOf(true)
private enum class Mode { private enum class Mode {
Function, TopLevel, Body, ClassInitializer, PropertyInitializer, FieldInitializer Function, TopLevel, Body, ClassInitializer, PropertyInitializer, FieldInitializer
} }
@@ -80,16 +63,13 @@ class ControlFlowGraphBuilder {
//return jumps via finally blocks, target -> jumps //return jumps via finally blocks, target -> jumps
private val nonDirectJumps: ListMultimap<CFGNode<*>, CFGNode<*>> = listMultimapOf() private val nonDirectJumps: ListMultimap<CFGNode<*>, CFGNode<*>> = listMultimapOf()
private val postponedLambdas: MutableSet<FirFunctionSymbol<*>> = mutableSetOf() private val postponedAnonymousFunctionNodes =
private val entersToPostponedAnonymousFunctions: MutableMap<FirFunctionSymbol<*>, PostponedLambdaEnterNode> = mutableMapOf() mutableMapOf<FirFunctionSymbol<*>, Pair<PostponedLambdaEnterNode, PostponedLambdaExitNode>>()
private val exitsFromPostponedAnonymousFunctions: MutableMap<FirFunctionSymbol<*>, PostponedLambdaExitNode> = mutableMapOf() private val dataFlowSourcesForNextCompletedCall: Stack<MutableList<CFGNode<*>>> = stackOf()
private val parentGraphForAnonymousFunctions: MutableMap<FirFunctionSymbol<*>, ControlFlowGraph> = mutableMapOf()
private val loopConditionEnterNodes: NodeStorage<FirElement, LoopConditionEnterNode> = NodeStorage() private val loopConditionEnterNodes: NodeStorage<FirElement, LoopConditionEnterNode> = NodeStorage()
private val loopExitNodes: NodeStorage<FirLoop, LoopExitNode> = NodeStorage() private val loopExitNodes: NodeStorage<FirLoop, LoopExitNode> = NodeStorage()
private val exitsFromCompletedPostponedAnonymousFunctions: MutableList<MutableList<CFGNode<*>>> = mutableListOf()
private val whenExitNodes: NodeStorage<FirWhenExpression, WhenExitNode> = NodeStorage() private val whenExitNodes: NodeStorage<FirWhenExpression, WhenExitNode> = NodeStorage()
private val whenBranchIndices: Stack<Map<FirWhenBranch, Int>> = stackOf() private val whenBranchIndices: Stack<Map<FirWhenBranch, Int>> = stackOf()
@@ -111,25 +91,6 @@ class ControlFlowGraphBuilder {
private val notCompletedFunctionCalls: Stack<MutableList<FunctionCallNode>> = stackOf() private val notCompletedFunctionCalls: Stack<MutableList<FunctionCallNode>> = stackOf()
/*
* ignoredFunctionCalls is needed for resolve of += operator:
* we have two different calls for resolve, but we left only one of them,
* so we twice call `enterCall` and twice increase `levelCounter`, but
* `exitFunctionCall` we call only once.
*
* So workflow looks like that:
* Calls:
* - a.plus(b) // (1)
* - a.plusAssign(b) // (2)
*
* enterCall(a.plus(b)), increase counter
* exitIgnoredCall(a.plus(b)) // decrease counter
* enterCall(a.plusAssign(b)) // increase counter
* exitIgnoredCall(a.plusAssign(b)) // decrease counter
* exitFunctionCall(a.plus(b) | a.plusAssign(b)) // don't touch counter
*/
private val ignoredFunctionCalls: MutableSet<FirFunctionCall> = mutableSetOf()
// ----------------------------------- API for node builders ----------------------------------- // ----------------------------------- API for node builders -----------------------------------
private var idCounter: Int = Random.nextInt() private var idCounter: Int = Random.nextInt()
@@ -245,90 +206,76 @@ class ControlFlowGraphBuilder {
} }
// ----------------------------------- Anonymous function ----------------------------------- // ----------------------------------- Anonymous function -----------------------------------
// TODO: this is ALL WRONG.
//
// There are two cases we need to distinguish.
//
// 1. Function calls can have contracts that specify lambdas as "called in place".
// This only works on lambdas DIRECTLY used as function arguments. So `f({ a })`,
// and not `f(if (p) { { a } } else { { b } })`.
//
// 2. Every other place where a lambda's type is context-dependent. In this case
// we can't analyze the lambda just yet, but that doesn't matter since the lambda
// is not "called in place" so neither control nor data flow will pass through it.
//
// So case 2 is simple: add a placeholder node, then when we analyze the lambda attach
// it as a subgraph to that node. If that node is an argument to a function call,
// it should only be placed after every other argument to have control flow pass through
// them before entering the lambda.
//
// Case 1 is where the fun, for some definition of "fun", happens.
//
// In the basic case (completed call), control and data flow should look like this:
// /---> [EXACTLY_ONCE] --\
// |--> [AT_LEAST_ONCE] --|
// |<-----------------/ |
// [arguments] -+ /------------v +-> function call
// |--> [AT_MOST_ONCE] ---|
// |<--------------\ |
// \-----> [UNKNOWN] -----/
// \----------^
// This is already problematic, since all these lambdas should share ONE entry node
// to which control can return after AT_LEAST_ONCE and UNKNOWN lambdas. To make
// matters worse, if the call is not complete, then the lambdas inside it *and*
// other lambdas in whatever expression this is a part of can be resolved in any order,
// so the data flow cannot look like this - until some call is finally completed, there
// will be holes in the graph where some lambdas' subgraphs should be. Instead, we
// should be collecting the lambdas as they are being resolved, filling gaps in the
// control flow graph, and then redirecting the outgoing data flow edges into the next
// completed call node. Unfortunately, I'm not sure how this fits into the subgraph
// design. Also, touching the `PostponedLambda{Enter,Exit}Node`s in any way seem to
// break random stuff that probably looks at `node.fir` with zero regard as to what
// the node even means.
fun visitPostponedAnonymousFunction(anonymousFunctionExpression: FirAnonymousFunctionExpression): Pair<PostponedLambdaEnterNode, PostponedLambdaExitNode> { fun visitPostponedAnonymousFunction(anonymousFunctionExpression: FirAnonymousFunctionExpression): Pair<PostponedLambdaEnterNode, PostponedLambdaExitNode> {
val anonymousFunction = anonymousFunctionExpression.anonymousFunction val anonymousFunction = anonymousFunctionExpression.anonymousFunction
val enterNode = createPostponedLambdaEnterNode(anonymousFunction) val enterNode = createPostponedLambdaEnterNode(anonymousFunction)
val exitNode = createPostponedLambdaExitNode(anonymousFunctionExpression) val exitNode = createPostponedLambdaExitNode(anonymousFunctionExpression)
val symbol = anonymousFunction.symbol val symbol = anonymousFunction.symbol
postponedLambdas += symbol postponedAnonymousFunctionNodes[symbol] = enterNode to exitNode
entersToPostponedAnonymousFunctions[symbol] = enterNode addNewSimpleNode(enterNode)
exitsFromPostponedAnonymousFunctions[symbol] = exitNode addNewSimpleNode(exitNode, preferredKind = EdgeKind.DfgForward)
parentGraphForAnonymousFunctions[symbol] = currentGraph
popAndAddEdge(enterNode, preferredKind = EdgeKind.Forward)
addEdge(enterNode, exitNode, preferredKind = EdgeKind.DfgForward)
lastNodes.push(exitNode)
return enterNode to exitNode return enterNode to exitNode
} }
fun enterAnonymousFunction(anonymousFunction: FirAnonymousFunction): Pair<PostponedLambdaEnterNode?, FunctionEnterNode> { fun enterAnonymousFunction(anonymousFunction: FirAnonymousFunction): Pair<PostponedLambdaEnterNode?, FunctionEnterNode> {
val invocationKind = anonymousFunction.invocationKind
var previousNodeIsNew = false
val symbol = anonymousFunction.symbol val symbol = anonymousFunction.symbol
val previousNode = entersToPostponedAnonymousFunctions[symbol] val preparedEnterNode = postponedAnonymousFunctionNodes[symbol]?.first
?: createPostponedLambdaEnterNode(anonymousFunction).also { val outerEnterNode = preparedEnterNode ?: createPostponedLambdaEnterNode(anonymousFunction).also { addNewSimpleNode(it) }
addNewSimpleNode(it)
entersToPostponedAnonymousFunctions[symbol] = it
previousNodeIsNew = true
}
if (previousNodeIsNew) {
assert(symbol !in exitsFromPostponedAnonymousFunctions)
val lambdaExpression = buildAnonymousFunctionExpression {
source = anonymousFunction.source
this.anonymousFunction = anonymousFunction
}
val exitFromLambda = createPostponedLambdaExitNode(lambdaExpression).also {
exitsFromPostponedAnonymousFunctions[symbol] = it
}
addEdge(previousNode, exitFromLambda)
}
pushGraph(ControlFlowGraph(anonymousFunction, "<anonymous>", ControlFlowGraph.Kind.AnonymousFunction), Mode.Function) pushGraph(ControlFlowGraph(anonymousFunction, "<anonymous>", ControlFlowGraph.Kind.AnonymousFunction), Mode.Function)
val enterNode = createFunctionEnterNode(anonymousFunction)
val enterNode = createFunctionEnterNode(anonymousFunction).also { val exitNode = createFunctionExitNode(anonymousFunction)
if (previousNodeIsNew) { exitsOfAnonymousFunctions[symbol] = exitNode
addNewSimpleNode(it) exitTargetsForReturn.push(exitNode)
} else { if (!anonymousFunction.invocationKind.isInPlace) {
addEdge(previousNode, it) exitTargetsForTry.push(exitNode)
lastNodes.push(it)
}
}
val exitNode = createFunctionExitNode(anonymousFunction).also {
exitsOfAnonymousFunctions[symbol] = it
exitTargetsForReturn.push(it)
if (!invocationKind.isInPlace) {
exitTargetsForTry.push(it)
}
} }
if (invocationKind.hasTowardEdge) { addEdge(outerEnterNode, enterNode)
addEdge(enterNode, exitNode) lastNodes.push(enterNode)
} return outerEnterNode.takeIf { preparedEnterNode == null } to enterNode
if (invocationKind.hasBackEdge) {
addBackEdge(exitNode, enterNode)
}
return if (previousNodeIsNew) {
previousNode to enterNode
} else {
null to enterNode
}
} }
private val EventOccurrencesRange?.hasTowardEdge: Boolean
get() = when (this) {
EventOccurrencesRange.AT_MOST_ONCE, EventOccurrencesRange.UNKNOWN -> true
else -> false
}
private val EventOccurrencesRange?.hasBackEdge: Boolean
get() = when (this) {
EventOccurrencesRange.AT_LEAST_ONCE, EventOccurrencesRange.MORE_THAN_ONCE, EventOccurrencesRange.UNKNOWN -> true
else -> false
}
fun exitAnonymousFunction(anonymousFunction: FirAnonymousFunction): Triple<FunctionExitNode, PostponedLambdaExitNode?, ControlFlowGraph> { fun exitAnonymousFunction(anonymousFunction: FirAnonymousFunction): Triple<FunctionExitNode, PostponedLambdaExitNode?, ControlFlowGraph> {
val symbol = anonymousFunction.symbol val symbol = anonymousFunction.symbol
val exitNode = exitsOfAnonymousFunctions.remove(symbol)!!.also { val exitNode = exitsOfAnonymousFunctions.remove(symbol)!!.also {
@@ -344,51 +291,46 @@ class ControlFlowGraphBuilder {
assert(graph.declaration == anonymousFunction) assert(graph.declaration == anonymousFunction)
assert(graph.exitNode == exitNode) assert(graph.exitNode == exitNode)
// TODO: disregarding the edges is probably not correct, though this should never find any nodes anyway // TODO: disregarding the edges is probably not correct, though this should never find any nodes anyway
exitsFromCompletedPostponedAnonymousFunctions.lastOrNull()?.removeAll { it.owner == graph } dataFlowSourcesForNextCompletedCall.topOrNull()?.removeAll { it.owner == graph }
} }
val postponedEnterNode = entersToPostponedAnonymousFunctions.remove(symbol)!! val (postponedEnterNode, postponedExitNode) = postponedAnonymousFunctionNodes.remove(symbol)
val postponedExitNode = exitsFromPostponedAnonymousFunctions.remove(symbol)!! ?: return Triple(exitNode, null, graph).also { (lastNode as PostponedLambdaEnterNode).owner.addSubGraph(graph) }
val lambdaIsPostponedFromCall = postponedLambdas.remove(symbol)
if (!lambdaIsPostponedFromCall) {
lastNodes.push(postponedExitNode)
}
val invocationKind = anonymousFunction.invocationKind val invocationKind = anonymousFunction.invocationKind
val maybeNonZero = invocationKind != null && invocationKind != EventOccurrencesRange.ZERO var changedExitDataFlow = false
val maybeZero = invocationKind != EventOccurrencesRange.AT_LEAST_ONCE && // Lambdas not called in-place behave as if called never, but with extra invalidation of all smart casts
invocationKind != EventOccurrencesRange.EXACTLY_ONCE && // for all variables that they reassign. That second part is handled by `FirDataFlowAnalyzer`.
invocationKind != EventOccurrencesRange.MORE_THAN_ONCE if (invocationKind?.isDefinitelyVisited() != true) {
// Four cases we handle differently here: // Data flow from enter -> exit already exists, only need to also mark that edge as control flow.
// 1. function not called in-place: data and control flow skips the function, CFGNode.addJustKindEdge(postponedEnterNode, postponedExitNode, EdgeKind.CfgForward, propagateDeadness = true)
// and any assignment inside the function invalidates smart casts
// 2. function never executed (EventOccurrencesRange.ZERO): same as above,
// but without smart cast invalidation
// 3. function executed at least once (or exactly once or more than once):
// control flow merged from postponedEnterNode and exitNode into postponedExitNode,
// data flow goes from exitNode to the union of arguments of the call
// 4. function executed an unknown number of times (maybe zero, maybe not):
// both control flow and data flow merged from postponedEnterNode and exitNode
// into postponedExitNode
if (maybeZero) {
val kind = if (postponedExitNode.isDead) EdgeKind.DeadForward else EdgeKind.CfgForward
CFGNode.addJustKindEdge(postponedEnterNode, postponedExitNode, kind, propagateDeadness = true)
} }
if (maybeNonZero) { if (invocationKind?.canBeVisited() == true) {
addEdge(exitNode, postponedExitNode, preferredKind = if (maybeZero) EdgeKind.Forward else EdgeKind.CfgForward) // TODO: existence of an `invocationKind` should imply that this is an argument to a call, and yet
if (!maybeZero && shouldPassFlowFromInplaceLambda.top()) { // replacing this with `top()` breaks things. Hmm.
exitsFromCompletedPostponedAnonymousFunctions.lastOrNull()?.add(postponedExitNode) val currentCallsPostponedLambdas = dataFlowSourcesForNextCompletedCall.topOrNull()
// Since the skipping edge goes to `postponedExitNode` rather than `exitNode`, if
// we try to merge data flow for not-definitely-called lambdas from `exitNode` into the next call
// we won't get a correct result. TODO: that seems hacky and points to the edges being wrong.
if (currentCallsPostponedLambdas != null && invocationKind.isDefinitelyVisited()) {
// When a call has lambda arguments that the function says it will call in place, control goes through
// all other arguments, then through the lambdas in parallel, then out of the function call. This parallel
// (in terms of ordering, not multi-threaded or w/e) execution is represented with the call being a union node.
// TODO: currently this is only done for data flow; control flow incorrectly pretends lambdas
// are called in the order they are provided to the call, which is wrong. This needs to be fixed. Somehow.
addEdge(exitNode, postponedExitNode, preferredKind = EdgeKind.CfgForward, propagateDeadness = true)
currentCallsPostponedLambdas.add(postponedExitNode)
} else {
addEdge(exitNode, postponedExitNode, propagateDeadness = invocationKind.isDefinitelyVisited())
changedExitDataFlow = true
}
if (invocationKind.canBeRevisited()) {
addBackEdge(postponedExitNode, postponedEnterNode)
} }
} }
val containingGraph = parentGraphForAnonymousFunctions.remove(symbol) ?: currentGraph postponedEnterNode.owner.addSubGraph(graph)
containingGraph.addSubGraph(graph) return Triple(exitNode, postponedExitNode.takeIf { changedExitDataFlow }, graph)
return if (lambdaIsPostponedFromCall && !(maybeNonZero && maybeZero)) {
Triple(exitNode, null, graph)
} else {
Triple(exitNode, postponedExitNode, graph)
}
} }
fun exitAnonymousFunctionExpression(anonymousFunctionExpression: FirAnonymousFunctionExpression): AnonymousFunctionExpressionExitNode { fun exitAnonymousFunctionExpression(anonymousFunctionExpression: FirAnonymousFunctionExpression): AnonymousFunctionExpressionExitNode {
@@ -397,6 +339,72 @@ class ControlFlowGraphBuilder {
} }
} }
private fun splitDataFlowForPostponedLambdas() {
dataFlowSourcesForNextCompletedCall.push(mutableListOf())
}
private fun MutableList<CFGNode<*>>.addPostponedLambdaDataFlowEdgesTo(node: CFGNode<*>) {
for (exitNode in this) {
// To avoid storing nodes from subgraphs in the list, we have PostponedLambdaExitNode instead of the real
// exit node of the lambda subgraph. The latter is the previous node of the former. Everything else is
// already a join node in this graph.
val functionExitOrMerge = if (exitNode is PostponedLambdaExitNode) exitNode.lastPreviousNode else exitNode
addEdge(functionExitOrMerge, node, preferredKind = EdgeKind.DfgForward, propagateDeadness = false)
}
}
private fun <T> unifyDataFlowFromPostponedLambdas(node: T, callCompleted: Boolean) where T : CFGNode<*>, T : UnionNodeMarker {
val currentLevelExits = dataFlowSourcesForNextCompletedCall.pop()
if (currentLevelExits.isEmpty()) return
val nextLevelExits = dataFlowSourcesForNextCompletedCall.topOrNull().takeIf { !callCompleted }
if (nextLevelExits != null) {
// Call is incomplete, don't pass data flow from lambdas inside it to lambdas in the outer call.
nextLevelExits.addAll(currentLevelExits)
} else {
currentLevelExits.addPostponedLambdaDataFlowEdgesTo(node)
}
}
// There may be branching expressions on the way from a called-in-place lambda
// to the next completed call:
//
// f(if (p) { x; run { a } else { y; run { b } }, c)
//
// which result in a hole-y control flow graph at the time when we need to resolve `c`:
//
// p -+--> x -> ?? -> run#1 --+-> c -> f
// \-> y -> ?? -> run#2 -/
//
// Ideally, we want to pretend that the lambdas are not called-in-place until we get
// to `f`, at which point the lambdas are guaranteed to be resolved and we should be
// able to reconstruct the entire data flow. The problem is that the call/when/etc.
// exit nodes on the way from the lambda to the function call exit node can have
// statements attached to them, so unless we want to re-do all the work, it's too late
// by the time we get there. And we can't just forever ignore the lambdas either, as
// they may reassign variables and so the data we've gathered about them should be
// invalidated. So what we do here is merge the data from the lambdas with the data
// obtained without them: this can only erase statements that are not provably correct.
private fun mergeDataFlowFromPostponedLambdas(node: CFGNode<*>, callCompleted: Boolean): MergePostponedLambdaExitsNode? {
val currentLevelExits = dataFlowSourcesForNextCompletedCall.pop()
if (currentLevelExits.isEmpty()) return null
val nextLevelExits = dataFlowSourcesForNextCompletedCall.topOrNull().takeIf { !callCompleted }
return if (nextLevelExits != null) {
// Call is incomplete, don't pass data flow from lambdas inside it to lambdas in the outer call.
// TODO: this is wrong, we don't necessarily have all the lambdas yet... Also,
// the lambdas in the list can come from different branches, and this should be
// more like merge(node, union(lambdas from branch 1), ..., union(from branch N)).
createMergePostponedLambdaExitsNode(node.fir).also {
addEdge(node, it)
currentLevelExits.addPostponedLambdaDataFlowEdgesTo(it)
nextLevelExits.add(it)
}
} else {
currentLevelExits.addPostponedLambdaDataFlowEdgesTo(node)
null
}
}
// ----------------------------------- Classes ----------------------------------- // ----------------------------------- Classes -----------------------------------
fun enterClass() { fun enterClass() {
@@ -639,16 +647,6 @@ class ControlFlowGraphBuilder {
return exitNode to graph return exitNode to graph
} }
// ----------------------------------- Delegate -----------------------------------
fun enterDelegateExpression() {
shouldPassFlowFromInplaceLambda.push(false)
}
fun exitDelegateExpression() {
shouldPassFlowFromInplaceLambda.pop()
}
// ----------------------------------- Operator call ----------------------------------- // ----------------------------------- Operator call -----------------------------------
fun exitTypeOperatorCall(typeOperatorCall: FirTypeOperatorCall): TypeOperatorCallNode { fun exitTypeOperatorCall(typeOperatorCall: FirTypeOperatorCall): TypeOperatorCallNode {
@@ -709,6 +707,10 @@ class ControlFlowGraphBuilder {
return node return node
} }
fun exitWhenSubjectExpression(expression: FirWhenSubjectExpression): WhenSubjectExpressionExitNode {
return createWhenSubjectExpressionExitNode(expression).also { addNewSimpleNode(it) }
}
fun enterWhenBranchCondition(whenBranch: FirWhenBranch): WhenBranchConditionEnterNode { fun enterWhenBranchCondition(whenBranch: FirWhenBranch): WhenBranchConditionEnterNode {
levelCounter += whenBranchIndices.top().getValue(whenBranch) levelCounter += whenBranchIndices.top().getValue(whenBranch)
return createWhenBranchConditionEnterNode(whenBranch).also { addNewSimpleNode(it) }.also { levelCounter++ } return createWhenBranchConditionEnterNode(whenBranch).also { addNewSimpleNode(it) }.also { levelCounter++ }
@@ -737,7 +739,8 @@ class ControlFlowGraphBuilder {
} }
fun exitWhenExpression( fun exitWhenExpression(
whenExpression: FirWhenExpression whenExpression: FirWhenExpression,
callCompleted: Boolean
): Triple<WhenExitNode, WhenSyntheticElseBranchNode?, MergePostponedLambdaExitsNode?> { ): Triple<WhenExitNode, WhenSyntheticElseBranchNode?, MergePostponedLambdaExitsNode?> {
val whenExitNode = whenExitNodes.pop() val whenExitNode = whenExitNodes.pop()
// exit from last condition node still on stack // exit from last condition node still on stack
@@ -754,7 +757,7 @@ class ControlFlowGraphBuilder {
lastNodes.push(whenExitNode) lastNodes.push(whenExitNode)
levelCounter-- levelCounter--
whenBranchIndices.pop() whenBranchIndices.pop()
return Triple(whenExitNode, syntheticElseBranchNode, joinDataFlowFromPostponedLambdasWith(whenExitNode)) return Triple(whenExitNode, syntheticElseBranchNode, mergeDataFlowFromPostponedLambdas(whenExitNode, callCompleted))
} }
// ----------------------------------- While Loop ----------------------------------- // ----------------------------------- While Loop -----------------------------------
@@ -1003,9 +1006,7 @@ class ControlFlowGraphBuilder {
} }
} }
fun exitTryExpression( fun exitTryExpression(callCompleted: Boolean): Pair<TryExpressionExitNode, MergePostponedLambdaExitsNode?> {
callCompleted: Boolean
): Pair<TryExpressionExitNode, UnionFunctionCallArgumentsNode?> {
levelCounter-- levelCounter--
catchNodeStorages.pop() catchNodeStorages.pop()
val catchExitNodes = catchExitNodeStorages.pop() val catchExitNodes = catchExitNodeStorages.pop()
@@ -1016,7 +1017,6 @@ class ControlFlowGraphBuilder {
val node = tryExitNodes.pop() val node = tryExitNodes.pop()
node.updateDeadStatus() node.updateDeadStatus()
lastNodes.push(node) lastNodes.push(node)
val (_, unionNode) = processUnionOfArguments(node, callCompleted)
val allCatchesAreDead = tryMainExitNode.fir.catches.all { catch -> catchExitNodes[catch]!!.isDead } val allCatchesAreDead = tryMainExitNode.fir.catches.all { catch -> catchExitNodes[catch]!!.isDead }
val tryMainBlockIsDead = tryMainExitNode.previousNodes.all { prev -> val tryMainBlockIsDead = tryMainExitNode.previousNodes.all { prev ->
@@ -1029,7 +1029,7 @@ class ControlFlowGraphBuilder {
lastNodes.push(stub) lastNodes.push(stub)
} }
return node to unionNode return node to mergeDataFlowFromPostponedLambdas(node, callCompleted)
} }
//this is a workaround to make function call dead when call is completed _after_ building its node in the graph //this is a workaround to make function call dead when call is completed _after_ building its node in the graph
@@ -1088,49 +1088,36 @@ class ControlFlowGraphBuilder {
splitDataFlowForPostponedLambdas() splitDataFlowForPostponedLambdas()
} }
fun exitIgnoredCall(functionCall: FirFunctionCall) { fun exitFunctionCall(functionCall: FirFunctionCall, callCompleted: Boolean): FunctionCallNode {
levelCounter-- levelCounter--
ignoredFunctionCalls += functionCall
}
fun exitFunctionCall(functionCall: FirFunctionCall, callCompleted: Boolean): Pair<FunctionCallNode, UnionFunctionCallArgumentsNode?> {
val callWasIgnored = ignoredFunctionCalls.remove(functionCall)
if (!callWasIgnored) {
levelCounter--
} else {
ignoredFunctionCalls.clear()
}
val returnsNothing = functionCall.resultType.isNothing val returnsNothing = functionCall.resultType.isNothing
val node = createFunctionCallNode(functionCall) val node = createFunctionCallNode(functionCall)
val (kind, unionNode) = processUnionOfArguments(node, callCompleted) unifyDataFlowFromPostponedLambdas(node, callCompleted)
if (returnsNothing) { if (returnsNothing) {
addNodeThatReturnsNothing(node, preferredKind = kind) addNodeThatReturnsNothing(node)
} else { } else {
addNewSimpleNode(node, preferredKind = kind) addNewSimpleNode(node)
} }
if (!returnsNothing && !callCompleted) { if (!returnsNothing && !callCompleted) {
notCompletedFunctionCalls.topOrNull()?.add(node) notCompletedFunctionCalls.topOrNull()?.add(node)
} }
return node to unionNode return node
} }
fun exitDelegatedConstructorCall( fun exitDelegatedConstructorCall(call: FirDelegatedConstructorCall, callCompleted: Boolean): DelegatedConstructorCallNode {
call: FirDelegatedConstructorCall,
callCompleted: Boolean
): Pair<DelegatedConstructorCallNode, UnionFunctionCallArgumentsNode?> {
levelCounter-- levelCounter--
val node = createDelegatedConstructorCallNode(call) val node = createDelegatedConstructorCallNode(call)
val (kind, unionNode) = processUnionOfArguments(node, callCompleted) unifyDataFlowFromPostponedLambdas(node, callCompleted)
addNewSimpleNode(node, preferredKind = kind) addNewSimpleNode(node)
return node to unionNode return node
} }
fun exitStringConcatenationCall(call: FirStringConcatenationCall): Pair<StringConcatenationCallNode, UnionFunctionCallArgumentsNode?> { fun exitStringConcatenationCall(call: FirStringConcatenationCall): StringConcatenationCallNode {
levelCounter-- levelCounter--
val node = createStringConcatenationCallNode(call) val node = createStringConcatenationCallNode(call)
val (kind, unionNode) = processUnionOfArguments(node, true) unifyDataFlowFromPostponedLambdas(node, callCompleted = true)
addNewSimpleNode(node, preferredKind = kind) addNewSimpleNode(node)
return node to unionNode return node
} }
fun exitConstExpression(constExpression: FirConstExpression<*>): ConstExpressionNode { fun exitConstExpression(constExpression: FirConstExpression<*>): ConstExpressionNode {
@@ -1149,111 +1136,16 @@ class ControlFlowGraphBuilder {
return createThrowExceptionNode(throwExpression).also { addNodeThatReturnsNothing(it) } return createThrowExceptionNode(throwExpression).also { addNodeThatReturnsNothing(it) }
} }
fun exitCheckNotNullCall( fun exitCheckNotNullCall(checkNotNullCall: FirCheckNotNullCall, callCompleted: Boolean): CheckNotNullCallNode {
checkNotNullCall: FirCheckNotNullCall,
callCompleted: Boolean
): Pair<CheckNotNullCallNode, UnionFunctionCallArgumentsNode?> {
levelCounter-- levelCounter--
val node = createCheckNotNullCallNode(checkNotNullCall) val node = createCheckNotNullCallNode(checkNotNullCall)
unifyDataFlowFromPostponedLambdas(node, callCompleted)
if (checkNotNullCall.resultType.isNothing) { if (checkNotNullCall.resultType.isNothing) {
addNodeThatReturnsNothing(node) addNodeThatReturnsNothing(node)
} else { } else {
addNewSimpleNode(node) addNewSimpleNode(node)
} }
val unionNode = processUnionOfArguments(node, callCompleted).second return node
return node to unionNode
}
// Arguments are evaluated left to right, and this is how data flows.
// foo(run { x as String; 1 }, { /* x smartcasted to String */ x.length })
//
// However, as we need to fix type parameters before analyzing lambdas, this is not always the order of analysis;
// if that is possible, multiple lambdas should be considered to be concurrent.
//
// foo(run { x as String; genericFunction() }, run { /* x not smartcastable because this lambda may be resolved first */ 1 })
// /* x is smartcastable after the call */
//
// And if the lambda is conditional, then the data flow needs to be merged with other branches.
//
// foo(nullable?.let { x as String; genericFunction() }, run { 1 })
// /* x is not smartcastable */
//
// foo(nullable ?: run { x as String; genericFunction() }, run { 1 })
// /* x is not smartcastable */
//
// foo(if (condition) run { x as String; genericFunction() } else { genericFunction() }, run { 1 })
// /* x is not smartcastable */
//
// foo(if (condition) run { x as String; genericFunction() } else { x as String; genericFunction() }, run { 1 })
// /* x is smartcastable */
//
// `splitDataFlowForPostponedLambdas` in `enterX` should be matched with either `joinDataFlowFromPostponedLambdasWith`
// or `processUnionOfArguments` in `exitX`. The difference is that the latter creates an intersection of all the lambdas'
// type information (like after function calls - all casts from all lambdas are valid) while the former is a union
// (like after `if` - only the casts from one of the lambdas are valid, and we don't know which).
//
private fun splitDataFlowForPostponedLambdas() {
exitsFromCompletedPostponedAnonymousFunctions.add(mutableListOf())
}
private fun joinDataFlowFromPostponedLambdasWith(node: CFGNode<*>): MergePostponedLambdaExitsNode? {
val currentLevelExits = exitsFromCompletedPostponedAnonymousFunctions.popLast()
if (currentLevelExits.isEmpty()) {
return null
}
val joinNode = createMergePostponedLambdaExitsNode(node.fir)
addEdge(node, joinNode)
currentLevelExits.joinDataFlowFromPostponedLambdasTo(joinNode)
exitsFromCompletedPostponedAnonymousFunctions.lastOrNull()?.add(joinNode)
return joinNode
}
private fun MutableList<CFGNode<*>>.joinDataFlowFromPostponedLambdasTo(node: CFGNode<*>) {
for (exitNode in this) {
// To avoid storing nodes from subgraphs in the list, we have PostponedLambdaExitNode instead of the real
// exit node of the lambda subgraph. The latter is the previous node of the former. Everything else is
// already a join/union node in this graph.
val functionExitOrMerge = if (exitNode is PostponedLambdaExitNode) exitNode.lastPreviousNode else exitNode
addEdge(functionExitOrMerge, node, preferredKind = EdgeKind.DfgForward)
}
}
private fun processUnionOfArguments(
node: CFGNode<*>,
callCompleted: Boolean
): Pair<EdgeKind, UnionFunctionCallArgumentsNode?> {
val currentLevelExits = exitsFromCompletedPostponedAnonymousFunctions.popLast()
if (currentLevelExits.isEmpty()) {
return EdgeKind.Forward to null
}
if (!callCompleted || !shouldPassFlowFromInplaceLambda.top()) {
currentLevelExits.singleOrNull()?.let {
exitsFromCompletedPostponedAnonymousFunctions.lastOrNull()?.add(it)
return EdgeKind.Forward to null
}
val unionNode = createUnionFunctionCallArgumentsNode(node.fir)
currentLevelExits.joinDataFlowFromPostponedLambdasTo(unionNode)
exitsFromCompletedPostponedAnonymousFunctions.lastOrNull()?.addAll(currentLevelExits)
return EdgeKind.Forward to unionNode
}
val unionNode = createUnionFunctionCallArgumentsNode(node.fir)
currentLevelExits.joinDataFlowFromPostponedLambdasTo(unionNode)
if (lastNode in currentLevelExits) {
popAndAddEdge(node, preferredKind = EdgeKind.CfgForward)
lastNodes.push(unionNode)
return EdgeKind.DfgForward to unionNode
}
addNewSimpleNode(unionNode)
return EdgeKind.Forward to unionNode
}
fun exitWhenSubjectExpression(expression: FirWhenSubjectExpression): WhenSubjectExpressionExitNode {
return createWhenSubjectExpressionExitNode(expression).also { addNewSimpleNode(it) }
} }
// ----------------------------------- Annotations ----------------------------------- // ----------------------------------- Annotations -----------------------------------
@@ -1354,7 +1246,8 @@ class ControlFlowGraphBuilder {
return exitSafeCallNodes.pop().let { return exitSafeCallNodes.pop().let {
addNewSimpleNode(it) addNewSimpleNode(it)
it.updateDeadStatus() it.updateDeadStatus()
it to joinDataFlowFromPostponedLambdasWith(it) // Safe calls only have one user-specified branch, so if any lambdas were postponed, they still are.
it to mergeDataFlowFromPostponedLambdas(it, callCompleted = false)
} }
} }
@@ -1389,11 +1282,11 @@ class ControlFlowGraphBuilder {
return Triple(lhsExitNode, lhsIsNotNullNode, rhsEnterNode) return Triple(lhsExitNode, lhsIsNotNullNode, rhsEnterNode)
} }
fun exitElvis(lhsIsNotNull: Boolean): Pair<ElvisExitNode, MergePostponedLambdaExitsNode?> { fun exitElvis(lhsIsNotNull: Boolean, callCompleted: Boolean): Pair<ElvisExitNode, MergePostponedLambdaExitsNode?> {
val exitNode = exitElvisExpressionNodes.pop() val exitNode = exitElvisExpressionNodes.pop()
addNewSimpleNode(exitNode, isDead = lhsIsNotNull) addNewSimpleNode(exitNode, isDead = lhsIsNotNull)
exitNode.updateDeadStatus() exitNode.updateDeadStatus()
return exitNode to joinDataFlowFromPostponedLambdasWith(exitNode) return exitNode to mergeDataFlowFromPostponedLambdas(exitNode, callCompleted)
} }
// ----------------------------------- Contract description ----------------------------------- // ----------------------------------- Contract description -----------------------------------
@@ -1417,7 +1310,7 @@ class ControlFlowGraphBuilder {
fun reset() { fun reset() {
exitsOfAnonymousFunctions.clear() exitsOfAnonymousFunctions.clear()
exitsFromCompletedPostponedAnonymousFunctions.clear() dataFlowSourcesForNextCompletedCall.reset()
lastNodes.reset() lastNodes.reset()
} }
@@ -241,9 +241,6 @@ fun ControlFlowGraphBuilder.createScriptEnterNode(fir: FirScript): ScriptEnterNo
fun ControlFlowGraphBuilder.createScriptExitNode(fir: FirScript): ScriptExitNode = fun ControlFlowGraphBuilder.createScriptExitNode(fir: FirScript): ScriptExitNode =
ScriptExitNode(currentGraph, fir, levelCounter, createId()) ScriptExitNode(currentGraph, fir, levelCounter, createId())
fun ControlFlowGraphBuilder.createUnionFunctionCallArgumentsNode(fir: FirElement): UnionFunctionCallArgumentsNode =
UnionFunctionCallArgumentsNode(currentGraph, fir, levelCounter, createId())
fun ControlFlowGraphBuilder.createMergePostponedLambdaExitsNode(fir: FirElement): MergePostponedLambdaExitsNode = fun ControlFlowGraphBuilder.createMergePostponedLambdaExitsNode(fir: FirElement): MergePostponedLambdaExitsNode =
MergePostponedLambdaExitsNode(currentGraph, fir, levelCounter, createId()) MergePostponedLambdaExitsNode(currentGraph, fir, levelCounter, createId())
@@ -106,7 +106,7 @@ class FirControlFlowGraphRenderVisitor(
} }
if (node.isDead) { if (node.isDead) {
fillColor("gray") fillColor("gray")
} else if (node is UnionFunctionCallArgumentsNode) { } else if (node is UnionNodeMarker) {
fillColor("yellow") fillColor("yellow")
} }
println(indices.getValue(node), attributes.joinToString(separator = " ", prefix = " [", postfix = "];")) println(indices.getValue(node), attributes.joinToString(separator = " ", prefix = " [", postfix = "];"))
@@ -64,19 +64,21 @@ class FirControlFlowStatementsResolveTransformer(transformer: FirAbstractBodyRes
@Suppress("NAME_SHADOWING") @Suppress("NAME_SHADOWING")
var whenExpression = whenExpression.transformSubject(transformer, ResolutionMode.ContextIndependent) var whenExpression = whenExpression.transformSubject(transformer, ResolutionMode.ContextIndependent)
val subjectType = whenExpression.subject?.typeRef?.coneType?.fullyExpandedType(session) val subjectType = whenExpression.subject?.typeRef?.coneType?.fullyExpandedType(session)
var callCompleted = false
context.withWhenSubjectType(subjectType, components) { context.withWhenSubjectType(subjectType, components) {
when { when {
whenExpression.branches.isEmpty() -> {} whenExpression.branches.isEmpty() -> {}
whenExpression.isOneBranch() -> { whenExpression.isOneBranch() -> {
whenExpression = whenExpression.transformBranches(transformer, ResolutionMode.ContextIndependent) whenExpression = whenExpression.transformBranches(transformer, ResolutionMode.ContextIndependent)
whenExpression.resultType = whenExpression.branches.first().result.resultType whenExpression.resultType = whenExpression.branches.first().result.resultType
// when with one branch cannot be completed if it's not already complete in the first place
} }
else -> { else -> {
whenExpression = whenExpression.transformBranches(transformer, ResolutionMode.ContextDependent) whenExpression = whenExpression.transformBranches(transformer, ResolutionMode.ContextDependent)
whenExpression = syntheticCallGenerator.generateCalleeForWhenExpression(whenExpression, resolutionContext) ?: run { whenExpression = syntheticCallGenerator.generateCalleeForWhenExpression(whenExpression, resolutionContext) ?: run {
whenExpression = whenExpression.transformSingle(whenExhaustivenessTransformer, null) whenExpression = whenExpression.transformSingle(whenExhaustivenessTransformer, null)
dataFlowAnalyzer.exitWhenExpression(whenExpression) dataFlowAnalyzer.exitWhenExpression(whenExpression, callCompleted)
whenExpression.resultType = buildErrorTypeRef { whenExpression.resultType = buildErrorTypeRef {
diagnostic = ConeSimpleDiagnostic("Can't resolve when expression", DiagnosticKind.InferenceError) diagnostic = ConeSimpleDiagnostic("Can't resolve when expression", DiagnosticKind.InferenceError)
} }
@@ -85,10 +87,11 @@ class FirControlFlowStatementsResolveTransformer(transformer: FirAbstractBodyRes
val completionResult = callCompleter.completeCall(whenExpression, data) val completionResult = callCompleter.completeCall(whenExpression, data)
whenExpression = completionResult.result whenExpression = completionResult.result
callCompleted = completionResult.callCompleted
} }
} }
whenExpression = whenExpression.transformSingle(whenExhaustivenessTransformer, null) whenExpression = whenExpression.transformSingle(whenExhaustivenessTransformer, null)
dataFlowAnalyzer.exitWhenExpression(whenExpression) dataFlowAnalyzer.exitWhenExpression(whenExpression, callCompleted)
whenExpression = whenExpression.replaceReturnTypeIfNotExhaustive() whenExpression = whenExpression.replaceReturnTypeIfNotExhaustive()
whenExpression whenExpression
} }
@@ -145,20 +148,12 @@ class FirControlFlowStatementsResolveTransformer(transformer: FirAbstractBodyRes
dataFlowAnalyzer.exitTryMainBlock() dataFlowAnalyzer.exitTryMainBlock()
tryExpression.transformCatches(this, ResolutionMode.ContextDependent) tryExpression.transformCatches(this, ResolutionMode.ContextDependent)
var callCompleted: Boolean val incomplete = syntheticCallGenerator.generateCalleeForTryExpression(tryExpression, resolutionContext)
var (result, callCompleted) = callCompleter.completeCall(incomplete, data)
@Suppress("NAME_SHADOWING") if (result.finallyBlock != null) {
var result = syntheticCallGenerator.generateCalleeForTryExpression(tryExpression, resolutionContext).let { dataFlowAnalyzer.enterFinallyBlock()
val completionResult = callCompleter.completeCall(it, data) result = result.transformFinallyBlock(transformer, ResolutionMode.ContextIndependent)
callCompleted = completionResult.callCompleted dataFlowAnalyzer.exitFinallyBlock()
completionResult.result
}
result = if (result.finallyBlock != null) {
result.also { dataFlowAnalyzer.enterFinallyBlock() }
.transformFinallyBlock(transformer, ResolutionMode.ContextIndependent)
.also { dataFlowAnalyzer.exitFinallyBlock() }
} else {
result
} }
dataFlowAnalyzer.exitTryExpression(callCompleted) dataFlowAnalyzer.exitTryExpression(callCompleted)
return result return result
@@ -237,8 +232,11 @@ class FirControlFlowStatementsResolveTransformer(transformer: FirAbstractBodyRes
) )
elvisExpression.transformRhs(transformer, resolutionModeForRhs) elvisExpression.transformRhs(transformer, resolutionModeForRhs)
var callCompleted = false
val result = syntheticCallGenerator.generateCalleeForElvisExpression(elvisExpression, resolutionContext)?.let { val result = syntheticCallGenerator.generateCalleeForElvisExpression(elvisExpression, resolutionContext)?.let {
callCompleter.completeCall(it, data).result val completed = callCompleter.completeCall(it, data)
callCompleted = completed.callCompleted
completed.result
} ?: elvisExpression.also { } ?: elvisExpression.also {
it.resultType = buildErrorTypeRef { it.resultType = buildErrorTypeRef {
diagnostic = ConeSimpleDiagnostic("Can't resolve ?: operator call", DiagnosticKind.InferenceError) diagnostic = ConeSimpleDiagnostic("Can't resolve ?: operator call", DiagnosticKind.InferenceError)
@@ -270,7 +268,7 @@ class FirControlFlowStatementsResolveTransformer(transformer: FirAbstractBodyRes
} }
} }
dataFlowAnalyzer.exitElvis(elvisExpression, isLhsNotNull = isLhsNotNull) dataFlowAnalyzer.exitElvis(elvisExpression, isLhsNotNull, callCompleted)
return result return result
} }
} }
@@ -270,6 +270,7 @@ open class FirDeclarationsResolveTransformer(transformer: FirAbstractBodyResolve
private fun transformPropertyAccessorsWithDelegate(property: FirProperty) { private fun transformPropertyAccessorsWithDelegate(property: FirProperty) {
context.forPropertyDelegateAccessors(property, resolutionContext, callCompleter) { context.forPropertyDelegateAccessors(property, resolutionContext, callCompleter) {
dataFlowAnalyzer.enterDelegateExpression()
// Resolve delegate expression, after that, delegate will contain either expr.provideDelegate or expr // Resolve delegate expression, after that, delegate will contain either expr.provideDelegate or expr
if (property.isLocal) { if (property.isLocal) {
property.transformDelegate(transformer, ResolutionMode.ContextDependentDelegate) property.transformDelegate(transformer, ResolutionMode.ContextDependentDelegate)
@@ -281,7 +282,6 @@ open class FirDeclarationsResolveTransformer(transformer: FirAbstractBodyResolve
property.transformAccessors() property.transformAccessors()
val completedCalls = completeCandidates() val completedCalls = completeCandidates()
dataFlowAnalyzer.exitDelegateExpression()
val finalSubstitutor = createFinalSubstitutor() val finalSubstitutor = createFinalSubstitutor()
@@ -297,6 +297,7 @@ open class FirDeclarationsResolveTransformer(transformer: FirAbstractBodyResolve
it.transformSingle(callCompletionResultsWriter, null) it.transformSingle(callCompletionResultsWriter, null)
} }
dataFlowAnalyzer.exitDelegateExpression()
property property
} }
} }
@@ -311,7 +312,6 @@ open class FirDeclarationsResolveTransformer(transformer: FirAbstractBodyResolve
wrappedDelegateExpression: FirWrappedDelegateExpression, wrappedDelegateExpression: FirWrappedDelegateExpression,
data: ResolutionMode, data: ResolutionMode,
): FirStatement { ): FirStatement {
dataFlowAnalyzer.enterDelegateExpression()
// First, resolve delegate expression in dependent context // First, resolve delegate expression in dependent context
val delegateExpression = wrappedDelegateExpression.expression.transformSingle(transformer, ResolutionMode.ContextDependent) val delegateExpression = wrappedDelegateExpression.expression.transformSingle(transformer, ResolutionMode.ContextDependent)
.transformSingle(components.integerLiteralAndOperatorApproximationTransformer, null) .transformSingle(components.integerLiteralAndOperatorApproximationTransformer, null)

Some files were not shown because too many files have changed in this diff Show More