FIR. Refactor smart-cast representation in FIR tree

Make smart-casts non-transparent expression without delegation
to underlying FirQualifiedAccessExpression, as children delegation in
fir tree has unclear semantics
Remove two different kinds of tree nodes for smart-casts
This commit is contained in:
Simon Ogorodnik
2022-08-02 00:49:24 +02:00
committed by teamcity
parent bc9db58b3c
commit 513af2dfbc
154 changed files with 9573 additions and 9320 deletions
@@ -55,17 +55,19 @@ digraph boundSmartcasts_kt {
color=blue
19 [label="Enter block"];
20 [label="Access variable R|<local>/x|"];
21 [label="Function call: R|<local>/x|.R|/A.foo|()"];
22 [label="Access variable R|<local>/y|"];
23 [label="Function call: R|<local>/y|.R|/A.foo|()"];
24 [label="Exit block"];
21 [label="Smart cast: R|<local>/x|"];
22 [label="Function call: R|<local>/x|.R|/A.foo|()"];
23 [label="Access variable R|<local>/y|"];
24 [label="Smart cast: R|<local>/y|"];
25 [label="Function call: R|<local>/y|.R|/A.foo|()"];
26 [label="Exit block"];
}
25 [label="Exit when branch result"];
26 [label="Exit when"];
27 [label="Exit when branch result"];
28 [label="Exit when"];
}
27 [label="Exit block"];
29 [label="Exit block"];
}
28 [label="Exit function test_1" style="filled" fillcolor=red];
30 [label="Exit function test_1" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
@@ -76,7 +78,7 @@ digraph boundSmartcasts_kt {
14 -> {15};
15 -> {16};
16 -> {18 17};
17 -> {26};
17 -> {28};
18 -> {19};
19 -> {20};
20 -> {21};
@@ -87,55 +89,57 @@ digraph boundSmartcasts_kt {
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
subgraph cluster_9 {
color=red
29 [label="Enter function test_2" style="filled" fillcolor=red];
31 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
30 [label="Enter block"];
31 [label="Access variable R|<local>/x|"];
32 [label="Variable declaration: lval y: R|kotlin/Any|"];
32 [label="Enter block"];
33 [label="Access variable R|<local>/x|"];
34 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_11 {
color=blue
33 [label="Enter when"];
35 [label="Enter when"];
subgraph cluster_12 {
color=blue
34 [label="Enter when branch condition "];
35 [label="Access variable R|<local>/y|"];
36 [label="Type operator: (R|<local>/y| is R|A|)"];
37 [label="Exit when branch condition"];
36 [label="Enter when branch condition "];
37 [label="Access variable R|<local>/y|"];
38 [label="Type operator: (R|<local>/y| is R|A|)"];
39 [label="Exit when branch condition"];
}
38 [label="Synthetic else branch"];
39 [label="Enter when branch result"];
40 [label="Synthetic else branch"];
41 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
40 [label="Enter block"];
41 [label="Access variable R|<local>/x|"];
42 [label="Function call: R|<local>/x|.R|/A.foo|()"];
43 [label="Access variable R|<local>/y|"];
44 [label="Function call: R|<local>/y|.R|/A.foo|()"];
45 [label="Exit block"];
42 [label="Enter block"];
43 [label="Access variable R|<local>/x|"];
44 [label="Smart cast: R|<local>/x|"];
45 [label="Function call: R|<local>/x|.R|/A.foo|()"];
46 [label="Access variable R|<local>/y|"];
47 [label="Smart cast: R|<local>/y|"];
48 [label="Function call: R|<local>/y|.R|/A.foo|()"];
49 [label="Exit block"];
}
46 [label="Exit when branch result"];
47 [label="Exit when"];
50 [label="Exit when branch result"];
51 [label="Exit when"];
}
48 [label="Exit block"];
52 [label="Exit block"];
}
49 [label="Exit function test_2" style="filled" fillcolor=red];
53 [label="Exit function test_2" style="filled" fillcolor=red];
}
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {39 38};
38 -> {47};
39 -> {40};
40 -> {41};
37 -> {38};
38 -> {39};
39 -> {41 40};
40 -> {51};
41 -> {42};
42 -> {43};
43 -> {44};
@@ -144,81 +148,84 @@ digraph boundSmartcasts_kt {
46 -> {47};
47 -> {48};
48 -> {49};
subgraph cluster_14 {
color=red
50 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
51 [label="Enter block"];
52 [label="Access variable R|<local>/x|"];
53 [label="Variable declaration: lvar z: R|kotlin/Any|"];
subgraph cluster_16 {
color=blue
54 [label="Enter when"];
subgraph cluster_17 {
color=blue
55 [label="Enter when branch condition "];
56 [label="Access variable R|<local>/x|"];
57 [label="Type operator: (R|<local>/x| is R|A|)"];
58 [label="Exit when branch condition"];
}
59 [label="Synthetic else branch"];
60 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
61 [label="Enter block"];
62 [label="Access variable R|<local>/z|"];
63 [label="Function call: R|<local>/z|.R|/A.foo|()"];
64 [label="Exit block"];
}
65 [label="Exit when branch result"];
66 [label="Exit when"];
}
67 [label="Access variable R|<local>/y|"];
68 [label="Assignment: R|<local>/z|"];
subgraph cluster_19 {
color=blue
69 [label="Enter when"];
subgraph cluster_20 {
color=blue
70 [label="Enter when branch condition "];
71 [label="Access variable R|<local>/y|"];
72 [label="Type operator: (R|<local>/y| is R|B|)"];
73 [label="Exit when branch condition"];
}
74 [label="Synthetic else branch"];
75 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
76 [label="Enter block"];
77 [label="Access variable R|<local>/z|"];
78 [label="Function call: R|<local>/z|.<Unresolved name: foo>#()"];
79 [label="Access variable R|<local>/z|"];
80 [label="Function call: R|<local>/z|.R|/B.bar|()"];
81 [label="Exit block"];
}
82 [label="Exit when branch result"];
83 [label="Exit when"];
}
84 [label="Exit block"];
}
85 [label="Exit function test_3" style="filled" fillcolor=red];
}
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
subgraph cluster_14 {
color=red
54 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
55 [label="Enter block"];
56 [label="Access variable R|<local>/x|"];
57 [label="Variable declaration: lvar z: R|kotlin/Any|"];
subgraph cluster_16 {
color=blue
58 [label="Enter when"];
subgraph cluster_17 {
color=blue
59 [label="Enter when branch condition "];
60 [label="Access variable R|<local>/x|"];
61 [label="Type operator: (R|<local>/x| is R|A|)"];
62 [label="Exit when branch condition"];
}
63 [label="Synthetic else branch"];
64 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
65 [label="Enter block"];
66 [label="Access variable R|<local>/z|"];
67 [label="Smart cast: R|<local>/z|"];
68 [label="Function call: R|<local>/z|.R|/A.foo|()"];
69 [label="Exit block"];
}
70 [label="Exit when branch result"];
71 [label="Exit when"];
}
72 [label="Access variable R|<local>/y|"];
73 [label="Assignment: R|<local>/z|"];
subgraph cluster_19 {
color=blue
74 [label="Enter when"];
subgraph cluster_20 {
color=blue
75 [label="Enter when branch condition "];
76 [label="Access variable R|<local>/y|"];
77 [label="Type operator: (R|<local>/y| is R|B|)"];
78 [label="Exit when branch condition"];
}
79 [label="Synthetic else branch"];
80 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
81 [label="Enter block"];
82 [label="Access variable R|<local>/z|"];
83 [label="Smart cast: R|<local>/z|"];
84 [label="Function call: R|<local>/z|.<Unresolved name: foo>#()"];
85 [label="Access variable R|<local>/z|"];
86 [label="Smart cast: R|<local>/z|"];
87 [label="Function call: R|<local>/z|.R|/B.bar|()"];
88 [label="Exit block"];
}
89 [label="Exit when branch result"];
90 [label="Exit when"];
}
91 [label="Exit block"];
}
92 [label="Exit function test_3" style="filled" fillcolor=red];
}
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {60 59};
59 -> {66};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
62 -> {64 63};
63 -> {71};
64 -> {65};
65 -> {66};
66 -> {67};
@@ -228,70 +235,73 @@ digraph boundSmartcasts_kt {
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {75 74};
74 -> {83};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
78 -> {80 79};
79 -> {90};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
subgraph cluster_22 {
color=red
86 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
87 [label="Enter block"];
88 [label="Const: Int(1)"];
89 [label="Variable declaration: lvar x: R|kotlin/Any|"];
90 [label="Access variable R|<local>/x|"];
91 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
92 [label="Access variable R|<local>/x|"];
93 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
94 [label="Access variable R|<local>/y|"];
95 [label="Assignment: R|<local>/x|"];
96 [label="Access variable R|<local>/x|"];
97 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
subgraph cluster_24 {
color=blue
98 [label="Enter when"];
subgraph cluster_25 {
color=blue
99 [label="Enter when branch condition "];
100 [label="Access variable R|<local>/y|"];
101 [label="Type operator: (R|<local>/y| is R|A|)"];
102 [label="Exit when branch condition"];
}
103 [label="Synthetic else branch"];
104 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
105 [label="Enter block"];
106 [label="Access variable R|<local>/x|"];
107 [label="Function call: R|<local>/x|.R|/A.foo|()"];
108 [label="Access variable R|<local>/y|"];
109 [label="Function call: R|<local>/y|.R|/A.foo|()"];
110 [label="Exit block"];
}
111 [label="Exit when branch result"];
112 [label="Exit when"];
}
113 [label="Exit block"];
}
114 [label="Exit function test_4" style="filled" fillcolor=red];
}
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
subgraph cluster_22 {
color=red
93 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
94 [label="Enter block"];
95 [label="Const: Int(1)"];
96 [label="Variable declaration: lvar x: R|kotlin/Any|"];
97 [label="Access variable R|<local>/x|"];
98 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
99 [label="Access variable R|<local>/x|"];
100 [label="Smart cast: R|<local>/x|"];
101 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
102 [label="Access variable R|<local>/y|"];
103 [label="Assignment: R|<local>/x|"];
104 [label="Access variable R|<local>/x|"];
105 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
subgraph cluster_24 {
color=blue
106 [label="Enter when"];
subgraph cluster_25 {
color=blue
107 [label="Enter when branch condition "];
108 [label="Access variable R|<local>/y|"];
109 [label="Type operator: (R|<local>/y| is R|A|)"];
110 [label="Exit when branch condition"];
}
111 [label="Synthetic else branch"];
112 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
113 [label="Enter block"];
114 [label="Access variable R|<local>/x|"];
115 [label="Smart cast: R|<local>/x|"];
116 [label="Function call: R|<local>/x|.R|/A.foo|()"];
117 [label="Access variable R|<local>/y|"];
118 [label="Smart cast: R|<local>/y|"];
119 [label="Function call: R|<local>/y|.R|/A.foo|()"];
120 [label="Exit block"];
}
121 [label="Exit when branch result"];
122 [label="Exit when"];
}
123 [label="Exit block"];
}
124 [label="Exit function test_4" style="filled" fillcolor=red];
}
93 -> {94};
94 -> {95};
95 -> {96};
@@ -301,137 +311,116 @@ digraph boundSmartcasts_kt {
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {104 103};
103 -> {112};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
110 -> {112 111};
111 -> {122};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
subgraph cluster_27 {
color=red
115 [label="Enter function <init>" style="filled" fillcolor=red];
116 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
117 [label="Exit function <init>" style="filled" fillcolor=red];
125 [label="Enter function <init>" style="filled" fillcolor=red];
126 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
127 [label="Exit function <init>" style="filled" fillcolor=red];
}
115 -> {116};
116 -> {117};
subgraph cluster_28 {
color=red
118 [label="Enter property" style="filled" fillcolor=red];
119 [label="Access variable R|<local>/any|"];
120 [label="Exit property" style="filled" fillcolor=red];
}
118 -> {119};
119 -> {120};
120 -> {123} [color=green];
subgraph cluster_29 {
color=red
121 [label="Enter class D" style="filled" fillcolor=red];
122 [label="Part of class initialization"];
123 [label="Exit class D" style="filled" fillcolor=red];
}
121 -> {122} [color=green];
122 -> {123} [style=dotted];
122 -> {118} [color=green];
122 -> {118} [style=dashed];
subgraph cluster_30 {
color=red
124 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
125 [label="Enter block"];
126 [label="Exit block"];
}
127 [label="Exit function baz" style="filled" fillcolor=red];
}
124 -> {125};
125 -> {126};
126 -> {127};
subgraph cluster_32 {
subgraph cluster_28 {
color=red
128 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
129 [label="Enter block"];
130 [label="Access variable R|<local>/d|"];
131 [label="Access variable R|/D.any|"];
132 [label="Exit lhs of ?:"];
133 [label="Enter rhs of ?:"];
134 [label="Jump: ^test_5 Unit"];
135 [label="Stub" style="filled" fillcolor=gray];
136 [label="Lhs of ?: is not null"];
137 [label="Exit ?:"];
138 [label="Variable declaration: lval a: R|kotlin/Any|"];
139 [label="Access variable R|<local>/a|"];
140 [label="Function call: R|<local>/a|.R|/baz|()"];
141 [label="Access variable R|<local>/d|"];
142 [label="Access variable R|/D.any|"];
143 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"];
144 [label="Access variable R|<local>/a|"];
145 [label="Type operator: (R|<local>/a| as R|A|)"];
146 [label="Access variable R|<local>/a|"];
147 [label="Function call: R|<local>/a|.R|/A.foo|()"];
148 [label="Exit block"];
}
149 [label="Exit function test_5" style="filled" fillcolor=red];
128 [label="Enter property" style="filled" fillcolor=red];
129 [label="Access variable R|<local>/any|"];
130 [label="Exit property" style="filled" fillcolor=red];
}
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {136 133};
133 -> {134};
134 -> {149};
134 -> {135} [style=dotted];
135 -> {137} [style=dotted];
130 -> {133} [color=green];
subgraph cluster_29 {
color=red
131 [label="Enter class D" style="filled" fillcolor=red];
132 [label="Part of class initialization"];
133 [label="Exit class D" style="filled" fillcolor=red];
}
131 -> {132} [color=green];
132 -> {133} [style=dotted];
132 -> {128} [color=green];
132 -> {128} [style=dashed];
subgraph cluster_30 {
color=red
134 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
135 [label="Enter block"];
136 [label="Exit block"];
}
137 [label="Exit function baz" style="filled" fillcolor=red];
}
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {138};
subgraph cluster_32 {
color=red
138 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
139 [label="Enter block"];
140 [label="Access variable R|<local>/d|"];
141 [label="Access variable R|/D.any|"];
142 [label="Exit lhs of ?:"];
143 [label="Enter rhs of ?:"];
144 [label="Jump: ^test_5 Unit"];
145 [label="Stub" style="filled" fillcolor=gray];
146 [label="Lhs of ?: is not null"];
147 [label="Exit ?:"];
148 [label="Variable declaration: lval a: R|kotlin/Any|"];
149 [label="Access variable R|<local>/a|"];
150 [label="Function call: R|<local>/a|.R|/baz|()"];
151 [label="Access variable R|<local>/d|"];
152 [label="Access variable R|/D.any|"];
153 [label="Smart cast: R|<local>/d|.R|/D.any|"];
154 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"];
155 [label="Access variable R|<local>/a|"];
156 [label="Type operator: (R|<local>/a| as R|A|)"];
157 [label="Access variable R|<local>/a|"];
158 [label="Smart cast: R|<local>/a|"];
159 [label="Function call: R|<local>/a|.R|/A.foo|()"];
160 [label="Exit block"];
}
161 [label="Exit function test_5" style="filled" fillcolor=red];
}
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
142 -> {146 143};
143 -> {144};
144 -> {145};
145 -> {146};
144 -> {161};
144 -> {145} [style=dotted];
145 -> {147} [style=dotted];
146 -> {147};
147 -> {148};
148 -> {149};
subgraph cluster_34 {
color=red
150 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_35 {
color=blue
151 [label="Enter block"];
152 [label="Access variable R|<local>/d1|"];
153 [label="Access variable R|/D.any|"];
154 [label="Variable declaration: lval a: R|kotlin/Any?|"];
155 [label="Access variable R|<local>/a|"];
156 [label="Type operator: (R|<local>/a| as R|A|)"];
157 [label="Access variable R|<local>/a|"];
158 [label="Function call: R|<local>/a|.R|/A.foo|()"];
159 [label="Access variable R|<local>/d1|"];
160 [label="Access variable R|/D.any|"];
161 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"];
162 [label="Access variable R|<local>/d1|"];
163 [label="Access variable R|/D.any|"];
164 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"];
165 [label="Exit block"];
}
166 [label="Exit function test_6" style="filled" fillcolor=red];
}
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
@@ -443,60 +432,105 @@ digraph boundSmartcasts_kt {
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
subgraph cluster_34 {
color=red
162 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_35 {
color=blue
163 [label="Enter block"];
164 [label="Access variable R|<local>/d1|"];
165 [label="Access variable R|/D.any|"];
166 [label="Variable declaration: lval a: R|kotlin/Any?|"];
167 [label="Access variable R|<local>/a|"];
168 [label="Type operator: (R|<local>/a| as R|A|)"];
169 [label="Access variable R|<local>/a|"];
170 [label="Smart cast: R|<local>/a|"];
171 [label="Function call: R|<local>/a|.R|/A.foo|()"];
172 [label="Access variable R|<local>/d1|"];
173 [label="Access variable R|/D.any|"];
174 [label="Smart cast: R|<local>/d1|.R|/D.any|"];
175 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"];
176 [label="Access variable R|<local>/d1|"];
177 [label="Access variable R|/D.any|"];
178 [label="Smart cast: R|<local>/d1|.R|/D.any|"];
179 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"];
180 [label="Exit block"];
}
181 [label="Exit function test_6" style="filled" fillcolor=red];
}
162 -> {163};
163 -> {164};
164 -> {165};
165 -> {166};
subgraph cluster_36 {
color=red
167 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_37 {
color=blue
168 [label="Enter block"];
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 block"];
}
188 [label="Exit function test_7" style="filled" fillcolor=red];
}
166 -> {167};
167 -> {168};
168 -> {169};
169 -> {170 172};
169 -> {170};
170 -> {171};
171 -> {172};
172 -> {173};
173 -> {174};
174 -> {175 177};
174 -> {175};
175 -> {176};
176 -> {177};
177 -> {178};
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {182};
subgraph cluster_36 {
color=red
182 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_37 {
color=blue
183 [label="Enter block"];
184 [label="Access variable R|<local>/d1|"];
185 [label="Enter safe call"];
186 [label="Access variable R|/D.any|"];
187 [label="Exit safe call"];
188 [label="Variable declaration: lval a: R|kotlin/Any?|"];
189 [label="Access variable R|<local>/d2|"];
190 [label="Enter safe call"];
191 [label="Access variable R|/D.any|"];
192 [label="Exit safe call"];
193 [label="Variable declaration: lval b: R|kotlin/Any?|"];
194 [label="Access variable R|<local>/a|"];
195 [label="Type operator: (R|<local>/a| as R|A|)"];
196 [label="Access variable R|<local>/a|"];
197 [label="Smart cast: R|<local>/a|"];
198 [label="Function call: R|<local>/a|.R|/A.foo|()"];
199 [label="Access variable R|<local>/b|"];
200 [label="Type operator: (R|<local>/b| as R|B|)"];
201 [label="Access variable R|<local>/b|"];
202 [label="Smart cast: R|<local>/b|"];
203 [label="Function call: R|<local>/b|.R|/B.bar|()"];
204 [label="Exit block"];
}
205 [label="Exit function test_7" style="filled" fillcolor=red];
}
182 -> {183};
183 -> {184};
184 -> {185};
184 -> {185 187};
185 -> {186};
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {190 192};
190 -> {191};
191 -> {192};
192 -> {193};
193 -> {194};
194 -> {195};
195 -> {196};
196 -> {197};
197 -> {198};
198 -> {199};
199 -> {200};
200 -> {201};
201 -> {202};
202 -> {203};
203 -> {204};
204 -> {205};
}