Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/implicitReceivers.dot
T
pyos c4c05f5248 FIR CFG: remove ordering from control flow through in-place lambdas
Old graph:

  arg -> lambda enter -> ... -> lambda exit -> lambda enter -> ... ->
   -> lambda exit -> call

New graph:

  arg -+-> lambda enter -> ... -> lambda exit -+-> call
       \-> lambda enter -> ... -> lambda exit -/
2022-12-08 10:19:31 +00:00

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