Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/cfg/propertiesAndInitBlocks.dot
T
pyos c6e9afb788 FIR CFA: remove class initializer part nodes
Instead, attach subgraphs directly to the class enter node.
2023-01-10 15:40:50 +02:00

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