Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcasts.dot
T
2020-04-03 10:08:17 +03:00

507 lines
16 KiB
Plaintext
Vendored

digraph boundSmartcasts_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 bar" style="filled" fillcolor=red];
5 [label="Exit function bar" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
color=red
6 [label="Enter class B" style="filled" fillcolor=red];
7 [label="Exit class B" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
subgraph cluster_4 {
color=red
8 [label="Enter function test_1" style="filled" fillcolor=red];
9 [label="Access variable R|<local>/x|"];
10 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_5 {
color=blue
11 [label="Enter when"];
subgraph cluster_6 {
color=blue
12 [label="Enter when branch condition "];
13 [label="Access variable R|<local>/x|"];
14 [label="Type operator: (R|<local>/x| is R|A|)"];
15 [label="Exit when branch condition"];
}
16 [label="Synthetic else branch"];
17 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
18 [label="Enter block"];
19 [label="Access variable R|<local>/x|"];
20 [label="Function call: R|<local>/x|.R|/A.foo|()"];
21 [label="Access variable R|<local>/y|"];
22 [label="Function call: R|<local>/y|.R|/A.foo|()"];
23 [label="Exit block"];
}
24 [label="Exit when branch result"];
25 [label="Exit when"];
}
26 [label="Exit function test_1" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {17 16};
16 -> {25};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
subgraph cluster_8 {
color=red
27 [label="Enter function test_2" style="filled" fillcolor=red];
28 [label="Access variable R|<local>/x|"];
29 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_9 {
color=blue
30 [label="Enter when"];
subgraph cluster_10 {
color=blue
31 [label="Enter when branch condition "];
32 [label="Access variable R|<local>/y|"];
33 [label="Type operator: (R|<local>/y| is R|A|)"];
34 [label="Exit when branch condition"];
}
35 [label="Synthetic else branch"];
36 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
37 [label="Enter block"];
38 [label="Access variable R|<local>/x|"];
39 [label="Function call: R|<local>/x|.R|/A.foo|()"];
40 [label="Access variable R|<local>/y|"];
41 [label="Function call: R|<local>/y|.R|/A.foo|()"];
42 [label="Exit block"];
}
43 [label="Exit when branch result"];
44 [label="Exit when"];
}
45 [label="Exit function test_2" style="filled" fillcolor=red];
}
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {36 35};
35 -> {44};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
subgraph cluster_12 {
color=red
46 [label="Enter function test_3" style="filled" fillcolor=red];
47 [label="Access variable R|<local>/x|"];
48 [label="Variable declaration: lvar z: R|kotlin/Any|"];
subgraph cluster_13 {
color=blue
49 [label="Enter when"];
subgraph cluster_14 {
color=blue
50 [label="Enter when branch condition "];
51 [label="Access variable R|<local>/x|"];
52 [label="Type operator: (R|<local>/x| is R|A|)"];
53 [label="Exit when branch condition"];
}
54 [label="Synthetic else branch"];
55 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
56 [label="Enter block"];
57 [label="Access variable R|<local>/z|"];
58 [label="Function call: R|<local>/z|.R|/A.foo|()"];
59 [label="Exit block"];
}
60 [label="Exit when branch result"];
61 [label="Exit when"];
}
62 [label="Access variable R|<local>/y|"];
63 [label="Assignmenet: R|<local>/z|"];
subgraph cluster_16 {
color=blue
64 [label="Enter when"];
subgraph cluster_17 {
color=blue
65 [label="Enter when branch condition "];
66 [label="Access variable R|<local>/y|"];
67 [label="Type operator: (R|<local>/y| is R|B|)"];
68 [label="Exit when branch condition"];
}
69 [label="Synthetic else branch"];
70 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
71 [label="Enter block"];
72 [label="Access variable R|<local>/z|"];
73 [label="Function call: R|<local>/z|.<Unresolved name: foo>#()"];
74 [label="Access variable R|<local>/z|"];
75 [label="Function call: R|<local>/z|.R|/B.bar|()"];
76 [label="Exit block"];
}
77 [label="Exit when branch result"];
78 [label="Exit when"];
}
79 [label="Exit function test_3" style="filled" fillcolor=red];
}
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {55 54};
54 -> {61};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {70 69};
69 -> {78};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
subgraph cluster_19 {
color=red
80 [label="Enter function test_4" style="filled" fillcolor=red];
81 [label="Const: Int(1)"];
82 [label="Variable declaration: lvar x: R|kotlin/Any|"];
83 [label="Access variable R|<local>/x|"];
84 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
87 [label="Access variable R|<local>/y|"];
88 [label="Assignmenet: R|<local>/x|"];
89 [label="Access variable R|<local>/x|"];
90 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
subgraph cluster_20 {
color=blue
91 [label="Enter when"];
subgraph cluster_21 {
color=blue
92 [label="Enter when branch condition "];
93 [label="Access variable R|<local>/y|"];
94 [label="Type operator: (R|<local>/y| is R|A|)"];
95 [label="Exit when branch condition"];
}
96 [label="Synthetic else branch"];
97 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
98 [label="Enter block"];
99 [label="Access variable R|<local>/x|"];
100 [label="Function call: R|<local>/x|.R|/A.foo|()"];
101 [label="Access variable R|<local>/y|"];
102 [label="Function call: R|<local>/y|.R|/A.foo|()"];
103 [label="Exit block"];
}
104 [label="Exit when branch result"];
105 [label="Exit when"];
}
106 [label="Exit function test_4" style="filled" fillcolor=red];
}
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {97 96};
96 -> {105};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
subgraph cluster_23 {
color=red
107 [label="Enter function <init>" style="filled" fillcolor=red];
108 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
109 [label="Exit function <init>" style="filled" fillcolor=red];
}
107 -> {108};
108 -> {109};
subgraph cluster_24 {
color=red
110 [label="Enter function getter" style="filled" fillcolor=red];
111 [label="Exit function getter" style="filled" fillcolor=red];
}
110 -> {111};
subgraph cluster_25 {
color=red
112 [label="Enter property" style="filled" fillcolor=red];
113 [label="Access variable R|<local>/any|"];
114 [label="Exit property" style="filled" fillcolor=red];
}
112 -> {113};
113 -> {114};
subgraph cluster_26 {
color=red
115 [label="Enter class D" style="filled" fillcolor=red];
116 [label="Exit class D" style="filled" fillcolor=red];
}
subgraph cluster_27 {
color=red
117 [label="Enter function baz" style="filled" fillcolor=red];
118 [label="Exit function baz" style="filled" fillcolor=red];
}
117 -> {118};
subgraph cluster_28 {
color=red
119 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
120 [label="Enter when"];
121 [label="Access variable R|<local>/d|"];
122 [label="Access variable R|/D.any|"];
123 [label="Variable declaration: lval <elvis>: R|kotlin/Any?|"];
subgraph cluster_30 {
color=blue
124 [label="Enter when branch condition "];
125 [label="Const: Null(null)"];
126 [label="Operator =="];
127 [label="Exit when branch condition"];
}
subgraph cluster_31 {
color=blue
128 [label="Enter when branch condition else"];
129 [label="Exit when branch condition"];
}
130 [label="Enter when branch result"];
subgraph cluster_32 {
color=blue
131 [label="Enter block"];
132 [label="Access variable R|<local>/<elvis>|"];
133 [label="Exit block"];
}
134 [label="Exit when branch result"];
135 [label="Enter when branch result"];
subgraph cluster_33 {
color=blue
136 [label="Enter block"];
137 [label="Jump: ^test_5 Unit"];
138 [label="Stub" style="filled" fillcolor=gray];
139 [label="Exit block" style="filled" fillcolor=gray];
}
140 [label="Exit when branch result" style="filled" fillcolor=gray];
141 [label="Exit when"];
}
142 [label="Variable declaration: lval a: R|kotlin/Any|"];
143 [label="Access variable R|<local>/a|"];
144 [label="Function call: R|<local>/a|.R|/baz|()"];
145 [label="Access variable R|<local>/d|"];
146 [label="Access variable R|/D.any|"];
147 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"];
148 [label="Access variable R|<local>/a|"];
149 [label="Type operator: (R|<local>/a| as R|A|)"];
150 [label="Access variable R|<local>/a|"];
151 [label="Function call: R|<local>/a|.R|/A.foo|()"];
152 [label="Exit function test_5" style="filled" fillcolor=red];
}
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {135 128};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {141};
135 -> {136};
136 -> {137};
137 -> {152};
137 -> {138} [style=dotted];
138 -> {139} [style=dotted];
139 -> {140} [style=dotted];
140 -> {141} [style=dotted];
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
151 -> {152};
subgraph cluster_34 {
color=red
153 [label="Enter function test_6" style="filled" fillcolor=red];
154 [label="Access variable R|<local>/d1|"];
155 [label="Access variable R|/D.any|"];
156 [label="Variable declaration: lval a: R|kotlin/Any?|"];
157 [label="Access variable R|<local>/a|"];
158 [label="Type operator: (R|<local>/a| as R|A|)"];
159 [label="Access variable R|<local>/a|"];
160 [label="Function call: R|<local>/a|.R|/A.foo|()"];
161 [label="Access variable R|<local>/d1|"];
162 [label="Access variable R|/D.any|"];
163 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"];
164 [label="Access variable R|<local>/d1|"];
165 [label="Access variable R|/D.any|"];
166 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"];
167 [label="Exit function test_6" style="filled" fillcolor=red];
}
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {157};
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {164};
164 -> {165};
165 -> {166};
166 -> {167};
subgraph cluster_35 {
color=red
168 [label="Enter function test_7" style="filled" fillcolor=red];
169 [label="Access variable R|<local>/d1|"];
170 [label="Enter safe call"];
171 [label="Access variable R|/D.any|"];
172 [label="Exit safe call"];
173 [label="Variable declaration: lval a: R|kotlin/Any?|"];
174 [label="Access variable R|<local>/d2|"];
175 [label="Enter safe call"];
176 [label="Access variable R|/D.any|"];
177 [label="Exit safe call"];
178 [label="Variable declaration: lval b: R|kotlin/Any?|"];
179 [label="Access variable R|<local>/a|"];
180 [label="Type operator: (R|<local>/a| as R|A|)"];
181 [label="Access variable R|<local>/a|"];
182 [label="Function call: R|<local>/a|.R|/A.foo|()"];
183 [label="Access variable R|<local>/b|"];
184 [label="Type operator: (R|<local>/b| as R|B|)"];
185 [label="Access variable R|<local>/b|"];
186 [label="Function call: R|<local>/b|.R|/B.bar|()"];
187 [label="Exit function test_7" style="filled" fillcolor=red];
}
168 -> {169};
169 -> {170 172};
170 -> {171};
171 -> {172};
172 -> {173};
173 -> {174};
174 -> {175 177};
175 -> {176};
176 -> {177};
177 -> {178};
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {182};
182 -> {183};
183 -> {184};
184 -> {185};
185 -> {186};
186 -> {187};
}