[FIR] Rewind DFA after call arguments for correct receiver smartcasting

^KT-63709 Fixed
This commit is contained in:
Brian Norman
2023-11-27 13:48:09 -06:00
committed by Space Team
parent 38d5e56530
commit 0881910a1b
128 changed files with 22457 additions and 16148 deletions
@@ -30,17 +30,22 @@ digraph smartCastInCatch_fir_kt {
subgraph cluster_5 {
color=blue
10 [label="Enter block"];
11 [label="Function call: R|java/lang/RuntimeException.RuntimeException|()" style="filled" fillcolor=yellow];
12 [label="Throw: throw R|java/lang/RuntimeException.RuntimeException|()"];
13 [label="Stub" style="filled" fillcolor=gray];
14 [label="Exit block" style="filled" fillcolor=gray];
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];
}
15 [label="Exit when branch result" style="filled" fillcolor=gray];
16 [label="Exit when"];
17 [label="Exit when branch result" style="filled" fillcolor=gray];
18 [label="Exit when"];
}
17 [label="Exit block"];
19 [label="Exit block"];
}
18 [label="Exit function exc" style="filled" fillcolor=red];
20 [label="Exit function exc" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
@@ -48,115 +53,140 @@ digraph smartCastInCatch_fir_kt {
5 -> {6};
6 -> {7};
7 -> {8 9};
8 -> {16};
8 -> {18};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13} [style=dotted];
13 -> {14} [style=dotted];
12 -> {13};
13 -> {14};
14 -> {15} [style=dotted];
15 -> {16} [style=dotted];
16 -> {17};
17 -> {18};
subgraph cluster_6 {
color=red
19 [label="Enter function notNull" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
20 [label="Enter block"];
21 [label="Function call: this@R|/notNull|.R|kotlin/Any.toString|()" style="filled" fillcolor=yellow];
22 [label="Jump: ^notNull this@R|/notNull|.R|kotlin/Any.toString|()"];
23 [label="Stub" style="filled" fillcolor=gray];
24 [label="Exit block" style="filled" fillcolor=gray];
}
25 [label="Exit function notNull" style="filled" fillcolor=red];
}
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {25};
22 -> {23} [style=dotted];
23 -> {24} [style=dotted];
24 -> {25} [style=dotted];
subgraph cluster_8 {
subgraph cluster_7 {
color=red
26 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_9 {
21 [label="Enter function notNull" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
27 [label="Enter block"];
28 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
29 [label="Const: String()"];
30 [label="Assignment: R|<local>/x|"];
subgraph cluster_10 {
22 [label="Enter block"];
subgraph cluster_9 {
color=blue
31 [label="Try expression enter"];
subgraph cluster_11 {
color=blue
32 [label="Try main block enter"];
subgraph cluster_12 {
color=blue
33 [label="Enter block"];
34 [label="Const: Null(null)"];
35 [label="Assignment: R|<local>/x|"];
36 [label="Access variable R|<local>/flag|"];
37 [label="Function call: R|/exc|(...)" style="filled" fillcolor=yellow];
38 [label="Const: Int(1)"];
39 [label="Assignment: R|<local>/x|"];
40 [label="Access variable R|<local>/flag|"];
41 [label="Function call: R|<local>/flag|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
42 [label="Function call: R|/exc|(...)" style="filled" fillcolor=yellow];
43 [label="Const: String()"];
44 [label="Assignment: R|<local>/x|"];
45 [label="Exit block"];
}
46 [label="Try main block exit"];
}
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
47 [label="Catch enter"];
48 [label="Variable declaration: e: R|kotlin/Throwable|"];
36 [label="Try main block enter"];
subgraph cluster_14 {
color=blue
49 [label="Enter block"];
50 [label="Access variable R|<local>/x|"];
51 [label="Smart cast: R|<local>/x|"];
52 [label="Access variable <Unresolved name: length>#"];
53 [label="Access variable R|<local>/x|"];
54 [label="Smart cast: R|<local>/x|"];
55 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()" style="filled" fillcolor=yellow];
56 [label="Exit block"];
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"];
}
57 [label="Catch exit"];
56 [label="Try main block exit"];
}
58 [label="Try expression 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"];
}
59 [label="Exit block"];
71 [label="Exit block"];
}
60 [label="Exit function test" style="filled" fillcolor=red];
72 [label="Exit function test" style="filled" fillcolor=red];
}
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32 47};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36 47};
35 -> {36 57};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40 47};
39 -> {40 57};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45 47};
45 -> {46};
46 -> {47 58};
44 -> {45};
45 -> {46 57};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
@@ -164,61 +194,13 @@ digraph smartCastInCatch_fir_kt {
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
54 -> {55 57};
55 -> {56};
56 -> {57};
56 -> {57 70};
57 -> {58};
58 -> {59};
59 -> {60};
subgraph cluster_15 {
color=red
61 [label="Enter function testGetClassThrows" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
62 [label="Enter block"];
63 [label="Access qualifier kotlin/String"];
64 [label="::class call"];
65 [label="Variable declaration: lvar x: R|kotlin/reflect/KClass<kotlin/String>?|"];
66 [label="Access variable R|<local>/x|"];
67 [label="Type operator: (R|<local>/x| as R|kotlin/reflect/KClass<kotlin/String>|)"];
subgraph cluster_17 {
color=blue
68 [label="Try expression enter"];
subgraph cluster_18 {
color=blue
69 [label="Try main block enter"];
subgraph cluster_19 {
color=blue
70 [label="Enter block"];
71 [label="Const: Null(null)"];
72 [label="Assignment: R|<local>/x|"];
73 [label="Access qualifier kotlin/String"];
74 [label="::class call"];
75 [label="Assignment: R|<local>/x|"];
76 [label="Exit block"];
}
77 [label="Try main block exit"];
}
subgraph cluster_20 {
color=blue
78 [label="Catch enter"];
79 [label="Variable declaration: e: R|kotlin/Throwable|"];
subgraph cluster_21 {
color=blue
80 [label="Enter block"];
81 [label="Access variable R|<local>/x|"];
82 [label="Function call: R|<local>/x|.R|/notNull<Inapplicable(UNSAFE_CALL): /notNull>#|()" style="filled" fillcolor=yellow];
83 [label="Exit block"];
}
84 [label="Catch exit"];
}
85 [label="Try expression exit"];
}
86 [label="Exit block"];
}
87 [label="Exit function testGetClassThrows" style="filled" fillcolor=red];
}
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
@@ -226,277 +208,365 @@ digraph smartCastInCatch_fir_kt {
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69 78};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73 78};
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 78};
75 -> {76};
76 -> {77};
77 -> {78 85};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
80 -> {81 90};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
84 -> {85 90};
85 -> {86};
86 -> {87};
subgraph cluster_22 {
color=red
88 [label="Enter function testMemberReferenceThrows" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
89 [label="Enter block"];
90 [label="Const: String()"];
91 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
92 [label="Access variable R|<local>/x|"];
93 [label="Type operator: (R|<local>/x| as R|kotlin/Any|)"];
subgraph cluster_24 {
color=blue
94 [label="Try expression enter"];
subgraph cluster_25 {
color=blue
95 [label="Try main block enter"];
subgraph cluster_26 {
color=blue
96 [label="Enter block"];
97 [label="Const: Null(null)"];
98 [label="Assignment: R|<local>/x|"];
99 [label="Access qualifier kotlin/String"];
100 [label="Callable reference: Q|kotlin/String|::R|kotlin/String.length|"];
101 [label="Assignment: R|<local>/x|"];
102 [label="Exit block"];
}
103 [label="Try main block exit"];
}
subgraph cluster_27 {
color=blue
104 [label="Catch enter"];
105 [label="Variable declaration: ex: R|kotlin/Throwable|"];
subgraph cluster_28 {
color=blue
106 [label="Enter block"];
107 [label="Access variable R|<local>/x|"];
108 [label="Function call: R|<local>/x|.R|/notNull<Inapplicable(UNSAFE_CALL): /notNull>#|()" style="filled" fillcolor=yellow];
109 [label="Exit block"];
}
110 [label="Catch exit"];
}
111 [label="Try expression exit"];
}
112 [label="Exit block"];
}
113 [label="Exit function testMemberReferenceThrows" style="filled" fillcolor=red];
}
87 -> {88 90};
88 -> {89};
89 -> {90};
89 -> {90 99};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95 104};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99 104};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102 104};
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 111};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
108 -> {109 118};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
subgraph cluster_29 {
color=red
114 [label="Enter function testExceptionBeforeLambda" style="filled" fillcolor=red];
subgraph cluster_30 {
color=blue
115 [label="Enter block"];
116 [label="Const: String()"];
117 [label="Variable declaration: lvar x: R|kotlin/String?|"];
118 [label="Access variable R|<local>/x|"];
119 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
subgraph cluster_31 {
color=blue
120 [label="Try expression enter"];
subgraph cluster_32 {
color=blue
121 [label="Try main block enter"];
subgraph cluster_33 {
color=blue
122 [label="Enter block"];
123 [label="Const: Null(null)"];
124 [label="Assignment: R|<local>/x|"];
125 [label="Postponed enter to lambda"];
subgraph cluster_34 {
color=blue
126 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_35 {
color=blue
127 [label="Enter block"];
128 [label="Const: String()"];
129 [label="Assignment: R|<local>/x|"];
130 [label="Exit block"];
}
131 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
132 [label="Postponed exit from lambda"];
133 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
134 [label="Exit block"];
}
135 [label="Try main block exit"];
}
subgraph cluster_36 {
color=blue
136 [label="Catch enter"];
137 [label="Variable declaration: ex: R|kotlin/Throwable|"];
subgraph cluster_37 {
color=blue
138 [label="Enter block"];
139 [label="Access variable R|<local>/x|"];
140 [label="Function call: R|<local>/x|.R|/notNull<Inapplicable(UNSAFE_CALL): /notNull>#|()" style="filled" fillcolor=yellow];
141 [label="Exit block"];
}
142 [label="Catch exit"];
}
143 [label="Try expression exit"];
}
144 [label="Exit block"];
}
145 [label="Exit function testExceptionBeforeLambda" style="filled" fillcolor=red];
}
112 -> {113 118};
113 -> {114};
114 -> {115};
115 -> {116};
115 -> {116 118};
116 -> {117};
117 -> {118};
117 -> {118 127};
118 -> {119};
119 -> {120};
120 -> {121 136};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125 136};
125 -> {126 133};
125 -> {132} [style=dotted];
125 -> {126} [style=dashed];
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {130 136};
130 -> {131};
131 -> {132};
132 -> {133} [color=green];
132 -> {143} [color=red];
133 -> {134};
134 -> {135};
135 -> {136 143};
136 -> {137};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
subgraph cluster_38 {
subgraph cluster_37 {
color=red
146 [label="Enter function testExceptionWithinLocalFunction" style="filled" fillcolor=red];
subgraph cluster_39 {
130 [label="Enter function testExceptionBeforeLambda" style="filled" fillcolor=red];
subgraph cluster_38 {
color=blue
147 [label="Enter block"];
148 [label="Const: String()"];
149 [label="Variable declaration: lvar x: R|kotlin/Any|"];
150 [label="Access variable R|<local>/x|"];
151 [label="Type operator: (R|<local>/x| as R|kotlin/String|)"];
subgraph cluster_40 {
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
152 [label="Try expression enter"];
subgraph cluster_41 {
136 [label="Try expression enter"];
subgraph cluster_40 {
color=blue
153 [label="Try main block enter"];
subgraph cluster_42 {
137 [label="Try main block enter"];
subgraph cluster_41 {
color=blue
154 [label="Enter block"];
155 [label="Local function declaration"];
156 [label="Exit block"];
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"];
}
157 [label="Try main block exit"];
}
subgraph cluster_43 {
color=blue
158 [label="Enter function local" style="filled" fillcolor=red];
subgraph cluster_44 {
color=blue
159 [label="Enter block"];
160 [label="Const: Int(1)"];
161 [label="Assignment: R|<local>/x|"];
162 [label="Exit block"];
}
163 [label="Exit function local" style="filled" fillcolor=red];
153 [label="Try main block exit"];
}
subgraph cluster_45 {
color=blue
164 [label="Catch enter"];
165 [label="Variable declaration: e: R|kotlin/Exception|"];
154 [label="Catch enter"];
155 [label="Variable declaration: ex: R|kotlin/Throwable|"];
subgraph cluster_46 {
color=blue
166 [label="Enter block"];
167 [label="Access variable R|<local>/x|"];
168 [label="Smart cast: R|<local>/x|"];
169 [label="Access variable <Unresolved name: length>#"];
170 [label="Exit block"];
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"];
}
171 [label="Catch exit"];
162 [label="Catch exit"];
}
172 [label="Try expression exit"];
163 [label="Try expression exit"];
}
173 [label="Exit block"];
164 [label="Exit block"];
}
174 [label="Exit function testExceptionWithinLocalFunction" style="filled" fillcolor=red];
165 [label="Exit function testExceptionBeforeLambda" style="filled" fillcolor=red];
}
146 -> {147};
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 -> {149};
149 -> {150};
150 -> {151};
148 -> {150};
149 -> {151};
150 -> {151} [color=green];
150 -> {163} [color=red];
151 -> {152};
152 -> {153 164};
153 -> {154};
152 -> {153};
153 -> {154 163};
154 -> {155};
155 -> {156 158};
155 -> {158} [style=dashed];
155 -> {156};
156 -> {157};
157 -> {164 172};
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
161 -> {164} [color=red];
162 -> {163};
163 -> {164};
164 -> {165};
165 -> {166};
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};
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};
}