Files
kotlin-fork/compiler/fir/resolve/testData/resolve/smartcasts/receivers/implicitReceivers.dot
T
2020-03-16 17:04:27 +03:00

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