Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/when.dot
T
2021-11-26 11:26:21 +03:00

708 lines
24 KiB
Plaintext
Vendored

digraph when_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit class A" style="filled" fillcolor=red];
}
2 -> {3} [color=green];
subgraph cluster_2 {
color=red
4 [label="Enter function bar" style="filled" fillcolor=red];
5 [label="Exit function bar" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
color=red
6 [label="Enter class B" style="filled" fillcolor=red];
7 [label="Exit class B" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
subgraph cluster_4 {
color=red
8 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
9 [label="Enter block"];
subgraph cluster_6 {
color=blue
10 [label="Enter when"];
subgraph cluster_7 {
color=blue
11 [label="Enter when branch condition "];
12 [label="Access variable R|<local>/x|"];
13 [label="Type operator: (R|<local>/x| is R|A|)"];
14 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
15 [label="Enter when branch condition "];
16 [label="Access variable R|<local>/x|"];
17 [label="Type operator: (R|<local>/x| is R|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="Access variable R|<local>/x|"];
23 [label="Function call: R|<local>/x|.R|/B.bar|()"];
24 [label="Exit block"];
}
25 [label="Exit when branch result"];
26 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
27 [label="Enter block"];
28 [label="Access variable R|<local>/x|"];
29 [label="Function call: R|<local>/x|.R|/A.foo|()"];
30 [label="Exit block"];
}
31 [label="Exit when branch result"];
32 [label="Exit when"];
}
subgraph cluster_11 {
color=blue
33 [label="Enter when"];
subgraph cluster_12 {
color=blue
34 [label="Enter when branch condition "];
35 [label="Access variable R|<local>/x|"];
36 [label="Type operator: (R|<local>/x| !is R|A|)"];
37 [label="Exit when branch condition"];
}
subgraph cluster_13 {
color=blue
38 [label="Enter when branch condition "];
39 [label="Access variable R|<local>/x|"];
40 [label="Type operator: (R|<local>/x| !is R|B|)"];
41 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
42 [label="Enter when branch condition "];
43 [label="Access variable R|<local>/x|"];
44 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"];
45 [label="Exit when branch condition"];
}
subgraph cluster_15 {
color=blue
46 [label="Enter when branch condition else"];
47 [label="Exit when branch condition"];
}
48 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
49 [label="Enter block"];
50 [label="Access variable R|<local>/x|"];
51 [label="Function call: R|<local>/x|.R|/A.foo|()"];
52 [label="Access variable R|<local>/x|"];
53 [label="Function call: R|<local>/x|.R|/B.bar|()"];
54 [label="Exit block"];
}
55 [label="Exit when branch result"];
56 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
57 [label="Enter block"];
58 [label="Access variable R|<local>/x|"];
59 [label="Function call: R|<local>/x|.R|/A.foo|()"];
60 [label="Access variable R|<local>/x|"];
61 [label="Function call: R|<local>/x|.R|/B.bar|()"];
62 [label="Access variable R|<local>/x|"];
63 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
64 [label="Exit block"];
}
65 [label="Exit when branch result"];
66 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
67 [label="Enter block"];
68 [label="Access variable R|<local>/x|"];
69 [label="Function call: R|<local>/x|.R|/A.foo|()"];
70 [label="Exit block"];
}
71 [label="Exit when branch result"];
72 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
73 [label="Enter block"];
74 [label="Exit block"];
}
75 [label="Exit when branch result"];
76 [label="Exit when"];
}
77 [label="Exit block"];
}
78 [label="Exit function test_1" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {26 15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {20 19};
19 -> {32};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {32};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {72 38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {66 42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {56 46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {76};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {76};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {76};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
subgraph cluster_20 {
color=red
79 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
80 [label="Enter block"];
subgraph cluster_22 {
color=blue
81 [label="Enter when"];
82 [label="Access variable R|<local>/x|"];
subgraph cluster_23 {
color=blue
83 [label="Enter when branch condition "];
84 [label="Exit $subj"];
85 [label="Type operator: ($subj$ is R|A|)"];
86 [label="Exit when branch condition"];
}
subgraph cluster_24 {
color=blue
87 [label="Enter when branch condition "];
88 [label="Exit $subj"];
89 [label="Type operator: ($subj$ is R|B|)"];
90 [label="Exit when branch condition"];
}
91 [label="Synthetic else branch"];
92 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
93 [label="Enter block"];
94 [label="Access variable R|<local>/x|"];
95 [label="Function call: R|<local>/x|.R|/B.bar|()"];
96 [label="Exit block"];
}
97 [label="Exit when branch result"];
98 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
99 [label="Enter block"];
100 [label="Access variable R|<local>/x|"];
101 [label="Function call: R|<local>/x|.R|/A.foo|()"];
102 [label="Exit block"];
}
103 [label="Exit when branch result"];
104 [label="Exit when"];
}
subgraph cluster_27 {
color=blue
105 [label="Enter when"];
106 [label="Access variable R|<local>/x|"];
subgraph cluster_28 {
color=blue
107 [label="Enter when branch condition "];
108 [label="Exit $subj"];
109 [label="Type operator: ($subj$ !is R|A|)"];
110 [label="Exit when branch condition"];
}
subgraph cluster_29 {
color=blue
111 [label="Enter when branch condition "];
112 [label="Exit $subj"];
113 [label="Type operator: ($subj$ !is R|B|)"];
114 [label="Exit when branch condition"];
}
subgraph cluster_30 {
color=blue
115 [label="Enter when branch condition "];
116 [label="Exit $subj"];
117 [label="Type operator: ($subj$ is R|kotlin/Int|)"];
118 [label="Exit when branch condition"];
}
subgraph cluster_31 {
color=blue
119 [label="Enter when branch condition else"];
120 [label="Exit when branch condition"];
}
121 [label="Enter when branch result"];
subgraph cluster_32 {
color=blue
122 [label="Enter block"];
123 [label="Access variable R|<local>/x|"];
124 [label="Function call: R|<local>/x|.R|/A.foo|()"];
125 [label="Access variable R|<local>/x|"];
126 [label="Function call: R|<local>/x|.R|/B.bar|()"];
127 [label="Exit block"];
}
128 [label="Exit when branch result"];
129 [label="Enter when branch result"];
subgraph cluster_33 {
color=blue
130 [label="Enter block"];
131 [label="Access variable R|<local>/x|"];
132 [label="Function call: R|<local>/x|.R|/A.foo|()"];
133 [label="Access variable R|<local>/x|"];
134 [label="Function call: R|<local>/x|.R|/B.bar|()"];
135 [label="Access variable R|<local>/x|"];
136 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
137 [label="Exit block"];
}
138 [label="Exit when branch result"];
139 [label="Enter when branch result"];
subgraph cluster_34 {
color=blue
140 [label="Enter block"];
141 [label="Access variable R|<local>/x|"];
142 [label="Function call: R|<local>/x|.R|/A.foo|()"];
143 [label="Exit block"];
}
144 [label="Exit when branch result"];
145 [label="Enter when branch result"];
subgraph cluster_35 {
color=blue
146 [label="Enter block"];
147 [label="Exit block"];
}
148 [label="Exit when branch result"];
149 [label="Exit when"];
}
150 [label="Exit block"];
}
151 [label="Exit function test_2" style="filled" fillcolor=red];
}
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {98 87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {92 91};
91 -> {104};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {104};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {145 111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {139 115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {129 119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {149};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {149};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {149};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
subgraph cluster_36 {
color=red
152 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_37 {
color=blue
153 [label="Enter block"];
subgraph cluster_38 {
color=blue
154 [label="Enter when"];
155 [label="Access variable R|<local>/x|"];
156 [label="Variable declaration: lval y: R|kotlin/Any?|"];
subgraph cluster_39 {
color=blue
157 [label="Enter when branch condition "];
158 [label="Exit $subj"];
159 [label="Type operator: ($subj$ is R|A|)"];
160 [label="Exit when branch condition"];
}
subgraph cluster_40 {
color=blue
161 [label="Enter when branch condition "];
162 [label="Exit $subj"];
163 [label="Type operator: ($subj$ is R|B|)"];
164 [label="Exit when branch condition"];
}
165 [label="Synthetic else branch"];
166 [label="Enter when branch result"];
subgraph cluster_41 {
color=blue
167 [label="Enter block"];
168 [label="Access variable R|<local>/x|"];
169 [label="Function call: R|<local>/x|.R|/B.bar|()"];
170 [label="Access variable R|<local>/y|"];
171 [label="Function call: R|<local>/y|.R|/B.bar|()"];
172 [label="Exit block"];
}
173 [label="Exit when branch result"];
174 [label="Enter when branch result"];
subgraph cluster_42 {
color=blue
175 [label="Enter block"];
176 [label="Access variable R|<local>/x|"];
177 [label="Function call: R|<local>/x|.R|/A.foo|()"];
178 [label="Access variable R|<local>/y|"];
179 [label="Function call: R|<local>/y|.R|/A.foo|()"];
180 [label="Exit block"];
}
181 [label="Exit when branch result"];
182 [label="Exit when"];
}
subgraph cluster_43 {
color=blue
183 [label="Enter when"];
184 [label="Access variable R|<local>/x|"];
185 [label="Variable declaration: lval y: R|kotlin/Any?|"];
subgraph cluster_44 {
color=blue
186 [label="Enter when branch condition "];
187 [label="Exit $subj"];
188 [label="Type operator: ($subj$ !is R|A|)"];
189 [label="Exit when branch condition"];
}
subgraph cluster_45 {
color=blue
190 [label="Enter when branch condition "];
191 [label="Exit $subj"];
192 [label="Type operator: ($subj$ !is R|B|)"];
193 [label="Exit when branch condition"];
}
subgraph cluster_46 {
color=blue
194 [label="Enter when branch condition "];
195 [label="Exit $subj"];
196 [label="Type operator: ($subj$ is R|kotlin/Int|)"];
197 [label="Exit when branch condition"];
}
subgraph cluster_47 {
color=blue
198 [label="Enter when branch condition else"];
199 [label="Exit when branch condition"];
}
200 [label="Enter when branch result"];
subgraph cluster_48 {
color=blue
201 [label="Enter block"];
202 [label="Access variable R|<local>/x|"];
203 [label="Function call: R|<local>/x|.R|/A.foo|()"];
204 [label="Access variable R|<local>/x|"];
205 [label="Function call: R|<local>/x|.R|/B.bar|()"];
206 [label="Access variable R|<local>/y|"];
207 [label="Function call: R|<local>/y|.R|/A.foo|()"];
208 [label="Access variable R|<local>/y|"];
209 [label="Function call: R|<local>/y|.R|/B.bar|()"];
210 [label="Exit block"];
}
211 [label="Exit when branch result"];
212 [label="Enter when branch result"];
subgraph cluster_49 {
color=blue
213 [label="Enter block"];
214 [label="Access variable R|<local>/x|"];
215 [label="Function call: R|<local>/x|.R|/A.foo|()"];
216 [label="Access variable R|<local>/x|"];
217 [label="Function call: R|<local>/x|.R|/B.bar|()"];
218 [label="Access variable R|<local>/x|"];
219 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
220 [label="Access variable R|<local>/y|"];
221 [label="Function call: R|<local>/y|.R|/A.foo|()"];
222 [label="Access variable R|<local>/y|"];
223 [label="Function call: R|<local>/y|.R|/B.bar|()"];
224 [label="Access variable R|<local>/y|"];
225 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
226 [label="Exit block"];
}
227 [label="Exit when branch result"];
228 [label="Enter when branch result"];
subgraph cluster_50 {
color=blue
229 [label="Enter block"];
230 [label="Access variable R|<local>/x|"];
231 [label="Function call: R|<local>/x|.R|/A.foo|()"];
232 [label="Access variable R|<local>/y|"];
233 [label="Function call: R|<local>/y|.R|/A.foo|()"];
234 [label="Exit block"];
}
235 [label="Exit when branch result"];
236 [label="Enter when branch result"];
subgraph cluster_51 {
color=blue
237 [label="Enter block"];
238 [label="Exit block"];
}
239 [label="Exit when branch result"];
240 [label="Exit when"];
}
241 [label="Exit block"];
}
242 [label="Exit function test_3" style="filled" fillcolor=red];
}
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {157};
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {174 161};
161 -> {162};
162 -> {163};
163 -> {164};
164 -> {166 165};
165 -> {182};
166 -> {167};
167 -> {168};
168 -> {169};
169 -> {170};
170 -> {171};
171 -> {172};
172 -> {173};
173 -> {182};
174 -> {175};
175 -> {176};
176 -> {177};
177 -> {178};
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {182};
182 -> {183};
183 -> {184};
184 -> {185};
185 -> {186};
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {236 190};
190 -> {191};
191 -> {192};
192 -> {193};
193 -> {228 194};
194 -> {195};
195 -> {196};
196 -> {197};
197 -> {212 198};
198 -> {199};
199 -> {200};
200 -> {201};
201 -> {202};
202 -> {203};
203 -> {204};
204 -> {205};
205 -> {206};
206 -> {207};
207 -> {208};
208 -> {209};
209 -> {210};
210 -> {211};
211 -> {240};
212 -> {213};
213 -> {214};
214 -> {215};
215 -> {216};
216 -> {217};
217 -> {218};
218 -> {219};
219 -> {220};
220 -> {221};
221 -> {222};
222 -> {223};
223 -> {224};
224 -> {225};
225 -> {226};
226 -> {227};
227 -> {240};
228 -> {229};
229 -> {230};
230 -> {231};
231 -> {232};
232 -> {233};
233 -> {234};
234 -> {235};
235 -> {240};
236 -> {237};
237 -> {238};
238 -> {239};
239 -> {240};
240 -> {241};
241 -> {242};
subgraph cluster_52 {
color=red
243 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_53 {
color=blue
244 [label="Enter block"];
subgraph cluster_54 {
color=blue
245 [label="Enter when"];
246 [label="Access variable R|<local>/x|"];
247 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
subgraph cluster_55 {
color=blue
248 [label="Enter when branch condition "];
249 [label="Exit $subj"];
250 [label="Const: Int(1)"];
251 [label="Equality operator =="];
252 [label="Exit when branch condition"];
}
253 [label="Synthetic else branch"];
254 [label="Enter when branch result"];
subgraph cluster_56 {
color=blue
255 [label="Enter block"];
256 [label="Access variable R|<local>/x|"];
257 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
258 [label="Exit block"];
}
259 [label="Exit when branch result"];
260 [label="Exit when"];
}
261 [label="Access variable R|<local>/x|"];
262 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
263 [label="Exit block"];
}
264 [label="Exit function test_4" style="filled" fillcolor=red];
}
243 -> {244};
244 -> {245};
245 -> {246};
246 -> {247};
247 -> {248};
248 -> {249};
249 -> {250};
250 -> {251};
251 -> {252};
252 -> {254 253};
253 -> {260};
254 -> {255};
255 -> {256};
256 -> {257};
257 -> {258};
258 -> {259};
259 -> {260};
260 -> {261};
261 -> {262};
262 -> {263};
263 -> {264};
}