Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/cfg/jumps.dot
T

413 lines
14 KiB
Plaintext
Vendored

digraph jumps_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
1 [label="Enter block"];
subgraph cluster_2 {
color=blue
2 [label="Enter when"];
subgraph cluster_3 {
color=blue
3 [label="Enter when branch condition "];
4 [label="Access variable R|<local>/x|"];
5 [label="Const: Null(null)"];
6 [label="Equality operator =="];
7 [label="Exit when branch condition"];
}
subgraph cluster_4 {
color=blue
8 [label="Enter when branch condition else"];
9 [label="Exit when branch condition"];
}
10 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
11 [label="Enter block"];
12 [label="Access variable R|<local>/x|"];
13 [label="Exit block"];
}
14 [label="Exit when branch result"];
15 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
16 [label="Enter block"];
17 [label="Function call: R|java/lang/Exception.Exception|()"];
18 [label="Throw: throw R|java/lang/Exception.Exception|()"];
19 [label="Stub" style="filled" fillcolor=gray];
20 [label="Exit block" style="filled" fillcolor=gray];
}
21 [label="Exit when branch result" style="filled" fillcolor=gray];
22 [label="Exit when"];
}
23 [label="Variable declaration: lval y: R|kotlin/Int|"];
24 [label="Access variable R|<local>/y|"];
25 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
26 [label="Access variable R|<local>/x|"];
27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
28 [label="Exit block"];
}
29 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {15 8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {22};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {29} [label=onUncaughtException];
18 -> {19} [style=dotted];
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {22} [style=dotted];
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
subgraph cluster_7 {
color=red
30 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
31 [label="Enter block"];
subgraph cluster_9 {
color=blue
32 [label="Enter when"];
subgraph cluster_10 {
color=blue
33 [label="Enter when branch condition "];
34 [label="Access variable R|<local>/x|"];
35 [label="Const: Null(null)"];
36 [label="Equality operator =="];
37 [label="Exit when branch condition"];
}
subgraph cluster_11 {
color=blue
38 [label="Enter when branch condition else"];
39 [label="Exit when branch condition"];
}
40 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
41 [label="Enter block"];
42 [label="Access variable R|<local>/x|"];
43 [label="Exit block"];
}
44 [label="Exit when branch result"];
45 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
46 [label="Enter block"];
47 [label="Access variable R|<local>/x|"];
48 [label="Exit block"];
}
49 [label="Exit when branch result"];
50 [label="Exit when"];
}
51 [label="Variable declaration: lval y: R|kotlin/Int?|"];
52 [label="Access variable R|<local>/y|"];
53 [label="Function call: R|<local>/y|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"];
54 [label="Exit block"];
}
55 [label="Exit function test_2" style="filled" fillcolor=red];
}
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {45 38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {50};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
subgraph cluster_14 {
color=red
56 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
57 [label="Enter block"];
subgraph cluster_16 {
color=blue
58 [label="Enter while loop"];
subgraph cluster_17 {
color=blue
59 [label="Enter loop condition"];
60 [label="Const: Boolean(true)"];
61 [label="Exit loop condition"];
}
subgraph cluster_18 {
color=blue
62 [label="Enter loop block"];
subgraph cluster_19 {
color=blue
63 [label="Enter block"];
64 [label="Access variable R|<local>/x|"];
65 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
66 [label="Jump: break@@@[Boolean(true)] "];
67 [label="Stub" style="filled" fillcolor=gray];
68 [label="Exit block" style="filled" fillcolor=gray];
}
69 [label="Exit loop block" style="filled" fillcolor=gray];
}
70 [label="Exit whileloop"];
}
71 [label="Access variable R|<local>/x|"];
72 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
73 [label="Exit block"];
}
74 [label="Exit function test_3" style="filled" fillcolor=red];
}
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
61 -> {70} [style=dotted];
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {70};
66 -> {67} [style=dotted];
67 -> {68} [style=dotted];
68 -> {69} [style=dotted];
69 -> {59} [color=green style=dotted];
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
subgraph cluster_20 {
color=red
75 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
76 [label="Enter block"];
subgraph cluster_22 {
color=blue
77 [label="Enter do-while loop"];
subgraph cluster_23 {
color=blue
78 [label="Enter loop block"];
subgraph cluster_24 {
color=blue
79 [label="Enter block"];
80 [label="Access variable R|<local>/x|"];
81 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
82 [label="Jump: break@@@[Boolean(true)] "];
83 [label="Stub" style="filled" fillcolor=gray];
84 [label="Exit block" style="filled" fillcolor=gray];
}
85 [label="Exit loop block" style="filled" fillcolor=gray];
}
subgraph cluster_25 {
color=blue
86 [label="Enter loop condition" style="filled" fillcolor=gray];
87 [label="Const: Boolean(true)" style="filled" fillcolor=gray];
88 [label="Exit loop condition" style="filled" fillcolor=gray];
}
89 [label="Exit do-whileloop"];
}
90 [label="Access variable R|<local>/x|"];
91 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
92 [label="Exit block"];
}
93 [label="Exit function test_4" style="filled" fillcolor=red];
}
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {89};
82 -> {83} [style=dotted];
83 -> {84} [style=dotted];
84 -> {85} [style=dotted];
85 -> {86} [style=dotted];
86 -> {87} [style=dotted];
87 -> {88} [style=dotted];
88 -> {89} [style=dotted];
88 -> {78} [color=green style=dotted];
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
subgraph cluster_26 {
color=red
94 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
95 [label="Enter block"];
subgraph cluster_28 {
color=blue
96 [label="Enter while loop"];
subgraph cluster_29 {
color=blue
97 [label="Enter loop condition"];
98 [label="Access variable R|<local>/b|"];
99 [label="Exit loop condition"];
}
subgraph cluster_30 {
color=blue
100 [label="Enter loop block"];
subgraph cluster_31 {
color=blue
101 [label="Enter block"];
subgraph cluster_32 {
color=blue
102 [label="Enter when"];
subgraph cluster_33 {
color=blue
103 [label="Enter when branch condition "];
104 [label="Access variable R|<local>/b|"];
105 [label="Exit when branch condition"];
}
106 [label="Synthetic else branch"];
107 [label="Enter when branch result"];
subgraph cluster_34 {
color=blue
108 [label="Enter block"];
109 [label="Jump: continue@@@[R|<local>/b|] "];
110 [label="Stub" style="filled" fillcolor=gray];
111 [label="Exit block" style="filled" fillcolor=gray];
}
112 [label="Exit when branch result" style="filled" fillcolor=gray];
113 [label="Exit when"];
}
114 [label="Exit block"];
}
115 [label="Exit loop block"];
}
116 [label="Exit whileloop"];
}
117 [label="Exit block"];
}
118 [label="Exit function test_5" style="filled" fillcolor=red];
}
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {116 100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {107 106};
106 -> {113};
107 -> {108};
108 -> {109};
109 -> {110} [style=dotted];
109 -> {96} [color=green style=dashed];
110 -> {111} [style=dotted];
111 -> {112} [style=dotted];
112 -> {113} [style=dotted];
113 -> {114};
114 -> {115};
115 -> {97} [color=green style=dashed];
116 -> {117};
117 -> {118};
subgraph cluster_35 {
color=red
119 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_36 {
color=blue
120 [label="Enter block"];
121 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
122 [label="Exit block"];
}
123 [label="Exit function run" style="filled" fillcolor=red];
}
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
subgraph cluster_37 {
color=red
124 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_38 {
color=blue
125 [label="Enter block"];
126 [label="Postponed enter to lambda"];
subgraph cluster_39 {
color=blue
131 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_40 {
color=blue
132 [label="Enter block"];
133 [label="Jump: ^@run Unit"];
134 [label="Stub" style="filled" fillcolor=gray];
135 [label="Exit block" style="filled" fillcolor=gray];
}
136 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
127 [label="Postponed exit from lambda"];
128 [label="Function call: R|/run|(...)"];
129 [label="Exit block"];
}
130 [label="Exit function test_6" style="filled" fillcolor=red];
}
124 -> {125};
125 -> {126};
126 -> {127 131};
126 -> {131} [style=dashed];
127 -> {128};
128 -> {129};
129 -> {130};
131 -> {136 132};
132 -> {133};
133 -> {136};
133 -> {134} [style=dotted];
134 -> {135} [style=dotted];
135 -> {136} [style=dotted];
136 -> {127};
136 -> {131} [color=green style=dashed];
}