Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/endlessLoops.dot
T
2020-06-19 15:53:00 +03:00

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