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

631 lines
22 KiB
Plaintext
Vendored

digraph implicitReceivers_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
2 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
1 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {2};
2 -> {1};
subgraph cluster_1 {
color=red
3 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
5 [label="Enter block"];
6 [label="Exit block"];
}
4 [label="Exit function foo" style="filled" fillcolor=red];
}
3 -> {5};
5 -> {6};
6 -> {4};
subgraph cluster_3 {
color=red
8 [label="Enter class A" style="filled" fillcolor=red];
7 [label="Exit class A" style="filled" fillcolor=red];
}
8 -> {7} [color=green];
subgraph cluster_4 {
color=red
9 [label="Enter function <init>" style="filled" fillcolor=red];
11 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
10 [label="Exit function <init>" style="filled" fillcolor=red];
}
9 -> {11};
11 -> {10};
subgraph cluster_5 {
color=red
12 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
14 [label="Enter block"];
15 [label="Exit block"];
}
13 [label="Exit function bar" style="filled" fillcolor=red];
}
12 -> {14};
14 -> {15};
15 -> {13};
subgraph cluster_7 {
color=red
17 [label="Enter class B" style="filled" fillcolor=red];
16 [label="Exit class B" style="filled" fillcolor=red];
}
17 -> {16} [color=green];
subgraph cluster_8 {
color=red
18 [label="Enter function with" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
20 [label="Enter block"];
21 [label="Exit block"];
}
19 [label="Exit function with" style="filled" fillcolor=red];
}
18 -> {20};
20 -> {21};
21 -> {19};
subgraph cluster_10 {
color=red
22 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
24 [label="Enter block"];
subgraph cluster_12 {
color=blue
25 [label="Enter when"];
subgraph cluster_13 {
color=blue
27 [label="Enter when branch condition "];
28 [label="Access variable this@R|/test_1|"];
29 [label="Type operator: (this@R|/test_1| is R|A|)"];
30 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
38 [label="Enter when branch condition else"];
39 [label="Exit when branch condition"];
}
40 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
41 [label="Enter block"];
42 [label="Access variable this@R|/test_1|"];
43 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
44 [label="Function call: <Unresolved name: foo>#()"];
45 [label="Exit block"];
}
46 [label="Exit when branch result"];
31 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
32 [label="Enter block"];
33 [label="Access variable this@R|/test_1|"];
34 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
35 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
36 [label="Exit block"];
}
37 [label="Exit when branch result"];
26 [label="Exit when"];
}
47 [label="Access variable this@R|/test_1|"];
48 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
49 [label="Function call: <Unresolved name: foo>#()"];
50 [label="Exit block"];
}
23 [label="Exit function test_1" style="filled" fillcolor=red];
}
22 -> {24};
24 -> {25};
25 -> {27};
26 -> {47};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31 38};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {26};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {26};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {23};
subgraph cluster_17 {
color=red
51 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
53 [label="Enter block"];
subgraph cluster_19 {
color=blue
54 [label="Enter when"];
subgraph cluster_20 {
color=blue
56 [label="Enter when branch condition "];
57 [label="Access variable this@R|/test_2|"];
58 [label="Type operator: (this@R|/test_2| !is R|A|)"];
59 [label="Exit when branch condition"];
}
subgraph cluster_21 {
color=blue
67 [label="Enter when branch condition else"];
68 [label="Exit when branch condition"];
}
69 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
70 [label="Enter block"];
71 [label="Access variable this@R|/test_2|"];
72 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
73 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
74 [label="Exit block"];
}
75 [label="Exit when branch result"];
60 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
61 [label="Enter block"];
62 [label="Access variable this@R|/test_2|"];
63 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
64 [label="Function call: <Unresolved name: foo>#()"];
65 [label="Exit block"];
}
66 [label="Exit when branch result"];
55 [label="Exit when"];
}
76 [label="Access variable this@R|/test_2|"];
77 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
78 [label="Function call: <Unresolved name: foo>#()"];
79 [label="Exit block"];
}
52 [label="Exit function test_2" style="filled" fillcolor=red];
}
51 -> {53};
53 -> {54};
54 -> {56};
55 -> {76};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60 67};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {55};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {55};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {52};
subgraph cluster_24 {
color=red
80 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_25 {
color=blue
82 [label="Enter block"];
83 [label="Access variable R|<local>/a|"];
84 [label="Postponed enter to lambda"];
subgraph cluster_26 {
color=blue
89 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
91 [label="Enter block"];
92 [label="Access variable R|<local>/b|"];
93 [label="Postponed enter to lambda"];
subgraph cluster_28 {
color=blue
97 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
99 [label="Enter block"];
100 [label="Access variable R|<local>/c|"];
101 [label="Postponed enter to lambda"];
subgraph cluster_30 {
color=blue
109 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
111 [label="Enter block"];
112 [label="Access variable this@R|special/anonymous|"];
113 [label="Type operator: (this@R|special/anonymous| as R|A|)"];
114 [label="Access variable this@R|special/anonymous|"];
115 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
116 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
117 [label="Exit block"];
}
110 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
104 [label="Call arguments union" style="filled" fillcolor=yellow];
102 [label="Postponed exit from lambda"];
103 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
105 [label="Access variable this@R|special/anonymous|"];
106 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
107 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
108 [label="Exit block"];
}
98 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
94 [label="Postponed exit from lambda"];
95 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
96 [label="Exit block"];
}
90 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
87 [label="Call arguments union" style="filled" fillcolor=yellow];
85 [label="Postponed exit from lambda"];
86 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
88 [label="Exit block"];
}
81 [label="Exit function test_3" style="filled" fillcolor=red];
}
80 -> {82};
82 -> {83};
83 -> {84};
84 -> {89};
84 -> {85} [color=red];
85 -> {86} [color=green];
86 -> {88};
87 -> {86} [color=red];
88 -> {81};
89 -> {91};
90 -> {85} [color=green];
90 -> {87} [color=red];
91 -> {92};
92 -> {93};
93 -> {97};
93 -> {94} [color=red];
94 -> {95};
95 -> {96};
96 -> {90};
97 -> {99};
98 -> {94} [color=green];
99 -> {100};
100 -> {101};
101 -> {109};
101 -> {102} [color=red];
102 -> {103} [color=green];
103 -> {105};
104 -> {103} [color=red];
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {98};
109 -> {111};
110 -> {102} [color=green];
110 -> {104} [color=red];
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {110};
subgraph cluster_32 {
color=red
118 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
120 [label="Enter block"];
subgraph cluster_34 {
color=blue
121 [label="Enter when"];
subgraph cluster_35 {
color=blue
123 [label="Enter when branch condition "];
124 [label="Access variable this@R|/test_4|"];
125 [label="Type operator: (this@R|/test_4| !is R|A|)"];
126 [label="Exit when branch condition"];
}
subgraph cluster_36 {
color=blue
137 [label="Enter when branch condition else"];
138 [label="Exit when branch condition"];
}
139 [label="Enter when branch result"];
subgraph cluster_37 {
color=blue
140 [label="Enter block"];
subgraph cluster_38 {
color=blue
141 [label="Enter when"];
subgraph cluster_39 {
color=blue
143 [label="Enter when branch condition "];
144 [label="Access variable this@R|/test_4|"];
145 [label="Type operator: (this@R|/test_4| !is R|B|)"];
146 [label="Exit when branch condition"];
}
subgraph cluster_40 {
color=blue
157 [label="Enter when branch condition else"];
158 [label="Exit when branch condition"];
}
159 [label="Enter when branch result"];
subgraph cluster_41 {
color=blue
160 [label="Enter block"];
161 [label="Access variable this@R|/test_4|"];
162 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
163 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
164 [label="Access variable this@R|/test_4|"];
165 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
166 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
167 [label="Exit block"];
}
168 [label="Exit when branch result"];
147 [label="Enter when branch result"];
subgraph cluster_42 {
color=blue
148 [label="Enter block"];
149 [label="Access variable this@R|/test_4|"];
150 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
151 [label="Function call: <Unresolved name: bar>#()"];
152 [label="Access variable this@R|/test_4|"];
153 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
154 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
155 [label="Exit block"];
}
156 [label="Exit when branch result"];
142 [label="Exit when"];
}
169 [label="Exit block"];
}
170 [label="Exit when branch result"];
127 [label="Enter when branch result"];
subgraph cluster_43 {
color=blue
128 [label="Enter block"];
129 [label="Access variable this@R|/test_4|"];
130 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
131 [label="Function call: <Unresolved name: foo>#()"];
132 [label="Access variable this@R|/test_4|"];
133 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
134 [label="Function call: <Unresolved name: bar>#()"];
135 [label="Exit block"];
}
136 [label="Exit when branch result"];
122 [label="Exit when"];
}
171 [label="Access variable this@R|/test_4|"];
172 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
173 [label="Function call: <Unresolved name: foo>#()"];
174 [label="Access variable this@R|/test_4|"];
175 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
176 [label="Function call: <Unresolved name: bar>#()"];
177 [label="Exit block"];
}
119 [label="Exit function test_4" style="filled" fillcolor=red];
}
118 -> {120};
120 -> {121};
121 -> {123};
122 -> {171};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127 137};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {122};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {143};
142 -> {169};
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {147 157};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {142};
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {164};
164 -> {165};
165 -> {166};
166 -> {167};
167 -> {168};
168 -> {142};
169 -> {170};
170 -> {122};
171 -> {172};
172 -> {173};
173 -> {174};
174 -> {175};
175 -> {176};
176 -> {177};
177 -> {119};
subgraph cluster_44 {
color=red
178 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_45 {
color=blue
180 [label="Enter block"];
subgraph cluster_46 {
color=blue
181 [label="Enter when"];
subgraph cluster_47 {
color=blue
183 [label="Enter when branch condition "];
184 [label="Access variable this@R|/test_5|"];
185 [label="Type operator: (this@R|/test_5| is R|kotlin/collections/List<*>|)"];
186 [label="Exit when branch condition"];
}
subgraph cluster_48 {
color=blue
192 [label="Enter when branch condition "];
193 [label="Access variable this@R|/test_5|"];
194 [label="Type operator: (this@R|/test_5| is R|kotlin/String|)"];
195 [label="Exit when branch condition"];
}
subgraph cluster_49 {
color=blue
201 [label="Enter when branch condition else"];
202 [label="Exit when branch condition"];
}
203 [label="Enter when branch result"];
subgraph cluster_50 {
color=blue
204 [label="Enter block"];
205 [label="Const: Int(0)"];
206 [label="Exit block"];
}
207 [label="Exit when branch result"];
196 [label="Enter when branch result"];
subgraph cluster_51 {
color=blue
197 [label="Enter block"];
198 [label="Access variable R|kotlin/String.length|"];
199 [label="Exit block"];
}
200 [label="Exit when branch result"];
187 [label="Enter when branch result"];
subgraph cluster_52 {
color=blue
188 [label="Enter block"];
189 [label="Access variable R|kotlin/collections/List.size|"];
190 [label="Exit block"];
}
191 [label="Exit when branch result"];
182 [label="Exit when"];
}
208 [label="Jump: ^test_5 when () {
(this@R|/test_5| is R|kotlin/collections/List<*>|) -> {
this@R|/test_5|.R|kotlin/collections/List.size|
}
(this@R|/test_5| is R|kotlin/String|) -> {
this@R|/test_5|.R|kotlin/String.length|
}
else -> {
Int(0)
}
}
"];
209 [label="Stub" style="filled" fillcolor=gray];
210 [label="Exit block" style="filled" fillcolor=gray];
}
179 [label="Exit function test_5" style="filled" fillcolor=red];
}
178 -> {180};
180 -> {181};
181 -> {183};
182 -> {208};
183 -> {184};
184 -> {185};
185 -> {186};
186 -> {187 192};
187 -> {188};
188 -> {189};
189 -> {190};
190 -> {191};
191 -> {182};
192 -> {193};
193 -> {194};
194 -> {195};
195 -> {196 201};
196 -> {197};
197 -> {198};
198 -> {199};
199 -> {200};
200 -> {182};
201 -> {202};
202 -> {203};
203 -> {204};
204 -> {205};
205 -> {206};
206 -> {207};
207 -> {182};
208 -> {179};
208 -> {209} [style=dotted];
209 -> {210} [style=dotted];
210 -> {179} [style=dotted];
subgraph cluster_53 {
color=red
211 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_54 {
color=blue
213 [label="Enter block"];
214 [label="Access variable this@R|/test_6|"];
215 [label="Type operator: (this@R|/test_6| as R|kotlin/collections/List<*>|)"];
216 [label="Access variable R|kotlin/collections/List.size|"];
217 [label="Access variable this@R|/test_6|"];
218 [label="Type operator: (this@R|/test_6| as R|kotlin/String|)"];
219 [label="Access variable R|kotlin/String.length|"];
220 [label="Exit block"];
}
212 [label="Exit function test_6" style="filled" fillcolor=red];
}
211 -> {213};
213 -> {214};
214 -> {215};
215 -> {216};
216 -> {217};
217 -> {218};
218 -> {219};
219 -> {220};
220 -> {212};
}