Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/smartCastInCatch.dot
T
Brian Norman b2041e0927 [FIR] Disable data flow from in-place lambdas
There are many complications with the current design of passing data
from within in-place lambdas to surrounding code. Solving these
complications will involve more time to investigation than is available
within the K2 release. So we are disabling passing type statement
information from lambdas for the time being until more time can be
devoted to a more complete solution.

^KT-60958 Fixed
^KT-63530 Fixed
2023-12-14 16:40:27 +00:00

573 lines
21 KiB
Plaintext
Vendored

digraph smartCastInCatch_fir_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter file smartCastInCatch.fir.kt" style="filled" fillcolor=red];
1 [label="Exit file smartCastInCatch.fir.kt" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter function exc" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter block"];
subgraph cluster_3 {
color=blue
4 [label="Enter when"];
subgraph cluster_4 {
color=blue
5 [label="Enter when branch condition "];
6 [label="Access variable R|<local>/flag|"];
7 [label="Exit when branch condition"];
}
8 [label="Synthetic else branch"];
9 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
10 [label="Enter block"];
subgraph cluster_6 {
color=blue
11 [label="Function call arguments enter"];
12 [label="Function call arguments exit"];
}
13 [label="Function call: R|java/lang/RuntimeException.RuntimeException|()" style="filled" fillcolor=yellow];
14 [label="Throw: throw R|java/lang/RuntimeException.RuntimeException|()"];
15 [label="Stub" style="filled" fillcolor=gray];
16 [label="Exit block" style="filled" fillcolor=gray];
}
17 [label="Exit when branch result" style="filled" fillcolor=gray];
18 [label="Exit when"];
}
19 [label="Exit block"];
}
20 [label="Exit function exc" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8 9};
8 -> {18};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15} [style=dotted];
15 -> {16} [style=dotted];
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
18 -> {19};
19 -> {20};
subgraph cluster_7 {
color=red
21 [label="Enter function notNull" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
22 [label="Enter block"];
subgraph cluster_9 {
color=blue
23 [label="Function call arguments enter"];
24 [label="Function call arguments exit"];
}
25 [label="Function call: this@R|/notNull|.R|kotlin/Any.toString|()" style="filled" fillcolor=yellow];
26 [label="Jump: ^notNull this@R|/notNull|.R|kotlin/Any.toString|()"];
27 [label="Stub" style="filled" fillcolor=gray];
28 [label="Exit block" style="filled" fillcolor=gray];
}
29 [label="Exit function notNull" style="filled" fillcolor=red];
}
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {29};
26 -> {27} [style=dotted];
27 -> {28} [style=dotted];
28 -> {29} [style=dotted];
subgraph cluster_10 {
color=red
30 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
31 [label="Enter block"];
32 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
33 [label="Const: String()"];
34 [label="Assignment: R|<local>/x|"];
subgraph cluster_12 {
color=blue
35 [label="Try expression enter"];
subgraph cluster_13 {
color=blue
36 [label="Try main block enter"];
subgraph cluster_14 {
color=blue
37 [label="Enter block"];
38 [label="Const: Null(null)"];
39 [label="Assignment: R|<local>/x|"];
subgraph cluster_15 {
color=blue
40 [label="Function call arguments enter"];
41 [label="Access variable R|<local>/flag|"];
42 [label="Function call arguments exit"];
}
43 [label="Function call: R|/exc|(...)" style="filled" fillcolor=yellow];
44 [label="Const: Int(1)"];
45 [label="Assignment: R|<local>/x|"];
subgraph cluster_16 {
color=blue
46 [label="Function call arguments enter"];
subgraph cluster_17 {
color=blue
47 [label="Function call arguments enter"];
48 [label="Access variable R|<local>/flag|"];
49 [label="Function call arguments exit"];
}
50 [label="Function call: R|<local>/flag|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
51 [label="Function call arguments exit"];
}
52 [label="Function call: R|/exc|(...)" style="filled" fillcolor=yellow];
53 [label="Const: String()"];
54 [label="Assignment: R|<local>/x|"];
55 [label="Exit block"];
}
56 [label="Try main block exit"];
}
subgraph cluster_18 {
color=blue
57 [label="Catch enter"];
58 [label="Variable declaration: e: R|kotlin/Throwable|"];
subgraph cluster_19 {
color=blue
59 [label="Enter block"];
60 [label="Access variable R|<local>/x|"];
61 [label="Smart cast: R|<local>/x|"];
62 [label="Access variable <Unresolved name: length>#"];
subgraph cluster_20 {
color=blue
63 [label="Function call arguments enter"];
64 [label="Access variable R|<local>/x|"];
65 [label="Smart cast: R|<local>/x|"];
66 [label="Function call arguments exit"];
}
67 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()" style="filled" fillcolor=yellow];
68 [label="Exit block"];
}
69 [label="Catch exit"];
}
70 [label="Try expression exit"];
}
71 [label="Exit block"];
}
72 [label="Exit function test" style="filled" fillcolor=red];
}
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36 57};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40 57};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46 57};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55 57};
55 -> {56};
56 -> {57 70};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
subgraph cluster_21 {
color=red
73 [label="Enter function testGetClassThrows" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
74 [label="Enter block"];
75 [label="Access qualifier kotlin/String"];
76 [label="::class call"];
77 [label="Variable declaration: lvar x: R|kotlin/reflect/KClass<kotlin/String>?|"];
78 [label="Access variable R|<local>/x|"];
79 [label="Type operator: (R|<local>/x| as R|kotlin/reflect/KClass<kotlin/String>|)"];
subgraph cluster_23 {
color=blue
80 [label="Try expression enter"];
subgraph cluster_24 {
color=blue
81 [label="Try main block enter"];
subgraph cluster_25 {
color=blue
82 [label="Enter block"];
83 [label="Const: Null(null)"];
84 [label="Assignment: R|<local>/x|"];
85 [label="Access qualifier kotlin/String"];
86 [label="::class call"];
87 [label="Assignment: R|<local>/x|"];
88 [label="Exit block"];
}
89 [label="Try main block exit"];
}
subgraph cluster_26 {
color=blue
90 [label="Catch enter"];
91 [label="Variable declaration: e: R|kotlin/Throwable|"];
subgraph cluster_27 {
color=blue
92 [label="Enter block"];
subgraph cluster_28 {
color=blue
93 [label="Function call arguments enter"];
94 [label="Access variable R|<local>/x|"];
95 [label="Function call arguments exit"];
}
96 [label="Function call: R|<local>/x|.R|/notNull<Inapplicable(UNSAFE_CALL): /notNull>#|()" style="filled" fillcolor=yellow];
97 [label="Exit block"];
}
98 [label="Catch exit"];
}
99 [label="Try expression exit"];
}
100 [label="Exit block"];
}
101 [label="Exit function testGetClassThrows" style="filled" fillcolor=red];
}
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81 90};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85 90};
85 -> {86};
86 -> {87};
87 -> {88 90};
88 -> {89};
89 -> {90 99};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
subgraph cluster_29 {
color=red
102 [label="Enter function testMemberReferenceThrows" style="filled" fillcolor=red];
subgraph cluster_30 {
color=blue
103 [label="Enter block"];
104 [label="Const: String()"];
105 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
106 [label="Access variable R|<local>/x|"];
107 [label="Type operator: (R|<local>/x| as R|kotlin/Any|)"];
subgraph cluster_31 {
color=blue
108 [label="Try expression enter"];
subgraph cluster_32 {
color=blue
109 [label="Try main block enter"];
subgraph cluster_33 {
color=blue
110 [label="Enter block"];
111 [label="Const: Null(null)"];
112 [label="Assignment: R|<local>/x|"];
113 [label="Access qualifier kotlin/String"];
114 [label="Callable reference: Q|kotlin/String|::R|kotlin/String.length|"];
115 [label="Assignment: R|<local>/x|"];
116 [label="Exit block"];
}
117 [label="Try main block exit"];
}
subgraph cluster_34 {
color=blue
118 [label="Catch enter"];
119 [label="Variable declaration: ex: R|kotlin/Throwable|"];
subgraph cluster_35 {
color=blue
120 [label="Enter block"];
subgraph cluster_36 {
color=blue
121 [label="Function call arguments enter"];
122 [label="Access variable R|<local>/x|"];
123 [label="Function call arguments exit"];
}
124 [label="Function call: R|<local>/x|.R|/notNull<Inapplicable(UNSAFE_CALL): /notNull>#|()" style="filled" fillcolor=yellow];
125 [label="Exit block"];
}
126 [label="Catch exit"];
}
127 [label="Try expression exit"];
}
128 [label="Exit block"];
}
129 [label="Exit function testMemberReferenceThrows" style="filled" fillcolor=red];
}
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109 118};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113 118};
113 -> {114};
114 -> {115};
115 -> {116 118};
116 -> {117};
117 -> {118 127};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {129};
subgraph cluster_37 {
color=red
130 [label="Enter function testExceptionBeforeLambda" style="filled" fillcolor=red];
subgraph cluster_38 {
color=blue
131 [label="Enter block"];
132 [label="Const: String()"];
133 [label="Variable declaration: lvar x: R|kotlin/String?|"];
134 [label="Access variable R|<local>/x|"];
135 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
subgraph cluster_39 {
color=blue
136 [label="Try expression enter"];
subgraph cluster_40 {
color=blue
137 [label="Try main block enter"];
subgraph cluster_41 {
color=blue
138 [label="Enter block"];
139 [label="Const: Null(null)"];
140 [label="Assignment: R|<local>/x|"];
subgraph cluster_42 {
color=blue
141 [label="Function call arguments enter"];
142 [label="Postponed enter to lambda"];
subgraph cluster_43 {
color=blue
143 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_44 {
color=blue
144 [label="Enter block"];
145 [label="Const: String()"];
146 [label="Assignment: R|<local>/x|"];
147 [label="Exit block"];
}
148 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
149 [label="Function call arguments exit"];
}
150 [label="Postponed exit from lambda"];
151 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
152 [label="Exit block"];
}
153 [label="Try main block exit"];
}
subgraph cluster_45 {
color=blue
154 [label="Catch enter"];
155 [label="Variable declaration: ex: R|kotlin/Throwable|"];
subgraph cluster_46 {
color=blue
156 [label="Enter block"];
subgraph cluster_47 {
color=blue
157 [label="Function call arguments enter"];
158 [label="Access variable R|<local>/x|"];
159 [label="Function call arguments exit"];
}
160 [label="Function call: R|<local>/x|.R|/notNull<Inapplicable(UNSAFE_CALL): /notNull>#|()" style="filled" fillcolor=yellow];
161 [label="Exit block"];
}
162 [label="Catch exit"];
}
163 [label="Try expression exit"];
}
164 [label="Exit block"];
}
165 [label="Exit function testExceptionBeforeLambda" style="filled" fillcolor=red];
}
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137 154};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141 154};
141 -> {142};
142 -> {143 149};
142 -> {150} [style=dotted];
142 -> {143} [style=dashed];
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {147 154};
147 -> {148};
148 -> {150};
149 -> {151};
150 -> {151} [color=green];
150 -> {163} [color=red label="Postponed"];
151 -> {152};
152 -> {153};
153 -> {154 163};
154 -> {155};
155 -> {156};
156 -> {157};
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {164};
164 -> {165};
subgraph cluster_48 {
color=red
166 [label="Enter function testExceptionWithinLocalFunction" style="filled" fillcolor=red];
subgraph cluster_49 {
color=blue
167 [label="Enter block"];
168 [label="Const: String()"];
169 [label="Variable declaration: lvar x: R|kotlin/Any|"];
170 [label="Access variable R|<local>/x|"];
171 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
subgraph cluster_50 {
color=blue
172 [label="Try expression enter"];
subgraph cluster_51 {
color=blue
173 [label="Try main block enter"];
subgraph cluster_52 {
color=blue
174 [label="Enter block"];
175 [label="Local function declaration"];
176 [label="Exit block"];
}
177 [label="Try main block exit"];
}
subgraph cluster_53 {
color=blue
178 [label="Enter function local" style="filled" fillcolor=red];
subgraph cluster_54 {
color=blue
179 [label="Enter block"];
180 [label="Const: Int(1)"];
181 [label="Assignment: R|<local>/x|"];
182 [label="Exit block"];
}
183 [label="Exit function local" style="filled" fillcolor=red];
}
subgraph cluster_55 {
color=blue
184 [label="Catch enter"];
185 [label="Variable declaration: e: R|kotlin/Exception|"];
subgraph cluster_56 {
color=blue
186 [label="Enter block"];
187 [label="Access variable R|<local>/x|"];
188 [label="Smart cast: R|<local>/x|"];
189 [label="Access variable <Unresolved name: length>#"];
190 [label="Exit block"];
}
191 [label="Catch exit"];
}
192 [label="Try expression exit"];
}
193 [label="Exit block"];
}
194 [label="Exit function testExceptionWithinLocalFunction" style="filled" fillcolor=red];
}
166 -> {167};
167 -> {168};
168 -> {169};
169 -> {170};
170 -> {171};
171 -> {172};
172 -> {173 184};
173 -> {174};
174 -> {175};
175 -> {176 178};
175 -> {178} [style=dashed];
176 -> {177};
177 -> {184 192};
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {182};
181 -> {184} [color=red];
182 -> {183};
184 -> {185};
185 -> {186};
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {190};
190 -> {191};
191 -> {192};
192 -> {193};
193 -> {194};
}