Files
kotlin-fork/compiler/fir/resolve/testData/resolve/cfg/complex.dot
T

418 lines
14 KiB
Plaintext
Vendored

digraph complex_kt {
graph [splines=ortho nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function fetchPluginReleaseDate" style="filled" fillcolor=red];
1 [label="Const: String(https://plugins.jetbrains.com/api/plugins/)"];
2 [label="Access variable R|<local>/pluginId|"];
3 [label="Access variable <Unresolved name: idString>#"];
4 [label="Function call: R|<local>/pluginId|.<Unresolved name: idString>#.R|kotlin/toString|()"];
5 [label="Const: String(/updates?version=)"];
6 [label="Access variable R|<local>/version|"];
7 [label="Function call: R|<local>/version|.R|kotlin/Any.toString|()"];
8 [label="Variable declaration: lval url: R|kotlin/String|"];
subgraph cluster_1 {
color=blue
9 [label="Try expression enter"];
subgraph cluster_2 {
color=blue
10 [label="Try main block enter"];
subgraph cluster_3 {
color=blue
11 [label="Enter block"];
12 [label="Access variable <Unresolved name: HttpRequests>#"];
13 [label="Access variable R|<local>/url|"];
14 [label="Access variable R|<local>/url|"];
15 [label="Access variable R|<local>/url|"];
16 [label="Function call: <Unresolved name: HttpRequests>#.<Unresolved name: request>#(R|<local>/url|)"];
17 [label="Function call: <Unresolved name: HttpRequests>#.<Unresolved name: request>#(R|<local>/url|).<Unresolved name: connect>#(<L> = connect@fun <anonymous>(): R|class error: Unresolved name: fromJson| {
<Unresolved name: GsonBuilder>#().<Unresolved name: create>#().<Unresolved name: fromJson>#(<Unresolved name: it>#.<Unresolved name: inputStream>#.<Ambiguity: reader, [kotlin/io/reader, kotlin/io/reader, kotlin/io/reader]>#(), <getClass>(Q|kotlin/Array|).R|kotlin/jvm/java|)
}
)"];
18 [label="Exit block"];
}
19 [label="Try main block exit"];
}
subgraph cluster_4 {
color=blue
20 [label="Catch enter"];
subgraph cluster_5 {
color=blue
21 [label="Enter block"];
22 [label="Const: String(Can't parse json response)"];
23 [label="Access variable R|<local>/syntaxException|"];
24 [label="Access variable R|<local>/syntaxException|"];
25 [label="Access variable R|<local>/syntaxException|"];
26 [label="Function call: <Unresolved name: ResponseParseException>#(String(Can't parse json response), R|<local>/syntaxException|)"];
27 [label="Throw: throw <Unresolved name: ResponseParseException>#(String(Can't parse json response), R|<local>/syntaxException|)"];
28 [label="Stub" style="filled" fillcolor=gray];
29 [label="Exit block" style="filled" fillcolor=gray];
}
30 [label="Catch exit" style="filled" fillcolor=gray];
}
subgraph cluster_6 {
color=blue
31 [label="Catch enter"];
subgraph cluster_7 {
color=blue
32 [label="Enter block"];
33 [label="Access variable R|<local>/ioException|"];
34 [label="Access variable R|<local>/ioException|"];
35 [label="Access variable R|<local>/ioException|"];
36 [label="Function call: <Unresolved name: IOException>#(R|<local>/ioException|)"];
37 [label="Throw: throw <Unresolved name: IOException>#(R|<local>/ioException|)"];
38 [label="Stub" style="filled" fillcolor=gray];
39 [label="Exit block" style="filled" fillcolor=gray];
}
40 [label="Catch exit" style="filled" fillcolor=gray];
}
41 [label="Try expression exit"];
}
42 [label="Variable declaration: lval pluginDTOs: R|kotlin/Array<class error: Symbol not found, for `PluginDTO`>|"];
43 [label="Exit function fetchPluginReleaseDate" style="filled" fillcolor=red];
}
subgraph cluster_8 {
color=blue
44 [label="Enter annotation"];
45 [label="Access variable <Unresolved name: IOException>#"];
46 [label="Access variable <Unresolved name: ResponseParseException>#"];
47 [label="Exit annotation"];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {43 31 20 11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {41};
20 -> {43 21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {43};
27 -> {28} [style=dotted];
28 -> {29} [style=dotted];
29 -> {30} [style=dotted];
30 -> {41} [style=dotted];
31 -> {43 32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {43};
37 -> {38} [style=dotted];
38 -> {39} [style=dotted];
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
subgraph cluster_9 {
color=red
48 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
49 [label="Function call: <Unresolved name: GsonBuilder>#()"];
50 [label="Function call: <Unresolved name: GsonBuilder>#().<Unresolved name: create>#()"];
51 [label="Access variable <Unresolved name: it>#"];
52 [label="Access variable <Unresolved name: inputStream>#"];
53 [label="Function call: <Unresolved name: it>#.<Unresolved name: inputStream>#.<Ambiguity: reader, [kotlin/io/reader, kotlin/io/reader, kotlin/io/reader]>#()"];
54 [label="Access variable R|kotlin/jvm/java|"];
55 [label="Access variable R|kotlin/jvm/java|"];
56 [label="Access variable R|kotlin/jvm/java|"];
57 [label="Function call: <Unresolved name: GsonBuilder>#().<Unresolved name: create>#().<Unresolved name: fromJson>#(<Unresolved name: it>#.<Unresolved name: inputStream>#.<Ambiguity: reader, [kotlin/io/reader, kotlin/io/reader, kotlin/io/reader]>#(), <getClass>(Q|kotlin/Array|).R|kotlin/jvm/java|)"];
58 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_10 {
color=red
59 [label="Enter function close" style="filled" fillcolor=red];
60 [label="Exit function close" style="filled" fillcolor=red];
}
59 -> {60};
subgraph cluster_11 {
color=red
61 [label="Enter function closeFinally" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
62 [label="Enter when"];
subgraph cluster_13 {
color=blue
63 [label="Enter when branch condition "];
64 [label="Access variable this@R|/closeFinally|"];
65 [label="Const: Null(null)"];
66 [label="Operator =="];
67 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
68 [label="Enter when branch condition "];
69 [label="Access variable R|<local>/cause|"];
70 [label="Const: Null(null)"];
71 [label="Operator =="];
72 [label="Exit when branch condition"];
}
subgraph cluster_15 {
color=blue
73 [label="Enter when branch condition else"];
74 [label="Exit when branch condition"];
}
75 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
76 [label="Enter block"];
subgraph cluster_17 {
color=blue
77 [label="Try expression enter"];
subgraph cluster_18 {
color=blue
78 [label="Try main block enter"];
subgraph cluster_19 {
color=blue
79 [label="Enter block"];
80 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
81 [label="Exit block"];
}
82 [label="Try main block exit"];
}
subgraph cluster_20 {
color=blue
83 [label="Catch enter"];
subgraph cluster_21 {
color=blue
84 [label="Enter block"];
85 [label="Access variable R|<local>/cause|"];
86 [label="Access variable R|<local>/closeException|"];
87 [label="Function call: R|<local>/cause|.R|kotlin/addSuppressed|(R|<local>/closeException|)"];
88 [label="Exit block"];
}
89 [label="Catch exit"];
}
90 [label="Try expression exit"];
}
91 [label="Exit block"];
}
92 [label="Exit when branch result"];
93 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
94 [label="Enter block"];
95 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
96 [label="Exit block"];
}
97 [label="Exit when branch result"];
98 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
99 [label="Enter block"];
100 [label="Exit block"];
}
101 [label="Exit when branch result"];
102 [label="Exit when"];
}
103 [label="Jump: ^closeFinally when () {
==(this@R|/closeFinally|, Null(null)) -> {
}
==(R|<local>/cause|, Null(null)) -> {
this@R|/closeFinally|.R|/AutoCloseable.close|()
}
else -> {
try {
this@R|/closeFinally|.R|/AutoCloseable.close|()
}
catch (closeException: R|kotlin/Throwable|) {
R|<local>/cause|.R|kotlin/addSuppressed|(R|<local>/closeException|)
}
}
}
"];
104 [label="Stub" style="filled" fillcolor=gray];
105 [label="Exit function closeFinally" style="filled" fillcolor=red];
}
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {98 68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {93 73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {105 83 79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {90};
83 -> {105 84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {102};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {102};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {105};
103 -> {104} [style=dotted];
104 -> {105} [style=dotted];
subgraph cluster_24 {
color=red
106 [label="Enter function firstIsInstanceOrNull" style="filled" fillcolor=red];
107 [label="Access variable this@R|/firstIsInstanceOrNull|"];
108 [label="Variable declaration: lval <range>: R|kotlin/sequences/Sequence<*>|"];
109 [label="Access variable R|<local>/<range>|"];
110 [label="Function call: R|<local>/<range>|.R|FakeOverride<kotlin/sequences/Sequence.iterator: R|kotlin/collections/Iterator<kotlin/Any?>|>|()"];
111 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"];
subgraph cluster_25 {
color=blue
112 [label="Enter while loop"];
subgraph cluster_26 {
color=blue
113 [label="Enter loop condition"];
114 [label="Access variable R|<local>/<iterator>|"];
115 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
116 [label="Exit loop condition"];
}
subgraph cluster_27 {
color=blue
117 [label="Enter loop block"];
subgraph cluster_28 {
color=blue
118 [label="Enter block"];
119 [label="Access variable R|<local>/<iterator>|"];
120 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"];
121 [label="Variable declaration: lval element: R|kotlin/Any?|"];
subgraph cluster_29 {
color=blue
122 [label="Enter when"];
subgraph cluster_30 {
color=blue
123 [label="Enter when branch condition "];
124 [label="Access variable R|<local>/element|"];
125 [label="Type operator: element is T"];
126 [label="Exit when branch condition"];
}
127 [label="Synthetic else branch"];
128 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
129 [label="Enter block"];
130 [label="Access variable R|<local>/element|"];
131 [label="Jump: ^firstIsInstanceOrNull R|<local>/element|"];
132 [label="Stub" style="filled" fillcolor=gray];
133 [label="Exit block" style="filled" fillcolor=gray];
}
134 [label="Exit when branch result" style="filled" fillcolor=gray];
135 [label="Exit when"];
}
136 [label="Exit block"];
}
137 [label="Exit loop block"];
}
138 [label="Exit whileloop"];
}
139 [label="Const: Null(null)"];
140 [label="Jump: ^firstIsInstanceOrNull Null(null)"];
141 [label="Stub" style="filled" fillcolor=gray];
142 [label="Exit function firstIsInstanceOrNull" style="filled" fillcolor=red];
}
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {138 117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {128 127};
127 -> {135};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {142};
131 -> {132} [style=dotted];
132 -> {133} [style=dotted];
133 -> {134} [style=dotted];
134 -> {135} [style=dotted];
135 -> {136};
136 -> {137};
137 -> {113};
138 -> {139};
139 -> {140};
140 -> {142};
140 -> {141} [style=dotted];
141 -> {142} [style=dotted];
}