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