FIR CFA: remove class initializer part nodes

Instead, attach subgraphs directly to the class enter node.
This commit is contained in:
pyos
2022-12-11 13:43:55 +01:00
committed by Dmitriy Novozhilov
parent b9f366af05
commit c6e9afb788
25 changed files with 3271 additions and 3385 deletions
@@ -6,89 +6,85 @@ digraph initBlock_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class Foo" style="filled" fillcolor=red];
1 [label="Part of class initialization"];
subgraph cluster_1 {
color=blue
2 [label="Enter init block" style="filled" fillcolor=red];
1 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter block"];
4 [label="Const: Int(1)"];
5 [label="Variable declaration: lval x: R|kotlin/Int|"];
6 [label="Exit block"];
2 [label="Enter block"];
3 [label="Const: Int(1)"];
4 [label="Variable declaration: lval x: R|kotlin/Int|"];
5 [label="Exit block"];
}
7 [label="Exit init block" style="filled" fillcolor=red];
6 [label="Exit init block" style="filled" fillcolor=red];
}
8 [label="Exit class Foo" style="filled" fillcolor=red];
7 [label="Exit class Foo" style="filled" fillcolor=red];
}
subgraph cluster_3 {
color=blue
9 [label="Enter function <init>" style="filled" fillcolor=red];
10 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
11 [label="Exit function <init>" style="filled" fillcolor=red];
8 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
10 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {8} [style=dotted];
1 -> {2} [style=dashed];
0 -> {7} [style=dotted];
0 -> {1} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
6 -> {7} [color=green];
7 -> {8} [color=green];
8 -> {9} [color=green];
8 -> {9} [style=dashed];
7 -> {8} [style=dashed];
8 -> {9};
9 -> {10};
10 -> {11};
subgraph cluster_4 {
color=red
12 [label="Enter class Bar" style="filled" fillcolor=red];
13 [label="Part of class initialization"];
11 [label="Enter class Bar" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
14 [label="Enter init block" style="filled" fillcolor=red];
12 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
15 [label="Enter block"];
16 [label="Const: Int(1)"];
17 [label="Variable declaration: lval x: R|kotlin/Int|"];
18 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
19 [label="Throw: throw R|java/lang/Exception.Exception|()"];
20 [label="Stub" style="filled" fillcolor=gray];
21 [label="Const: Int(2)" style="filled" fillcolor=gray];
22 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
23 [label="Exit block" style="filled" fillcolor=gray];
13 [label="Enter block"];
14 [label="Const: Int(1)"];
15 [label="Variable declaration: lval x: R|kotlin/Int|"];
16 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
17 [label="Throw: throw R|java/lang/Exception.Exception|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Const: Int(2)" style="filled" fillcolor=gray];
20 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
21 [label="Exit block" style="filled" fillcolor=gray];
}
24 [label="Exit init block" style="filled" fillcolor=gray];
22 [label="Exit init block" style="filled" fillcolor=gray];
}
25 [label="Exit class Bar" style="filled" fillcolor=gray];
23 [label="Exit class Bar" style="filled" fillcolor=gray];
}
subgraph cluster_7 {
color=blue
26 [label="Enter function <init>" style="filled" fillcolor=gray];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
28 [label="Exit function <init>" style="filled" fillcolor=red];
24 [label="Enter function <init>" style="filled" fillcolor=gray];
25 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=gray];
26 [label="Exit function <init>" style="filled" fillcolor=gray];
}
12 -> {13} [color=green];
13 -> {14} [color=green];
13 -> {25} [style=dotted];
13 -> {14} [style=dashed];
11 -> {12} [color=green];
11 -> {23} [style=dotted];
11 -> {12} [style=dashed];
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {22} [style=dotted];
22 -> {23} [style=dotted];
23 -> {24} [style=dotted];
23 -> {24} [style=dashed];
24 -> {25} [style=dotted];
25 -> {26} [style=dotted];
25 -> {26} [style=dashed];
26 -> {27};
27 -> {28};
}
@@ -20,58 +20,57 @@ digraph initBlockAndInPlaceLambda_kt {
subgraph cluster_2 {
color=red
4 [label="Enter class C" style="filled" fillcolor=red];
5 [label="Part of class initialization"];
subgraph cluster_3 {
color=blue
6 [label="Enter init block" style="filled" fillcolor=red];
5 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
7 [label="Enter block"];
8 [label="Access variable R|<local>/a|"];
9 [label="Access variable R|/A.b|"];
10 [label="Enter safe call"];
11 [label="Postponed enter to lambda"];
6 [label="Enter block"];
7 [label="Access variable R|<local>/a|"];
8 [label="Access variable R|/A.b|"];
9 [label="Enter safe call"];
10 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
12 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
11 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
13 [label="Enter block"];
14 [label="Access variable R|<local>/a|"];
15 [label="Access variable R|<local>/it|"];
16 [label="Function call: R|/C.C|(...)" style="filled" fillcolor=yellow];
17 [label="Exit block"];
12 [label="Enter block"];
13 [label="Access variable R|<local>/a|"];
14 [label="Access variable R|<local>/it|"];
15 [label="Function call: R|/C.C|(...)" style="filled" fillcolor=yellow];
16 [label="Exit block"];
}
18 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
17 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
19 [label="Postponed exit from lambda"];
20 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)" style="filled" fillcolor=yellow];
21 [label="Exit safe call"];
22 [label="Variable declaration: lval c: R|C?|"];
23 [label="Exit block"];
18 [label="Postponed exit from lambda"];
19 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)" style="filled" fillcolor=yellow];
20 [label="Exit safe call"];
21 [label="Variable declaration: lval c: R|C?|"];
22 [label="Exit block"];
}
24 [label="Exit init block" style="filled" fillcolor=red];
23 [label="Exit init block" style="filled" fillcolor=red];
}
25 [label="Exit class C" style="filled" fillcolor=red];
24 [label="Exit class C" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
26 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
28 [label="Exit function <init>" style="filled" fillcolor=red];
25 [label="Enter function <init>" style="filled" fillcolor=red];
26 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
27 [label="Exit function <init>" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
5 -> {6} [color=green];
5 -> {25} [style=dotted];
5 -> {6} [style=dashed];
4 -> {24} [style=dotted];
4 -> {5} [style=dashed];
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10 21};
10 -> {11};
11 -> {12 20};
11 -> {19} [style=dotted];
11 -> {12} [style=dashed];
8 -> {9 20};
9 -> {10};
10 -> {11 19};
10 -> {18} [style=dotted];
10 -> {11} [style=dashed];
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
@@ -83,11 +82,10 @@ digraph initBlockAndInPlaceLambda_kt {
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
23 -> {24} [color=green];
24 -> {25} [color=green];
25 -> {26} [color=green];
25 -> {26} [style=dashed];
24 -> {25} [style=dashed];
25 -> {26};
26 -> {27};
27 -> {28};
}
@@ -23,89 +23,87 @@ digraph postponedLambdaInConstructor_kt {
subgraph cluster_2 {
color=red
5 [label="Enter class B" style="filled" fillcolor=red];
6 [label="Part of class initialization"];
subgraph cluster_3 {
color=blue
7 [label="Enter property" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/s|"];
9 [label="Exit property" style="filled" fillcolor=red];
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/s|"];
8 [label="Exit property" style="filled" fillcolor=red];
}
10 [label="Exit class B" style="filled" fillcolor=red];
9 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
11 [label="Enter function foo" style="filled" fillcolor=red];
10 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
12 [label="Enter block"];
13 [label="Function call: this@R|/B|.R|/B.foo|()" style="filled" fillcolor=yellow];
14 [label="Exit block"];
11 [label="Enter block"];
12 [label="Function call: this@R|/B|.R|/B.foo|()" style="filled" fillcolor=yellow];
13 [label="Exit block"];
}
15 [label="Exit function foo" style="filled" fillcolor=red];
14 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_6 {
color=blue
16 [label="Enter function <init>" style="filled" fillcolor=red];
17 [label="Access variable R|<local>/s|"];
18 [label="Postponed enter to lambda"];
15 [label="Enter function <init>" style="filled" fillcolor=red];
16 [label="Access variable R|<local>/s|"];
17 [label="Postponed enter to lambda"];
subgraph cluster_7 {
color=blue
19 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
18 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
20 [label="Enter block"];
21 [label="Exit anonymous function expression"];
19 [label="Enter block"];
20 [label="Exit anonymous function expression"];
subgraph cluster_9 {
color=blue
22 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
21 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|<local>/it|"];
25 [label="Exit block"];
22 [label="Enter block"];
23 [label="Access variable R|<local>/it|"];
24 [label="Exit block"];
}
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
27 [label="Exit block"];
26 [label="Exit block"];
}
28 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
27 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
29 [label="Postponed exit from lambda"];
30 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)" style="filled" fillcolor=yellow];
31 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
32 [label="Exit function <init>" style="filled" fillcolor=red];
28 [label="Postponed exit from lambda"];
29 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)" style="filled" fillcolor=yellow];
30 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
31 [label="Exit function <init>" style="filled" fillcolor=red];
}
5 -> {6} [color=green];
6 -> {7} [color=green];
6 -> {10} [style=dotted];
6 -> {7} [style=dashed];
5 -> {9} [style=dotted];
5 -> {6} [style=dashed];
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10} [color=green];
10 -> {11 16} [color=green];
10 -> {11 16} [style=dashed];
8 -> {9} [color=green];
9 -> {10 15} [color=green];
9 -> {10 15} [style=dashed];
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19 30};
18 -> {29} [style=dotted];
18 -> {19} [style=dashed];
17 -> {18 29};
17 -> {28} [style=dotted];
17 -> {18} [style=dashed];
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22 27};
21 -> {22} [style=dashed];
20 -> {21 26};
20 -> {21} [style=dashed];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30} [color=green];
29 -> {31} [color=red];
28 -> {29} [color=green];
28 -> {30} [color=red];
29 -> {30};
30 -> {31};
31 -> {32};
}
@@ -90,215 +90,213 @@ digraph propertiesAndInitBlocks_kt {
subgraph cluster_10 {
color=blue
29 [label="Enter class GetterLocalClass" style="filled" fillcolor=red];
30 [label="Part of class initialization"];
subgraph cluster_11 {
color=blue
31 [label="Enter init block" style="filled" fillcolor=red];
30 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
32 [label="Enter block"];
33 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
34 [label="Throw: throw R|java/lang/Exception.Exception|()"];
35 [label="Stub" style="filled" fillcolor=gray];
36 [label="Exit block" style="filled" fillcolor=gray];
31 [label="Enter block"];
32 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
33 [label="Throw: throw R|java/lang/Exception.Exception|()"];
34 [label="Stub" style="filled" fillcolor=gray];
35 [label="Exit block" style="filled" fillcolor=gray];
}
37 [label="Exit init block" style="filled" fillcolor=gray];
36 [label="Exit init block" style="filled" fillcolor=gray];
}
38 [label="Exit class GetterLocalClass" style="filled" fillcolor=gray];
37 [label="Exit class GetterLocalClass" style="filled" fillcolor=gray];
}
subgraph cluster_13 {
color=blue
39 [label="Enter function <init>" style="filled" fillcolor=gray];
40 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
41 [label="Exit function <init>" style="filled" fillcolor=red];
38 [label="Enter function <init>" style="filled" fillcolor=gray];
39 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=gray];
40 [label="Exit function <init>" style="filled" fillcolor=gray];
}
24 -> {25};
25 -> {26};
26 -> {27 29};
26 -> {29} [style=dashed];
27 -> {28};
29 -> {30} [color=green];
29 -> {31 39} [color=red];
30 -> {31} [color=green];
30 -> {38} [style=dotted];
30 -> {31} [style=dashed];
29 -> {30};
29 -> {38} [color=red];
29 -> {37} [style=dotted];
29 -> {30} [style=dashed];
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
33 -> {34} [style=dotted];
34 -> {35} [style=dotted];
35 -> {36} [style=dotted];
36 -> {37} [style=dotted];
37 -> {38} [style=dotted];
37 -> {38} [style=dashed];
38 -> {39} [style=dotted];
38 -> {39} [style=dashed];
39 -> {40};
40 -> {41};
39 -> {40} [style=dotted];
subgraph cluster_14 {
color=red
42 [label="Enter property" style="filled" fillcolor=red];
43 [label="Postponed enter to lambda"];
41 [label="Enter property" style="filled" fillcolor=red];
42 [label="Postponed enter to lambda"];
subgraph cluster_15 {
color=blue
44 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
43 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
45 [label="Enter block"];
46 [label="Local function declaration <anonymous>"];
47 [label="Exit local class <anonymous>"];
48 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
49 [label="Throw: throw R|java/lang/Exception.Exception|()"];
50 [label="Stub" style="filled" fillcolor=gray];
51 [label="Exit block" style="filled" fillcolor=gray];
44 [label="Enter block"];
45 [label="Local function declaration <anonymous>"];
46 [label="Exit local class <anonymous>"];
47 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
48 [label="Throw: throw R|java/lang/Exception.Exception|()"];
49 [label="Stub" style="filled" fillcolor=gray];
50 [label="Exit block" style="filled" fillcolor=gray];
}
52 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
51 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
}
subgraph cluster_17 {
color=blue
53 [label="Enter class InitializerLocalClass" style="filled" fillcolor=red];
54 [label="Part of class initialization"];
52 [label="Enter class InitializerLocalClass" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
55 [label="Enter init block" style="filled" fillcolor=red];
53 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
56 [label="Enter block"];
57 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
58 [label="Throw: throw R|java/lang/Exception.Exception|()"];
59 [label="Stub" style="filled" fillcolor=gray];
60 [label="Const: Int(1)" style="filled" fillcolor=gray];
61 [label="Exit block" style="filled" fillcolor=gray];
54 [label="Enter block"];
55 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
56 [label="Throw: throw R|java/lang/Exception.Exception|()"];
57 [label="Stub" style="filled" fillcolor=gray];
58 [label="Const: Int(1)" style="filled" fillcolor=gray];
59 [label="Exit block" style="filled" fillcolor=gray];
}
62 [label="Exit init block" style="filled" fillcolor=gray];
60 [label="Exit init block" style="filled" fillcolor=gray];
}
63 [label="Exit class InitializerLocalClass" style="filled" fillcolor=gray];
61 [label="Exit class InitializerLocalClass" style="filled" fillcolor=gray];
}
subgraph cluster_20 {
color=blue
64 [label="Enter function <init>" style="filled" fillcolor=gray];
65 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
66 [label="Exit function <init>" style="filled" fillcolor=red];
62 [label="Enter function <init>" style="filled" fillcolor=gray];
63 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=gray];
64 [label="Exit function <init>" style="filled" fillcolor=gray];
}
subgraph cluster_21 {
color=blue
67 [label="Enter function foo" style="filled" fillcolor=red];
65 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
68 [label="Enter block"];
69 [label="Const: Int(1)"];
70 [label="Const: Int(1)"];
71 [label="Function call: Int(1).R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
72 [label="Variable declaration: lval c: R|kotlin/Int|"];
73 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
74 [label="Throw: throw R|java/lang/Exception.Exception|()"];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray];
66 [label="Enter block"];
67 [label="Const: Int(1)"];
68 [label="Const: Int(1)"];
69 [label="Function call: Int(1).R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
70 [label="Variable declaration: lval c: R|kotlin/Int|"];
71 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
72 [label="Throw: throw R|java/lang/Exception.Exception|()"];
73 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit block" style="filled" fillcolor=gray];
}
77 [label="Exit function foo" style="filled" fillcolor=gray];
75 [label="Exit function foo" style="filled" fillcolor=gray];
}
78 [label="Postponed exit from lambda"];
79 [label="Function call: R|/run|(...)" style="filled" fillcolor=yellow];
80 [label="Exit property" style="filled" fillcolor=red];
76 [label="Postponed exit from lambda"];
77 [label="Function call: R|/run|(...)" style="filled" fillcolor=yellow];
78 [label="Exit property" style="filled" fillcolor=red];
}
42 -> {43};
43 -> {44 78 79};
43 -> {44} [style=dashed];
41 -> {42};
42 -> {43 76 77};
42 -> {43} [style=dashed];
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47 67};
46 -> {67} [style=dashed];
47 -> {48 53};
47 -> {53} [style=dashed];
48 -> {49};
45 -> {46 65};
45 -> {65} [style=dashed];
46 -> {47 52};
46 -> {52} [style=dashed];
47 -> {48};
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
52 -> {78} [style=dotted];
53 -> {54} [color=green];
53 -> {55 64} [color=red];
54 -> {55} [color=green];
54 -> {63} [style=dotted];
54 -> {55} [style=dashed];
51 -> {76} [style=dotted];
52 -> {53};
52 -> {62} [color=red];
52 -> {61} [style=dotted];
52 -> {53} [style=dashed];
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
58 -> {59} [style=dotted];
59 -> {60} [style=dotted];
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
61 -> {62} [style=dashed];
62 -> {63} [style=dotted];
63 -> {64} [style=dotted];
63 -> {64} [style=dashed];
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
72 -> {73} [style=dotted];
73 -> {74} [style=dotted];
74 -> {75} [style=dotted];
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
78 -> {79};
78 -> {43} [color=green style=dashed];
79 -> {80};
76 -> {77};
76 -> {42} [color=green style=dashed];
77 -> {78};
subgraph cluster_23 {
color=red
81 [label="Enter property" style="filled" fillcolor=red];
79 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_24 {
color=blue
82 [label="Try expression enter"];
80 [label="Try expression enter"];
subgraph cluster_25 {
color=blue
83 [label="Try main block enter"];
81 [label="Try main block enter"];
subgraph cluster_26 {
color=blue
84 [label="Enter block"];
85 [label="Const: Int(1)"];
86 [label="Exit block"];
82 [label="Enter block"];
83 [label="Const: Int(1)"];
84 [label="Exit block"];
}
87 [label="Try main block exit"];
85 [label="Try main block exit"];
}
subgraph cluster_27 {
color=blue
88 [label="Catch enter"];
89 [label="Variable declaration: e: R|kotlin/Exception|"];
86 [label="Catch enter"];
87 [label="Variable declaration: e: R|kotlin/Exception|"];
subgraph cluster_28 {
color=blue
90 [label="Enter block"];
91 [label="Const: Int(2)"];
92 [label="Exit block"];
88 [label="Enter block"];
89 [label="Const: Int(2)"];
90 [label="Exit block"];
}
93 [label="Catch exit"];
91 [label="Catch exit"];
}
subgraph cluster_29 {
color=blue
94 [label="Enter finally"];
92 [label="Enter finally"];
subgraph cluster_30 {
color=blue
95 [label="Enter block"];
96 [label="Const: Int(0)"];
97 [label="Exit block"];
93 [label="Enter block"];
94 [label="Const: Int(0)"];
95 [label="Exit block"];
}
98 [label="Exit finally"];
96 [label="Exit finally"];
}
99 [label="Try expression exit"];
97 [label="Try expression exit"];
}
100 [label="Exit property" style="filled" fillcolor=red];
98 [label="Exit property" style="filled" fillcolor=red];
}
79 -> {80};
80 -> {81 86};
80 -> {92} [label="onUncaughtException"];
81 -> {82};
82 -> {83 88};
82 -> {94} [label="onUncaughtException"];
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
85 -> {86 92};
86 -> {87};
87 -> {88 94};
86 -> {92} [label="onUncaughtException"];
87 -> {88};
88 -> {89};
88 -> {94} [label="onUncaughtException"];
89 -> {90};
90 -> {91};
91 -> {92};
@@ -308,7 +306,5 @@ digraph propertiesAndInitBlocks_kt {
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
}
@@ -6,95 +6,85 @@ digraph secondaryConstructorCfg_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class B" style="filled" fillcolor=red];
1 [label="Part of class initialization"];
subgraph cluster_1 {
color=blue
2 [label="Enter property" style="filled" fillcolor=red];
3 [label="Access variable R|<local>/p0|"];
4 [label="Exit property" style="filled" fillcolor=red];
1 [label="Enter property" style="filled" fillcolor=red];
2 [label="Access variable R|<local>/p0|"];
3 [label="Exit property" style="filled" fillcolor=red];
}
5 [label="Part of class initialization"];
subgraph cluster_2 {
color=blue
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/p0|"];
8 [label="Access variable R|kotlin/String.length|"];
9 [label="Exit property" style="filled" fillcolor=red];
4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Access variable R|<local>/p0|"];
6 [label="Access variable R|kotlin/String.length|"];
7 [label="Exit property" style="filled" fillcolor=red];
}
10 [label="Part of class initialization"];
subgraph cluster_3 {
color=blue
11 [label="Enter init block" style="filled" fillcolor=red];
8 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
12 [label="Enter block"];
13 [label="Access variable R|<local>/p0|"];
14 [label="Access variable R|kotlin/String.length|"];
15 [label="Assignment: R|/B.p1|"];
16 [label="Const: String()"];
17 [label="Assignment: R|/B.p3|"];
18 [label="Exit block"];
9 [label="Enter block"];
10 [label="Access variable R|<local>/p0|"];
11 [label="Access variable R|kotlin/String.length|"];
12 [label="Assignment: R|/B.p1|"];
13 [label="Const: String()"];
14 [label="Assignment: R|/B.p3|"];
15 [label="Exit block"];
}
19 [label="Exit init block" style="filled" fillcolor=red];
16 [label="Exit init block" style="filled" fillcolor=red];
}
20 [label="Exit class B" style="filled" fillcolor=red];
17 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
21 [label="Enter function <init>" style="filled" fillcolor=red];
22 [label="Access variable R|<local>/p0|"];
23 [label="Delegated constructor call: this<R|B|>(...)" style="filled" fillcolor=yellow];
18 [label="Enter function <init>" style="filled" fillcolor=red];
19 [label="Access variable R|<local>/p0|"];
20 [label="Delegated constructor call: this<R|B|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_6 {
color=blue
24 [label="Enter block"];
25 [label="Access variable R|<local>/p1|"];
26 [label="Assignment: R|/B.p3|"];
27 [label="Exit block"];
21 [label="Enter block"];
22 [label="Access variable R|<local>/p1|"];
23 [label="Assignment: R|/B.p3|"];
24 [label="Exit block"];
}
28 [label="Exit function <init>" style="filled" fillcolor=red];
25 [label="Exit function <init>" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
29 [label="Enter function <init>" style="filled" fillcolor=red];
30 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
31 [label="Exit function <init>" style="filled" fillcolor=red];
26 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
28 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {5} [style=dotted];
1 -> {2} [style=dashed];
0 -> {17} [style=dotted];
0 -> {1 4 8} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5} [color=green];
5 -> {6} [color=green];
5 -> {10} [style=dotted];
5 -> {6} [style=dashed];
3 -> {4} [color=green];
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
7 -> {8} [color=green];
8 -> {9};
9 -> {10} [color=green];
10 -> {11} [color=green];
10 -> {20} [style=dotted];
10 -> {11} [style=dashed];
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
16 -> {17} [color=green];
17 -> {18 26} [color=green];
17 -> {18 26} [style=dashed];
18 -> {19};
19 -> {20} [color=green];
20 -> {21 29} [color=green];
20 -> {21 29} [style=dashed];
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
29 -> {30};
30 -> {31};
}
@@ -339,86 +339,85 @@ digraph boundSmartcasts_kt {
subgraph cluster_27 {
color=red
125 [label="Enter class D" style="filled" fillcolor=red];
126 [label="Part of class initialization"];
subgraph cluster_28 {
color=blue
127 [label="Enter property" style="filled" fillcolor=red];
128 [label="Access variable R|<local>/any|"];
129 [label="Exit property" style="filled" fillcolor=red];
126 [label="Enter property" style="filled" fillcolor=red];
127 [label="Access variable R|<local>/any|"];
128 [label="Exit property" style="filled" fillcolor=red];
}
130 [label="Exit class D" style="filled" fillcolor=red];
129 [label="Exit class D" style="filled" fillcolor=red];
}
subgraph cluster_29 {
color=blue
131 [label="Enter function <init>" style="filled" fillcolor=red];
132 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
133 [label="Exit function <init>" style="filled" fillcolor=red];
130 [label="Enter function <init>" style="filled" fillcolor=red];
131 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
132 [label="Exit function <init>" style="filled" fillcolor=red];
}
125 -> {126} [color=green];
126 -> {127} [color=green];
126 -> {130} [style=dotted];
126 -> {127} [style=dashed];
125 -> {129} [style=dotted];
125 -> {126} [style=dashed];
126 -> {127};
127 -> {128};
128 -> {129};
128 -> {129} [color=green];
129 -> {130} [color=green];
130 -> {131} [color=green];
130 -> {131} [style=dashed];
129 -> {130} [style=dashed];
130 -> {131};
131 -> {132};
132 -> {133};
subgraph cluster_30 {
color=red
134 [label="Enter function baz" style="filled" fillcolor=red];
133 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
135 [label="Enter block"];
136 [label="Exit block"];
134 [label="Enter block"];
135 [label="Exit block"];
}
137 [label="Exit function baz" style="filled" fillcolor=red];
136 [label="Exit function baz" style="filled" fillcolor=red];
}
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137};
subgraph cluster_32 {
color=red
138 [label="Enter function test_5" style="filled" fillcolor=red];
137 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
139 [label="Enter block"];
140 [label="Access variable R|<local>/d|"];
141 [label="Access variable R|/D.any|"];
142 [label="Exit lhs of ?:"];
143 [label="Enter rhs of ?:"];
144 [label="Jump: ^test_5 Unit"];
145 [label="Stub" style="filled" fillcolor=gray];
146 [label="Lhs of ?: is not null"];
147 [label="Exit ?:"];
148 [label="Variable declaration: lval a: R|kotlin/Any|"];
149 [label="Access variable R|<local>/a|"];
150 [label="Function call: R|<local>/a|.R|/baz|()" style="filled" fillcolor=yellow];
151 [label="Access variable R|<local>/d|"];
152 [label="Access variable 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|()" style="filled" fillcolor=yellow];
155 [label="Access variable R|<local>/a|"];
156 [label="Type operator: (R|<local>/a| as R|A|)"];
157 [label="Access variable R|<local>/a|"];
158 [label="Smart cast: R|<local>/a|"];
159 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
160 [label="Exit block"];
138 [label="Enter block"];
139 [label="Access variable R|<local>/d|"];
140 [label="Access variable R|/D.any|"];
141 [label="Exit lhs of ?:"];
142 [label="Enter rhs of ?:"];
143 [label="Jump: ^test_5 Unit"];
144 [label="Stub" style="filled" fillcolor=gray];
145 [label="Lhs of ?: is not null"];
146 [label="Exit ?:"];
147 [label="Variable declaration: lval a: R|kotlin/Any|"];
148 [label="Access variable R|<local>/a|"];
149 [label="Function call: R|<local>/a|.R|/baz|()" style="filled" fillcolor=yellow];
150 [label="Access variable R|<local>/d|"];
151 [label="Access variable R|/D.any|"];
152 [label="Smart cast: R|<local>/d|.R|/D.any|"];
153 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()" style="filled" fillcolor=yellow];
154 [label="Access variable R|<local>/a|"];
155 [label="Type operator: (R|<local>/a| as R|A|)"];
156 [label="Access variable R|<local>/a|"];
157 [label="Smart cast: R|<local>/a|"];
158 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
159 [label="Exit block"];
}
161 [label="Exit function test_5" style="filled" fillcolor=red];
160 [label="Exit function test_5" style="filled" fillcolor=red];
}
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143 146};
143 -> {144};
144 -> {161};
144 -> {145} [style=dotted];
145 -> {147} [style=dotted];
141 -> {142 145};
142 -> {143};
143 -> {160};
143 -> {144} [style=dotted];
144 -> {146} [style=dotted];
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
@@ -433,34 +432,34 @@ digraph boundSmartcasts_kt {
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
subgraph cluster_34 {
color=red
162 [label="Enter function test_6" style="filled" fillcolor=red];
161 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_35 {
color=blue
163 [label="Enter block"];
164 [label="Access variable R|<local>/d1|"];
165 [label="Access variable R|/D.any|"];
166 [label="Variable declaration: lval a: R|kotlin/Any?|"];
167 [label="Access variable R|<local>/a|"];
168 [label="Type operator: (R|<local>/a| as R|A|)"];
169 [label="Access variable R|<local>/a|"];
170 [label="Smart cast: R|<local>/a|"];
171 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
172 [label="Access variable R|<local>/d1|"];
173 [label="Access variable 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|()" style="filled" fillcolor=yellow];
176 [label="Access variable R|<local>/d1|"];
177 [label="Access variable 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|()" style="filled" fillcolor=yellow];
180 [label="Exit block"];
162 [label="Enter block"];
163 [label="Access variable R|<local>/d1|"];
164 [label="Access variable R|/D.any|"];
165 [label="Variable declaration: lval a: R|kotlin/Any?|"];
166 [label="Access variable R|<local>/a|"];
167 [label="Type operator: (R|<local>/a| as R|A|)"];
168 [label="Access variable R|<local>/a|"];
169 [label="Smart cast: R|<local>/a|"];
170 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
171 [label="Access variable R|<local>/d1|"];
172 [label="Access variable R|/D.any|"];
173 [label="Smart cast: R|<local>/d1|.R|/D.any|"];
174 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()" style="filled" fillcolor=yellow];
175 [label="Access variable R|<local>/d1|"];
176 [label="Access variable R|/D.any|"];
177 [label="Smart cast: R|<local>/d1|.R|/D.any|"];
178 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()" style="filled" fillcolor=yellow];
179 [label="Exit block"];
}
181 [label="Exit function test_6" style="filled" fillcolor=red];
180 [label="Exit function test_6" style="filled" fillcolor=red];
}
161 -> {162};
162 -> {163};
163 -> {164};
164 -> {165};
@@ -479,46 +478,46 @@ digraph boundSmartcasts_kt {
177 -> {178};
178 -> {179};
179 -> {180};
180 -> {181};
subgraph cluster_36 {
color=red
182 [label="Enter function test_7" style="filled" fillcolor=red];
181 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_37 {
color=blue
183 [label="Enter block"];
184 [label="Access variable R|<local>/d1|"];
185 [label="Enter safe call"];
186 [label="Access variable R|/D.any|"];
187 [label="Exit safe call"];
188 [label="Variable declaration: lval a: R|kotlin/Any?|"];
189 [label="Access variable R|<local>/d2|"];
190 [label="Enter safe call"];
191 [label="Access variable R|/D.any|"];
192 [label="Exit safe call"];
193 [label="Variable declaration: lval b: R|kotlin/Any?|"];
194 [label="Access variable R|<local>/a|"];
195 [label="Type operator: (R|<local>/a| as R|A|)"];
196 [label="Access variable R|<local>/a|"];
197 [label="Smart cast: R|<local>/a|"];
198 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
199 [label="Access variable R|<local>/b|"];
200 [label="Type operator: (R|<local>/b| as R|B|)"];
201 [label="Access variable R|<local>/b|"];
202 [label="Smart cast: R|<local>/b|"];
203 [label="Function call: R|<local>/b|.R|/B.bar|()" style="filled" fillcolor=yellow];
204 [label="Exit block"];
182 [label="Enter block"];
183 [label="Access variable R|<local>/d1|"];
184 [label="Enter safe call"];
185 [label="Access variable R|/D.any|"];
186 [label="Exit safe call"];
187 [label="Variable declaration: lval a: R|kotlin/Any?|"];
188 [label="Access variable R|<local>/d2|"];
189 [label="Enter safe call"];
190 [label="Access variable R|/D.any|"];
191 [label="Exit safe call"];
192 [label="Variable declaration: lval b: R|kotlin/Any?|"];
193 [label="Access variable R|<local>/a|"];
194 [label="Type operator: (R|<local>/a| as R|A|)"];
195 [label="Access variable R|<local>/a|"];
196 [label="Smart cast: R|<local>/a|"];
197 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
198 [label="Access variable R|<local>/b|"];
199 [label="Type operator: (R|<local>/b| as R|B|)"];
200 [label="Access variable R|<local>/b|"];
201 [label="Smart cast: R|<local>/b|"];
202 [label="Function call: R|<local>/b|.R|/B.bar|()" style="filled" fillcolor=yellow];
203 [label="Exit block"];
}
205 [label="Exit function test_7" style="filled" fillcolor=red];
204 [label="Exit function test_7" style="filled" fillcolor=red];
}
181 -> {182};
182 -> {183};
183 -> {184};
184 -> {185 187};
183 -> {184 186};
184 -> {185};
185 -> {186};
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {190 192};
188 -> {189 191};
189 -> {190};
190 -> {191};
191 -> {192};
192 -> {193};
@@ -533,6 +532,5 @@ digraph boundSmartcasts_kt {
201 -> {202};
202 -> {203};
203 -> {204};
204 -> {205};
}
@@ -23,101 +23,99 @@ digraph functionCallBound_kt {
subgraph cluster_2 {
color=red
5 [label="Enter class Sub" style="filled" fillcolor=red];
6 [label="Part of class initialization"];
subgraph cluster_3 {
color=blue
7 [label="Enter property" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/data|"];
9 [label="Exit property" style="filled" fillcolor=red];
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/data|"];
8 [label="Exit property" style="filled" fillcolor=red];
}
10 [label="Exit class Sub" style="filled" fillcolor=red];
9 [label="Exit class Sub" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
11 [label="Enter function <init>" style="filled" fillcolor=red];
12 [label="Delegated constructor call: super<R|Base|>()" style="filled" fillcolor=yellow];
13 [label="Exit function <init>" style="filled" fillcolor=red];
10 [label="Enter function <init>" style="filled" fillcolor=red];
11 [label="Delegated constructor call: super<R|Base|>()" style="filled" fillcolor=yellow];
12 [label="Exit function <init>" style="filled" fillcolor=red];
}
5 -> {6} [color=green];
6 -> {7} [color=green];
6 -> {10} [style=dotted];
6 -> {7} [style=dashed];
5 -> {9} [style=dotted];
5 -> {6} [style=dashed];
6 -> {7};
7 -> {8};
8 -> {9};
8 -> {9} [color=green];
9 -> {10} [color=green];
10 -> {11} [color=green];
10 -> {11} [style=dashed];
9 -> {10} [style=dashed];
10 -> {11};
11 -> {12};
12 -> {13};
subgraph cluster_5 {
color=red
14 [label="Enter function isOk" style="filled" fillcolor=red];
13 [label="Enter function isOk" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
15 [label="Enter block"];
16 [label="Const: Boolean(true)"];
17 [label="Jump: ^isOk Boolean(true)"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit block" style="filled" fillcolor=gray];
14 [label="Enter block"];
15 [label="Const: Boolean(true)"];
16 [label="Jump: ^isOk Boolean(true)"];
17 [label="Stub" style="filled" fillcolor=gray];
18 [label="Exit block" style="filled" fillcolor=gray];
}
20 [label="Exit function isOk" style="filled" fillcolor=red];
19 [label="Exit function isOk" style="filled" fillcolor=red];
}
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {20};
16 -> {19};
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
19 -> {20} [style=dotted];
subgraph cluster_7 {
color=red
21 [label="Enter function check" style="filled" fillcolor=red];
20 [label="Enter function check" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
22 [label="Enter block"];
21 [label="Enter block"];
subgraph cluster_9 {
color=blue
23 [label="Enter when"];
22 [label="Enter when"];
subgraph cluster_10 {
color=blue
24 [label="Enter when branch condition "];
25 [label="Access variable R|<local>/base|"];
26 [label="Type operator: (R|<local>/base| as? R|Sub|)"];
27 [label="Enter safe call"];
28 [label="Function call: $subj$.R|/isOk|()" style="filled" fillcolor=yellow];
29 [label="Exit safe call"];
30 [label="Const: Boolean(true)"];
31 [label="Equality operator =="];
32 [label="Exit when branch condition"];
23 [label="Enter when branch condition "];
24 [label="Access variable R|<local>/base|"];
25 [label="Type operator: (R|<local>/base| as? R|Sub|)"];
26 [label="Enter safe call"];
27 [label="Function call: $subj$.R|/isOk|()" style="filled" fillcolor=yellow];
28 [label="Exit safe call"];
29 [label="Const: Boolean(true)"];
30 [label="Equality operator =="];
31 [label="Exit when branch condition"];
}
subgraph cluster_11 {
color=blue
33 [label="Enter when branch condition else"];
34 [label="Exit when branch condition"];
32 [label="Enter when branch condition else"];
33 [label="Exit when branch condition"];
}
35 [label="Enter when branch result"];
34 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
36 [label="Enter block"];
37 [label="Access variable R|<local>/base|"];
38 [label="Exit block"];
35 [label="Enter block"];
36 [label="Access variable R|<local>/base|"];
37 [label="Exit block"];
}
39 [label="Exit when branch result"];
40 [label="Enter when branch result"];
38 [label="Exit when branch result"];
39 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
41 [label="Enter block"];
42 [label="Access variable R|<local>/base|"];
43 [label="Smart cast: R|<local>/base|"];
44 [label="Access variable R|/Sub.data|"];
45 [label="Exit block"];
40 [label="Enter block"];
41 [label="Access variable R|<local>/base|"];
42 [label="Smart cast: R|<local>/base|"];
43 [label="Access variable R|/Sub.data|"];
44 [label="Exit block"];
}
46 [label="Exit when branch result"];
47 [label="Exit when"];
45 [label="Exit when branch result"];
46 [label="Exit when"];
}
48 [label="Jump: ^check when () {
47 [label="Jump: ^check when () {
==((R|<local>/base| as? R|Sub|)?.{ $subj$.R|/isOk|() }, Boolean(true)) -> {
R|<local>/base|.R|/Sub.data|
}
@@ -126,30 +124,31 @@ digraph functionCallBound_kt {
}
}
"];
49 [label="Stub" style="filled" fillcolor=gray];
50 [label="Exit block" style="filled" fillcolor=gray];
48 [label="Stub" style="filled" fillcolor=gray];
49 [label="Exit block" style="filled" fillcolor=gray];
}
51 [label="Exit function check" style="filled" fillcolor=red];
50 [label="Exit function check" style="filled" fillcolor=red];
}
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27 29};
25 -> {26 28};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33 40};
31 -> {32 39};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {47};
38 -> {46};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
@@ -157,10 +156,9 @@ digraph functionCallBound_kt {
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {51};
47 -> {50};
47 -> {48} [style=dotted];
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
}
@@ -23,191 +23,190 @@ digraph lambdaInWhenBranch_kt {
subgraph cluster_2 {
color=red
5 [label="Enter class SubClass1" style="filled" fillcolor=red];
6 [label="Part of class initialization"];
subgraph cluster_3 {
color=blue
7 [label="Enter property" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/t|"];
9 [label="Exit property" style="filled" fillcolor=red];
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/t|"];
8 [label="Exit property" style="filled" fillcolor=red];
}
10 [label="Exit class SubClass1" style="filled" fillcolor=red];
9 [label="Exit class SubClass1" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
11 [label="Enter function copy" style="filled" fillcolor=red];
12 [label="Enter default value of t"];
10 [label="Enter function copy" style="filled" fillcolor=red];
11 [label="Enter default value of t"];
subgraph cluster_5 {
color=blue
13 [label="Enter default value of t" style="filled" fillcolor=red];
14 [label="Access variable R|/SubClass1.t|"];
15 [label="Exit default value of t" style="filled" fillcolor=red];
12 [label="Enter default value of t" style="filled" fillcolor=red];
13 [label="Access variable R|/SubClass1.t|"];
14 [label="Exit default value of t" style="filled" fillcolor=red];
}
16 [label="Exit default value of t"];
17 [label="Exit function copy" style="filled" fillcolor=red];
15 [label="Exit default value of t"];
16 [label="Exit function copy" style="filled" fillcolor=red];
}
subgraph cluster_6 {
color=blue
18 [label="Enter function component1" style="filled" fillcolor=red];
19 [label="Exit function component1" style="filled" fillcolor=red];
17 [label="Enter function component1" style="filled" fillcolor=red];
18 [label="Exit function component1" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
20 [label="Enter function <init>" style="filled" fillcolor=red];
21 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow];
22 [label="Exit function <init>" style="filled" fillcolor=red];
19 [label="Enter function <init>" style="filled" fillcolor=red];
20 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow];
21 [label="Exit function <init>" style="filled" fillcolor=red];
}
5 -> {6} [color=green];
6 -> {7} [color=green];
6 -> {10} [style=dotted];
6 -> {7} [style=dashed];
5 -> {9} [style=dotted];
5 -> {6} [style=dashed];
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10} [color=green];
10 -> {11 18 20} [color=green];
10 -> {11 18 20} [style=dashed];
11 -> {12};
12 -> {13 16};
12 -> {13} [style=dashed];
8 -> {9} [color=green];
9 -> {10 17 19} [color=green];
9 -> {10 17 19} [style=dashed];
10 -> {11};
11 -> {12 15};
11 -> {12} [style=dashed];
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
18 -> {19};
17 -> {18};
19 -> {20};
20 -> {21};
21 -> {22};
subgraph cluster_8 {
color=red
23 [label="Enter class SubClass2" style="filled" fillcolor=red];
24 [label="Exit class SubClass2" style="filled" fillcolor=red];
22 [label="Enter class SubClass2" style="filled" fillcolor=red];
23 [label="Exit class SubClass2" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
25 [label="Enter function copy" style="filled" fillcolor=red];
26 [label="Exit function copy" style="filled" fillcolor=red];
24 [label="Enter function copy" style="filled" fillcolor=red];
25 [label="Exit function copy" style="filled" fillcolor=red];
}
subgraph cluster_10 {
color=blue
27 [label="Enter function <init>" style="filled" fillcolor=red];
28 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow];
29 [label="Exit function <init>" style="filled" fillcolor=red];
26 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow];
28 [label="Exit function <init>" style="filled" fillcolor=red];
}
23 -> {24} [color=green];
24 -> {25 27} [color=green];
24 -> {25 27} [style=dashed];
25 -> {26};
22 -> {23} [color=green];
23 -> {24 26} [color=green];
23 -> {24 26} [style=dashed];
24 -> {25};
26 -> {27};
27 -> {28};
28 -> {29};
subgraph cluster_11 {
color=red
30 [label="Enter function foo" style="filled" fillcolor=red];
29 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
31 [label="Enter block"];
30 [label="Enter block"];
subgraph cluster_13 {
color=blue
32 [label="Enter when"];
33 [label="Access variable R|<local>/p|"];
31 [label="Enter when"];
32 [label="Access variable R|<local>/p|"];
subgraph cluster_14 {
color=blue
34 [label="Enter when branch condition "];
35 [label="Exit $subj"];
36 [label="Type operator: ($subj$ is R|SubClass1|)"];
37 [label="Exit when branch condition"];
33 [label="Enter when branch condition "];
34 [label="Exit $subj"];
35 [label="Type operator: ($subj$ is R|SubClass1|)"];
36 [label="Exit when branch condition"];
}
subgraph cluster_15 {
color=blue
38 [label="Enter when branch condition "];
39 [label="Exit $subj"];
40 [label="Type operator: ($subj$ is R|SubClass2|)"];
41 [label="Exit when branch condition"];
37 [label="Enter when branch condition "];
38 [label="Exit $subj"];
39 [label="Type operator: ($subj$ is R|SubClass2|)"];
40 [label="Exit when branch condition"];
}
42 [label="Enter when branch result"];
41 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
43 [label="Enter block"];
44 [label="Const: String()"];
45 [label="Exit block"];
42 [label="Enter block"];
43 [label="Const: String()"];
44 [label="Exit block"];
}
46 [label="Exit when branch result"];
47 [label="Enter when branch result"];
45 [label="Exit when branch result"];
46 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
48 [label="Enter block"];
49 [label="Const: String()"];
50 [label="Postponed enter to lambda"];
47 [label="Enter block"];
48 [label="Const: String()"];
49 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
51 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
50 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
52 [label="Enter block"];
53 [label="Access variable R|<local>/it|"];
54 [label="Exit block"];
51 [label="Enter block"];
52 [label="Access variable R|<local>/it|"];
53 [label="Exit block"];
}
55 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
54 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
56 [label="Postponed exit from lambda"];
57 [label="Function call: String().R|kotlin/let|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
58 [label="Exit block"];
55 [label="Postponed exit from lambda"];
56 [label="Function call: String().R|kotlin/let|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
57 [label="Exit block"];
}
59 [label="Exit when branch result"];
60 [label="Exit when"];
58 [label="Exit when branch result"];
59 [label="Exit when"];
}
61 [label="Access variable R|<local>/p|"];
62 [label="Access variable <Unresolved name: t>#"];
60 [label="Access variable R|<local>/p|"];
61 [label="Access variable <Unresolved name: t>#"];
subgraph cluster_20 {
color=blue
63 [label="Enter when"];
64 [label="Access variable R|<local>/p|"];
62 [label="Enter when"];
63 [label="Access variable R|<local>/p|"];
subgraph cluster_21 {
color=blue
65 [label="Enter when branch condition "];
66 [label="Exit $subj"];
67 [label="Type operator: ($subj$ is R|SubClass1|)"];
68 [label="Exit when branch condition"];
64 [label="Enter when branch condition "];
65 [label="Exit $subj"];
66 [label="Type operator: ($subj$ is R|SubClass1|)"];
67 [label="Exit when branch condition"];
}
subgraph cluster_22 {
color=blue
69 [label="Enter when branch condition "];
70 [label="Exit $subj"];
71 [label="Type operator: ($subj$ is R|SubClass2|)"];
72 [label="Exit when branch condition"];
68 [label="Enter when branch condition "];
69 [label="Exit $subj"];
70 [label="Type operator: ($subj$ is R|SubClass2|)"];
71 [label="Exit when branch condition"];
}
73 [label="Enter when branch result"];
72 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
74 [label="Enter block"];
75 [label="Const: String(2)"];
76 [label="Exit block"];
73 [label="Enter block"];
74 [label="Const: String(2)"];
75 [label="Exit block"];
}
77 [label="Exit when branch result"];
78 [label="Enter when branch result"];
76 [label="Exit when branch result"];
77 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
79 [label="Enter block"];
80 [label="Access variable R|<local>/p|"];
81 [label="Smart cast: R|<local>/p|"];
82 [label="Access variable R|/SubClass1.t|"];
83 [label="Exit block"];
78 [label="Enter block"];
79 [label="Access variable R|<local>/p|"];
80 [label="Smart cast: R|<local>/p|"];
81 [label="Access variable R|/SubClass1.t|"];
82 [label="Exit block"];
}
84 [label="Exit when branch result"];
85 [label="Exit when"];
83 [label="Exit when branch result"];
84 [label="Exit when"];
}
86 [label="Access variable R|kotlin/String.length|"];
87 [label="Exit block"];
85 [label="Access variable R|kotlin/String.length|"];
86 [label="Exit block"];
}
88 [label="Exit function foo" style="filled" fillcolor=red];
87 [label="Exit function foo" style="filled" fillcolor=red];
}
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38 47};
36 -> {37 46};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
@@ -215,21 +214,21 @@ digraph lambdaInWhenBranch_kt {
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {60};
45 -> {59};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51 57};
50 -> {56} [style=dotted];
50 -> {51} [style=dashed];
49 -> {50 56};
49 -> {55} [style=dotted];
49 -> {50} [style=dashed];
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57} [color=green];
56 -> {60} [color=red];
55 -> {56} [color=green];
55 -> {59} [color=red];
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
@@ -240,8 +239,8 @@ digraph lambdaInWhenBranch_kt {
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69 78};
67 -> {68 77};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
@@ -249,8 +248,8 @@ digraph lambdaInWhenBranch_kt {
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {85};
76 -> {84};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
@@ -260,6 +259,5 @@ digraph lambdaInWhenBranch_kt {
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
}
File diff suppressed because it is too large Load Diff
@@ -6,108 +6,107 @@ digraph assignSafeCall_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Part of class initialization"];
subgraph cluster_1 {
color=blue
2 [label="Enter property" style="filled" fillcolor=red];
3 [label="Const: Int(1)"];
4 [label="Exit property" style="filled" fillcolor=red];
1 [label="Enter property" style="filled" fillcolor=red];
2 [label="Const: Int(1)"];
3 [label="Exit property" style="filled" fillcolor=red];
}
5 [label="Exit class A" style="filled" fillcolor=red];
4 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_2 {
color=blue
6 [label="Enter function bar" style="filled" fillcolor=red];
5 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
7 [label="Enter block"];
8 [label="Exit block"];
6 [label="Enter block"];
7 [label="Exit block"];
}
9 [label="Exit function bar" style="filled" fillcolor=red];
8 [label="Exit function bar" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
10 [label="Enter function foo" style="filled" fillcolor=red];
9 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
11 [label="Enter block"];
12 [label="Const: Int(1)"];
13 [label="Jump: ^foo Int(1)"];
14 [label="Stub" style="filled" fillcolor=gray];
15 [label="Exit block" style="filled" fillcolor=gray];
10 [label="Enter block"];
11 [label="Const: Int(1)"];
12 [label="Jump: ^foo Int(1)"];
13 [label="Stub" style="filled" fillcolor=gray];
14 [label="Exit block" style="filled" fillcolor=gray];
}
16 [label="Exit function foo" style="filled" fillcolor=red];
15 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_6 {
color=blue
17 [label="Enter function <init>" style="filled" fillcolor=red];
18 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
19 [label="Exit function <init>" style="filled" fillcolor=red];
16 [label="Enter function <init>" style="filled" fillcolor=red];
17 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
18 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {5} [style=dotted];
1 -> {2} [style=dashed];
0 -> {4} [style=dotted];
0 -> {1} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5} [color=green];
5 -> {6 10 17} [color=green];
5 -> {6 10 17} [style=dashed];
3 -> {4} [color=green];
4 -> {5 9 16} [color=green];
4 -> {5 9 16} [style=dashed];
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {16};
12 -> {15};
12 -> {13} [style=dotted];
13 -> {14} [style=dotted];
14 -> {15} [style=dotted];
15 -> {16} [style=dotted];
16 -> {17};
17 -> {18};
18 -> {19};
subgraph cluster_7 {
color=red
20 [label="Enter function test_1" style="filled" fillcolor=red];
19 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
21 [label="Enter block"];
22 [label="Access variable R|<local>/a|"];
23 [label="Enter safe call"];
24 [label="Access variable R|/A.x|"];
25 [label="Exit safe call"];
26 [label="Variable declaration: lval x: R|kotlin/Int?|"];
20 [label="Enter block"];
21 [label="Access variable R|<local>/a|"];
22 [label="Enter safe call"];
23 [label="Access variable R|/A.x|"];
24 [label="Exit safe call"];
25 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_9 {
color=blue
27 [label="Enter when"];
26 [label="Enter when"];
subgraph cluster_10 {
color=blue
28 [label="Enter when branch condition "];
29 [label="Access variable R|<local>/x|"];
30 [label="Const: Null(null)"];
31 [label="Equality operator !="];
32 [label="Exit when branch condition"];
27 [label="Enter when branch condition "];
28 [label="Access variable R|<local>/x|"];
29 [label="Const: Null(null)"];
30 [label="Equality operator !="];
31 [label="Exit when branch condition"];
}
33 [label="Synthetic else branch"];
34 [label="Enter when branch result"];
32 [label="Synthetic else branch"];
33 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
35 [label="Enter block"];
36 [label="Access variable R|<local>/a|"];
37 [label="Smart cast: R|<local>/a|"];
38 [label="Function call: R|<local>/a|.R|/A.bar|()" style="filled" fillcolor=yellow];
39 [label="Exit block"];
34 [label="Enter block"];
35 [label="Access variable R|<local>/a|"];
36 [label="Smart cast: R|<local>/a|"];
37 [label="Function call: R|<local>/a|.R|/A.bar|()" style="filled" fillcolor=yellow];
38 [label="Exit block"];
}
40 [label="Exit when branch result"];
41 [label="Exit when"];
39 [label="Exit when branch result"];
40 [label="Exit when"];
}
42 [label="Exit block"];
41 [label="Exit block"];
}
43 [label="Exit function test_1" style="filled" fillcolor=red];
42 [label="Exit function test_1" style="filled" fillcolor=red];
}
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23 25};
21 -> {22 24};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
@@ -116,9 +115,9 @@ digraph assignSafeCall_kt {
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33 34};
33 -> {41};
31 -> {32 33};
32 -> {40};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
@@ -127,50 +126,50 @@ digraph assignSafeCall_kt {
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
subgraph cluster_12 {
color=red
44 [label="Enter function test_2" style="filled" fillcolor=red];
43 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
45 [label="Enter block"];
46 [label="Access variable R|<local>/a|"];
47 [label="Enter safe call"];
48 [label="Function call: $subj$.R|/A.foo|()" style="filled" fillcolor=yellow];
49 [label="Exit safe call"];
50 [label="Variable declaration: lval x: R|kotlin/Int?|"];
44 [label="Enter block"];
45 [label="Access variable R|<local>/a|"];
46 [label="Enter safe call"];
47 [label="Function call: $subj$.R|/A.foo|()" style="filled" fillcolor=yellow];
48 [label="Exit safe call"];
49 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_14 {
color=blue
51 [label="Enter when"];
50 [label="Enter when"];
subgraph cluster_15 {
color=blue
52 [label="Enter when branch condition "];
53 [label="Access variable R|<local>/x|"];
54 [label="Const: Null(null)"];
55 [label="Equality operator !="];
56 [label="Exit when branch condition"];
51 [label="Enter when branch condition "];
52 [label="Access variable R|<local>/x|"];
53 [label="Const: Null(null)"];
54 [label="Equality operator !="];
55 [label="Exit when branch condition"];
}
57 [label="Synthetic else branch"];
58 [label="Enter when branch result"];
56 [label="Synthetic else branch"];
57 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
59 [label="Enter block"];
60 [label="Access variable R|<local>/a|"];
61 [label="Smart cast: R|<local>/a|"];
62 [label="Function call: R|<local>/a|.R|/A.bar|()" style="filled" fillcolor=yellow];
63 [label="Exit block"];
58 [label="Enter block"];
59 [label="Access variable R|<local>/a|"];
60 [label="Smart cast: R|<local>/a|"];
61 [label="Function call: R|<local>/a|.R|/A.bar|()" style="filled" fillcolor=yellow];
62 [label="Exit block"];
}
64 [label="Exit when branch result"];
65 [label="Exit when"];
63 [label="Exit when branch result"];
64 [label="Exit when"];
}
66 [label="Exit block"];
65 [label="Exit block"];
}
67 [label="Exit function test_2" style="filled" fillcolor=red];
66 [label="Exit function test_2" style="filled" fillcolor=red];
}
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47 49};
45 -> {46 48};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
@@ -179,9 +178,9 @@ digraph assignSafeCall_kt {
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57 58};
57 -> {65};
55 -> {56 57};
56 -> {64};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
@@ -190,41 +189,41 @@ digraph assignSafeCall_kt {
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
subgraph cluster_17 {
color=red
68 [label="Enter function test_3" style="filled" fillcolor=red];
67 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
69 [label="Enter block"];
70 [label="Access variable R|<local>/x|"];
71 [label="Type operator: (R|<local>/x| as? R|A|)"];
72 [label="Exit lhs of ?:"];
73 [label="Enter rhs of ?:"];
74 [label="Jump: ^test_3 Unit"];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Lhs of ?: is not null"];
77 [label="Exit ?:"];
78 [label="Variable declaration: lval a: R|A|"];
79 [label="Access variable R|<local>/a|"];
80 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
81 [label="Access variable R|<local>/x|"];
82 [label="Smart cast: R|<local>/x|"];
83 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
84 [label="Exit block"];
68 [label="Enter block"];
69 [label="Access variable R|<local>/x|"];
70 [label="Type operator: (R|<local>/x| as? R|A|)"];
71 [label="Exit lhs of ?:"];
72 [label="Enter rhs of ?:"];
73 [label="Jump: ^test_3 Unit"];
74 [label="Stub" style="filled" fillcolor=gray];
75 [label="Lhs of ?: is not null"];
76 [label="Exit ?:"];
77 [label="Variable declaration: lval a: R|A|"];
78 [label="Access variable R|<local>/a|"];
79 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
80 [label="Access variable R|<local>/x|"];
81 [label="Smart cast: R|<local>/x|"];
82 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
83 [label="Exit block"];
}
85 [label="Exit function test_3" style="filled" fillcolor=red];
84 [label="Exit function test_3" style="filled" fillcolor=red];
}
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73 76};
73 -> {74};
74 -> {85};
74 -> {75} [style=dotted];
75 -> {77} [style=dotted];
71 -> {72 75};
72 -> {73};
73 -> {84};
73 -> {74} [style=dotted];
74 -> {76} [style=dotted];
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
@@ -233,71 +232,71 @@ digraph assignSafeCall_kt {
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
subgraph cluster_19 {
color=red
86 [label="Enter class B" style="filled" fillcolor=red];
87 [label="Exit class B" style="filled" fillcolor=red];
85 [label="Enter class B" style="filled" fillcolor=red];
86 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_20 {
color=blue
88 [label="Enter function bar" style="filled" fillcolor=red];
89 [label="Exit function bar" style="filled" fillcolor=red];
87 [label="Enter function bar" style="filled" fillcolor=red];
88 [label="Exit function bar" style="filled" fillcolor=red];
}
subgraph cluster_21 {
color=blue
90 [label="Enter function foo" style="filled" fillcolor=red];
91 [label="Exit function foo" style="filled" fillcolor=red];
89 [label="Enter function foo" style="filled" fillcolor=red];
90 [label="Exit function foo" style="filled" fillcolor=red];
}
86 -> {87} [color=green];
87 -> {88 90} [color=green];
87 -> {88 90} [style=dashed];
88 -> {89};
90 -> {91};
85 -> {86} [color=green];
86 -> {87 89} [color=green];
86 -> {87 89} [style=dashed];
87 -> {88};
89 -> {90};
subgraph cluster_22 {
color=red
92 [label="Enter function test_1" style="filled" fillcolor=red];
91 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
93 [label="Enter block"];
94 [label="Access variable R|<local>/a|"];
95 [label="Enter safe call"];
96 [label="Access variable R|/B.x|"];
97 [label="Exit safe call"];
98 [label="Variable declaration: lval x: R|kotlin/Int?|"];
92 [label="Enter block"];
93 [label="Access variable R|<local>/a|"];
94 [label="Enter safe call"];
95 [label="Access variable R|/B.x|"];
96 [label="Exit safe call"];
97 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_24 {
color=blue
99 [label="Enter when"];
98 [label="Enter when"];
subgraph cluster_25 {
color=blue
100 [label="Enter when branch condition "];
101 [label="Access variable R|<local>/x|"];
102 [label="Const: Null(null)"];
103 [label="Equality operator !="];
104 [label="Exit when branch condition"];
99 [label="Enter when branch condition "];
100 [label="Access variable R|<local>/x|"];
101 [label="Const: Null(null)"];
102 [label="Equality operator !="];
103 [label="Exit when branch condition"];
}
105 [label="Synthetic else branch"];
106 [label="Enter when branch result"];
104 [label="Synthetic else branch"];
105 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
107 [label="Enter block"];
108 [label="Access variable R|<local>/a|"];
109 [label="Smart cast: R|<local>/a|"];
110 [label="Function call: R|<local>/a|.R|/B.bar|()" style="filled" fillcolor=yellow];
111 [label="Exit block"];
106 [label="Enter block"];
107 [label="Access variable R|<local>/a|"];
108 [label="Smart cast: R|<local>/a|"];
109 [label="Function call: R|<local>/a|.R|/B.bar|()" style="filled" fillcolor=yellow];
110 [label="Exit block"];
}
112 [label="Exit when branch result"];
113 [label="Exit when"];
111 [label="Exit when branch result"];
112 [label="Exit when"];
}
114 [label="Exit block"];
113 [label="Exit block"];
}
115 [label="Exit function test_1" style="filled" fillcolor=red];
114 [label="Exit function test_1" style="filled" fillcolor=red];
}
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95 97};
93 -> {94 96};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
@@ -306,9 +305,9 @@ digraph assignSafeCall_kt {
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105 106};
105 -> {113};
103 -> {104 105};
104 -> {112};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
@@ -317,50 +316,50 @@ digraph assignSafeCall_kt {
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
subgraph cluster_27 {
color=red
116 [label="Enter function test_2" style="filled" fillcolor=red];
115 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_28 {
color=blue
117 [label="Enter block"];
118 [label="Access variable R|<local>/a|"];
119 [label="Enter safe call"];
120 [label="Function call: $subj$.R|/B.foo|()" style="filled" fillcolor=yellow];
121 [label="Exit safe call"];
122 [label="Variable declaration: lval x: R|kotlin/Int?|"];
116 [label="Enter block"];
117 [label="Access variable R|<local>/a|"];
118 [label="Enter safe call"];
119 [label="Function call: $subj$.R|/B.foo|()" style="filled" fillcolor=yellow];
120 [label="Exit safe call"];
121 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_29 {
color=blue
123 [label="Enter when"];
122 [label="Enter when"];
subgraph cluster_30 {
color=blue
124 [label="Enter when branch condition "];
125 [label="Access variable R|<local>/x|"];
126 [label="Const: Null(null)"];
127 [label="Equality operator !="];
128 [label="Exit when branch condition"];
123 [label="Enter when branch condition "];
124 [label="Access variable R|<local>/x|"];
125 [label="Const: Null(null)"];
126 [label="Equality operator !="];
127 [label="Exit when branch condition"];
}
129 [label="Synthetic else branch"];
130 [label="Enter when branch result"];
128 [label="Synthetic else branch"];
129 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
131 [label="Enter block"];
132 [label="Access variable R|<local>/a|"];
133 [label="Smart cast: R|<local>/a|"];
134 [label="Function call: R|<local>/a|.R|/B.bar|()" style="filled" fillcolor=yellow];
135 [label="Exit block"];
130 [label="Enter block"];
131 [label="Access variable R|<local>/a|"];
132 [label="Smart cast: R|<local>/a|"];
133 [label="Function call: R|<local>/a|.R|/B.bar|()" style="filled" fillcolor=yellow];
134 [label="Exit block"];
}
136 [label="Exit when branch result"];
137 [label="Exit when"];
135 [label="Exit when branch result"];
136 [label="Exit when"];
}
138 [label="Exit block"];
137 [label="Exit block"];
}
139 [label="Exit function test_2" style="filled" fillcolor=red];
138 [label="Exit function test_2" style="filled" fillcolor=red];
}
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119 121};
117 -> {118 120};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
@@ -369,9 +368,9 @@ digraph assignSafeCall_kt {
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {129 130};
129 -> {137};
127 -> {128 129};
128 -> {136};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
@@ -380,41 +379,41 @@ digraph assignSafeCall_kt {
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
subgraph cluster_32 {
color=red
140 [label="Enter function test_3" style="filled" fillcolor=red];
139 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
141 [label="Enter block"];
142 [label="Access variable R|<local>/x|"];
143 [label="Type operator: (R|<local>/x| as? R|B|)"];
144 [label="Exit lhs of ?:"];
145 [label="Enter rhs of ?:"];
146 [label="Jump: ^test_3 Unit"];
147 [label="Stub" style="filled" fillcolor=gray];
148 [label="Lhs of ?: is not null"];
149 [label="Exit ?:"];
150 [label="Variable declaration: lval a: R|B|"];
151 [label="Access variable R|<local>/a|"];
152 [label="Function call: R|<local>/a|.R|/B.foo|()" style="filled" fillcolor=yellow];
153 [label="Access variable R|<local>/x|"];
154 [label="Smart cast: R|<local>/x|"];
155 [label="Function call: R|<local>/x|.R|/B.foo|()" style="filled" fillcolor=yellow];
156 [label="Exit block"];
140 [label="Enter block"];
141 [label="Access variable R|<local>/x|"];
142 [label="Type operator: (R|<local>/x| as? R|B|)"];
143 [label="Exit lhs of ?:"];
144 [label="Enter rhs of ?:"];
145 [label="Jump: ^test_3 Unit"];
146 [label="Stub" style="filled" fillcolor=gray];
147 [label="Lhs of ?: is not null"];
148 [label="Exit ?:"];
149 [label="Variable declaration: lval a: R|B|"];
150 [label="Access variable R|<local>/a|"];
151 [label="Function call: R|<local>/a|.R|/B.foo|()" style="filled" fillcolor=yellow];
152 [label="Access variable R|<local>/x|"];
153 [label="Smart cast: R|<local>/x|"];
154 [label="Function call: R|<local>/x|.R|/B.foo|()" style="filled" fillcolor=yellow];
155 [label="Exit block"];
}
157 [label="Exit function test_3" style="filled" fillcolor=red];
156 [label="Exit function test_3" style="filled" fillcolor=red];
}
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145 148};
145 -> {146};
146 -> {157};
146 -> {147} [style=dotted];
147 -> {149} [style=dotted];
143 -> {144 147};
144 -> {145};
145 -> {156};
145 -> {146} [style=dotted];
146 -> {148} [style=dotted];
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
@@ -423,6 +422,5 @@ digraph assignSafeCall_kt {
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {157};
}
@@ -50,34 +50,33 @@ digraph smartCastInInit_kt {
subgraph cluster_5 {
color=red
14 [label="Enter class Main" style="filled" fillcolor=red];
15 [label="Part of class initialization"];
subgraph cluster_6 {
color=blue
16 [label="Enter init block" style="filled" fillcolor=red];
15 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
17 [label="Enter block"];
18 [label="Function call: R|/s|()" style="filled" fillcolor=yellow];
19 [label="Assignment: R|/Main.x|"];
20 [label="Access variable R|/Main.x|"];
21 [label="Smart cast: this@R|/Main|.R|/Main.x|"];
22 [label="Function call: this@R|/Main|.R|/Main.x|.R|/S.foo|()" style="filled" fillcolor=yellow];
23 [label="Exit block"];
16 [label="Enter block"];
17 [label="Function call: R|/s|()" style="filled" fillcolor=yellow];
18 [label="Assignment: R|/Main.x|"];
19 [label="Access variable R|/Main.x|"];
20 [label="Smart cast: this@R|/Main|.R|/Main.x|"];
21 [label="Function call: this@R|/Main|.R|/Main.x|.R|/S.foo|()" style="filled" fillcolor=yellow];
22 [label="Exit block"];
}
24 [label="Exit init block" style="filled" fillcolor=red];
23 [label="Exit init block" style="filled" fillcolor=red];
}
25 [label="Exit class Main" style="filled" fillcolor=red];
24 [label="Exit class Main" style="filled" fillcolor=red];
}
subgraph cluster_8 {
color=blue
26 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
28 [label="Exit function <init>" style="filled" fillcolor=red];
25 [label="Enter function <init>" style="filled" fillcolor=red];
26 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
27 [label="Exit function <init>" style="filled" fillcolor=red];
}
14 -> {15} [color=green];
15 -> {16} [color=green];
15 -> {25} [style=dotted];
15 -> {16} [style=dashed];
14 -> {24} [style=dotted];
14 -> {15} [style=dashed];
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
@@ -85,11 +84,10 @@ digraph smartCastInInit_kt {
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
23 -> {24} [color=green];
24 -> {25} [color=green];
25 -> {26} [color=green];
25 -> {26} [style=dashed];
24 -> {25} [style=dashed];
25 -> {26};
26 -> {27};
27 -> {28};
}
@@ -6,133 +6,123 @@ digraph smartcastInByClause_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Part of class initialization"];
subgraph cluster_1 {
color=blue
2 [label="Enter property" style="filled" fillcolor=red];
3 [label="Access variable R|<local>/path|"];
4 [label="Exit property" style="filled" fillcolor=red];
1 [label="Enter property" style="filled" fillcolor=red];
2 [label="Access variable R|<local>/path|"];
3 [label="Exit property" style="filled" fillcolor=red];
}
5 [label="Part of class initialization"];
subgraph cluster_2 {
color=blue
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/index|"];
8 [label="Exit property" style="filled" fillcolor=red];
4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Access variable R|<local>/index|"];
6 [label="Exit property" style="filled" fillcolor=red];
}
9 [label="Exit class A" style="filled" fillcolor=red];
7 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_3 {
color=blue
10 [label="Enter function <init>" style="filled" fillcolor=red];
11 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
12 [label="Exit function <init>" style="filled" fillcolor=red];
8 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
10 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {5} [style=dotted];
1 -> {2} [style=dashed];
0 -> {7} [style=dotted];
0 -> {1 4} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5} [color=green];
5 -> {6} [color=green];
5 -> {9} [style=dotted];
5 -> {6} [style=dashed];
6 -> {7};
7 -> {8};
8 -> {9} [color=green];
9 -> {10} [color=green];
9 -> {10} [style=dashed];
10 -> {11};
11 -> {12};
3 -> {4} [color=green];
4 -> {5};
5 -> {6};
6 -> {7} [color=green];
7 -> {8} [color=green];
7 -> {8} [style=dashed];
8 -> {9};
9 -> {10};
subgraph cluster_4 {
color=red
13 [label="Enter class Base" style="filled" fillcolor=red];
14 [label="Exit class Base" style="filled" fillcolor=red];
11 [label="Enter class Base" style="filled" fillcolor=red];
12 [label="Exit class Base" style="filled" fillcolor=red];
}
13 -> {14} [color=green];
11 -> {12} [color=green];
subgraph cluster_5 {
color=red
15 [label="Enter class Derived" style="filled" fillcolor=red];
16 [label="Part of class initialization"];
13 [label="Enter class Derived" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
17 [label="Enter property" style="filled" fillcolor=red];
18 [label="Access variable R|<local>/index|"];
19 [label="Exit property" style="filled" fillcolor=red];
14 [label="Enter property" style="filled" fillcolor=red];
15 [label="Access variable R|<local>/index|"];
16 [label="Exit property" style="filled" fillcolor=red];
}
20 [label="Exit class Derived" style="filled" fillcolor=red];
17 [label="Exit class Derived" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
21 [label="Enter function <init>" style="filled" fillcolor=red];
22 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
23 [label="Exit function <init>" style="filled" fillcolor=red];
18 [label="Enter function <init>" style="filled" fillcolor=red];
19 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
20 [label="Exit function <init>" style="filled" fillcolor=red];
}
15 -> {16} [color=green];
13 -> {14} [color=green];
13 -> {17} [style=dotted];
13 -> {14} [style=dashed];
14 -> {15};
15 -> {16};
16 -> {17} [color=green];
16 -> {20} [style=dotted];
16 -> {17} [style=dashed];
17 -> {18};
17 -> {18} [color=green];
17 -> {18} [style=dashed];
18 -> {19};
19 -> {20} [color=green];
20 -> {21} [color=green];
20 -> {21} [style=dashed];
21 -> {22};
22 -> {23};
19 -> {20};
subgraph cluster_8 {
color=red
24 [label="Enter function test" style="filled" fillcolor=red];
21 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
25 [label="Enter block"];
26 [label="Access variable R|<local>/a|"];
27 [label="Enter safe call"];
28 [label="Access variable R|/A.path|"];
29 [label="Exit safe call"];
30 [label="Exit lhs of ?:"];
31 [label="Enter rhs of ?:"];
32 [label="Const: Null(null)"];
33 [label="Jump: ^test Null(null)"];
34 [label="Stub" style="filled" fillcolor=gray];
35 [label="Lhs of ?: is not null"];
36 [label="Exit ?:"];
37 [label="Variable declaration: lval path: R|kotlin/String|"];
38 [label="Access variable R|<local>/a|"];
39 [label="Smart cast: R|<local>/a|"];
40 [label="Access variable R|/A.index|"];
41 [label="Function call: R|/takeInt|(...)" style="filled" fillcolor=yellow];
42 [label="Enter anonymous object"];
22 [label="Enter block"];
23 [label="Access variable R|<local>/a|"];
24 [label="Enter safe call"];
25 [label="Access variable R|/A.path|"];
26 [label="Exit safe call"];
27 [label="Exit lhs of ?:"];
28 [label="Enter rhs of ?:"];
29 [label="Const: Null(null)"];
30 [label="Jump: ^test Null(null)"];
31 [label="Stub" style="filled" fillcolor=gray];
32 [label="Lhs of ?: is not null"];
33 [label="Exit ?:"];
34 [label="Variable declaration: lval path: R|kotlin/String|"];
35 [label="Access variable R|<local>/a|"];
36 [label="Smart cast: R|<local>/a|"];
37 [label="Access variable R|/A.index|"];
38 [label="Function call: R|/takeInt|(...)" style="filled" fillcolor=yellow];
39 [label="Enter anonymous object"];
subgraph cluster_10 {
color=blue
43 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
44 [label="Part of class initialization"];
40 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
45 [label="Enter field" style="filled" fillcolor=red];
46 [label="Access variable R|<local>/a|"];
47 [label="Smart cast: R|<local>/a|"];
48 [label="Access variable R|/A.index|"];
49 [label="Function call: R|/Derived.Derived|(...)" style="filled" fillcolor=yellow];
50 [label="Exit field" style="filled" fillcolor=red];
41 [label="Enter field" style="filled" fillcolor=red];
42 [label="Access variable R|<local>/a|"];
43 [label="Smart cast: R|<local>/a|"];
44 [label="Access variable R|/A.index|"];
45 [label="Function call: R|/Derived.Derived|(...)" style="filled" fillcolor=yellow];
46 [label="Exit field" style="filled" fillcolor=red];
}
51 [label="Part of class initialization"];
subgraph cluster_12 {
color=blue
52 [label="Enter property" style="filled" fillcolor=red];
53 [label="Access variable R|<local>/a|"];
54 [label="Smart cast: R|<local>/a|"];
55 [label="Access variable R|/A.index|"];
56 [label="Exit property" style="filled" fillcolor=red];
47 [label="Enter property" style="filled" fillcolor=red];
48 [label="Access variable R|<local>/a|"];
49 [label="Smart cast: R|<local>/a|"];
50 [label="Access variable R|/A.index|"];
51 [label="Exit property" style="filled" fillcolor=red];
}
57 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
52 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
}
58 [label="Exit anonymous object"];
59 [label="Exit anonymous object expression"];
60 [label="Jump: ^test object : R|Base| {
53 [label="Exit anonymous object"];
54 [label="Exit anonymous object expression"];
55 [label="Jump: ^test object : R|Base| {
private constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
@@ -148,102 +138,98 @@ digraph smartcastInByClause_kt {
}
"];
61 [label="Stub" style="filled" fillcolor=gray];
62 [label="Exit block" style="filled" fillcolor=gray];
56 [label="Stub" style="filled" fillcolor=gray];
57 [label="Exit block" style="filled" fillcolor=gray];
}
63 [label="Exit function test" style="filled" fillcolor=red];
58 [label="Exit function test" style="filled" fillcolor=red];
}
subgraph cluster_13 {
color=blue
64 [label="Enter function foo" style="filled" fillcolor=red];
59 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
65 [label="Enter block"];
66 [label="Access variable R|<local>/a|"];
67 [label="Smart cast: R|<local>/a|"];
68 [label="Access variable R|/A.index|"];
69 [label="Function call: R|/takeInt|(...)" style="filled" fillcolor=yellow];
70 [label="Exit block"];
60 [label="Enter block"];
61 [label="Access variable R|<local>/a|"];
62 [label="Smart cast: R|<local>/a|"];
63 [label="Access variable R|/A.index|"];
64 [label="Function call: R|/takeInt|(...)" style="filled" fillcolor=yellow];
65 [label="Exit block"];
}
71 [label="Exit function foo" style="filled" fillcolor=red];
66 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_15 {
color=blue
72 [label="Enter function <init>" style="filled" fillcolor=red];
73 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
74 [label="Exit function <init>" style="filled" fillcolor=red];
67 [label="Enter function <init>" style="filled" fillcolor=red];
68 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
69 [label="Exit function <init>" style="filled" fillcolor=red];
}
21 -> {22};
22 -> {23};
23 -> {24 28};
24 -> {25};
25 -> {26};
26 -> {27 31};
27 -> {28};
26 -> {27};
27 -> {28 32};
28 -> {29};
29 -> {30};
30 -> {31 35};
31 -> {32};
30 -> {58};
30 -> {31} [style=dotted];
31 -> {33} [style=dotted];
32 -> {33};
33 -> {63};
33 -> {34} [style=dotted];
34 -> {36} [style=dotted];
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
39 -> {53} [color=red];
39 -> {40} [style=dashed];
40 -> {41};
40 -> {47 59 67} [color=red];
40 -> {52} [style=dotted];
40 -> {41 47} [style=dashed];
41 -> {42};
42 -> {43};
42 -> {58} [color=red];
42 -> {43} [style=dashed];
43 -> {44} [color=green];
43 -> {45 52 64 72} [color=red];
44 -> {45} [color=green];
44 -> {51} [style=dotted];
44 -> {45} [style=dashed];
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
46 -> {47} [color=green];
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51} [color=green];
50 -> {51};
51 -> {52} [color=green];
51 -> {57} [style=dotted];
51 -> {52} [style=dashed];
52 -> {53};
52 -> {53 59 67} [color=green];
52 -> {59 67} [style=dashed];
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57} [color=green];
57 -> {58 64 72} [color=green];
57 -> {64 72} [style=dashed];
58 -> {59};
55 -> {58};
55 -> {56} [style=dotted];
56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
59 -> {60};
60 -> {63};
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
62 -> {63} [style=dotted];
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
72 -> {73};
73 -> {74};
subgraph cluster_16 {
color=red
75 [label="Enter function takeInt" style="filled" fillcolor=red];
70 [label="Enter function takeInt" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
76 [label="Enter block"];
77 [label="Exit block"];
71 [label="Enter block"];
72 [label="Exit block"];
}
78 [label="Exit function takeInt" style="filled" fillcolor=red];
73 [label="Exit function takeInt" style="filled" fillcolor=red];
}
75 -> {76};
76 -> {77};
77 -> {78};
70 -> {71};
71 -> {72};
72 -> {73};
}
@@ -117,136 +117,132 @@ digraph smartcastToNothing_kt {
subgraph cluster_10 {
color=red
39 [label="Enter class A" style="filled" fillcolor=red];
40 [label="Part of class initialization"];
subgraph cluster_11 {
color=blue
41 [label="Enter property" style="filled" fillcolor=red];
42 [label="Const: Int(1)"];
43 [label="Exit property" style="filled" fillcolor=red];
40 [label="Enter property" style="filled" fillcolor=red];
41 [label="Const: Int(1)"];
42 [label="Exit property" style="filled" fillcolor=red];
}
44 [label="Part of class initialization"];
subgraph cluster_12 {
color=blue
45 [label="Enter property" style="filled" fillcolor=red];
46 [label="Const: Boolean(true)"];
47 [label="Exit property" style="filled" fillcolor=red];
43 [label="Enter property" style="filled" fillcolor=red];
44 [label="Const: Boolean(true)"];
45 [label="Exit property" style="filled" fillcolor=red];
}
48 [label="Exit class A" style="filled" fillcolor=red];
46 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_13 {
color=blue
49 [label="Enter function <init>" style="filled" fillcolor=red];
50 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
51 [label="Exit function <init>" style="filled" fillcolor=red];
47 [label="Enter function <init>" style="filled" fillcolor=red];
48 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
49 [label="Exit function <init>" style="filled" fillcolor=red];
}
39 -> {40} [color=green];
40 -> {41} [color=green];
40 -> {44} [style=dotted];
40 -> {41} [style=dashed];
39 -> {46} [style=dotted];
39 -> {40 43} [style=dashed];
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44} [color=green];
44 -> {45} [color=green];
44 -> {48} [style=dotted];
44 -> {45} [style=dashed];
45 -> {46};
46 -> {47};
47 -> {48} [color=green];
48 -> {49} [color=green];
48 -> {49} [style=dashed];
49 -> {50};
50 -> {51};
42 -> {43} [color=green];
43 -> {44};
44 -> {45};
45 -> {46} [color=green];
46 -> {47} [color=green];
46 -> {47} [style=dashed];
47 -> {48};
48 -> {49};
subgraph cluster_14 {
color=red
52 [label="Enter function test_0" style="filled" fillcolor=red];
50 [label="Enter function test_0" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
53 [label="Enter block"];
54 [label="Const: Null(null)"];
55 [label="Variable declaration: lvar s: R|A?|"];
51 [label="Enter block"];
52 [label="Const: Null(null)"];
53 [label="Variable declaration: lvar s: R|A?|"];
subgraph cluster_16 {
color=blue
56 [label="Enter block"];
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>|>|()" style="filled" fillcolor=yellow];
59 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Nothing>|"];
54 [label="Enter block"];
55 [label="Access variable R|<local>/results|"];
56 [label="Function call: R|<local>/results|.R|SubstitutionOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Nothing>|>|()" style="filled" fillcolor=yellow];
57 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Nothing>|"];
subgraph cluster_17 {
color=blue
60 [label="Enter while loop"];
58 [label="Enter while loop"];
subgraph cluster_18 {
color=blue
61 [label="Enter loop condition"];
62 [label="Access variable R|<local>/<iterator>|"];
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"];
59 [label="Enter loop condition"];
60 [label="Access variable R|<local>/<iterator>|"];
61 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()" style="filled" fillcolor=yellow];
62 [label="Exit loop condition"];
}
subgraph cluster_19 {
color=blue
65 [label="Enter loop block"];
63 [label="Enter loop block"];
subgraph cluster_20 {
color=blue
66 [label="Enter block"];
67 [label="Access variable R|<local>/<iterator>|"];
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];
70 [label="Variable declaration: lval result: R|kotlin/Nothing|" style="filled" fillcolor=gray];
71 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
72 [label="Stub" style="filled" fillcolor=gray];
73 [label="Assignment: R|<local>/s|" style="filled" fillcolor=gray];
64 [label="Enter block"];
65 [label="Access variable R|<local>/<iterator>|"];
66 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|kotlin/Nothing|>|()" style="filled" fillcolor=yellow];
67 [label="Stub" style="filled" fillcolor=gray];
68 [label="Variable declaration: lval result: R|kotlin/Nothing|" style="filled" fillcolor=gray];
69 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
70 [label="Stub" style="filled" fillcolor=gray];
71 [label="Assignment: R|<local>/s|" style="filled" fillcolor=gray];
subgraph cluster_21 {
color=blue
74 [label="Enter when" style="filled" fillcolor=gray];
72 [label="Enter when" style="filled" fillcolor=gray];
subgraph cluster_22 {
color=blue
75 [label="Enter when branch condition " style="filled" fillcolor=gray];
76 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
77 [label="Stub" style="filled" fillcolor=gray];
78 [label="Access variable <Unresolved name: b>#" style="filled" fillcolor=gray];
79 [label="Exit when branch condition" style="filled" fillcolor=gray];
73 [label="Enter when branch condition " style="filled" fillcolor=gray];
74 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Access variable <Unresolved name: b>#" style="filled" fillcolor=gray];
77 [label="Exit when branch condition" style="filled" fillcolor=gray];
}
80 [label="Synthetic else branch" style="filled" fillcolor=gray];
81 [label="Enter when branch result" style="filled" fillcolor=gray];
78 [label="Synthetic else branch" style="filled" fillcolor=gray];
79 [label="Enter when branch result" style="filled" fillcolor=gray];
subgraph cluster_23 {
color=blue
82 [label="Enter block" style="filled" fillcolor=gray];
83 [label="Jump: break@@@[R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()] " style="filled" fillcolor=gray];
84 [label="Stub" style="filled" fillcolor=gray];
85 [label="Exit block" style="filled" fillcolor=gray];
80 [label="Enter block" style="filled" fillcolor=gray];
81 [label="Jump: break@@@[R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()] " style="filled" fillcolor=gray];
82 [label="Stub" style="filled" fillcolor=gray];
83 [label="Exit block" style="filled" fillcolor=gray];
}
86 [label="Exit when branch result" style="filled" fillcolor=gray];
87 [label="Exit when" style="filled" fillcolor=gray];
84 [label="Exit when branch result" style="filled" fillcolor=gray];
85 [label="Exit when" style="filled" fillcolor=gray];
}
88 [label="Exit block" style="filled" fillcolor=gray];
86 [label="Exit block" style="filled" fillcolor=gray];
}
89 [label="Exit loop block" style="filled" fillcolor=gray];
87 [label="Exit loop block" style="filled" fillcolor=gray];
}
90 [label="Exit whileloop"];
88 [label="Exit whileloop"];
}
91 [label="Exit block"];
89 [label="Exit block"];
}
92 [label="Access variable R|<local>/s|"];
93 [label="Enter safe call"];
94 [label="Postponed enter to lambda"];
90 [label="Access variable R|<local>/s|"];
91 [label="Enter safe call"];
92 [label="Postponed enter to lambda"];
subgraph cluster_24 {
color=blue
95 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
93 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_25 {
color=blue
96 [label="Enter block"];
97 [label="Access variable R|<local>/it|"];
98 [label="Access variable R|/A.a|"];
99 [label="Exit block"];
94 [label="Enter block"];
95 [label="Access variable R|<local>/it|"];
96 [label="Access variable R|/A.a|"];
97 [label="Exit block"];
}
100 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
98 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
101 [label="Postponed exit from lambda"];
102 [label="Function call: $subj$.R|kotlin/let|<R|A|, R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
103 [label="Exit safe call"];
104 [label="Exit block"];
99 [label="Postponed exit from lambda"];
100 [label="Function call: $subj$.R|kotlin/let|<R|A|, R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
101 [label="Exit safe call"];
102 [label="Exit block"];
}
105 [label="Exit function test_0" style="filled" fillcolor=red];
103 [label="Exit function test_0" style="filled" fillcolor=red];
}
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
@@ -257,12 +253,12 @@ digraph smartcastToNothing_kt {
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
62 -> {63 88};
63 -> {64};
64 -> {65 90};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
66 -> {67} [style=dotted];
67 -> {68} [style=dotted];
68 -> {69} [style=dotted];
69 -> {70} [style=dotted];
70 -> {71} [style=dotted];
@@ -272,26 +268,26 @@ digraph smartcastToNothing_kt {
74 -> {75} [style=dotted];
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {80 81} [style=dotted];
80 -> {87} [style=dotted];
81 -> {82} [style=dotted];
77 -> {78 79} [style=dotted];
78 -> {85} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {82 88} [style=dotted];
82 -> {83} [style=dotted];
83 -> {84 90} [style=dotted];
83 -> {84} [style=dotted];
84 -> {85} [style=dotted];
85 -> {86} [style=dotted];
86 -> {87} [style=dotted];
87 -> {88} [style=dotted];
88 -> {89} [style=dotted];
89 -> {61} [color=green style=dotted];
90 -> {91};
87 -> {59} [color=green style=dotted];
88 -> {89};
89 -> {90};
90 -> {91 101};
91 -> {92};
92 -> {93 103};
92 -> {93 100};
92 -> {99} [style=dotted];
92 -> {93} [style=dashed];
93 -> {94};
94 -> {95 102};
94 -> {101} [style=dotted];
94 -> {95} [style=dashed];
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
@@ -300,82 +296,82 @@ digraph smartcastToNothing_kt {
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
subgraph cluster_26 {
color=red
106 [label="Enter function test_1" style="filled" fillcolor=red];
104 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
107 [label="Enter block"];
105 [label="Enter block"];
subgraph cluster_28 {
color=blue
108 [label="Enter when"];
106 [label="Enter when"];
subgraph cluster_29 {
color=blue
109 [label="Enter when branch condition "];
110 [label="Access variable R|<local>/a|"];
111 [label="Type operator: (R|<local>/a| is R|kotlin/Nothing?|)"];
112 [label="Exit when branch condition"];
107 [label="Enter when branch condition "];
108 [label="Access variable R|<local>/a|"];
109 [label="Type operator: (R|<local>/a| is R|kotlin/Nothing?|)"];
110 [label="Exit when branch condition"];
}
113 [label="Synthetic else branch"];
114 [label="Enter when branch result"];
111 [label="Synthetic else branch"];
112 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
115 [label="Enter block"];
116 [label="Access variable R|<local>/a|"];
117 [label="Smart cast: R|<local>/a|"];
118 [label="Enter safe call"];
119 [label="Access variable R|kotlin/String.length|"];
120 [label="Exit safe call"];
121 [label="Variable declaration: lval b: R|kotlin/Int?|"];
122 [label="Exit block"];
113 [label="Enter block"];
114 [label="Access variable R|<local>/a|"];
115 [label="Smart cast: R|<local>/a|"];
116 [label="Enter safe call"];
117 [label="Access variable R|kotlin/String.length|"];
118 [label="Exit safe call"];
119 [label="Variable declaration: lval b: R|kotlin/Int?|"];
120 [label="Exit block"];
}
123 [label="Exit when branch result"];
124 [label="Exit when"];
121 [label="Exit when branch result"];
122 [label="Exit when"];
}
subgraph cluster_31 {
color=blue
125 [label="Enter when"];
123 [label="Enter when"];
subgraph cluster_32 {
color=blue
126 [label="Enter when branch condition "];
127 [label="Access variable R|<local>/a|"];
128 [label="Type operator: (R|<local>/a| is R|kotlin/Nothing|)"];
129 [label="Exit when branch condition"];
124 [label="Enter when branch condition "];
125 [label="Access variable R|<local>/a|"];
126 [label="Type operator: (R|<local>/a| is R|kotlin/Nothing|)"];
127 [label="Exit when branch condition"];
}
130 [label="Synthetic else branch"];
131 [label="Enter when branch result"];
128 [label="Synthetic else branch"];
129 [label="Enter when branch result"];
subgraph cluster_33 {
color=blue
132 [label="Enter block"];
133 [label="Access variable R|<local>/a|"];
134 [label="Smart cast: R|<local>/a|"];
135 [label="Stub" style="filled" fillcolor=gray];
136 [label="Access variable R|kotlin/String.length|" style="filled" fillcolor=gray];
137 [label="Variable declaration: lval b: R|kotlin/Int|" style="filled" fillcolor=gray];
138 [label="Exit block" style="filled" fillcolor=gray];
130 [label="Enter block"];
131 [label="Access variable R|<local>/a|"];
132 [label="Smart cast: R|<local>/a|"];
133 [label="Stub" style="filled" fillcolor=gray];
134 [label="Access variable R|kotlin/String.length|" style="filled" fillcolor=gray];
135 [label="Variable declaration: lval b: R|kotlin/Int|" style="filled" fillcolor=gray];
136 [label="Exit block" style="filled" fillcolor=gray];
}
139 [label="Exit when branch result" style="filled" fillcolor=gray];
140 [label="Exit when"];
137 [label="Exit when branch result" style="filled" fillcolor=gray];
138 [label="Exit when"];
}
141 [label="Exit block"];
139 [label="Exit block"];
}
142 [label="Exit function test_1" style="filled" fillcolor=red];
140 [label="Exit function test_1" style="filled" fillcolor=red];
}
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113 114};
113 -> {124};
110 -> {111 112};
111 -> {122};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
115 -> {116 118};
116 -> {117};
117 -> {118 120};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
@@ -385,20 +381,18 @@ digraph smartcastToNothing_kt {
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {130 131};
130 -> {140};
127 -> {128 129};
128 -> {138};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
132 -> {133} [style=dotted];
133 -> {134} [style=dotted];
134 -> {135} [style=dotted];
135 -> {136} [style=dotted];
136 -> {137} [style=dotted];
137 -> {138} [style=dotted];
138 -> {139} [style=dotted];
139 -> {140} [style=dotted];
140 -> {141};
141 -> {142};
138 -> {139};
139 -> {140};
}
@@ -6,89 +6,88 @@ digraph overridenOpenVal_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Part of class initialization"];
subgraph cluster_1 {
color=blue
2 [label="Enter property" style="filled" fillcolor=red];
3 [label="Access variable R|<local>/x|"];
4 [label="Exit property" style="filled" fillcolor=red];
1 [label="Enter property" style="filled" fillcolor=red];
2 [label="Access variable R|<local>/x|"];
3 [label="Exit property" style="filled" fillcolor=red];
}
5 [label="Exit class A" style="filled" fillcolor=red];
4 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_2 {
color=blue
6 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
8 [label="Exit function <init>" style="filled" fillcolor=red];
5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
7 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
1 -> {2} [color=green];
1 -> {5} [style=dotted];
1 -> {2} [style=dashed];
0 -> {4} [style=dotted];
0 -> {1} [style=dashed];
1 -> {2};
2 -> {3};
3 -> {4};
3 -> {4} [color=green];
4 -> {5} [color=green];
5 -> {6} [color=green];
5 -> {6} [style=dashed];
4 -> {5} [style=dashed];
5 -> {6};
6 -> {7};
7 -> {8};
subgraph cluster_3 {
color=red
9 [label="Enter class B" style="filled" fillcolor=red];
10 [label="Exit class B" style="filled" fillcolor=red];
8 [label="Enter class B" style="filled" fillcolor=red];
9 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
11 [label="Enter function test_1" style="filled" fillcolor=red];
10 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
12 [label="Enter block"];
11 [label="Enter block"];
subgraph cluster_6 {
color=blue
13 [label="Enter when"];
12 [label="Enter when"];
subgraph cluster_7 {
color=blue
14 [label="Enter when branch condition "];
15 [label="Access variable R|/A.x|"];
16 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
17 [label="Exit when branch condition"];
13 [label="Enter when branch condition "];
14 [label="Access variable R|/A.x|"];
15 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
16 [label="Exit when branch condition"];
}
18 [label="Synthetic else branch"];
19 [label="Enter when branch result"];
17 [label="Synthetic else branch"];
18 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
20 [label="Enter block"];
21 [label="Access variable R|/A.x|"];
22 [label="Smart cast: this@R|/B|.R|/A.x|"];
23 [label="Access variable R|kotlin/String.length|"];
24 [label="Exit block"];
19 [label="Enter block"];
20 [label="Access variable R|/A.x|"];
21 [label="Smart cast: this@R|/B|.R|/A.x|"];
22 [label="Access variable R|kotlin/String.length|"];
23 [label="Exit block"];
}
25 [label="Exit when branch result"];
26 [label="Exit when"];
24 [label="Exit when branch result"];
25 [label="Exit when"];
}
27 [label="Exit block"];
26 [label="Exit block"];
}
28 [label="Exit function test_1" style="filled" fillcolor=red];
27 [label="Exit function test_1" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
29 [label="Enter function <init>" style="filled" fillcolor=red];
30 [label="Access variable R|<local>/x|"];
31 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
32 [label="Exit function <init>" style="filled" fillcolor=red];
28 [label="Enter function <init>" style="filled" fillcolor=red];
29 [label="Access variable R|<local>/x|"];
30 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
31 [label="Exit function <init>" style="filled" fillcolor=red];
}
9 -> {10} [color=green];
10 -> {11 29} [color=green];
10 -> {11 29} [style=dashed];
8 -> {9} [color=green];
9 -> {10 28} [color=green];
9 -> {10 28} [style=dashed];
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18 19};
18 -> {26};
16 -> {17 18};
17 -> {25};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
@@ -97,55 +96,55 @@ digraph overridenOpenVal_kt {
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
subgraph cluster_10 {
color=red
33 [label="Enter function test_2" style="filled" fillcolor=red];
32 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
34 [label="Enter block"];
33 [label="Enter block"];
subgraph cluster_12 {
color=blue
35 [label="Enter when"];
34 [label="Enter when"];
subgraph cluster_13 {
color=blue
36 [label="Enter when branch condition "];
37 [label="Access variable R|<local>/b|"];
38 [label="Access variable R|/A.x|"];
39 [label="Type operator: (R|<local>/b|.R|/A.x| is R|kotlin/String|)"];
40 [label="Exit when branch condition"];
35 [label="Enter when branch condition "];
36 [label="Access variable R|<local>/b|"];
37 [label="Access variable R|/A.x|"];
38 [label="Type operator: (R|<local>/b|.R|/A.x| is R|kotlin/String|)"];
39 [label="Exit when branch condition"];
}
41 [label="Synthetic else branch"];
42 [label="Enter when branch result"];
40 [label="Synthetic else branch"];
41 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
43 [label="Enter block"];
44 [label="Access variable R|<local>/b|"];
45 [label="Access variable R|/A.x|"];
46 [label="Smart cast: R|<local>/b|.R|/A.x|"];
47 [label="Access variable R|kotlin/String.length|"];
48 [label="Exit block"];
42 [label="Enter block"];
43 [label="Access variable R|<local>/b|"];
44 [label="Access variable R|/A.x|"];
45 [label="Smart cast: R|<local>/b|.R|/A.x|"];
46 [label="Access variable R|kotlin/String.length|"];
47 [label="Exit block"];
}
49 [label="Exit when branch result"];
50 [label="Exit when"];
48 [label="Exit when branch result"];
49 [label="Exit when"];
}
51 [label="Exit block"];
50 [label="Exit block"];
}
52 [label="Exit function test_2" style="filled" fillcolor=red];
51 [label="Exit function test_2" style="filled" fillcolor=red];
}
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41 42};
41 -> {50};
39 -> {40 41};
40 -> {49};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
@@ -155,6 +154,5 @@ digraph overridenOpenVal_kt {
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
}
@@ -18,93 +18,87 @@ digraph inAnonymousObject_kt {
subgraph cluster_3 {
color=blue
5 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
6 [label="Part of class initialization"];
subgraph cluster_4 {
color=blue
7 [label="Enter property" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/a|"];
9 [label="Exit property" style="filled" fillcolor=red];
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/a|"];
8 [label="Exit property" style="filled" fillcolor=red];
}
10 [label="Part of class initialization"];
subgraph cluster_5 {
color=blue
11 [label="Enter init block" style="filled" fillcolor=red];
9 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
12 [label="Enter block"];
13 [label="Access variable R|<local>/b|"];
14 [label="Assignment: R|/<anonymous>.leaked|"];
15 [label="Exit block"];
10 [label="Enter block"];
11 [label="Access variable R|<local>/b|"];
12 [label="Assignment: R|/<anonymous>.leaked|"];
13 [label="Exit block"];
}
16 [label="Exit init block" style="filled" fillcolor=red];
14 [label="Exit init block" style="filled" fillcolor=red];
}
17 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
15 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
}
18 [label="Exit anonymous object"];
19 [label="Exit anonymous object expression"];
20 [label="Variable declaration: lval obj: R|<anonymous>|"];
21 [label="Access variable R|<local>/obj|"];
22 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
23 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
24 [label="Exit block"];
16 [label="Exit anonymous object"];
17 [label="Exit anonymous object expression"];
18 [label="Variable declaration: lval obj: R|<anonymous>|"];
19 [label="Access variable R|<local>/obj|"];
20 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
21 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
22 [label="Exit block"];
}
25 [label="Exit function foo" style="filled" fillcolor=red];
23 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
26 [label="Enter function run" style="filled" fillcolor=red];
24 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
27 [label="Enter block"];
28 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
29 [label="Exit block"];
25 [label="Enter block"];
26 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
27 [label="Exit block"];
}
30 [label="Exit function run" style="filled" fillcolor=red];
28 [label="Exit function run" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
31 [label="Enter function <init>" style="filled" fillcolor=red];
32 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
33 [label="Exit function <init>" style="filled" fillcolor=red];
29 [label="Enter function <init>" style="filled" fillcolor=red];
30 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
31 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
4 -> {18} [color=red];
4 -> {16} [color=red];
4 -> {5} [style=dashed];
5 -> {6} [color=green];
5 -> {7 11 26 31} [color=red];
6 -> {7} [color=green];
6 -> {10} [style=dotted];
6 -> {7} [style=dashed];
5 -> {6};
5 -> {9 24 29} [color=red];
5 -> {15} [style=dotted];
5 -> {6 9} [style=dashed];
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10} [color=green];
10 -> {11} [color=green];
10 -> {17} [style=dotted];
10 -> {11} [style=dashed];
8 -> {9} [color=green];
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17} [color=green];
17 -> {18 26 31} [color=green];
17 -> {26 31} [style=dashed];
14 -> {15} [color=green];
15 -> {16 24 29} [color=green];
15 -> {24 29} [style=dashed];
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
31 -> {32};
32 -> {33};
30 -> {31};
}
@@ -25,50 +25,48 @@ digraph inLocalClass_kt {
subgraph cluster_3 {
color=blue
10 [label="Enter class LocalClass" style="filled" fillcolor=red];
11 [label="Part of class initialization"];
subgraph cluster_4 {
color=blue
12 [label="Enter property" style="filled" fillcolor=red];
13 [label="Access variable R|<local>/a|"];
14 [label="Exit property" style="filled" fillcolor=red];
11 [label="Enter property" style="filled" fillcolor=red];
12 [label="Access variable R|<local>/a|"];
13 [label="Exit property" style="filled" fillcolor=red];
}
15 [label="Part of class initialization"];
subgraph cluster_5 {
color=blue
16 [label="Enter init block" style="filled" fillcolor=red];
14 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
17 [label="Enter block"];
18 [label="Access variable R|<local>/c|"];
19 [label="Assignment: R|<local>/leaked|"];
20 [label="Exit block"];
15 [label="Enter block"];
16 [label="Access variable R|<local>/c|"];
17 [label="Assignment: R|<local>/leaked|"];
18 [label="Exit block"];
}
21 [label="Exit init block" style="filled" fillcolor=red];
19 [label="Exit init block" style="filled" fillcolor=red];
}
22 [label="Exit class LocalClass" style="filled" fillcolor=red];
20 [label="Exit class LocalClass" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
23 [label="Enter function run" style="filled" fillcolor=red];
21 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
24 [label="Enter block"];
25 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
26 [label="Exit block"];
22 [label="Enter block"];
23 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
24 [label="Exit block"];
}
27 [label="Exit function run" style="filled" fillcolor=red];
25 [label="Exit function run" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
28 [label="Enter function <init>" style="filled" fillcolor=red];
29 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
26 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
subgraph cluster_10 {
color=blue
30 [label="Enter block"];
31 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
32 [label="Exit block"];
28 [label="Enter block"];
29 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
30 [label="Exit block"];
}
33 [label="Exit function <init>" style="filled" fillcolor=red];
31 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
@@ -80,33 +78,29 @@ digraph inLocalClass_kt {
6 -> {7};
7 -> {8};
8 -> {9};
10 -> {11} [color=green];
10 -> {12 16 23 28} [color=red];
11 -> {12} [color=green];
11 -> {15} [style=dotted];
11 -> {12} [style=dashed];
10 -> {11};
10 -> {14 21 26} [color=red];
10 -> {20} [style=dotted];
10 -> {11 14} [style=dashed];
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15} [color=green];
15 -> {16} [color=green];
15 -> {22} [style=dotted];
15 -> {16} [style=dashed];
13 -> {14} [color=green];
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22} [color=green];
22 -> {23 28} [color=green];
22 -> {23 28} [style=dashed];
19 -> {20} [color=green];
20 -> {21 26} [color=green];
20 -> {21 26} [style=dashed];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
}
@@ -77,170 +77,168 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_8 {
color=red
23 [label="Enter class IssuesListUserProfile" style="filled" fillcolor=red];
24 [label="Part of class initialization"];
subgraph cluster_9 {
color=blue
25 [label="Enter property" style="filled" fillcolor=red];
26 [label="Postponed enter to lambda"];
24 [label="Enter property" style="filled" fillcolor=red];
25 [label="Postponed enter to lambda"];
subgraph cluster_10 {
color=blue
27 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
26 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
28 [label="Enter block"];
29 [label="Enter anonymous object"];
27 [label="Enter block"];
28 [label="Enter anonymous object"];
subgraph cluster_12 {
color=blue
30 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
31 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
29 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
30 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
}
32 [label="Exit anonymous object"];
33 [label="Exit anonymous object expression"];
34 [label="Exit block"];
31 [label="Exit anonymous object"];
32 [label="Exit anonymous object expression"];
33 [label="Exit block"];
}
35 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
34 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
subgraph cluster_13 {
color=blue
36 [label="Enter function setValue" style="filled" fillcolor=red];
35 [label="Enter function setValue" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
37 [label="Enter block"];
38 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
39 [label="Access variable R|<local>/value|"];
40 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)" style="filled" fillcolor=yellow];
41 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
42 [label="Stub" style="filled" fillcolor=gray];
43 [label="Exit block" style="filled" fillcolor=gray];
36 [label="Enter block"];
37 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
38 [label="Access variable R|<local>/value|"];
39 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)" style="filled" fillcolor=yellow];
40 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
41 [label="Stub" style="filled" fillcolor=gray];
42 [label="Exit block" style="filled" fillcolor=gray];
}
44 [label="Exit function setValue" style="filled" fillcolor=red];
43 [label="Exit function setValue" style="filled" fillcolor=red];
}
subgraph cluster_15 {
color=blue
45 [label="Enter function getValue" style="filled" fillcolor=red];
44 [label="Enter function getValue" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
46 [label="Enter block"];
47 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
48 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
49 [label="Stub" style="filled" fillcolor=gray];
50 [label="Exit block" style="filled" fillcolor=gray];
45 [label="Enter block"];
46 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
47 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
48 [label="Stub" style="filled" fillcolor=gray];
49 [label="Exit block" style="filled" fillcolor=gray];
}
51 [label="Exit function getValue" style="filled" fillcolor=red];
50 [label="Exit function getValue" style="filled" fillcolor=red];
}
subgraph cluster_17 {
color=blue
52 [label="Enter function <init>" style="filled" fillcolor=red];
53 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
54 [label="Exit function <init>" style="filled" fillcolor=red];
51 [label="Enter function <init>" style="filled" fillcolor=red];
52 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
53 [label="Exit function <init>" style="filled" fillcolor=red];
}
55 [label="Postponed exit from lambda"];
56 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)" style="filled" fillcolor=yellow];
57 [label="Access variable this@R|/IssuesListUserProfile|"];
58 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)" style="filled" fillcolor=yellow];
59 [label="Exit property delegate" style="filled" fillcolor=yellow];
60 [label="Exit property" style="filled" fillcolor=red];
54 [label="Postponed exit from lambda"];
55 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)" style="filled" fillcolor=yellow];
56 [label="Access variable this@R|/IssuesListUserProfile|"];
57 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)" style="filled" fillcolor=yellow];
58 [label="Exit property delegate" style="filled" fillcolor=yellow];
59 [label="Exit property" style="filled" fillcolor=red];
}
61 [label="Exit class IssuesListUserProfile" style="filled" fillcolor=red];
60 [label="Exit class IssuesListUserProfile" style="filled" fillcolor=red];
}
subgraph cluster_18 {
color=blue
62 [label="Enter function setter" style="filled" fillcolor=red];
61 [label="Enter function setter" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
63 [label="Enter block"];
64 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
65 [label="Access variable this@R|/IssuesListUserProfile|"];
66 [label="Access variable R|<local>/issueListView|"];
67 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
68 [label="Exit block"];
62 [label="Enter block"];
63 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
64 [label="Access variable this@R|/IssuesListUserProfile|"];
65 [label="Access variable R|<local>/issueListView|"];
66 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
67 [label="Exit block"];
}
69 [label="Exit function setter" style="filled" fillcolor=red];
68 [label="Exit function setter" style="filled" fillcolor=red];
}
subgraph cluster_20 {
color=blue
70 [label="Enter function getter" style="filled" fillcolor=red];
69 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
71 [label="Enter block"];
72 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
73 [label="Access variable this@R|/IssuesListUserProfile|"];
74 [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];
75 [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|)"];
76 [label="Stub" style="filled" fillcolor=gray];
77 [label="Exit block" style="filled" fillcolor=gray];
70 [label="Enter block"];
71 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
72 [label="Access variable this@R|/IssuesListUserProfile|"];
73 [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];
74 [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|)"];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray];
}
78 [label="Exit function getter" style="filled" fillcolor=red];
77 [label="Exit function getter" style="filled" fillcolor=red];
}
subgraph cluster_22 {
color=blue
79 [label="Enter function <init>" style="filled" fillcolor=red];
80 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()" style="filled" fillcolor=yellow];
81 [label="Exit function <init>" style="filled" fillcolor=red];
78 [label="Enter function <init>" style="filled" fillcolor=red];
79 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()" style="filled" fillcolor=yellow];
80 [label="Exit function <init>" style="filled" fillcolor=red];
}
23 -> {24} [color=green];
24 -> {25} [color=green];
24 -> {61} [style=dotted];
24 -> {25} [style=dashed];
25 -> {26};
26 -> {27 55 56};
26 -> {27} [style=dashed];
23 -> {60} [style=dotted];
23 -> {24} [style=dashed];
24 -> {25};
25 -> {26 54 55};
25 -> {26} [style=dashed];
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
29 -> {32} [color=red];
29 -> {30} [style=dashed];
30 -> {31} [color=green];
30 -> {36 45 52} [color=red];
31 -> {32 36 45 52} [color=green];
31 -> {36 45 52} [style=dashed];
28 -> {31} [color=red];
28 -> {29} [style=dashed];
29 -> {30} [color=green];
29 -> {35 44 51} [color=red];
30 -> {31 35 44 51} [color=green];
30 -> {35 44 51} [style=dashed];
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {44};
40 -> {43};
40 -> {41} [style=dotted];
41 -> {42} [style=dotted];
42 -> {43} [style=dotted];
43 -> {44} [style=dotted];
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {51};
47 -> {50};
47 -> {48} [style=dotted];
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
51 -> {52};
52 -> {53};
53 -> {54};
55 -> {56} [color=green];
55 -> {59} [color=red];
54 -> {55} [color=green];
54 -> {58} [color=red];
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61} [color=green];
61 -> {62 70 79} [color=green];
61 -> {62 70 79} [style=dashed];
59 -> {60} [color=green];
60 -> {61 69 78} [color=green];
60 -> {61 69 78} [style=dashed];
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {78};
74 -> {77};
74 -> {75} [style=dotted];
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79};
79 -> {80};
80 -> {81};
}
@@ -52,106 +52,104 @@ digraph plusAssignWithLambdaInRhs_kt {
subgraph cluster_4 {
color=red
17 [label="Enter class A" style="filled" fillcolor=red];
18 [label="Part of class initialization"];
subgraph cluster_5 {
color=blue
19 [label="Enter property" style="filled" fillcolor=red];
20 [label="Access variable R|<local>/executor|"];
21 [label="Exit property" style="filled" fillcolor=red];
18 [label="Enter property" style="filled" fillcolor=red];
19 [label="Access variable R|<local>/executor|"];
20 [label="Exit property" style="filled" fillcolor=red];
}
22 [label="Exit class A" style="filled" fillcolor=red];
21 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_6 {
color=blue
23 [label="Enter function <init>" style="filled" fillcolor=red];
24 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
25 [label="Exit function <init>" style="filled" fillcolor=red];
22 [label="Enter function <init>" style="filled" fillcolor=red];
23 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
24 [label="Exit function <init>" style="filled" fillcolor=red];
}
17 -> {18} [color=green];
18 -> {19} [color=green];
18 -> {22} [style=dotted];
18 -> {19} [style=dashed];
17 -> {21} [style=dotted];
17 -> {18} [style=dashed];
18 -> {19};
19 -> {20};
20 -> {21};
20 -> {21} [color=green];
21 -> {22} [color=green];
22 -> {23} [color=green];
22 -> {23} [style=dashed];
21 -> {22} [style=dashed];
22 -> {23};
23 -> {24};
24 -> {25};
subgraph cluster_7 {
color=red
26 [label="Enter function postpone" style="filled" fillcolor=red];
25 [label="Enter function postpone" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
27 [label="Enter block"];
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>>|"];
30 [label="Postponed enter to lambda"];
26 [label="Enter block"];
27 [label="Function call: R|kotlin/collections/mutableListOf|<R|() -> kotlin/Unit|>()" style="filled" fillcolor=yellow];
28 [label="Variable declaration: lval queue: R|kotlin/collections/MutableList<kotlin/Function0<kotlin/Unit>>|"];
29 [label="Postponed enter to lambda"];
subgraph cluster_9 {
color=blue
31 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
30 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
32 [label="Enter block"];
33 [label="Access variable R|<local>/queue|"];
34 [label="Postponed enter to lambda"];
31 [label="Enter block"];
32 [label="Access variable R|<local>/queue|"];
33 [label="Postponed enter to lambda"];
subgraph cluster_11 {
color=blue
35 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
34 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
36 [label="Enter block"];
37 [label="Function call: R|<local>/computation|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()" style="filled" fillcolor=yellow];
38 [label="Function call: R|<local>/resolve|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
39 [label="Exit block"];
35 [label="Enter block"];
36 [label="Function call: R|<local>/computation|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|()" style="filled" fillcolor=yellow];
37 [label="Function call: R|<local>/resolve|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
38 [label="Exit block"];
}
40 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
39 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
41 [label="Postponed exit from lambda"];
42 [label="Function call: R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
43 [label="Exit block"];
40 [label="Postponed exit from lambda"];
41 [label="Function call: R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
42 [label="Exit block"];
}
44 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
43 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
45 [label="Postponed exit from lambda"];
46 [label="Function call: R|/A.A|<R|T|>(...)" style="filled" fillcolor=yellow];
47 [label="Jump: ^postpone R|/A.A|<R|T|>(<L> = A@fun <anonymous>(resolve: R|(T) -> kotlin/Unit|): R|kotlin/Unit| <inline=NoInline> {
44 [label="Postponed exit from lambda"];
45 [label="Function call: R|/A.A|<R|T|>(...)" style="filled" fillcolor=yellow];
46 [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> {
R|<local>/resolve|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(R|<local>/computation|.R|SubstitutionOverride<kotlin/Function0.invoke: R|T|>|())
}
)
}
)"];
48 [label="Stub" style="filled" fillcolor=gray];
49 [label="Exit block" style="filled" fillcolor=gray];
47 [label="Stub" style="filled" fillcolor=gray];
48 [label="Exit block" style="filled" fillcolor=gray];
}
50 [label="Exit function postpone" style="filled" fillcolor=red];
49 [label="Exit function postpone" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31 45 46};
30 -> {31} [style=dashed];
29 -> {30 44 45};
29 -> {30} [style=dashed];
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35 41 42};
34 -> {35} [style=dashed];
33 -> {34 40 41};
33 -> {34} [style=dashed];
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {50};
46 -> {49};
46 -> {47} [style=dotted];
47 -> {48} [style=dotted];
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
}
@@ -22,7 +22,6 @@ import org.jetbrains.kotlin.fir.types.*
import org.jetbrains.kotlin.fir.util.ListMultimap
import org.jetbrains.kotlin.fir.util.listMultimapOf
import org.jetbrains.kotlin.utils.addToStdlib.runIf
import kotlin.random.Random
@OptIn(CfgInternals::class)
class ControlFlowGraphBuilder {
@@ -44,7 +43,7 @@ class ControlFlowGraphBuilder {
private val exitTargetsForReturn: SymbolBasedNodeStorage<FirFunction, FunctionExitNode> = SymbolBasedNodeStorage()
private val exitTargetsForTry: Stack<CFGNode<*>> = stackOf()
private val enterToLocalClassesMembers: MutableMap<FirBasedSymbol<*>, CFGNode<*>> = mutableMapOf()
private val enterToLocalClassesMembers: MutableMap<FirBasedSymbol<*>, Pair<CFGNode<*>, EdgeKind>> = mutableMapOf()
//return jumps via finally blocks, target -> jumps
private val nonDirectJumps: ListMultimap<CFGNode<*>, CFGNode<*>> = listMultimapOf()
@@ -148,7 +147,7 @@ class ControlFlowGraphBuilder {
if (localFunctionNode != null) {
addEdge(localFunctionNode, enterNode)
} else {
enterToLocalClassesMembers.remove(function.symbol)?.let { addEdge(it, enterNode, preferredKind = EdgeKind.DfgForward) }
addEdgeIfLocalClassMember(function, enterNode)
}
exitTargetsForReturn.push(exitNode)
exitTargetsForTry.push(exitNode)
@@ -358,8 +357,33 @@ class ControlFlowGraphBuilder {
// ----------------------------------- Classes -----------------------------------
private val FirControlFlowGraphOwner.memberShouldHaveGraph: Boolean
get() = when (this) {
is FirProperty -> initializer != null || delegate != null || hasExplicitBackingField
is FirField -> initializer != null
else -> true
}
private inline fun FirClass.forEachGraphOwner(block: (FirControlFlowGraphOwner, isInPlace: Boolean) -> Unit) {
for (declaration in declarations) {
// TODO: constructors are also called-in-place, but after everything else, and only one of them is chosen.
if (declaration is FirControlFlowGraphOwner && declaration.memberShouldHaveGraph) {
block(declaration, declaration !is FirFunction && declaration !is FirClass)
}
if (declaration is FirProperty) {
declaration.getter?.let { block(it, false) }
declaration.setter?.let { block(it, false) }
}
}
}
private fun <E> addEdgeIfLocalClassMember(member: E, enterNode: CFGNode<*>) where E : FirControlFlowGraphOwner, E : FirDeclaration {
val (source, kind) = enterToLocalClassesMembers.remove(member.symbol) ?: return
addEdge(source, enterNode, preferredKind = kind)
}
fun enterClass(klass: FirClass, buildGraph: Boolean): Pair<CFGNode<*>?, ClassEnterNode>? {
if (!buildGraph) {
if (!buildGraph || klass !is FirControlFlowGraphOwner) {
graphs.push(ControlFlowGraph(null, "<discarded class graph>", ControlFlowGraph.Kind.ClassInitializer))
levelCounter++
return null
@@ -386,18 +410,18 @@ class ControlFlowGraphBuilder {
if (localClassEnterNode != null) {
addEdge(localClassEnterNode, enterNode)
} else {
enterToLocalClassesMembers.remove(klass.symbol)?.let { addEdge(it, enterNode, preferredKind = EdgeKind.DfgForward) }
addEdgeIfLocalClassMember(klass, enterNode)
}
var foundInPlace = false
if (enterNode.previousNodes.isNotEmpty()) {
for (member in klass.declarations) {
if (member is FirFunction || member is FirAnonymousInitializer || member is FirField || member is FirClass || member is FirProperty) {
enterToLocalClassesMembers[member.symbol] = enterNode
}
if (member is FirProperty) {
member.getter?.let { enterToLocalClassesMembers[it.symbol] = enterNode }
member.setter?.let { enterToLocalClassesMembers[it.symbol] = enterNode }
klass.forEachGraphOwner { member, isInPlace ->
val kind = if (!isInPlace || foundInPlace) {
EdgeKind.DfgForward
} else {
EdgeKind.Forward.also { foundInPlace = true }
}
enterToLocalClassesMembers[(member as FirDeclaration).symbol] = enterNode to kind
}
}
return localClassEnterNode to enterNode
@@ -439,39 +463,29 @@ class ControlFlowGraphBuilder {
val klass = currentGraph.declaration as FirClass
val calledInPlace = mutableListOf<ControlFlowGraph>()
val calledLater = mutableListOf<ControlFlowGraph>()
for (declaration in klass.declarations) {
if (declaration is FirControlFlowGraphOwner) {
// TODO: constructors are also called-in-place, but after everything else, and only one of them is chosen.
val target = if (declaration is FirFunction || declaration is FirClass) calledLater else calledInPlace
declaration.controlFlowGraphReference?.controlFlowGraph?.let(target::add)
}
if (declaration is FirProperty) {
declaration.getter?.controlFlowGraphReference?.controlFlowGraph?.let(calledLater::add)
declaration.setter?.controlFlowGraphReference?.controlFlowGraph?.let(calledLater::add)
}
}
var node: CFGNode<*> = lastNodes.pop() as ClassEnterNode
var prevInitPartNode: CFGNode<*>? = null
for (graph in calledInPlace) {
val partNode = createPartOfClassInitializationNode(graph.declaration as FirControlFlowGraphOwner)
// TODO: if one initializer part does not terminate, deadness becomes funky here
addEdge(node, partNode, preferredKind = EdgeKind.CfgForward)
addEdge(partNode, graph.enterNode, preferredKind = EdgeKind.CfgForward)
if (prevInitPartNode != null) {
// Fake edge to make the nodes in this graph orderable without looking at subgraphs.
addEdge(prevInitPartNode, partNode, preferredKind = EdgeKind.DeadForward, propagateDeadness = false)
}
node = graph.exitNode
prevInitPartNode = partNode
klass.forEachGraphOwner { member, isInPlace ->
val graph = member.controlFlowGraphReference?.controlFlowGraph ?: return@forEachGraphOwner
if (isInPlace) calledInPlace.add(graph) else calledLater.add(graph)
}
val enterNode = lastNodes.pop() as ClassEnterNode
val exitNode = currentGraph.exitNode as ClassExitNode
addEdge(node, exitNode, preferredKind = EdgeKind.CfgForward)
if (prevInitPartNode != null) {
addEdge(prevInitPartNode, exitNode, preferredKind = EdgeKind.DeadForward, propagateDeadness = false)
}
if (calledInPlace.isEmpty()) {
addEdge(enterNode, exitNode, preferredKind = EdgeKind.CfgForward)
} else {
if (enterNode.previousNodes.isEmpty()) {
// Control flow edge to first initializer was only added for local classes.
addEdge(enterNode, calledInPlace[0].enterNode, preferredKind = EdgeKind.CfgForward)
}
val lastInPlace = calledInPlace.reduce { a, b ->
addEdgeToSubGraph(a.exitNode, b.enterNode)
b
}
addEdge(lastInPlace.exitNode, exitNode, preferredKind = EdgeKind.CfgForward)
// Fake edge to enforce ordering.
addEdge(enterNode, exitNode, preferredKind = EdgeKind.DeadForward, propagateDeadness = false)
}
// TODO: Here we're assuming that the methods are called after the object is constructed, which is really not true
// (init blocks can call them). But FE1.0 did so too, hence the following code compiles and prints 0:
// val x: Int
@@ -481,9 +495,10 @@ class ControlFlowGraphBuilder {
// }
// println(x)
for (graph in calledLater) {
addEdge(exitNode, graph.enterNode, preferredKind = EdgeKind.CfgForward)
addEdgeToSubGraph(exitNode, graph.enterNode)
}
enterNode.subGraphs = calledInPlace
exitNode.subGraphs = calledLater
return popGraph()
}
@@ -558,22 +573,18 @@ class ControlFlowGraphBuilder {
// ----------------------------------- Property -----------------------------------
private val FirProperty.hasInitialization: Boolean
get() = initializer != null || delegate != null || hasExplicitBackingField
fun enterProperty(property: FirProperty): PropertyInitializerEnterNode? {
if (!property.hasInitialization) return null
if (!property.memberShouldHaveGraph) return null
val (enterNode, exitNode) = enterGraph(property, "val ${property.name}", ControlFlowGraph.Kind.PropertyInitializer) {
createPropertyInitializerEnterNode(it) to createPropertyInitializerExitNode(it)
}
exitTargetsForTry.push(exitNode)
enterToLocalClassesMembers.remove(property.symbol)?.let { addEdge(it, enterNode, preferredKind = EdgeKind.DfgForward) }
addEdgeIfLocalClassMember(property, enterNode)
return enterNode
}
fun exitProperty(property: FirProperty): Pair<PropertyInitializerExitNode, ControlFlowGraph>? {
if (!property.hasInitialization) return null
if (!property.memberShouldHaveGraph) return null
val exitNode = exitTargetsForTry.pop() as PropertyInitializerExitNode
popAndAddEdge(exitNode)
val graph = popGraph()
@@ -584,18 +595,18 @@ class ControlFlowGraphBuilder {
// ----------------------------------- Field -----------------------------------
fun enterField(field: FirField): FieldInitializerEnterNode? {
if (field.initializer == null) return null
if (!field.memberShouldHaveGraph) return null
val (enterNode, exitNode) = enterGraph(field, "val ${field.name}", ControlFlowGraph.Kind.FieldInitializer) {
createFieldInitializerEnterNode(it) to createFieldInitializerExitNode(it)
}
exitTargetsForTry.push(exitNode)
enterToLocalClassesMembers.remove(field.symbol)?.let { addEdge(it, enterNode, preferredKind = EdgeKind.DfgForward) }
addEdgeIfLocalClassMember(field, enterNode)
return enterNode
}
fun exitField(field: FirField): Pair<FieldInitializerExitNode, ControlFlowGraph>? {
if (field.initializer == null) return null
if (!field.memberShouldHaveGraph) return null
val exitNode = exitTargetsForTry.pop() as FieldInitializerExitNode
popAndAddEdge(exitNode)
val graph = popGraph()
@@ -1222,7 +1233,7 @@ class ControlFlowGraphBuilder {
createInitBlockEnterNode(it) to createInitBlockExitNode(it)
}
exitTargetsForTry.push(exitNode)
enterToLocalClassesMembers.remove(initBlock.symbol)?.let { addEdge(it, enterNode, preferredKind = EdgeKind.DfgForward) }
addEdgeIfLocalClassMember(initBlock, enterNode)
return enterNode
}
@@ -1322,6 +1333,7 @@ class ControlFlowGraphBuilder {
// -------------------------------------------------------------------------------------------------------------------------
fun reset() {
enterToLocalClassesMembers.clear()
postponedLambdaExits.reset()
lastNodes.reset()
}
@@ -1368,6 +1380,16 @@ class ControlFlowGraphBuilder {
CFGNode.addEdge(from, to, kind, propagateDeadness, label)
}
private fun addEdgeToSubGraph(from: CFGNode<*>, to: CFGNode<*>) {
val wasDead = to.isDead
val isDead = wasDead || from.isDead
// Can only add control flow since data flow for every node that follows `to` has already been computed.
CFGNode.addEdge(from, to, if (isDead) EdgeKind.DeadForward else EdgeKind.CfgForward, propagateDeadness = true)
if (isDead && !wasDead) {
propagateDeadnessForward(to)
}
}
private fun addBackEdge(from: CFGNode<*>, to: CFGNode<*>, isDead: Boolean = false, label: EdgeLabel = LoopBackPath) {
val kind = if (isDead || from.isDead || to.isDead) EdgeKind.DeadBackward else EdgeKind.CfgBackward
CFGNode.addEdge(from, to, kind, propagateDeadness = false, label = label)
@@ -52,9 +52,6 @@ fun ControlFlowGraphBuilder.createBlockEnterNode(fir: FirBlock): BlockEnterNode
fun ControlFlowGraphBuilder.createBlockExitNode(fir: FirBlock): BlockExitNode = BlockExitNode(currentGraph, fir, levelCounter, createId())
fun ControlFlowGraphBuilder.createPartOfClassInitializationNode(fir: FirControlFlowGraphOwner): PartOfClassInitializationNode =
PartOfClassInitializationNode(currentGraph, fir, levelCounter, createId())
fun ControlFlowGraphBuilder.createPropertyInitializerExitNode(fir: FirProperty): PropertyInitializerExitNode =
PropertyInitializerExitNode(currentGraph, fir, levelCounter, createId())
@@ -224,8 +224,10 @@ class AnonymousFunctionExpressionNode(owner: ControlFlowGraph, override val fir:
// ----------------------------------- Classes -----------------------------------
class ClassEnterNode(owner: ControlFlowGraph, override val fir: FirClass, level: Int, id: Int) : CFGNode<FirClass>(owner, level, id),
class ClassEnterNode(owner: ControlFlowGraph, override val fir: FirClass, level: Int, id: Int) : CFGNodeWithSubgraphs<FirClass>(owner, level, id),
GraphEnterNodeMarker {
override lateinit var subGraphs: List<ControlFlowGraph>
override fun <R, D> accept(visitor: ControlFlowGraphVisitor<R, D>, data: D): R {
return visitor.visitClassEnterNode(this, data)
}
@@ -279,14 +281,6 @@ class ScriptExitNode(owner: ControlFlowGraph, override val fir: FirScript, level
}
}
// ----------------------------------- Initialization -----------------------------------
class PartOfClassInitializationNode(owner: ControlFlowGraph, override val fir: FirControlFlowGraphOwner, level: Int, id: Int) : CFGNodeWithCfgOwner<FirControlFlowGraphOwner>(owner, level, id) {
override fun <R, D> accept(visitor: ControlFlowGraphVisitor<R, D>, data: D): R {
return visitor.visitPartOfClassInitializationNode(this, data)
}
}
// ----------------------------------- Property -----------------------------------
class PropertyInitializerEnterNode(owner: ControlFlowGraph, override val fir: FirProperty, level: Int, id: Int) : CFGNode<FirProperty>(owner, level, id),
@@ -82,7 +82,6 @@ fun CFGNode<*>.render(): String =
is BinaryOrEnterRightOperandNode -> "Enter right part of ||"
is BinaryOrExitNode -> "Exit ||"
is PartOfClassInitializationNode -> "Part of class initialization"
is PropertyInitializerEnterNode -> "Enter property"
is PropertyInitializerExitNode -> "Exit property"
is DelegateExpressionExitNode -> "Exit property delegate"
@@ -96,12 +96,6 @@ abstract class ControlFlowGraphVisitor<out R, in D> {
return visitNode(node, data)
}
// ----------------------------------- Initialization -----------------------------------
open fun visitPartOfClassInitializationNode(node: PartOfClassInitializationNode, data: D): R {
return visitNode(node, data)
}
// ----------------------------------- Property -----------------------------------
open fun visitPropertyInitializerEnterNode(node: PropertyInitializerEnterNode, data: D): R {
File diff suppressed because it is too large Load Diff