Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/cfg/propertiesAndInitBlocks.dot
T
2020-04-03 10:08:25 +03:00

269 lines
8.9 KiB
Plaintext
Vendored

digraph propertiesAndInitBlocks_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function run" style="filled" fillcolor=red];
2 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
1 [label="Exit function run" style="filled" fillcolor=red];
}
0 -> {2};
2 -> {1};
subgraph cluster_1 {
color=red
5 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter function getter" style="filled" fillcolor=red];
4 [label="Exit function getter" style="filled" fillcolor=red];
}
7 [label="Const: Int(1)"];
6 [label="Exit property" style="filled" fillcolor=red];
}
5 -> {7};
7 -> {6};
3 -> {4};
subgraph cluster_3 {
color=red
17 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
13 [label="Enter function setter" style="filled" fillcolor=red];
15 [label="Const: Int(1)"];
16 [label="Assignment: F|/x2|"];
14 [label="Exit function setter" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
8 [label="Enter function getter" style="filled" fillcolor=red];
10 [label="Const: Int(1)"];
11 [label="Jump: ^ Int(1)"];
12 [label="Stub" style="filled" fillcolor=gray];
9 [label="Exit function getter" style="filled" fillcolor=red];
}
19 [label="Const: Int(1)"];
18 [label="Exit property" style="filled" fillcolor=red];
}
17 -> {19};
19 -> {18};
8 -> {10};
10 -> {11};
11 -> {9};
11 -> {12} [style=dotted];
12 -> {9} [style=dotted];
13 -> {15};
15 -> {16};
16 -> {14};
subgraph cluster_6 {
color=red
35 [label="Enter function <init>" style="filled" fillcolor=red];
37 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
36 [label="Exit function <init>" style="filled" fillcolor=red];
}
35 -> {37};
37 -> {36};
subgraph cluster_7 {
color=red
46 [label="Enter class LocalClass" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
38 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
40 [label="Enter block"];
41 [label="Function call: R|java/lang/Exception.Exception|()"];
42 [label="Throw: throw R|java/lang/Exception.Exception|()"];
43 [label="Stub" style="filled" fillcolor=gray];
44 [label="Const: Int(1)" style="filled" fillcolor=gray];
45 [label="Exit block" style="filled" fillcolor=gray];
}
39 [label="Exit init block" style="filled" fillcolor=red];
}
47 [label="Exit class LocalClass" style="filled" fillcolor=red];
}
46 -> {38} [color=green];
38 -> {40};
39 -> {47} [color=green];
40 -> {41};
41 -> {42};
42 -> {39};
42 -> {43} [style=dotted];
43 -> {44} [style=dotted];
44 -> {45} [style=dotted];
45 -> {39} [style=dotted];
subgraph cluster_10 {
color=red
51 [label="Enter function <init>" style="filled" fillcolor=red];
53 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
52 [label="Exit function <init>" style="filled" fillcolor=red];
}
51 -> {53};
53 -> {52};
subgraph cluster_11 {
color=red
61 [label="Enter class LocalClass" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
54 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
56 [label="Enter block"];
57 [label="Function call: R|java/lang/Exception.Exception|()"];
58 [label="Throw: throw R|java/lang/Exception.Exception|()"];
59 [label="Stub" style="filled" fillcolor=gray];
60 [label="Exit block" style="filled" fillcolor=gray];
}
55 [label="Exit init block" style="filled" fillcolor=red];
}
62 [label="Exit class LocalClass" style="filled" fillcolor=red];
}
61 -> {54} [color=green];
54 -> {56};
55 -> {62} [color=green];
56 -> {57};
57 -> {58};
58 -> {55};
58 -> {59} [style=dotted];
59 -> {60} [style=dotted];
60 -> {55} [style=dotted];
subgraph cluster_14 {
color=red
63 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
48 [label="Enter function getter" style="filled" fillcolor=red];
50 [label="Exit local class <getter>"];
49 [label="Exit function getter" style="filled" fillcolor=red];
}
65 [label="Postponed enter to lambda"];
subgraph cluster_16 {
color=blue
20 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
22 [label="Exit local class <anonymous>"];
23 [label="Function call: R|java/lang/Exception.Exception|()"];
24 [label="Throw: throw R|java/lang/Exception.Exception|()"];
25 [label="Stub" style="filled" fillcolor=gray];
subgraph cluster_17 {
color=blue
26 [label="Enter function foo" style="filled" fillcolor=red];
28 [label="Const: Int(1)"];
29 [label="Const: Int(1)"];
30 [label="Function call: Int(1).R|kotlin/Int.plus|(...)"];
31 [label="Variable declaration: lval c: R|kotlin/Int|"];
32 [label="Function call: R|java/lang/Exception.Exception|()"];
33 [label="Throw: throw R|java/lang/Exception.Exception|()"];
34 [label="Stub" style="filled" fillcolor=gray];
27 [label="Exit function foo" style="filled" fillcolor=red];
}
21 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
66 [label="Postponed exit from lambda"];
67 [label="Function call: R|/run|(...)"];
64 [label="Exit property" style="filled" fillcolor=red];
}
63 -> {65};
65 -> {20};
65 -> {66} [color=red];
66 -> {67};
67 -> {64};
20 -> {21 22};
20 -> {26 35 38} [color=red];
21 -> {20};
21 -> {66} [color=green];
22 -> {23};
23 -> {24};
24 -> {64};
24 -> {25} [style=dotted];
25 -> {21} [style=dotted];
26 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {27};
33 -> {34} [style=dotted];
34 -> {27} [style=dotted];
48 -> {50};
48 -> {51 54} [color=red];
50 -> {49};
subgraph cluster_18 {
color=red
70 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
68 [label="Enter function getter" style="filled" fillcolor=red];
69 [label="Exit function getter" style="filled" fillcolor=red];
}
subgraph cluster_20 {
color=blue
72 [label="Try expression enter"];
subgraph cluster_21 {
color=blue
74 [label="Try main block enter"];
subgraph cluster_22 {
color=blue
77 [label="Enter block"];
78 [label="Const: Int(1)"];
79 [label="Exit block"];
}
80 [label="Try main block exit"];
}
subgraph cluster_23 {
color=blue
76 [label="Enter finally"];
subgraph cluster_24 {
color=blue
85 [label="Enter block"];
86 [label="Const: Int(0)"];
87 [label="Exit block"];
}
88 [label="Exit finally"];
}
subgraph cluster_25 {
color=blue
75 [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"];
}
73 [label="Try expression exit"];
}
71 [label="Exit property" style="filled" fillcolor=red];
}
70 -> {72};
72 -> {74};
73 -> {71};
74 -> {71 75 76 77};
75 -> {71 81};
76 -> {85};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {73};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {73};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {73};
68 -> {69};
}