[FIR] Add control flow graph for class initialization

This commit is contained in:
Dmitriy Novozhilov
2020-03-27 14:48:08 +03:00
parent ad9e6517c7
commit 8cb6e8f8af
43 changed files with 7687 additions and 7023 deletions
+157 -149
View File
@@ -13,93 +13,101 @@ digraph complex_kt {
subgraph cluster_1 {
color=red
2 [label="Enter function addSuppressed" style="filled" fillcolor=red];
3 [label="Exit function addSuppressed" style="filled" fillcolor=red];
2 [label="Enter class AutoCloseable" style="filled" fillcolor=red];
3 [label="Exit class AutoCloseable" style="filled" fillcolor=red];
}
2 -> {3};
2 -> {3} [color=green];
subgraph cluster_2 {
color=red
4 [label="Enter function closeFinally" style="filled" fillcolor=red];
subgraph cluster_3 {
4 [label="Enter function addSuppressed" style="filled" fillcolor=red];
5 [label="Exit function addSuppressed" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
color=red
6 [label="Enter function closeFinally" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
5 [label="Enter when"];
subgraph cluster_4 {
color=blue
6 [label="Enter when branch condition "];
7 [label="Access variable this@R|/closeFinally|"];
8 [label="Const: Null(null)"];
9 [label="Operator =="];
10 [label="Exit when branch condition"];
}
7 [label="Enter when"];
subgraph cluster_5 {
color=blue
11 [label="Enter when branch condition "];
12 [label="Access variable R|<local>/cause|"];
13 [label="Const: Null(null)"];
14 [label="Operator =="];
15 [label="Exit when branch condition"];
8 [label="Enter when branch condition "];
9 [label="Access variable this@R|/closeFinally|"];
10 [label="Const: Null(null)"];
11 [label="Operator =="];
12 [label="Exit when branch condition"];
}
subgraph cluster_6 {
color=blue
16 [label="Enter when branch condition else"];
13 [label="Enter when branch condition "];
14 [label="Access variable R|<local>/cause|"];
15 [label="Const: Null(null)"];
16 [label="Operator =="];
17 [label="Exit when branch condition"];
}
18 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
19 [label="Enter block"];
subgraph cluster_8 {
color=blue
20 [label="Try expression enter"];
subgraph cluster_9 {
color=blue
21 [label="Try main block enter"];
subgraph cluster_10 {
color=blue
22 [label="Enter block"];
23 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
24 [label="Exit block"];
}
25 [label="Try main block exit"];
}
subgraph cluster_11 {
color=blue
26 [label="Catch enter"];
subgraph cluster_12 {
color=blue
27 [label="Enter block"];
28 [label="Access variable R|<local>/cause|"];
29 [label="Access variable R|<local>/closeException|"];
30 [label="Function call: R|<local>/cause|.R|/addSuppressed|(...)"];
31 [label="Exit block"];
}
32 [label="Catch exit"];
}
33 [label="Try expression exit"];
}
34 [label="Exit block"];
18 [label="Enter when branch condition else"];
19 [label="Exit when branch condition"];
}
35 [label="Exit when branch result"];
36 [label="Enter when branch result"];
subgraph cluster_13 {
20 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
37 [label="Enter block"];
38 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
39 [label="Exit block"];
21 [label="Enter block"];
subgraph cluster_9 {
color=blue
22 [label="Try expression enter"];
subgraph cluster_10 {
color=blue
23 [label="Try main block enter"];
subgraph cluster_11 {
color=blue
24 [label="Enter block"];
25 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
26 [label="Exit block"];
}
27 [label="Try main block exit"];
}
subgraph cluster_12 {
color=blue
28 [label="Catch enter"];
subgraph cluster_13 {
color=blue
29 [label="Enter block"];
30 [label="Access variable R|<local>/cause|"];
31 [label="Access variable R|<local>/closeException|"];
32 [label="Function call: R|<local>/cause|.R|/addSuppressed|(...)"];
33 [label="Exit block"];
}
34 [label="Catch exit"];
}
35 [label="Try expression exit"];
}
36 [label="Exit block"];
}
40 [label="Exit when branch result"];
41 [label="Enter when branch result"];
37 [label="Exit when branch result"];
38 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
42 [label="Enter block"];
43 [label="Exit block"];
39 [label="Enter block"];
40 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
41 [label="Exit block"];
}
44 [label="Exit when branch result"];
45 [label="Exit when"];
42 [label="Exit when branch result"];
43 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
44 [label="Enter block"];
45 [label="Exit block"];
}
46 [label="Exit when branch result"];
47 [label="Exit when"];
}
46 [label="Jump: ^closeFinally when () {
48 [label="Jump: ^closeFinally when () {
==(this@R|/closeFinally|, Null(null)) -> {
}
==(R|<local>/cause|, Null(null)) -> {
@@ -116,127 +124,125 @@ digraph complex_kt {
}
}
"];
47 [label="Stub" style="filled" fillcolor=gray];
48 [label="Exit function closeFinally" style="filled" fillcolor=red];
49 [label="Stub" style="filled" fillcolor=gray];
50 [label="Exit function closeFinally" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {41 11};
10 -> {11};
11 -> {12};
12 -> {13};
12 -> {43 13};
13 -> {14};
14 -> {15};
15 -> {36 16};
15 -> {16};
16 -> {17};
17 -> {18};
17 -> {38 18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {48 26 22};
21 -> {22};
22 -> {23};
23 -> {24};
23 -> {50 28 24};
24 -> {25};
25 -> {33};
26 -> {48 27};
27 -> {28};
28 -> {29};
25 -> {26};
26 -> {27};
27 -> {35};
28 -> {50 29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {45};
35 -> {36};
36 -> {37};
37 -> {38};
37 -> {47};
38 -> {39};
39 -> {40};
40 -> {45};
40 -> {41};
41 -> {42};
42 -> {43};
42 -> {47};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {48};
46 -> {47} [style=dotted];
47 -> {48} [style=dotted];
46 -> {47};
47 -> {48};
48 -> {50};
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
subgraph cluster_15 {
subgraph cluster_16 {
color=red
49 [label="Enter function firstIsInstanceOrNull" style="filled" fillcolor=red];
50 [label="Access variable this@R|/firstIsInstanceOrNull|"];
51 [label="Function call: this@R|/firstIsInstanceOrNull|.R|FakeOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Any?>|>|()"];
52 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"];
subgraph cluster_16 {
51 [label="Enter function firstIsInstanceOrNull" style="filled" fillcolor=red];
52 [label="Access variable this@R|/firstIsInstanceOrNull|"];
53 [label="Function call: this@R|/firstIsInstanceOrNull|.R|FakeOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Any?>|>|()"];
54 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"];
subgraph cluster_17 {
color=blue
53 [label="Enter while loop"];
subgraph cluster_17 {
color=blue
54 [label="Enter loop condition"];
55 [label="Access variable R|<local>/<iterator>|"];
56 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
57 [label="Exit loop condition"];
}
55 [label="Enter while loop"];
subgraph cluster_18 {
color=blue
58 [label="Enter loop block"];
subgraph cluster_19 {
56 [label="Enter loop condition"];
57 [label="Access variable R|<local>/<iterator>|"];
58 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
59 [label="Exit loop condition"];
}
subgraph cluster_19 {
color=blue
60 [label="Enter loop block"];
subgraph cluster_20 {
color=blue
59 [label="Enter block"];
60 [label="Access variable R|<local>/<iterator>|"];
61 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"];
62 [label="Variable declaration: lval element: R|kotlin/Any?|"];
subgraph cluster_20 {
61 [label="Enter block"];
62 [label="Access variable R|<local>/<iterator>|"];
63 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"];
64 [label="Variable declaration: lval element: R|kotlin/Any?|"];
subgraph cluster_21 {
color=blue
63 [label="Enter when"];
subgraph cluster_21 {
color=blue
64 [label="Enter when branch condition "];
65 [label="Access variable R|<local>/element|"];
66 [label="Type operator: (R|<local>/element| is R|T|)"];
67 [label="Exit when branch condition"];
}
68 [label="Synthetic else branch"];
69 [label="Enter when branch result"];
65 [label="Enter when"];
subgraph cluster_22 {
color=blue
70 [label="Enter block"];
71 [label="Access variable R|<local>/element|"];
72 [label="Jump: ^firstIsInstanceOrNull R|<local>/element|"];
73 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit block" style="filled" fillcolor=gray];
66 [label="Enter when branch condition "];
67 [label="Access variable R|<local>/element|"];
68 [label="Type operator: (R|<local>/element| is R|T|)"];
69 [label="Exit when branch condition"];
}
75 [label="Exit when branch result" style="filled" fillcolor=gray];
76 [label="Exit when"];
70 [label="Synthetic else branch"];
71 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
72 [label="Enter block"];
73 [label="Access variable R|<local>/element|"];
74 [label="Jump: ^firstIsInstanceOrNull R|<local>/element|"];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray];
}
77 [label="Exit when branch result" style="filled" fillcolor=gray];
78 [label="Exit when"];
}
77 [label="Exit block"];
79 [label="Exit block"];
}
78 [label="Exit loop block"];
80 [label="Exit loop block"];
}
79 [label="Exit whileloop"];
81 [label="Exit whileloop"];
}
80 [label="Const: Null(null)"];
81 [label="Jump: ^firstIsInstanceOrNull Null(null)"];
82 [label="Stub" style="filled" fillcolor=gray];
83 [label="Exit function firstIsInstanceOrNull" style="filled" fillcolor=red];
82 [label="Const: Null(null)"];
83 [label="Jump: ^firstIsInstanceOrNull Null(null)"];
84 [label="Stub" style="filled" fillcolor=gray];
85 [label="Exit function firstIsInstanceOrNull" style="filled" fillcolor=red];
}
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {79 58};
57 -> {58};
58 -> {59};
59 -> {60};
59 -> {81 60};
60 -> {61};
61 -> {62};
62 -> {63};
@@ -244,23 +250,25 @@ digraph complex_kt {
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {69 68};
68 -> {76};
69 -> {70};
70 -> {71};
67 -> {68};
68 -> {69};
69 -> {71 70};
70 -> {78};
71 -> {72};
72 -> {83};
72 -> {73} [style=dotted];
73 -> {74} [style=dotted];
72 -> {73};
73 -> {74};
74 -> {85};
74 -> {75} [style=dotted];
75 -> {76} [style=dotted];
76 -> {77};
77 -> {78};
78 -> {54};
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {83};
81 -> {82} [style=dotted];
82 -> {83} [style=dotted];
80 -> {56};
81 -> {82};
82 -> {83};
83 -> {85};
83 -> {84} [style=dotted];
84 -> {85} [style=dotted];
}
@@ -34,42 +34,56 @@ digraph initBlock_kt {
subgraph cluster_3 {
color=red
9 [label="Enter function <init>" style="filled" fillcolor=red];
10 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
11 [label="Exit function <init>" style="filled" fillcolor=red];
9 [label="Enter class Foo" style="filled" fillcolor=red];
10 [label="Exit class Foo" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
subgraph cluster_4 {
color=red
12 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
13 [label="Enter block"];
14 [label="Const: Int(1)"];
15 [label="Variable declaration: lval x: R|kotlin/Int|"];
16 [label="Function call: R|java/lang/Exception.Exception|()"];
17 [label="Throw: throw R|java/lang/Exception.Exception|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Const: Int(2)" style="filled" fillcolor=gray];
20 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
21 [label="Exit block" style="filled" fillcolor=gray];
}
22 [label="Exit init block" style="filled" fillcolor=red];
11 [label="Enter function <init>" style="filled" fillcolor=red];
12 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
13 [label="Exit function <init>" style="filled" fillcolor=red];
}
11 -> {12};
12 -> {13};
13 -> {14};
subgraph cluster_5 {
color=red
14 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
15 [label="Enter block"];
16 [label="Const: Int(1)"];
17 [label="Variable declaration: lval x: R|kotlin/Int|"];
18 [label="Function call: R|java/lang/Exception.Exception|()"];
19 [label="Throw: throw R|java/lang/Exception.Exception|()"];
20 [label="Stub" style="filled" fillcolor=gray];
21 [label="Const: Int(2)" style="filled" fillcolor=gray];
22 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
23 [label="Exit block" style="filled" fillcolor=gray];
}
24 [label="Exit init block" style="filled" fillcolor=red];
}
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {22};
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
17 -> {18};
18 -> {19};
19 -> {24};
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {22} [style=dotted];
22 -> {23} [style=dotted];
23 -> {24} [style=dotted];
subgraph cluster_7 {
color=red
25 [label="Enter class Bar" style="filled" fillcolor=red];
26 [label="Exit class Bar" style="filled" fillcolor=red];
}
}
@@ -5,76 +5,98 @@ digraph initBlockAndInPlaceLambda_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function getter" style="filled" fillcolor=red];
1 [label="Exit function getter" style="filled" fillcolor=red];
0 [label="Enter class B" style="filled" fillcolor=red];
1 [label="Exit class B" style="filled" fillcolor=red];
}
0 -> {1};
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter property" style="filled" fillcolor=red];
3 [label="Exit property" style="filled" fillcolor=red];
2 [label="Enter function getter" style="filled" fillcolor=red];
3 [label="Exit function getter" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function <init>" style="filled" fillcolor=red];
5 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
6 [label="Exit function <init>" style="filled" fillcolor=red];
4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Exit property" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
subgraph cluster_3 {
color=red
7 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
8 [label="Enter block"];
9 [label="Access variable R|<local>/a|"];
10 [label="Access variable R|/A.b|"];
11 [label="Enter safe call"];
12 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
13 [label="Enter function anonymousFunction"];
14 [label="Access variable R|<local>/a|"];
15 [label="Access variable R|<local>/it|"];
16 [label="Function call: R|/C.C|(...)"];
17 [label="Exit function anonymousFunction"];
}
18 [label="Call arguments union" style="filled" fillcolor=yellow];
19 [label="Postponed exit from lambda"];
20 [label="Function call: R|<local>/a|.R|/A.b|?.R|kotlin/let|<R|B|, R|C|>(...)"];
21 [label="Exit safe call"];
22 [label="Variable declaration: lval c: R|C?|"];
23 [label="Exit block"];
}
24 [label="Exit init block" style="filled" fillcolor=red];
6 [label="Enter class A" style="filled" fillcolor=red];
7 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=red
8 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
10 [label="Exit function <init>" style="filled" fillcolor=red];
}
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11 21};
subgraph cluster_5 {
color=red
11 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
12 [label="Enter block"];
13 [label="Access variable R|<local>/a|"];
14 [label="Access variable R|/A.b|"];
15 [label="Enter safe call"];
16 [label="Postponed enter to lambda"];
subgraph cluster_7 {
color=blue
17 [label="Enter function anonymousFunction"];
18 [label="Access variable R|<local>/a|"];
19 [label="Access variable R|<local>/it|"];
20 [label="Function call: R|/C.C|(...)"];
21 [label="Exit function anonymousFunction"];
}
22 [label="Call arguments union" style="filled" fillcolor=yellow];
23 [label="Postponed exit from lambda"];
24 [label="Function call: R|<local>/a|.R|/A.b|?.R|kotlin/let|<R|B|, R|C|>(...)"];
25 [label="Exit safe call"];
26 [label="Variable declaration: lval c: R|C?|"];
27 [label="Exit block"];
}
28 [label="Exit init block" style="filled" fillcolor=red];
}
11 -> {12};
12 -> {13};
12 -> {19} [color=red];
13 -> {14};
14 -> {15};
14 -> {15 25};
15 -> {16};
16 -> {17};
17 -> {19} [color=green];
17 -> {18} [color=red];
18 -> {20} [color=red];
19 -> {20} [color=green];
16 -> {23} [color=red];
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
21 -> {23} [color=green];
21 -> {22} [color=red];
22 -> {24} [color=red];
23 -> {24} [color=green];
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
subgraph cluster_8 {
color=red
29 [label="Enter class C" style="filled" fillcolor=red];
30 [label="Exit class C" style="filled" fillcolor=red];
}
}
@@ -5,63 +5,87 @@ digraph lambdaReturningObject_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function bar" style="filled" fillcolor=red];
1 [label="Exit function bar" style="filled" fillcolor=red];
0 [label="Enter class Out" style="filled" fillcolor=red];
1 [label="Exit class Out" style="filled" fillcolor=red];
}
0 -> {1};
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
4 [label="Exit function <init>" style="filled" fillcolor=red];
2 [label="Enter function bar" style="filled" fillcolor=red];
3 [label="Exit function bar" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
subgraph cluster_2 {
color=red
5 [label="Enter function MyOut" style="filled" fillcolor=red];
6 [label="Function call: R|kotlin/TODO|()"];
7 [label="Stub" style="filled" fillcolor=gray];
8 [label="Jump: ^MyOut R|kotlin/TODO|()" style="filled" fillcolor=gray];
9 [label="Stub" style="filled" fillcolor=gray];
10 [label="Exit function MyOut" style="filled" fillcolor=red];
4 [label="Enter class IrTypeArgument" style="filled" fillcolor=red];
5 [label="Exit class IrTypeArgument" style="filled" fillcolor=red];
}
5 -> {6};
6 -> {10};
6 -> {7} [style=dotted];
7 -> {8} [style=dotted];
8 -> {10 9} [style=dotted];
9 -> {10} [style=dotted];
4 -> {5} [color=green];
subgraph cluster_3 {
color=red
11 [label="Enter function foo" style="filled" fillcolor=red];
12 [label="Postponed enter to lambda"];
13 [label="Postponed exit from lambda"];
14 [label="Function call: R|/MyOut|<R|IrStarProjectionImpl|>(...)"];
15 [label="Function call: R|/bar|(...)"];
16 [label="Exit function foo" style="filled" fillcolor=red];
6 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
8 [label="Exit function <init>" style="filled" fillcolor=red];
}
11 -> {12};
12 -> {13 13} [color=green];
13 -> {14};
14 -> {15};
15 -> {16};
6 -> {7};
7 -> {8};
subgraph cluster_4 {
color=red
17 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
18 [label="Access qualifier /IrStarProjectionImpl"];
19 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
9 [label="Enter class IrStarProjectionImpl" style="filled" fillcolor=red];
10 [label="Exit class IrStarProjectionImpl" style="filled" fillcolor=red];
}
9 -> {10} [color=green];
subgraph cluster_5 {
color=red
11 [label="Enter function MyOut" style="filled" fillcolor=red];
12 [label="Function call: R|kotlin/TODO|()"];
13 [label="Stub" style="filled" fillcolor=gray];
14 [label="Jump: ^MyOut R|kotlin/TODO|()" style="filled" fillcolor=gray];
15 [label="Stub" style="filled" fillcolor=gray];
16 [label="Exit function MyOut" style="filled" fillcolor=red];
}
11 -> {12};
12 -> {16};
12 -> {13} [style=dotted];
13 -> {14} [style=dotted];
14 -> {16 15} [style=dotted];
15 -> {16} [style=dotted];
subgraph cluster_6 {
color=red
17 [label="Enter function foo" style="filled" fillcolor=red];
18 [label="Postponed enter to lambda"];
19 [label="Postponed exit from lambda"];
20 [label="Function call: R|/MyOut|<R|IrStarProjectionImpl|>(...)"];
21 [label="Function call: R|/bar|(...)"];
22 [label="Exit function foo" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19};
18 -> {19 19} [color=green];
19 -> {20};
20 -> {21};
21 -> {22};
subgraph cluster_7 {
color=red
23 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
24 [label="Access qualifier /IrStarProjectionImpl"];
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
23 -> {24};
24 -> {25};
}
@@ -43,9 +43,10 @@ digraph localClassesWithImplicit_kt {
17 [label="Exit when branch result" style="filled" fillcolor=gray];
18 [label="Exit when"];
}
19 [label="Exit anonymous object"];
20 [label="Variable declaration: lval x: R|anonymous|"];
21 [label="Exit function test" style="filled" fillcolor=red];
19 [label="Exit local class test"];
20 [label="Exit anonymous object"];
21 [label="Variable declaration: lval x: R|anonymous|"];
22 [label="Exit function test" style="filled" fillcolor=red];
}
5 -> {6};
@@ -57,7 +58,7 @@ digraph localClassesWithImplicit_kt {
11 -> {18};
12 -> {13};
13 -> {14};
14 -> {21};
14 -> {22};
14 -> {15} [style=dotted];
15 -> {16} [style=dotted];
16 -> {17} [style=dotted];
@@ -65,66 +66,67 @@ digraph localClassesWithImplicit_kt {
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
subgraph cluster_5 {
color=red
22 [label="Enter function <init>" style="filled" fillcolor=red];
23 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
24 [label="Exit function <init>" style="filled" fillcolor=red];
23 [label="Enter function <init>" style="filled" fillcolor=red];
24 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
25 [label="Exit function <init>" style="filled" fillcolor=red];
}
22 -> {23};
23 -> {24};
24 -> {25};
subgraph cluster_6 {
color=red
25 [label="Enter function foo" style="filled" fillcolor=red];
26 [label="Postponed enter to lambda"];
26 [label="Enter function foo" style="filled" fillcolor=red];
27 [label="Postponed enter to lambda"];
subgraph cluster_7 {
color=blue
27 [label="Enter function anonymousFunction"];
28 [label="Access variable R|<local>/a|"];
29 [label="Access variable R|kotlin/String.length|"];
28 [label="Enter function anonymousFunction"];
29 [label="Access variable R|<local>/a|"];
30 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_8 {
color=blue
30 [label="Enter when"];
31 [label="Enter when"];
subgraph cluster_9 {
color=blue
31 [label="Enter when branch condition "];
32 [label="Access variable R|<local>/b|"];
33 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
34 [label="Exit when branch condition"];
32 [label="Enter when branch condition "];
33 [label="Access variable R|<local>/b|"];
34 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
35 [label="Exit when branch condition"];
}
subgraph cluster_10 {
color=blue
35 [label="Enter when branch condition else"];
36 [label="Exit when branch condition"];
36 [label="Enter when branch condition else"];
37 [label="Exit when branch condition"];
}
37 [label="Enter when branch result"];
38 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
38 [label="Enter block"];
39 [label="Const: Int(1)"];
40 [label="Exit block"];
39 [label="Enter block"];
40 [label="Const: Int(1)"];
41 [label="Exit block"];
}
41 [label="Exit when branch result"];
42 [label="Enter when branch result"];
42 [label="Exit when branch result"];
43 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
43 [label="Enter block"];
44 [label="Access variable R|<local>/b|"];
45 [label="Access variable R|kotlin/String.length|"];
46 [label="Function call: this@R|/A|.R|/A.bar|()"];
47 [label="Exit block"];
44 [label="Enter block"];
45 [label="Access variable R|<local>/b|"];
46 [label="Access variable R|kotlin/String.length|"];
47 [label="Function call: this@R|/A|.R|/A.bar|()"];
48 [label="Exit block"];
}
48 [label="Exit when branch result"];
49 [label="Exit when"];
49 [label="Exit when branch result"];
50 [label="Exit when"];
}
50 [label="Exit function anonymousFunction"];
51 [label="Exit function anonymousFunction"];
}
51 [label="Postponed exit from lambda"];
52 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
53 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
52 [label="Postponed exit from lambda"];
53 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
54 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
^ when () {
(R|<local>/b| is R|kotlin/String|) -> {
@@ -138,29 +140,28 @@ digraph localClassesWithImplicit_kt {
}
)"];
54 [label="Stub" style="filled" fillcolor=gray];
55 [label="Exit function foo" style="filled" fillcolor=red];
55 [label="Stub" style="filled" fillcolor=gray];
56 [label="Exit function foo" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27};
26 -> {51} [color=red];
27 -> {50 28};
28 -> {29};
27 -> {28};
27 -> {52} [color=red];
28 -> {51 29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {42 35};
35 -> {36};
34 -> {35};
35 -> {43 36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {49};
42 -> {43};
41 -> {42};
42 -> {50};
43 -> {44};
44 -> {45};
45 -> {46};
@@ -168,132 +169,140 @@ digraph localClassesWithImplicit_kt {
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {27};
50 -> {51} [color=green];
51 -> {52};
50 -> {51};
51 -> {28};
51 -> {52} [color=green];
52 -> {53};
53 -> {55};
53 -> {54} [style=dotted];
53 -> {54};
54 -> {56};
54 -> {55} [style=dotted];
55 -> {56} [style=dotted];
subgraph cluster_13 {
color=red
56 [label="Enter function bar" style="filled" fillcolor=red];
57 [label="Postponed enter to lambda"];
57 [label="Enter function bar" style="filled" fillcolor=red];
58 [label="Postponed enter to lambda"];
subgraph cluster_14 {
color=blue
58 [label="Enter function anonymousFunction"];
59 [label="Access variable R|<local>/b|"];
60 [label="Access variable <Unresolved name: length>#"];
61 [label="Access variable R|<local>/a|"];
62 [label="Access variable R|kotlin/String.length|"];
63 [label="Function call: this@R|/A|.R|/A.baz|()"];
64 [label="Exit function anonymousFunction"];
59 [label="Enter function anonymousFunction"];
60 [label="Access variable R|<local>/b|"];
61 [label="Access variable <Unresolved name: length>#"];
62 [label="Access variable R|<local>/a|"];
63 [label="Access variable R|kotlin/String.length|"];
64 [label="Function call: this@R|/A|.R|/A.baz|()"];
65 [label="Exit function anonymousFunction"];
}
65 [label="Postponed exit from lambda"];
66 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
67 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
66 [label="Postponed exit from lambda"];
67 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
68 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/b|.<Unresolved name: length>#
R|<local>/a|.R|kotlin/String.length|
^ this@R|/A|.R|/A.baz|()
}
)"];
68 [label="Stub" style="filled" fillcolor=gray];
69 [label="Exit function bar" style="filled" fillcolor=red];
69 [label="Stub" style="filled" fillcolor=gray];
70 [label="Exit function bar" style="filled" fillcolor=red];
}
56 -> {57};
57 -> {58};
57 -> {65} [color=red];
58 -> {64 59};
59 -> {60};
58 -> {59};
58 -> {66} [color=red];
59 -> {65 60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {58};
64 -> {65} [color=green];
65 -> {66};
64 -> {65};
65 -> {59};
65 -> {66} [color=green];
66 -> {67};
67 -> {69};
67 -> {68} [style=dotted];
67 -> {68};
68 -> {70};
68 -> {69} [style=dotted];
69 -> {70} [style=dotted];
subgraph cluster_15 {
color=red
70 [label="Enter function baz" style="filled" fillcolor=red];
71 [label="Const: Int(1)"];
72 [label="Jump: ^baz Int(1)"];
73 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit function baz" style="filled" fillcolor=red];
71 [label="Enter function baz" style="filled" fillcolor=red];
72 [label="Const: Int(1)"];
73 [label="Jump: ^baz Int(1)"];
74 [label="Stub" style="filled" fillcolor=gray];
75 [label="Exit function baz" style="filled" fillcolor=red];
}
70 -> {71};
71 -> {72};
72 -> {74};
72 -> {73} [style=dotted];
72 -> {73};
73 -> {75};
73 -> {74} [style=dotted];
74 -> {75} [style=dotted];
subgraph cluster_16 {
color=red
75 [label="Enter function <init>" style="filled" fillcolor=red];
76 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
77 [label="Exit function <init>" style="filled" fillcolor=red];
76 [label="Enter class A" style="filled" fillcolor=red];
77 [label="Exit class A" style="filled" fillcolor=red];
}
75 -> {76};
76 -> {77};
76 -> {77} [color=green];
subgraph cluster_17 {
color=red
78 [label="Enter function foo" style="filled" fillcolor=red];
79 [label="Postponed enter to lambda"];
subgraph cluster_18 {
78 [label="Enter function <init>" style="filled" fillcolor=red];
79 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
80 [label="Exit function <init>" style="filled" fillcolor=red];
}
78 -> {79};
79 -> {80};
subgraph cluster_18 {
color=red
81 [label="Enter function foo" style="filled" fillcolor=red];
82 [label="Postponed enter to lambda"];
subgraph cluster_19 {
color=blue
80 [label="Enter function anonymousFunction"];
81 [label="Access variable R|<local>/a|"];
82 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_19 {
83 [label="Enter function anonymousFunction"];
84 [label="Access variable R|<local>/a|"];
85 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_20 {
color=blue
83 [label="Enter when"];
subgraph cluster_20 {
color=blue
84 [label="Enter when branch condition "];
85 [label="Access variable R|<local>/b|"];
86 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
87 [label="Exit when branch condition"];
}
86 [label="Enter when"];
subgraph cluster_21 {
color=blue
88 [label="Enter when branch condition else"];
89 [label="Exit when branch condition"];
87 [label="Enter when branch condition "];
88 [label="Access variable R|<local>/b|"];
89 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
90 [label="Exit when branch condition"];
}
90 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
91 [label="Enter block"];
92 [label="Const: Int(1)"];
93 [label="Exit block"];
91 [label="Enter when branch condition else"];
92 [label="Exit when branch condition"];
}
94 [label="Exit when branch result"];
95 [label="Enter when branch result"];
93 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
96 [label="Enter block"];
97 [label="Access variable R|<local>/b|"];
98 [label="Access variable R|kotlin/String.length|"];
99 [label="Exit anonymous object"];
100 [label="Function call: this@R|/anonymous|.R|/anonymous.bar|()"];
101 [label="Exit block"];
94 [label="Enter block"];
95 [label="Const: Int(1)"];
96 [label="Exit block"];
}
102 [label="Exit when branch result"];
103 [label="Exit when"];
97 [label="Exit when branch result"];
98 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
99 [label="Enter block"];
100 [label="Access variable R|<local>/b|"];
101 [label="Access variable R|kotlin/String.length|"];
102 [label="Function call: this@R|/anonymous|.R|/anonymous.bar|()"];
103 [label="Exit block"];
}
104 [label="Exit when branch result"];
105 [label="Exit when"];
}
104 [label="Exit function anonymousFunction"];
106 [label="Exit function anonymousFunction"];
}
105 [label="Postponed exit from lambda"];
106 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
107 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
107 [label="Postponed exit from lambda"];
108 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
109 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
^ when () {
(R|<local>/b| is R|kotlin/String|) -> {
@@ -307,103 +316,108 @@ digraph localClassesWithImplicit_kt {
}
)"];
108 [label="Stub" style="filled" fillcolor=gray];
109 [label="Exit function foo" style="filled" fillcolor=red];
110 [label="Stub" style="filled" fillcolor=gray];
111 [label="Exit function foo" style="filled" fillcolor=red];
}
78 -> {79};
79 -> {80};
79 -> {105} [color=red];
80 -> {104 81};
81 -> {82};
82 -> {83};
83 -> {84};
82 -> {107} [color=red];
83 -> {106 84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {95 88};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
90 -> {98 91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {103};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
97 -> {105};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {80};
104 -> {105} [color=green];
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {109};
107 -> {108} [style=dotted];
108 -> {109} [style=dotted];
106 -> {83};
106 -> {107} [color=green];
107 -> {108};
108 -> {109};
109 -> {111};
109 -> {110} [style=dotted];
110 -> {111} [style=dotted];
subgraph cluster_24 {
subgraph cluster_25 {
color=red
110 [label="Enter function bar" style="filled" fillcolor=red];
111 [label="Postponed enter to lambda"];
subgraph cluster_25 {
112 [label="Enter function bar" style="filled" fillcolor=red];
113 [label="Postponed enter to lambda"];
subgraph cluster_26 {
color=blue
112 [label="Enter function anonymousFunction"];
113 [label="Access variable R|<local>/a|"];
114 [label="Access variable R|kotlin/String.length|"];
115 [label="Access variable R|<local>/b|"];
116 [label="Access variable <Unresolved name: length>#"];
117 [label="Exit anonymous object"];
118 [label="Function call: this@R|/anonymous|.R|/anonymous.baz|()"];
119 [label="Exit function anonymousFunction"];
114 [label="Enter function anonymousFunction"];
115 [label="Access variable R|<local>/a|"];
116 [label="Access variable R|kotlin/String.length|"];
117 [label="Access variable R|<local>/b|"];
118 [label="Access variable <Unresolved name: length>#"];
119 [label="Function call: this@R|/anonymous|.R|/anonymous.baz|()"];
120 [label="Exit function anonymousFunction"];
}
120 [label="Postponed exit from lambda"];
121 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
122 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
121 [label="Postponed exit from lambda"];
122 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
123 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
R|<local>/b|.<Unresolved name: length>#
^ this@R|/anonymous|.R|/anonymous.baz|()
}
)"];
123 [label="Stub" style="filled" fillcolor=gray];
124 [label="Exit function bar" style="filled" fillcolor=red];
124 [label="Stub" style="filled" fillcolor=gray];
125 [label="Exit function bar" style="filled" fillcolor=red];
}
110 -> {111};
111 -> {112};
111 -> {120} [color=red];
112 -> {119 113};
112 -> {113};
113 -> {114};
114 -> {115};
113 -> {121} [color=red];
114 -> {120 115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {112};
119 -> {120} [color=green];
120 -> {121};
119 -> {120};
120 -> {114};
120 -> {121} [color=green];
121 -> {122};
122 -> {124};
122 -> {123} [style=dotted];
122 -> {123};
123 -> {125};
123 -> {124} [style=dotted];
124 -> {125} [style=dotted];
subgraph cluster_26 {
subgraph cluster_27 {
color=red
125 [label="Enter function baz" style="filled" fillcolor=red];
126 [label="Const: Int(1)"];
127 [label="Jump: ^baz Int(1)"];
128 [label="Stub" style="filled" fillcolor=gray];
129 [label="Exit function baz" style="filled" fillcolor=red];
126 [label="Enter function baz" style="filled" fillcolor=red];
127 [label="Const: Int(1)"];
128 [label="Jump: ^baz Int(1)"];
129 [label="Stub" style="filled" fillcolor=gray];
130 [label="Exit function baz" style="filled" fillcolor=red];
}
125 -> {126};
126 -> {127};
127 -> {129};
127 -> {128} [style=dotted];
127 -> {128};
128 -> {130};
128 -> {129} [style=dotted];
129 -> {130} [style=dotted];
subgraph cluster_28 {
color=red
131 [label="Enter class <anonymous>" style="filled" fillcolor=red];
132 [label="Exit class <anonymous>" style="filled" fillcolor=red];
}
131 -> {132} [color=green];
}
@@ -15,73 +15,88 @@ digraph postponedLambdaInConstructor_kt {
subgraph cluster_1 {
color=red
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Access variable R|<local>/s|"];
5 [label="Postponed enter to lambda"];
subgraph cluster_2 {
color=blue
6 [label="Enter function anonymousFunction"];
7 [label="Postponed enter to lambda"];
8 [label="Postponed exit from lambda"];
9 [label="Exit function anonymousFunction"];
}
10 [label="Postponed exit from lambda"];
11 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)"];
12 [label="Call arguments union" style="filled" fillcolor=yellow];
13 [label="Delegated constructor call: super<R|A|>(...)"];
14 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Enter class A" style="filled" fillcolor=red];
4 [label="Exit class A" style="filled" fillcolor=red];
}
3 -> {4} [color=green];
subgraph cluster_2 {
color=red
5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Access variable R|<local>/s|"];
7 [label="Postponed enter to lambda"];
subgraph cluster_3 {
color=blue
8 [label="Enter function anonymousFunction"];
9 [label="Postponed enter to lambda"];
10 [label="Postponed exit from lambda"];
11 [label="Exit function anonymousFunction"];
}
12 [label="Postponed exit from lambda"];
13 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)"];
14 [label="Call arguments union" style="filled" fillcolor=yellow];
15 [label="Delegated constructor call: super<R|A|>(...)"];
16 [label="Exit function <init>" style="filled" fillcolor=red];
}
3 -> {4};
4 -> {5};
5 -> {6};
5 -> {10} [color=red];
6 -> {7};
7 -> {8 8} [color=green];
7 -> {8};
7 -> {12} [color=red];
8 -> {9};
9 -> {10} [color=green];
9 -> {12} [color=red];
9 -> {10 10} [color=green];
10 -> {11};
11 -> {12};
11 -> {12} [color=green];
11 -> {14} [color=red];
12 -> {13};
13 -> {14};
subgraph cluster_3 {
color=red
15 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
16 [label="Access variable R|<local>/it|"];
17 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
14 -> {15};
15 -> {16};
16 -> {17};
subgraph cluster_4 {
color=red
18 [label="Enter function getter" style="filled" fillcolor=red];
19 [label="Exit function getter" style="filled" fillcolor=red];
17 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
18 [label="Access variable R|<local>/it|"];
19 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19};
subgraph cluster_5 {
color=red
20 [label="Enter property" style="filled" fillcolor=red];
21 [label="Access variable R|<local>/s|"];
22 [label="Exit property" style="filled" fillcolor=red];
20 [label="Enter function getter" style="filled" fillcolor=red];
21 [label="Exit function getter" style="filled" fillcolor=red];
}
20 -> {21};
21 -> {22};
subgraph cluster_6 {
color=red
23 [label="Enter function foo" style="filled" fillcolor=red];
24 [label="Function call: this@R|/B|.R|/B.foo|()"];
25 [label="Exit function foo" style="filled" fillcolor=red];
22 [label="Enter property" style="filled" fillcolor=red];
23 [label="Access variable R|<local>/s|"];
24 [label="Exit property" style="filled" fillcolor=red];
}
22 -> {23};
23 -> {24};
24 -> {25};
subgraph cluster_7 {
color=red
25 [label="Enter function foo" style="filled" fillcolor=red];
26 [label="Function call: this@R|/B|.R|/B.foo|()"];
27 [label="Exit function foo" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27};
subgraph cluster_8 {
color=red
28 [label="Enter class B" style="filled" fillcolor=red];
29 [label="Exit class B" style="filled" fillcolor=red];
}
}
@@ -127,143 +127,157 @@ digraph propertiesAndInitBlocks_kt {
subgraph cluster_10 {
color=red
40 [label="Enter function getter" style="filled" fillcolor=red];
41 [label="Exit function getter" style="filled" fillcolor=red];
40 [label="Enter class LocalClass" style="filled" fillcolor=red];
41 [label="Exit class LocalClass" style="filled" fillcolor=red];
}
40 -> {41};
subgraph cluster_11 {
color=red
42 [label="Enter function <init>" style="filled" fillcolor=red];
43 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
44 [label="Exit function <init>" style="filled" fillcolor=red];
42 [label="Enter function getter" style="filled" fillcolor=red];
43 [label="Exit function getter" style="filled" fillcolor=red];
}
42 -> {43};
43 -> {44};
subgraph cluster_12 {
color=red
45 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
46 [label="Enter block"];
47 [label="Function call: R|java/lang/Exception.Exception|()"];
48 [label="Throw: throw R|java/lang/Exception.Exception|()"];
49 [label="Stub" style="filled" fillcolor=gray];
50 [label="Exit block" style="filled" fillcolor=gray];
}
51 [label="Exit init block" style="filled" fillcolor=red];
44 [label="Enter function <init>" style="filled" fillcolor=red];
45 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
46 [label="Exit function <init>" style="filled" fillcolor=red];
}
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {51};
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
subgraph cluster_14 {
subgraph cluster_13 {
color=red
52 [label="Enter property" style="filled" fillcolor=red];
53 [label="Postponed enter to lambda"];
subgraph cluster_15 {
47 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
54 [label="Enter function anonymousFunction"];
55 [label="Function call: R|java/lang/Exception.Exception|()"];
56 [label="Throw: throw R|java/lang/Exception.Exception|()"];
57 [label="Stub" style="filled" fillcolor=gray];
58 [label="Exit function anonymousFunction"];
48 [label="Enter block"];
49 [label="Function call: R|java/lang/Exception.Exception|()"];
50 [label="Throw: throw R|java/lang/Exception.Exception|()"];
51 [label="Stub" style="filled" fillcolor=gray];
52 [label="Exit block" style="filled" fillcolor=gray];
}
59 [label="Postponed exit from lambda"];
60 [label="Function call: R|/run|(...)"];
61 [label="Exit property" style="filled" fillcolor=red];
53 [label="Exit init block" style="filled" fillcolor=red];
}
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {53};
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
52 -> {53} [style=dotted];
subgraph cluster_15 {
color=red
54 [label="Enter class LocalClass" style="filled" fillcolor=red];
55 [label="Exit class LocalClass" style="filled" fillcolor=red];
}
52 -> {53};
53 -> {54};
53 -> {59} [color=red];
54 -> {58 55};
55 -> {56};
56 -> {61};
56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
58 -> {54};
58 -> {59} [color=green];
59 -> {60};
60 -> {61};
subgraph cluster_16 {
color=red
62 [label="Enter function getter" style="filled" fillcolor=red];
63 [label="Exit function getter" style="filled" fillcolor=red];
56 [label="Enter property" style="filled" fillcolor=red];
57 [label="Postponed enter to lambda"];
subgraph cluster_17 {
color=blue
58 [label="Enter function anonymousFunction"];
59 [label="Function call: R|java/lang/Exception.Exception|()"];
60 [label="Throw: throw R|java/lang/Exception.Exception|()"];
61 [label="Stub" style="filled" fillcolor=gray];
62 [label="Exit function anonymousFunction"];
}
63 [label="Postponed exit from lambda"];
64 [label="Function call: R|/run|(...)"];
65 [label="Exit property" style="filled" fillcolor=red];
}
62 -> {63};
56 -> {57};
57 -> {58};
57 -> {63} [color=red];
58 -> {62 59};
59 -> {60};
60 -> {65};
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
62 -> {58};
62 -> {63} [color=green];
63 -> {64};
64 -> {65};
subgraph cluster_17 {
subgraph cluster_18 {
color=red
64 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_18 {
66 [label="Enter function getter" style="filled" fillcolor=red];
67 [label="Exit function getter" style="filled" fillcolor=red];
}
66 -> {67};
subgraph cluster_19 {
color=red
68 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_20 {
color=blue
65 [label="Try expression enter"];
subgraph cluster_19 {
color=blue
66 [label="Try main block enter"];
subgraph cluster_20 {
color=blue
67 [label="Enter block"];
68 [label="Const: Int(1)"];
69 [label="Exit block"];
}
70 [label="Try main block exit"];
}
69 [label="Try expression enter"];
subgraph cluster_21 {
color=blue
71 [label="Enter finally"];
70 [label="Try main block enter"];
subgraph cluster_22 {
color=blue
72 [label="Enter block"];
73 [label="Const: Int(0)"];
74 [label="Exit block"];
71 [label="Enter block"];
72 [label="Const: Int(1)"];
73 [label="Exit block"];
}
75 [label="Exit finally"];
74 [label="Try main block exit"];
}
subgraph cluster_23 {
color=blue
76 [label="Catch enter"];
75 [label="Enter finally"];
subgraph cluster_24 {
color=blue
77 [label="Enter block"];
78 [label="Const: Int(2)"];
79 [label="Exit block"];
76 [label="Enter block"];
77 [label="Const: Int(0)"];
78 [label="Exit block"];
}
80 [label="Catch exit"];
79 [label="Exit finally"];
}
81 [label="Try expression exit"];
subgraph cluster_25 {
color=blue
80 [label="Catch enter"];
subgraph cluster_26 {
color=blue
81 [label="Enter block"];
82 [label="Const: Int(2)"];
83 [label="Exit block"];
}
84 [label="Catch exit"];
}
85 [label="Try expression exit"];
}
82 [label="Exit property" style="filled" fillcolor=red];
86 [label="Exit property" style="filled" fillcolor=red];
}
64 -> {65};
65 -> {66};
66 -> {82 76 71 67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {81};
70 -> {86 80 75 71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {81};
76 -> {82 77};
74 -> {85};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
79 -> {85};
80 -> {86 81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
}
@@ -5,155 +5,179 @@ digraph returnValuesFromLambda_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
5 [label="Exit function <init>" style="filled" fillcolor=red];
2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
4 [label="Exit function <init>" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
subgraph cluster_2 {
color=red
6 [label="Enter function test_1" style="filled" fillcolor=red];
7 [label="Postponed enter to lambda"];
subgraph cluster_3 {
color=blue
8 [label="Enter function anonymousFunction"];
subgraph cluster_4 {
color=blue
9 [label="Enter when"];
subgraph cluster_5 {
color=blue
10 [label="Enter when branch condition "];
11 [label="Access variable R|<local>/b|"];
12 [label="Exit when branch condition"];
}
13 [label="Synthetic else branch"];
14 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
15 [label="Enter block"];
16 [label="Function call: R|/B.B|()"];
17 [label="Jump: ^@run R|/B.B|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit block" style="filled" fillcolor=gray];
}
20 [label="Exit when branch result" style="filled" fillcolor=gray];
21 [label="Exit when"];
}
22 [label="Function call: R|/C.C|()"];
23 [label="Exit function anonymousFunction"];
}
24 [label="Call arguments union" style="filled" fillcolor=yellow];
25 [label="Postponed exit from lambda"];
26 [label="Function call: R|kotlin/run|<R|A|>(...)"];
27 [label="Variable declaration: lval x: R|A|"];
28 [label="Exit function test_1" style="filled" fillcolor=red];
5 [label="Enter class B" style="filled" fillcolor=red];
6 [label="Exit class B" style="filled" fillcolor=red];
}
5 -> {6} [color=green];
subgraph cluster_3 {
color=red
7 [label="Enter function <init>" style="filled" fillcolor=red];
8 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
9 [label="Exit function <init>" style="filled" fillcolor=red];
}
6 -> {7};
7 -> {8};
7 -> {25} [color=red];
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {14 13};
13 -> {21};
subgraph cluster_4 {
color=red
10 [label="Enter class C" style="filled" fillcolor=red];
11 [label="Exit class C" style="filled" fillcolor=red];
}
10 -> {11} [color=green];
subgraph cluster_5 {
color=red
12 [label="Enter function test_1" style="filled" fillcolor=red];
13 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
14 [label="Enter function anonymousFunction"];
subgraph cluster_7 {
color=blue
15 [label="Enter when"];
subgraph cluster_8 {
color=blue
16 [label="Enter when branch condition "];
17 [label="Access variable R|<local>/b|"];
18 [label="Exit when branch condition"];
}
19 [label="Synthetic else branch"];
20 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
21 [label="Enter block"];
22 [label="Function call: R|/B.B|()"];
23 [label="Jump: ^@run R|/B.B|()"];
24 [label="Stub" style="filled" fillcolor=gray];
25 [label="Exit block" style="filled" fillcolor=gray];
}
26 [label="Exit when branch result" style="filled" fillcolor=gray];
27 [label="Exit when"];
}
28 [label="Function call: R|/C.C|()"];
29 [label="Exit function anonymousFunction"];
}
30 [label="Call arguments union" style="filled" fillcolor=yellow];
31 [label="Postponed exit from lambda"];
32 [label="Function call: R|kotlin/run|<R|A|>(...)"];
33 [label="Variable declaration: lval x: R|A|"];
34 [label="Exit function test_1" style="filled" fillcolor=red];
}
12 -> {13};
13 -> {14};
13 -> {31} [color=red];
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {23};
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
17 -> {18};
18 -> {20 19};
19 -> {27};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {25} [color=green];
23 -> {24} [color=red];
24 -> {26} [color=red];
25 -> {26} [color=green];
26 -> {27};
23 -> {29};
23 -> {24} [style=dotted];
24 -> {25} [style=dotted];
25 -> {26} [style=dotted];
26 -> {27} [style=dotted];
27 -> {28};
subgraph cluster_7 {
color=red
29 [label="Enter function test_2" style="filled" fillcolor=red];
30 [label="Postponed enter to lambda"];
subgraph cluster_8 {
color=blue
31 [label="Enter function anonymousFunction"];
32 [label="Function call: R|/C.C|()"];
33 [label="Jump: ^@run R|/C.C|()"];
34 [label="Stub" style="filled" fillcolor=gray];
35 [label="Exit function anonymousFunction"];
}
36 [label="Call arguments union" style="filled" fillcolor=yellow];
37 [label="Postponed exit from lambda"];
38 [label="Function call: R|kotlin/run|<R|C|>(...)"];
39 [label="Variable declaration: lval x: R|C|"];
40 [label="Exit function test_2" style="filled" fillcolor=red];
}
29 -> {30};
30 -> {31};
30 -> {37} [color=red];
31 -> {32};
28 -> {29};
29 -> {31} [color=green];
29 -> {30} [color=red];
30 -> {32} [color=red];
31 -> {32} [color=green];
32 -> {33};
33 -> {35};
33 -> {34} [style=dotted];
34 -> {35} [style=dotted];
35 -> {37} [color=green];
35 -> {36} [color=red];
36 -> {38} [color=red];
37 -> {38} [color=green];
38 -> {39};
39 -> {40};
33 -> {34};
subgraph cluster_9 {
subgraph cluster_10 {
color=red
41 [label="Enter function test_3" style="filled" fillcolor=red];
42 [label="Postponed enter to lambda"];
subgraph cluster_10 {
35 [label="Enter function test_2" style="filled" fillcolor=red];
36 [label="Postponed enter to lambda"];
subgraph cluster_11 {
color=blue
43 [label="Enter function anonymousFunction"];
44 [label="Jump: ^test_3 Unit"];
45 [label="Stub" style="filled" fillcolor=gray];
46 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
37 [label="Enter function anonymousFunction"];
38 [label="Function call: R|/C.C|()"];
39 [label="Jump: ^@run R|/C.C|()"];
40 [label="Stub" style="filled" fillcolor=gray];
41 [label="Exit function anonymousFunction"];
}
47 [label="Call arguments union" style="filled" fillcolor=gray];
48 [label="Postponed exit from lambda"];
49 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
50 [label="Stub" style="filled" fillcolor=gray];
51 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray];
52 [label="Exit function test_3" style="filled" fillcolor=red];
42 [label="Call arguments union" style="filled" fillcolor=yellow];
43 [label="Postponed exit from lambda"];
44 [label="Function call: R|kotlin/run|<R|C|>(...)"];
45 [label="Variable declaration: lval x: R|C|"];
46 [label="Exit function test_2" style="filled" fillcolor=red];
}
41 -> {42};
42 -> {43};
42 -> {48} [color=red];
43 -> {44};
44 -> {52};
44 -> {45} [style=dotted];
45 -> {46} [style=dotted];
46 -> {47} [style=dotted];
46 -> {48} [color=green];
47 -> {49} [style=dotted];
48 -> {49} [color=green];
49 -> {52 50} [style=dotted];
35 -> {36};
36 -> {37};
36 -> {43} [color=red];
37 -> {38};
38 -> {39};
39 -> {41};
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
41 -> {43} [color=green];
41 -> {42} [color=red];
42 -> {44} [color=red];
43 -> {44} [color=green];
44 -> {45};
45 -> {46};
subgraph cluster_12 {
color=red
47 [label="Enter function test_3" style="filled" fillcolor=red];
48 [label="Postponed enter to lambda"];
subgraph cluster_13 {
color=blue
49 [label="Enter function anonymousFunction"];
50 [label="Jump: ^test_3 Unit"];
51 [label="Stub" style="filled" fillcolor=gray];
52 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
}
53 [label="Call arguments union" style="filled" fillcolor=gray];
54 [label="Postponed exit from lambda"];
55 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
56 [label="Stub" style="filled" fillcolor=gray];
57 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray];
58 [label="Exit function test_3" style="filled" fillcolor=red];
}
47 -> {48};
48 -> {49};
48 -> {54} [color=red];
49 -> {50};
50 -> {58};
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
52 -> {53} [style=dotted];
52 -> {54} [color=green];
53 -> {55} [style=dotted];
54 -> {55} [color=green];
55 -> {58 56} [style=dotted];
56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
}
@@ -21,78 +21,93 @@ digraph safeCalls_kt {
subgraph cluster_2 {
color=red
4 [label="Enter function getter" style="filled" fillcolor=red];
5 [label="Exit function getter" style="filled" fillcolor=red];
4 [label="Enter class A" style="filled" fillcolor=red];
5 [label="Exit class A" style="filled" fillcolor=red];
}
4 -> {5};
4 -> {5} [color=green];
subgraph cluster_3 {
color=red
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Exit property" style="filled" fillcolor=red];
6 [label="Enter function getter" style="filled" fillcolor=red];
7 [label="Exit function getter" style="filled" fillcolor=red];
}
6 -> {7};
subgraph cluster_4 {
color=red
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red];
8 [label="Enter property" style="filled" fillcolor=red];
9 [label="Exit property" style="filled" fillcolor=red];
}
8 -> {9};
subgraph cluster_5 {
color=red
10 [label="Enter property" style="filled" fillcolor=red];
11 [label="Exit property" style="filled" fillcolor=red];
10 [label="Enter function getter" style="filled" fillcolor=red];
11 [label="Exit function getter" style="filled" fillcolor=red];
}
10 -> {11};
subgraph cluster_6 {
color=red
12 [label="Enter function test_1" style="filled" fillcolor=red];
13 [label="Access variable R|<local>/x|"];
14 [label="Enter safe call"];
15 [label="Function call: R|<local>/x|?.R|/A.foo|()"];
16 [label="Exit safe call"];
17 [label="Enter safe call"];
18 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"];
19 [label="Exit safe call"];
20 [label="Exit function test_1" style="filled" fillcolor=red];
12 [label="Enter property" style="filled" fillcolor=red];
13 [label="Exit property" style="filled" fillcolor=red];
}
12 -> {13};
13 -> {14 16};
14 -> {15};
15 -> {16};
16 -> {17 19};
17 -> {18};
18 -> {19};
19 -> {20};
subgraph cluster_7 {
color=red
21 [label="Enter function test_2" style="filled" fillcolor=red];
22 [label="Access variable R|<local>/x|"];
23 [label="Enter safe call"];
24 [label="Access variable R|/B.foo|"];
25 [label="Exit safe call"];
26 [label="Enter safe call"];
27 [label="Access variable R|/B.bar|"];
28 [label="Exit safe call"];
29 [label="Exit function test_2" style="filled" fillcolor=red];
14 [label="Enter class B" style="filled" fillcolor=red];
15 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_8 {
color=red
16 [label="Enter function test_1" style="filled" fillcolor=red];
17 [label="Access variable R|<local>/x|"];
18 [label="Enter safe call"];
19 [label="Function call: R|<local>/x|?.R|/A.foo|()"];
20 [label="Exit safe call"];
21 [label="Enter safe call"];
22 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"];
23 [label="Exit safe call"];
24 [label="Exit function test_1" style="filled" fillcolor=red];
}
16 -> {17};
17 -> {18 20};
18 -> {19};
19 -> {20};
20 -> {21 23};
21 -> {22};
22 -> {23 25};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26 28};
26 -> {27};
subgraph cluster_9 {
color=red
25 [label="Enter function test_2" style="filled" fillcolor=red];
26 [label="Access variable R|<local>/x|"];
27 [label="Enter safe call"];
28 [label="Access variable R|/B.foo|"];
29 [label="Exit safe call"];
30 [label="Enter safe call"];
31 [label="Access variable R|/B.bar|"];
32 [label="Exit safe call"];
33 [label="Exit function test_2" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27 29};
27 -> {28};
28 -> {29};
29 -> {30 32};
30 -> {31};
31 -> {32};
32 -> {33};
}
+59 -43
View File
@@ -131,60 +131,76 @@ digraph when_kt {
subgraph cluster_10 {
color=red
47 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
48 [label="Enter when"];
subgraph cluster_12 {
color=blue
49 [label="Enter when branch condition "];
subgraph cluster_13 {
color=blue
50 [label="Enter &&"];
51 [label="Access variable R|<local>/x|"];
52 [label="Type operator: (R|<local>/x| is R|A|)"];
53 [label="Exit left part of &&"];
54 [label="Enter right part of &&"];
55 [label="Access variable R|<local>/x|"];
56 [label="Type operator: (R|<local>/x| is R|B|)"];
57 [label="Exit &&"];
}
58 [label="Exit when branch condition"];
}
59 [label="Synthetic else branch"];
60 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
61 [label="Enter block"];
62 [label="Access variable R|<local>/x|"];
63 [label="Type operator: (R|<local>/x| is R|A|)"];
64 [label="Exit block"];
}
65 [label="Exit when branch result"];
66 [label="Exit when"];
}
67 [label="Exit function test_2" style="filled" fillcolor=red];
47 [label="Enter class A" style="filled" fillcolor=red];
48 [label="Exit class A" style="filled" fillcolor=red];
}
47 -> {48} [color=green];
subgraph cluster_11 {
color=red
49 [label="Enter class B" style="filled" fillcolor=red];
50 [label="Exit class B" style="filled" fillcolor=red];
}
49 -> {50} [color=green];
subgraph cluster_12 {
color=red
51 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
52 [label="Enter when"];
subgraph cluster_14 {
color=blue
53 [label="Enter when branch condition "];
subgraph cluster_15 {
color=blue
54 [label="Enter &&"];
55 [label="Access variable R|<local>/x|"];
56 [label="Type operator: (R|<local>/x| is R|A|)"];
57 [label="Exit left part of &&"];
58 [label="Enter right part of &&"];
59 [label="Access variable R|<local>/x|"];
60 [label="Type operator: (R|<local>/x| is R|B|)"];
61 [label="Exit &&"];
}
62 [label="Exit when branch condition"];
}
63 [label="Synthetic else branch"];
64 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
65 [label="Enter block"];
66 [label="Access variable R|<local>/x|"];
67 [label="Type operator: (R|<local>/x| is R|A|)"];
68 [label="Exit block"];
}
69 [label="Exit when branch result"];
70 [label="Exit when"];
}
71 [label="Exit function test_2" style="filled" fillcolor=red];
}
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {57 54};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {60 59};
59 -> {66};
57 -> {61 58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
62 -> {64 63};
63 -> {70};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
}