[FIR] Add forgotten exhaustiveness checking for erroneously resolved when

This commit is contained in:
Dmitriy Novozhilov
2019-10-24 15:46:19 +03:00
parent 7e55960943
commit 6298889358
5 changed files with 907 additions and 934 deletions
@@ -69,6 +69,7 @@ class FirControlFlowStatementsResolveTransformer(transformer: FirBodyResolveTran
whenExpression = whenExpression.transformBranches(transformer, null)
whenExpression = syntheticCallGenerator.generateCalleeForWhenExpression(whenExpression) ?: run {
whenExpression = whenExpression.transformSingle(whenExhaustivenessTransformer, null)
dataFlowAnalyzer.exitWhenExpression(whenExpression)
whenExpression.resultType = FirErrorTypeRefImpl(null, "")
return@with whenExpression.compose()
+52 -56
View File
@@ -278,72 +278,70 @@ digraph casts_kt {
102 [label="Enter when branch condition else"];
103 [label="Exit when branch condition"];
}
104 [label="Synthetic else branch"];
105 [label="Enter when branch result"];
104 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
106 [label="Enter block"];
107 [label="Access variable R|<local>/b|"];
108 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
109 [label="Exit block"];
105 [label="Enter block"];
106 [label="Access variable R|<local>/b|"];
107 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
108 [label="Exit block"];
}
110 [label="Exit when branch result"];
111 [label="Enter when branch result"];
109 [label="Exit when branch result"];
110 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
112 [label="Enter block"];
113 [label="Access variable R|<local>/b|"];
114 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
115 [label="Exit block"];
111 [label="Enter block"];
112 [label="Access variable R|<local>/b|"];
113 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
114 [label="Exit block"];
}
116 [label="Exit when branch result"];
117 [label="Exit when"];
115 [label="Exit when branch result"];
116 [label="Exit when"];
}
118 [label="Access variable R|<local>/b|"];
119 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
117 [label="Access variable R|<local>/b|"];
118 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
subgraph cluster_28 {
color=blue
120 [label="Enter when"];
119 [label="Enter when"];
subgraph cluster_29 {
color=blue
121 [label="Enter when branch condition "];
122 [label="Access variable R|<local>/b|"];
123 [label="Type operator: b as? Boolean"];
124 [label="Const: Null(null)"];
125 [label="Operator =="];
126 [label="Exit when branch condition"];
120 [label="Enter when branch condition "];
121 [label="Access variable R|<local>/b|"];
122 [label="Type operator: b as? Boolean"];
123 [label="Const: Null(null)"];
124 [label="Operator =="];
125 [label="Exit when branch condition"];
}
subgraph cluster_30 {
color=blue
127 [label="Enter when branch condition else"];
128 [label="Exit when branch condition"];
126 [label="Enter when branch condition else"];
127 [label="Exit when branch condition"];
}
129 [label="Synthetic else branch"];
130 [label="Enter when branch result"];
128 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
131 [label="Enter block"];
132 [label="Access variable R|<local>/b|"];
133 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
134 [label="Exit block"];
129 [label="Enter block"];
130 [label="Access variable R|<local>/b|"];
131 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
132 [label="Exit block"];
}
135 [label="Exit when branch result"];
136 [label="Enter when branch result"];
133 [label="Exit when branch result"];
134 [label="Enter when branch result"];
subgraph cluster_32 {
color=blue
137 [label="Enter block"];
138 [label="Access variable R|<local>/b|"];
139 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
140 [label="Exit block"];
135 [label="Enter block"];
136 [label="Access variable R|<local>/b|"];
137 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
138 [label="Exit block"];
}
141 [label="Exit when branch result"];
142 [label="Exit when"];
139 [label="Exit when branch result"];
140 [label="Exit when"];
}
143 [label="Access variable R|<local>/b|"];
144 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
145 [label="Exit block"];
141 [label="Access variable R|<local>/b|"];
142 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
143 [label="Exit block"];
}
146 [label="Exit function test_4" style="filled" fillcolor=red];
144 [label="Exit function test_4" style="filled" fillcolor=red];
}
93 -> {94};
@@ -354,16 +352,16 @@ digraph casts_kt {
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {111 102};
101 -> {110 102};
102 -> {103};
103 -> {105 104};
104 -> {117};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {117};
109 -> {116};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
@@ -378,17 +376,17 @@ digraph casts_kt {
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {136 127};
125 -> {134 126};
126 -> {127};
127 -> {128};
128 -> {130 129};
129 -> {142};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
133 -> {140};
134 -> {135};
135 -> {142};
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
@@ -397,7 +395,5 @@ digraph casts_kt {
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {146};
}
@@ -51,30 +51,29 @@ digraph equalsToBoolean_kt {
16 [label="Enter when branch condition else"];
17 [label="Exit when branch condition"];
}
18 [label="Synthetic else branch"];
19 [label="Enter when branch result"];
18 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
20 [label="Enter block"];
21 [label="Access variable R|<local>/b|"];
22 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
23 [label="Exit block"];
19 [label="Enter block"];
20 [label="Access variable R|<local>/b|"];
21 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
22 [label="Exit block"];
}
24 [label="Exit when branch result"];
25 [label="Enter when branch result"];
23 [label="Exit when branch result"];
24 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
26 [label="Enter block"];
27 [label="Access variable R|<local>/b|"];
28 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
29 [label="Exit block"];
25 [label="Enter block"];
26 [label="Access variable R|<local>/b|"];
27 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
28 [label="Exit block"];
}
30 [label="Exit when branch result"];
31 [label="Exit when"];
29 [label="Exit when branch result"];
30 [label="Exit when"];
}
32 [label="Exit block"];
31 [label="Exit block"];
}
33 [label="Exit function test_1" style="filled" fillcolor=red];
32 [label="Exit function test_1" style="filled" fillcolor=red];
}
6 -> {7};
@@ -86,16 +85,16 @@ digraph equalsToBoolean_kt {
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {25 16};
15 -> {24 16};
16 -> {17};
17 -> {19 18};
18 -> {31};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {31};
23 -> {30};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
@@ -103,58 +102,57 @@ digraph equalsToBoolean_kt {
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
subgraph cluster_10 {
color=red
34 [label="Enter function test_2" style="filled" fillcolor=red];
33 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
35 [label="Enter block"];
34 [label="Enter block"];
subgraph cluster_12 {
color=blue
36 [label="Enter when"];
35 [label="Enter when"];
subgraph cluster_13 {
color=blue
37 [label="Enter when branch condition "];
38 [label="Access variable R|<local>/b|"];
39 [label="Const: Boolean(true)"];
40 [label="Operator =="];
41 [label="Const: Boolean(true)"];
42 [label="Operator !="];
43 [label="Exit when branch condition"];
36 [label="Enter when branch condition "];
37 [label="Access variable R|<local>/b|"];
38 [label="Const: Boolean(true)"];
39 [label="Operator =="];
40 [label="Const: Boolean(true)"];
41 [label="Operator !="];
42 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
44 [label="Enter when branch condition else"];
45 [label="Exit when branch condition"];
43 [label="Enter when branch condition else"];
44 [label="Exit when branch condition"];
}
46 [label="Synthetic else branch"];
47 [label="Enter when branch result"];
45 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
48 [label="Enter block"];
49 [label="Access variable R|<local>/b|"];
50 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
51 [label="Exit block"];
46 [label="Enter block"];
47 [label="Access variable R|<local>/b|"];
48 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
49 [label="Exit block"];
}
52 [label="Exit when branch result"];
53 [label="Enter when branch result"];
50 [label="Exit when branch result"];
51 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
54 [label="Enter block"];
55 [label="Access variable R|<local>/b|"];
56 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
57 [label="Exit block"];
52 [label="Enter block"];
53 [label="Access variable R|<local>/b|"];
54 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
55 [label="Exit block"];
}
58 [label="Exit when branch result"];
59 [label="Exit when"];
56 [label="Exit when branch result"];
57 [label="Exit when"];
}
60 [label="Exit block"];
58 [label="Exit block"];
}
61 [label="Exit function test_2" style="filled" fillcolor=red];
59 [label="Exit function test_2" style="filled" fillcolor=red];
}
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
@@ -163,76 +161,75 @@ digraph equalsToBoolean_kt {
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {53 44};
42 -> {51 43};
43 -> {44};
44 -> {45};
45 -> {47 46};
46 -> {59};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
50 -> {57};
51 -> {52};
52 -> {59};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
subgraph cluster_17 {
color=red
62 [label="Enter function test_3" style="filled" fillcolor=red];
60 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
63 [label="Enter block"];
61 [label="Enter block"];
subgraph cluster_19 {
color=blue
64 [label="Enter when"];
62 [label="Enter when"];
subgraph cluster_20 {
color=blue
65 [label="Enter when branch condition "];
66 [label="Access variable R|<local>/b|"];
67 [label="Const: Boolean(true)"];
63 [label="Enter when branch condition "];
64 [label="Access variable R|<local>/b|"];
65 [label="Const: Boolean(true)"];
66 [label="Operator =="];
67 [label="Const: Boolean(false)"];
68 [label="Operator =="];
69 [label="Const: Boolean(false)"];
70 [label="Operator =="];
71 [label="Exit when branch condition"];
69 [label="Exit when branch condition"];
}
subgraph cluster_21 {
color=blue
72 [label="Enter when branch condition else"];
73 [label="Exit when branch condition"];
70 [label="Enter when branch condition else"];
71 [label="Exit when branch condition"];
}
74 [label="Synthetic else branch"];
75 [label="Enter when branch result"];
72 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
76 [label="Enter block"];
77 [label="Access variable R|<local>/b|"];
78 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
79 [label="Exit block"];
73 [label="Enter block"];
74 [label="Access variable R|<local>/b|"];
75 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
76 [label="Exit block"];
}
80 [label="Exit when branch result"];
81 [label="Enter when branch result"];
77 [label="Exit when branch result"];
78 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
82 [label="Enter block"];
83 [label="Access variable R|<local>/b|"];
84 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
85 [label="Exit block"];
79 [label="Enter block"];
80 [label="Access variable R|<local>/b|"];
81 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
82 [label="Exit block"];
}
86 [label="Exit when branch result"];
87 [label="Exit when"];
83 [label="Exit when branch result"];
84 [label="Exit when"];
}
88 [label="Exit block"];
85 [label="Exit block"];
}
89 [label="Exit function test_3" style="filled" fillcolor=red];
86 [label="Exit function test_3" style="filled" fillcolor=red];
}
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
@@ -240,415 +237,402 @@ digraph equalsToBoolean_kt {
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
69 -> {78 70};
70 -> {71};
71 -> {81 72};
71 -> {72};
72 -> {73};
73 -> {75 74};
74 -> {87};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
77 -> {84};
78 -> {79};
79 -> {80};
80 -> {87};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
subgraph cluster_24 {
color=red
90 [label="Enter function test_4" style="filled" fillcolor=red];
87 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_25 {
color=blue
91 [label="Enter block"];
88 [label="Enter block"];
subgraph cluster_26 {
color=blue
92 [label="Enter when"];
89 [label="Enter when"];
subgraph cluster_27 {
color=blue
93 [label="Enter when branch condition "];
94 [label="Access variable R|<local>/b|"];
95 [label="Const: Boolean(true)"];
96 [label="Operator =="];
97 [label="Const: Boolean(false)"];
98 [label="Operator !="];
99 [label="Exit when branch condition"];
90 [label="Enter when branch condition "];
91 [label="Access variable R|<local>/b|"];
92 [label="Const: Boolean(true)"];
93 [label="Operator =="];
94 [label="Const: Boolean(false)"];
95 [label="Operator !="];
96 [label="Exit when branch condition"];
}
subgraph cluster_28 {
color=blue
100 [label="Enter when branch condition else"];
101 [label="Exit when branch condition"];
97 [label="Enter when branch condition else"];
98 [label="Exit when branch condition"];
}
102 [label="Synthetic else branch"];
103 [label="Enter when branch result"];
99 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
104 [label="Enter block"];
105 [label="Access variable R|<local>/b|"];
106 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
107 [label="Exit block"];
100 [label="Enter block"];
101 [label="Access variable R|<local>/b|"];
102 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
103 [label="Exit block"];
}
108 [label="Exit when branch result"];
109 [label="Enter when branch result"];
104 [label="Exit when branch result"];
105 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
110 [label="Enter block"];
111 [label="Access variable R|<local>/b|"];
112 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
113 [label="Exit block"];
106 [label="Enter block"];
107 [label="Access variable R|<local>/b|"];
108 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
109 [label="Exit block"];
}
114 [label="Exit when branch result"];
115 [label="Exit when"];
110 [label="Exit when branch result"];
111 [label="Exit when"];
}
116 [label="Exit block"];
112 [label="Exit block"];
}
117 [label="Exit function test_4" style="filled" fillcolor=red];
113 [label="Exit function test_4" style="filled" fillcolor=red];
}
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
96 -> {105 97};
97 -> {98};
98 -> {99};
99 -> {109 100};
99 -> {100};
100 -> {101};
101 -> {103 102};
102 -> {115};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
104 -> {111};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {115};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
subgraph cluster_31 {
color=red
118 [label="Enter function test_5" style="filled" fillcolor=red];
114 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_32 {
color=blue
119 [label="Enter block"];
115 [label="Enter block"];
subgraph cluster_33 {
color=blue
120 [label="Enter when"];
116 [label="Enter when"];
subgraph cluster_34 {
color=blue
121 [label="Enter when branch condition "];
122 [label="Access variable R|<local>/b|"];
123 [label="Const: Boolean(true)"];
124 [label="Operator !="];
125 [label="Const: Boolean(true)"];
126 [label="Operator =="];
127 [label="Exit when branch condition"];
117 [label="Enter when branch condition "];
118 [label="Access variable R|<local>/b|"];
119 [label="Const: Boolean(true)"];
120 [label="Operator !="];
121 [label="Const: Boolean(true)"];
122 [label="Operator =="];
123 [label="Exit when branch condition"];
}
subgraph cluster_35 {
color=blue
128 [label="Enter when branch condition else"];
129 [label="Exit when branch condition"];
124 [label="Enter when branch condition else"];
125 [label="Exit when branch condition"];
}
130 [label="Synthetic else branch"];
131 [label="Enter when branch result"];
126 [label="Enter when branch result"];
subgraph cluster_36 {
color=blue
132 [label="Enter block"];
133 [label="Access variable R|<local>/b|"];
134 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
135 [label="Exit block"];
127 [label="Enter block"];
128 [label="Access variable R|<local>/b|"];
129 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
130 [label="Exit block"];
}
136 [label="Exit when branch result"];
137 [label="Enter when branch result"];
131 [label="Exit when branch result"];
132 [label="Enter when branch result"];
subgraph cluster_37 {
color=blue
138 [label="Enter block"];
139 [label="Access variable R|<local>/b|"];
140 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
141 [label="Exit block"];
133 [label="Enter block"];
134 [label="Access variable R|<local>/b|"];
135 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
136 [label="Exit block"];
}
142 [label="Exit when branch result"];
143 [label="Exit when"];
137 [label="Exit when branch result"];
138 [label="Exit when"];
}
144 [label="Exit block"];
139 [label="Exit block"];
}
145 [label="Exit function test_5" style="filled" fillcolor=red];
140 [label="Exit function test_5" style="filled" fillcolor=red];
}
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
123 -> {132 124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {137 128};
127 -> {128};
128 -> {129};
129 -> {131 130};
130 -> {143};
131 -> {132};
129 -> {130};
130 -> {131};
131 -> {138};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {143};
136 -> {137};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
subgraph cluster_38 {
color=red
141 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
142 [label="Enter block"];
subgraph cluster_40 {
color=blue
143 [label="Enter when"];
subgraph cluster_41 {
color=blue
144 [label="Enter when branch condition "];
145 [label="Access variable R|<local>/b|"];
146 [label="Const: Boolean(true)"];
147 [label="Operator !="];
148 [label="Const: Boolean(true)"];
149 [label="Operator !="];
150 [label="Exit when branch condition"];
}
subgraph cluster_42 {
color=blue
151 [label="Enter when branch condition else"];
152 [label="Exit when branch condition"];
}
153 [label="Enter when branch result"];
subgraph cluster_43 {
color=blue
154 [label="Enter block"];
155 [label="Access variable R|<local>/b|"];
156 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
157 [label="Exit block"];
}
158 [label="Exit when branch result"];
159 [label="Enter when branch result"];
subgraph cluster_44 {
color=blue
160 [label="Enter block"];
161 [label="Access variable R|<local>/b|"];
162 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
163 [label="Exit block"];
}
164 [label="Exit when branch result"];
165 [label="Exit when"];
}
166 [label="Exit block"];
}
167 [label="Exit function test_6" style="filled" fillcolor=red];
}
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
subgraph cluster_38 {
color=red
146 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
147 [label="Enter block"];
subgraph cluster_40 {
color=blue
148 [label="Enter when"];
subgraph cluster_41 {
color=blue
149 [label="Enter when branch condition "];
150 [label="Access variable R|<local>/b|"];
151 [label="Const: Boolean(true)"];
152 [label="Operator !="];
153 [label="Const: Boolean(true)"];
154 [label="Operator !="];
155 [label="Exit when branch condition"];
}
subgraph cluster_42 {
color=blue
156 [label="Enter when branch condition else"];
157 [label="Exit when branch condition"];
}
158 [label="Synthetic else branch"];
159 [label="Enter when branch result"];
subgraph cluster_43 {
color=blue
160 [label="Enter block"];
161 [label="Access variable R|<local>/b|"];
162 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
163 [label="Exit block"];
}
164 [label="Exit when branch result"];
165 [label="Enter when branch result"];
subgraph cluster_44 {
color=blue
166 [label="Enter block"];
167 [label="Access variable R|<local>/b|"];
168 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
169 [label="Exit block"];
}
170 [label="Exit when branch result"];
171 [label="Exit when"];
}
172 [label="Exit block"];
}
173 [label="Exit function test_6" style="filled" fillcolor=red];
}
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
150 -> {159 151};
151 -> {152};
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {165 156};
155 -> {156};
156 -> {157};
157 -> {159 158};
158 -> {171};
157 -> {158};
158 -> {165};
159 -> {160};
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {164};
164 -> {171};
164 -> {165};
165 -> {166};
166 -> {167};
167 -> {168};
subgraph cluster_45 {
color=red
168 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_46 {
color=blue
169 [label="Enter block"];
subgraph cluster_47 {
color=blue
170 [label="Enter when"];
subgraph cluster_48 {
color=blue
171 [label="Enter when branch condition "];
172 [label="Access variable R|<local>/b|"];
173 [label="Const: Boolean(true)"];
174 [label="Operator !="];
175 [label="Const: Boolean(false)"];
176 [label="Operator =="];
177 [label="Exit when branch condition"];
}
subgraph cluster_49 {
color=blue
178 [label="Enter when branch condition else"];
179 [label="Exit when branch condition"];
}
180 [label="Enter when branch result"];
subgraph cluster_50 {
color=blue
181 [label="Enter block"];
182 [label="Access variable R|<local>/b|"];
183 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
184 [label="Exit block"];
}
185 [label="Exit when branch result"];
186 [label="Enter when branch result"];
subgraph cluster_51 {
color=blue
187 [label="Enter block"];
188 [label="Access variable R|<local>/b|"];
189 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
190 [label="Exit block"];
}
191 [label="Exit when branch result"];
192 [label="Exit when"];
}
193 [label="Exit block"];
}
194 [label="Exit function test_7" style="filled" fillcolor=red];
}
168 -> {169};
169 -> {170};
170 -> {171};
171 -> {172};
172 -> {173};
subgraph cluster_45 {
color=red
174 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_46 {
color=blue
175 [label="Enter block"];
subgraph cluster_47 {
color=blue
176 [label="Enter when"];
subgraph cluster_48 {
color=blue
177 [label="Enter when branch condition "];
178 [label="Access variable R|<local>/b|"];
179 [label="Const: Boolean(true)"];
180 [label="Operator !="];
181 [label="Const: Boolean(false)"];
182 [label="Operator =="];
183 [label="Exit when branch condition"];
}
subgraph cluster_49 {
color=blue
184 [label="Enter when branch condition else"];
185 [label="Exit when branch condition"];
}
186 [label="Synthetic else branch"];
187 [label="Enter when branch result"];
subgraph cluster_50 {
color=blue
188 [label="Enter block"];
189 [label="Access variable R|<local>/b|"];
190 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
191 [label="Exit block"];
}
192 [label="Exit when branch result"];
193 [label="Enter when branch result"];
subgraph cluster_51 {
color=blue
194 [label="Enter block"];
195 [label="Access variable R|<local>/b|"];
196 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
197 [label="Exit block"];
}
198 [label="Exit when branch result"];
199 [label="Exit when"];
}
200 [label="Exit block"];
}
201 [label="Exit function test_7" style="filled" fillcolor=red];
}
173 -> {174};
174 -> {175};
175 -> {176};
176 -> {177};
177 -> {178};
177 -> {186 178};
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {182};
182 -> {183};
183 -> {193 184};
183 -> {184};
184 -> {185};
185 -> {187 186};
186 -> {199};
185 -> {192};
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {190};
190 -> {191};
191 -> {192};
192 -> {199};
192 -> {193};
193 -> {194};
194 -> {195};
subgraph cluster_52 {
color=red
195 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_53 {
color=blue
196 [label="Enter block"];
subgraph cluster_54 {
color=blue
197 [label="Enter when"];
subgraph cluster_55 {
color=blue
198 [label="Enter when branch condition "];
199 [label="Access variable R|<local>/b|"];
200 [label="Const: Boolean(true)"];
201 [label="Operator !="];
202 [label="Const: Boolean(false)"];
203 [label="Operator !="];
204 [label="Exit when branch condition"];
}
subgraph cluster_56 {
color=blue
205 [label="Enter when branch condition else"];
206 [label="Exit when branch condition"];
}
207 [label="Enter when branch result"];
subgraph cluster_57 {
color=blue
208 [label="Enter block"];
209 [label="Access variable R|<local>/b|"];
210 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
211 [label="Exit block"];
}
212 [label="Exit when branch result"];
213 [label="Enter when branch result"];
subgraph cluster_58 {
color=blue
214 [label="Enter block"];
215 [label="Access variable R|<local>/b|"];
216 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
217 [label="Exit block"];
}
218 [label="Exit when branch result"];
219 [label="Exit when"];
}
220 [label="Exit block"];
}
221 [label="Exit function test_8" style="filled" fillcolor=red];
}
195 -> {196};
196 -> {197};
197 -> {198};
198 -> {199};
199 -> {200};
200 -> {201};
subgraph cluster_52 {
color=red
202 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_53 {
color=blue
203 [label="Enter block"];
subgraph cluster_54 {
color=blue
204 [label="Enter when"];
subgraph cluster_55 {
color=blue
205 [label="Enter when branch condition "];
206 [label="Access variable R|<local>/b|"];
207 [label="Const: Boolean(true)"];
208 [label="Operator !="];
209 [label="Const: Boolean(false)"];
210 [label="Operator !="];
211 [label="Exit when branch condition"];
}
subgraph cluster_56 {
color=blue
212 [label="Enter when branch condition else"];
213 [label="Exit when branch condition"];
}
214 [label="Synthetic else branch"];
215 [label="Enter when branch result"];
subgraph cluster_57 {
color=blue
216 [label="Enter block"];
217 [label="Access variable R|<local>/b|"];
218 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
219 [label="Exit block"];
}
220 [label="Exit when branch result"];
221 [label="Enter when branch result"];
subgraph cluster_58 {
color=blue
222 [label="Enter block"];
223 [label="Access variable R|<local>/b|"];
224 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
225 [label="Exit block"];
}
226 [label="Exit when branch result"];
227 [label="Exit when"];
}
228 [label="Exit block"];
}
229 [label="Exit function test_8" style="filled" fillcolor=red];
}
201 -> {202};
202 -> {203};
203 -> {204};
204 -> {205};
204 -> {213 205};
205 -> {206};
206 -> {207};
207 -> {208};
208 -> {209};
209 -> {210};
210 -> {211};
211 -> {221 212};
212 -> {213};
213 -> {215 214};
214 -> {227};
211 -> {212};
212 -> {219};
213 -> {214};
214 -> {215};
215 -> {216};
216 -> {217};
217 -> {218};
218 -> {219};
219 -> {220};
220 -> {227};
221 -> {222};
222 -> {223};
223 -> {224};
224 -> {225};
225 -> {226};
226 -> {227};
227 -> {228};
228 -> {229};
220 -> {221};
}
@@ -62,35 +62,34 @@ digraph implicitReceivers_kt {
17 [label="Enter when branch condition else"];
18 [label="Exit when branch condition"];
}
19 [label="Synthetic else branch"];
20 [label="Enter when branch result"];
19 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
21 [label="Enter block"];
22 [label="Access variable this@R|/test_1|"];
23 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
24 [label="Function call: <Unresolved name: foo>#()"];
25 [label="Exit block"];
20 [label="Enter block"];
21 [label="Access variable this@R|/test_1|"];
22 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
23 [label="Function call: <Unresolved name: foo>#()"];
24 [label="Exit block"];
}
26 [label="Exit when branch result"];
27 [label="Enter when branch result"];
25 [label="Exit when branch result"];
26 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
28 [label="Enter block"];
29 [label="Access variable this@R|/test_1|"];
30 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
31 [label="Function call: this@R|/A|.R|/A.foo|()"];
32 [label="Exit block"];
27 [label="Enter block"];
28 [label="Access variable this@R|/test_1|"];
29 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
30 [label="Function call: this@R|/A|.R|/A.foo|()"];
31 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
32 [label="Exit when branch result"];
33 [label="Exit when"];
}
35 [label="Access variable this@R|/test_1|"];
36 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
37 [label="Function call: <Unresolved name: foo>#()"];
38 [label="Exit block"];
34 [label="Access variable this@R|/test_1|"];
35 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
36 [label="Function call: <Unresolved name: foo>#()"];
37 [label="Exit block"];
}
39 [label="Exit function test_1" style="filled" fillcolor=red];
38 [label="Exit function test_1" style="filled" fillcolor=red];
}
10 -> {11};
@@ -99,17 +98,17 @@ digraph implicitReceivers_kt {
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {27 17};
16 -> {26 17};
17 -> {18};
18 -> {20 19};
19 -> {34};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {34};
25 -> {33};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
@@ -121,77 +120,76 @@ digraph implicitReceivers_kt {
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
subgraph cluster_12 {
color=red
40 [label="Enter function test_2" style="filled" fillcolor=red];
39 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
41 [label="Enter block"];
40 [label="Enter block"];
subgraph cluster_14 {
color=blue
42 [label="Enter when"];
41 [label="Enter when"];
subgraph cluster_15 {
color=blue
43 [label="Enter when branch condition "];
44 [label="Access variable this@R|/test_2|"];
45 [label="Type operator: this !is A"];
46 [label="Exit when branch condition"];
42 [label="Enter when branch condition "];
43 [label="Access variable this@R|/test_2|"];
44 [label="Type operator: this !is A"];
45 [label="Exit when branch condition"];
}
subgraph cluster_16 {
color=blue
47 [label="Enter when branch condition else"];
48 [label="Exit when branch condition"];
46 [label="Enter when branch condition else"];
47 [label="Exit when branch condition"];
}
49 [label="Synthetic else branch"];
50 [label="Enter when branch result"];
48 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
51 [label="Enter block"];
52 [label="Access variable this@R|/test_2|"];
53 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
54 [label="Function call: this@R|/A|.R|/A.foo|()"];
55 [label="Exit block"];
49 [label="Enter block"];
50 [label="Access variable this@R|/test_2|"];
51 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
52 [label="Function call: this@R|/A|.R|/A.foo|()"];
53 [label="Exit block"];
}
56 [label="Exit when branch result"];
57 [label="Enter when branch result"];
54 [label="Exit when branch result"];
55 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
58 [label="Enter block"];
59 [label="Access variable this@R|/test_2|"];
60 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
61 [label="Function call: <Unresolved name: foo>#()"];
62 [label="Exit block"];
56 [label="Enter block"];
57 [label="Access variable this@R|/test_2|"];
58 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
59 [label="Function call: <Unresolved name: foo>#()"];
60 [label="Exit block"];
}
63 [label="Exit when branch result"];
64 [label="Exit when"];
61 [label="Exit when branch result"];
62 [label="Exit when"];
}
65 [label="Access variable this@R|/test_2|"];
66 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
67 [label="Function call: <Unresolved name: foo>#()"];
68 [label="Exit block"];
63 [label="Access variable this@R|/test_2|"];
64 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
65 [label="Function call: <Unresolved name: foo>#()"];
66 [label="Exit block"];
}
69 [label="Exit function test_2" style="filled" fillcolor=red];
67 [label="Exit function test_2" style="filled" fillcolor=red];
}
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {57 47};
45 -> {55 46};
46 -> {47};
47 -> {48};
48 -> {50 49};
49 -> {64};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
54 -> {62};
55 -> {56};
56 -> {64};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
@@ -202,59 +200,57 @@ digraph implicitReceivers_kt {
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
subgraph cluster_19 {
color=red
70 [label="Enter function test_3" style="filled" fillcolor=red];
68 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_20 {
color=blue
71 [label="Enter block"];
72 [label="Access variable R|<local>/a|"];
69 [label="Enter block"];
70 [label="Access variable R|<local>/a|"];
subgraph cluster_21 {
color=blue
73 [label="Enter function anonymousFunction"];
71 [label="Enter function anonymousFunction"];
subgraph cluster_22 {
color=blue
74 [label="Enter block"];
75 [label="Access variable R|<local>/b|"];
72 [label="Enter block"];
73 [label="Access variable R|<local>/b|"];
subgraph cluster_23 {
color=blue
76 [label="Enter function anonymousFunction"];
74 [label="Enter function anonymousFunction"];
subgraph cluster_24 {
color=blue
77 [label="Enter block"];
78 [label="Access variable R|<local>/c|"];
75 [label="Enter block"];
76 [label="Access variable R|<local>/c|"];
subgraph cluster_25 {
color=blue
79 [label="Enter function anonymousFunction"];
77 [label="Enter function anonymousFunction"];
subgraph cluster_26 {
color=blue
80 [label="Enter block"];
78 [label="Enter block"];
79 [label="Access variable this@R|special/anonymous|"];
80 [label="Type operator: this@wb as A"];
81 [label="Access variable this@R|special/anonymous|"];
82 [label="Type operator: this@wb as A"];
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|/A|.R|/A.foo|()"];
86 [label="Exit block"];
82 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
83 [label="Function call: this@R|/A|.R|/A.foo|()"];
84 [label="Exit block"];
}
87 [label="Exit function anonymousFunction"];
85 [label="Exit function anonymousFunction"];
}
88 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/c|, <L> = wc@fun R|kotlin/Any|.<anonymous>(it: R|kotlin/Any|): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
86 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/c|, <L> = wc@fun R|kotlin/Any|.<anonymous>(it: R|kotlin/Any|): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
(this@R|special/anonymous| as R|A|)
this@R|special/anonymous|.R|/A.foo|()
this@R|/A|.R|/A.foo|()
}
)"];
89 [label="Access variable this@R|special/anonymous|"];
90 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
91 [label="Function call: this@R|/A|.R|/A.foo|()"];
92 [label="Exit block"];
87 [label="Access variable this@R|special/anonymous|"];
88 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
89 [label="Function call: this@R|/A|.R|/A.foo|()"];
90 [label="Exit block"];
}
93 [label="Exit function anonymousFunction"];
91 [label="Exit function anonymousFunction"];
}
94 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/b|, <L> = wb@fun R|kotlin/Any|.<anonymous>(it: R|kotlin/Any|): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
92 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/b|, <L> = wb@fun R|kotlin/Any|.<anonymous>(it: R|kotlin/Any|): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/c|, <L> = wc@fun R|kotlin/Any|.<anonymous>(it: R|kotlin/Any|): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
(this@R|special/anonymous| as R|A|)
this@R|special/anonymous|.R|/A.foo|()
@@ -265,11 +261,11 @@ digraph implicitReceivers_kt {
this@R|/A|.R|/A.foo|()
}
)"];
95 [label="Exit block"];
93 [label="Exit block"];
}
96 [label="Exit function anonymousFunction"];
94 [label="Exit function anonymousFunction"];
}
97 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/a|, <L> = wa@fun R|kotlin/Any|.<anonymous>(it: R|kotlin/Any|): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
95 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/a|, <L> = wa@fun R|kotlin/Any|.<anonymous>(it: R|kotlin/Any|): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/b|, <L> = wb@fun R|kotlin/Any|.<anonymous>(it: R|kotlin/Any|): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(R|<local>/c|, <L> = wc@fun R|kotlin/Any|.<anonymous>(it: R|kotlin/Any|): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
(this@R|special/anonymous| as R|A|)
@@ -283,11 +279,13 @@ digraph implicitReceivers_kt {
)
}
)"];
98 [label="Exit block"];
96 [label="Exit block"];
}
99 [label="Exit function test_3" style="filled" fillcolor=red];
97 [label="Exit function test_3" style="filled" fillcolor=red];
}
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
@@ -315,7 +313,5 @@ digraph implicitReceivers_kt {
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
}
File diff suppressed because it is too large Load Diff