Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/endlessLoops.dot
T

635 lines
23 KiB
Plaintext
Vendored

digraph endlessLoops_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 test_1" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
5 [label="Enter block"];
subgraph cluster_4 {
color=blue
6 [label="Enter while loop"];
subgraph cluster_5 {
color=blue
7 [label="Enter loop condition"];
8 [label="Const: Boolean(true)"];
9 [label="Exit loop condition"];
}
subgraph cluster_6 {
color=blue
10 [label="Enter loop block"];
subgraph cluster_7 {
color=blue
11 [label="Enter block"];
12 [label="Access variable R|<local>/x|"];
13 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_8 {
color=blue
14 [label="Enter when"];
subgraph cluster_9 {
color=blue
15 [label="Enter when branch condition "];
16 [label="Access variable R|<local>/b|"];
17 [label="Exit when branch condition"];
}
18 [label="Synthetic else branch"];
19 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
20 [label="Enter block"];
21 [label="Jump: break@@@[Boolean(true)] "];
22 [label="Stub" style="filled" fillcolor=gray];
23 [label="Exit block" style="filled" fillcolor=gray];
}
24 [label="Exit when branch result" style="filled" fillcolor=gray];
25 [label="Exit when"];
}
26 [label="Exit block"];
}
27 [label="Exit loop block"];
}
28 [label="Exit whileloop"];
}
29 [label="Access variable R|<local>/x|"];
30 [label="Function call: R|<local>/x|.R|/A.foo|()"];
31 [label="Exit block"];
}
32 [label="Exit function test_1" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
9 -> {28} [style=dotted];
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {19 18};
18 -> {25};
19 -> {20};
20 -> {21};
21 -> {28};
21 -> {22} [style=dotted];
22 -> {23} [style=dotted];
23 -> {24} [style=dotted];
24 -> {25} [style=dotted];
25 -> {26};
26 -> {27};
27 -> {7} [color=green style=dashed];
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
subgraph cluster_11 {
color=red
33 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
34 [label="Enter block"];
subgraph cluster_13 {
color=blue
35 [label="Enter while loop"];
subgraph cluster_14 {
color=blue
36 [label="Enter loop condition"];
37 [label="Const: Boolean(true)"];
38 [label="Exit loop condition"];
}
subgraph cluster_15 {
color=blue
39 [label="Enter loop block"];
subgraph cluster_16 {
color=blue
40 [label="Enter block"];
subgraph cluster_17 {
color=blue
41 [label="Enter when"];
subgraph cluster_18 {
color=blue
42 [label="Enter when branch condition "];
43 [label="Access variable R|<local>/b|"];
44 [label="Exit when branch condition"];
}
45 [label="Synthetic else branch"];
46 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
47 [label="Enter block"];
48 [label="Access variable R|<local>/x|"];
49 [label="Type operator: (R|<local>/x| as R|A|)"];
50 [label="Jump: break@@@[Boolean(true)] "];
51 [label="Stub" style="filled" fillcolor=gray];
52 [label="Exit block" style="filled" fillcolor=gray];
}
53 [label="Exit when branch result" style="filled" fillcolor=gray];
54 [label="Exit when"];
}
55 [label="Exit block"];
}
56 [label="Exit loop block"];
}
57 [label="Exit whileloop"];
}
58 [label="Access variable R|<local>/x|"];
59 [label="Function call: R|<local>/x|.R|/A.foo|()"];
60 [label="Exit block"];
}
61 [label="Exit function test_2" style="filled" fillcolor=red];
}
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
38 -> {57} [style=dotted];
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {46 45};
45 -> {54};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {57};
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
52 -> {53} [style=dotted];
53 -> {54} [style=dotted];
54 -> {55};
55 -> {56};
56 -> {36} [color=green style=dashed];
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
subgraph cluster_20 {
color=red
62 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
63 [label="Enter block"];
subgraph cluster_22 {
color=blue
64 [label="Enter while loop"];
subgraph cluster_23 {
color=blue
65 [label="Enter loop condition"];
66 [label="Const: Boolean(true)"];
67 [label="Exit loop condition"];
}
subgraph cluster_24 {
color=blue
68 [label="Enter loop block"];
subgraph cluster_25 {
color=blue
69 [label="Enter block"];
70 [label="Access variable R|<local>/x|"];
71 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_26 {
color=blue
72 [label="Enter when"];
subgraph cluster_27 {
color=blue
73 [label="Enter when branch condition "];
74 [label="Access variable R|<local>/b|"];
75 [label="Exit when branch condition"];
}
76 [label="Synthetic else branch"];
77 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
78 [label="Enter block"];
79 [label="Jump: break@@@[Boolean(true)] "];
80 [label="Stub" style="filled" fillcolor=gray];
81 [label="Exit block" style="filled" fillcolor=gray];
}
82 [label="Exit when branch result" style="filled" fillcolor=gray];
83 [label="Exit when"];
}
subgraph cluster_29 {
color=blue
84 [label="Enter when"];
subgraph cluster_30 {
color=blue
85 [label="Enter when branch condition "];
86 [label="Access variable R|<local>/b|"];
87 [label="Exit when branch condition"];
}
88 [label="Synthetic else branch"];
89 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
90 [label="Enter block"];
91 [label="Jump: break@@@[Boolean(true)] "];
92 [label="Stub" style="filled" fillcolor=gray];
93 [label="Exit block" style="filled" fillcolor=gray];
}
94 [label="Exit when branch result" style="filled" fillcolor=gray];
95 [label="Exit when"];
}
96 [label="Exit block"];
}
97 [label="Exit loop block"];
}
98 [label="Exit whileloop"];
}
99 [label="Access variable R|<local>/x|"];
100 [label="Function call: R|<local>/x|.R|/A.foo|()"];
101 [label="Exit block"];
}
102 [label="Exit function test_3" style="filled" fillcolor=red];
}
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
67 -> {98} [style=dotted];
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {77 76};
76 -> {83};
77 -> {78};
78 -> {79};
79 -> {98};
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {82} [style=dotted];
82 -> {83} [style=dotted];
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {89 88};
88 -> {95};
89 -> {90};
90 -> {91};
91 -> {98};
91 -> {92} [style=dotted];
92 -> {93} [style=dotted];
93 -> {94} [style=dotted];
94 -> {95} [style=dotted];
95 -> {96};
96 -> {97};
97 -> {65} [color=green style=dashed];
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
subgraph cluster_32 {
color=red
103 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
104 [label="Enter block"];
subgraph cluster_34 {
color=blue
105 [label="Enter while loop"];
subgraph cluster_35 {
color=blue
106 [label="Enter loop condition"];
107 [label="Const: Boolean(true)"];
108 [label="Exit loop condition"];
}
subgraph cluster_36 {
color=blue
109 [label="Enter loop block"];
subgraph cluster_37 {
color=blue
110 [label="Enter block"];
subgraph cluster_38 {
color=blue
111 [label="Enter when"];
subgraph cluster_39 {
color=blue
112 [label="Enter when branch condition "];
113 [label="Access variable R|<local>/b|"];
114 [label="Exit when branch condition"];
}
115 [label="Synthetic else branch"];
116 [label="Enter when branch result"];
subgraph cluster_40 {
color=blue
117 [label="Enter block"];
118 [label="Access variable R|<local>/x|"];
119 [label="Type operator: (R|<local>/x| as R|A|)"];
120 [label="Jump: break@@@[Boolean(true)] "];
121 [label="Stub" style="filled" fillcolor=gray];
122 [label="Exit block" style="filled" fillcolor=gray];
}
123 [label="Exit when branch result" style="filled" fillcolor=gray];
124 [label="Exit when"];
}
125 [label="Jump: break@@@[Boolean(true)] "];
126 [label="Stub" style="filled" fillcolor=gray];
127 [label="Exit block" style="filled" fillcolor=gray];
}
128 [label="Exit loop block" style="filled" fillcolor=gray];
}
129 [label="Exit whileloop"];
}
130 [label="Access variable R|<local>/x|"];
131 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
132 [label="Exit block"];
}
133 [label="Exit function test_4" style="filled" fillcolor=red];
}
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
108 -> {129} [style=dotted];
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {116 115};
115 -> {124};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {129};
120 -> {121} [style=dotted];
121 -> {122} [style=dotted];
122 -> {123} [style=dotted];
123 -> {124} [style=dotted];
124 -> {125};
125 -> {129};
125 -> {126} [style=dotted];
126 -> {127} [style=dotted];
127 -> {128} [style=dotted];
128 -> {106} [color=green style=dotted];
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
subgraph cluster_41 {
color=red
134 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_42 {
color=blue
135 [label="Enter block"];
subgraph cluster_43 {
color=blue
136 [label="Enter do-while loop"];
subgraph cluster_44 {
color=blue
137 [label="Enter loop block"];
subgraph cluster_45 {
color=blue
138 [label="Enter block"];
subgraph cluster_46 {
color=blue
139 [label="Enter when"];
subgraph cluster_47 {
color=blue
140 [label="Enter when branch condition "];
141 [label="Access variable R|<local>/b|"];
142 [label="Exit when branch condition"];
}
143 [label="Synthetic else branch"];
144 [label="Enter when branch result"];
subgraph cluster_48 {
color=blue
145 [label="Enter block"];
146 [label="Access variable R|<local>/x|"];
147 [label="Type operator: (R|<local>/x| as R|A|)"];
148 [label="Jump: break@@@[Boolean(true)] "];
149 [label="Stub" style="filled" fillcolor=gray];
150 [label="Exit block" style="filled" fillcolor=gray];
}
151 [label="Exit when branch result" style="filled" fillcolor=gray];
152 [label="Exit when"];
}
153 [label="Exit block"];
}
154 [label="Exit loop block"];
}
subgraph cluster_49 {
color=blue
155 [label="Enter loop condition"];
156 [label="Const: Boolean(true)"];
157 [label="Exit loop condition"];
}
158 [label="Exit do-whileloop"];
}
159 [label="Access variable R|<local>/x|"];
160 [label="Function call: R|<local>/x|.R|/A.foo|()"];
161 [label="Exit block"];
}
162 [label="Exit function test_5" style="filled" fillcolor=red];
}
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {144 143};
143 -> {152};
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {158};
148 -> {149} [style=dotted];
149 -> {150} [style=dotted];
150 -> {151} [style=dotted];
151 -> {152} [style=dotted];
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {157};
157 -> {158} [style=dotted];
157 -> {137} [color=green style=dashed];
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
subgraph cluster_50 {
color=red
163 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_51 {
color=blue
164 [label="Enter block"];
subgraph cluster_52 {
color=blue
165 [label="Enter do-while loop"];
subgraph cluster_53 {
color=blue
166 [label="Enter loop block"];
subgraph cluster_54 {
color=blue
167 [label="Enter block"];
168 [label="Access variable R|<local>/x|"];
169 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_55 {
color=blue
170 [label="Enter when"];
subgraph cluster_56 {
color=blue
171 [label="Enter when branch condition "];
172 [label="Access variable R|<local>/b|"];
173 [label="Exit when branch condition"];
}
174 [label="Synthetic else branch"];
175 [label="Enter when branch result"];
subgraph cluster_57 {
color=blue
176 [label="Enter block"];
177 [label="Jump: break@@@[Boolean(true)] "];
178 [label="Stub" style="filled" fillcolor=gray];
179 [label="Exit block" style="filled" fillcolor=gray];
}
180 [label="Exit when branch result" style="filled" fillcolor=gray];
181 [label="Exit when"];
}
182 [label="Exit block"];
}
183 [label="Exit loop block"];
}
subgraph cluster_58 {
color=blue
184 [label="Enter loop condition"];
185 [label="Const: Boolean(true)"];
186 [label="Exit loop condition"];
}
187 [label="Exit do-whileloop"];
}
188 [label="Access variable R|<local>/x|"];
189 [label="Function call: R|<local>/x|.R|/A.foo|()"];
190 [label="Exit block"];
}
191 [label="Exit function test_6" style="filled" fillcolor=red];
}
163 -> {164};
164 -> {165};
165 -> {166};
166 -> {167};
167 -> {168};
168 -> {169};
169 -> {170};
170 -> {171};
171 -> {172};
172 -> {173};
173 -> {175 174};
174 -> {181};
175 -> {176};
176 -> {177};
177 -> {187};
177 -> {178} [style=dotted];
178 -> {179} [style=dotted];
179 -> {180} [style=dotted];
180 -> {181} [style=dotted];
181 -> {182};
182 -> {183};
183 -> {184};
184 -> {185};
185 -> {186};
186 -> {187} [style=dotted];
186 -> {166} [color=green style=dashed];
187 -> {188};
188 -> {189};
189 -> {190};
190 -> {191};
subgraph cluster_59 {
color=red
192 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_60 {
color=blue
193 [label="Enter block"];
subgraph cluster_61 {
color=blue
194 [label="Enter do-while loop"];
subgraph cluster_62 {
color=blue
195 [label="Enter loop block"];
subgraph cluster_63 {
color=blue
196 [label="Enter block"];
197 [label="Access variable R|<local>/x|"];
198 [label="Type operator: (R|<local>/x| as R|A|)"];
199 [label="Exit block"];
}
200 [label="Exit loop block"];
}
subgraph cluster_64 {
color=blue
201 [label="Enter loop condition"];
202 [label="Const: Boolean(true)"];
203 [label="Exit loop condition"];
}
204 [label="Exit do-whileloop" style="filled" fillcolor=gray];
}
205 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray];
206 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=gray];
207 [label="Exit block" style="filled" fillcolor=gray];
}
208 [label="Exit function test_7" style="filled" fillcolor=red style="filled" fillcolor=gray];
}
192 -> {193};
193 -> {194};
194 -> {195};
195 -> {196};
196 -> {197};
197 -> {198};
198 -> {199};
199 -> {200};
200 -> {201};
201 -> {202};
202 -> {203};
203 -> {204} [style=dotted];
203 -> {195} [color=green style=dashed];
204 -> {205} [style=dotted];
205 -> {206} [style=dotted];
206 -> {207} [style=dotted];
207 -> {208} [style=dotted];
}