[FIR] Create CFG for files to track top-level property initialization

In order to properly analyze top-level property initialization, a
control-flow graph must be created for FirFiles. This change adds the
foundation for the file CFG and updates body resolve to create the CFG.
Checking the CFG for proper initialization is separated into a following
change to ease code review.

KT-56683
This commit is contained in:
Brian Norman
2023-07-25 10:23:22 -05:00
committed by Space Team
parent 0b7eb32064
commit b55fda0c55
127 changed files with 19565 additions and 18746 deletions
@@ -5,69 +5,74 @@ digraph equalsToBoolean_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
0 [label="Enter file equalsToBoolean.kt" style="filled" fillcolor=red];
1 [label="Exit file equalsToBoolean.kt" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit class A" style="filled" fillcolor=red];
}
2 -> {3};
2 -> {3} [color=green];
subgraph cluster_2 {
color=red
4 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
5 [label="Enter block"];
subgraph cluster_4 {
color=blue
6 [label="Enter when"];
subgraph cluster_5 {
color=blue
7 [label="Enter when branch condition "];
8 [label="Access variable R|<local>/b|"];
9 [label="Const: Boolean(true)"];
10 [label="Equality operator =="];
11 [label="Const: Boolean(true)"];
12 [label="Equality operator =="];
13 [label="Exit when branch condition"];
}
subgraph cluster_6 {
color=blue
14 [label="Enter when branch condition else"];
15 [label="Exit when branch condition"];
}
16 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
17 [label="Enter block"];
18 [label="Access variable R|<local>/b|"];
19 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
20 [label="Exit block"];
}
21 [label="Exit when branch result"];
22 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|<local>/b|"];
25 [label="Smart cast: R|<local>/b|"];
26 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
27 [label="Exit block"];
}
28 [label="Exit when branch result"];
29 [label="Exit when"];
}
30 [label="Exit block"];
}
31 [label="Exit function test_1" style="filled" fillcolor=red];
4 [label="Enter function foo" style="filled" fillcolor=red];
5 [label="Exit function foo" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
subgraph cluster_3 {
color=red
6 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
7 [label="Enter block"];
subgraph cluster_5 {
color=blue
8 [label="Enter when"];
subgraph cluster_6 {
color=blue
9 [label="Enter when branch condition "];
10 [label="Access variable R|<local>/b|"];
11 [label="Const: Boolean(true)"];
12 [label="Equality operator =="];
13 [label="Const: Boolean(true)"];
14 [label="Equality operator =="];
15 [label="Exit when branch condition"];
}
subgraph cluster_7 {
color=blue
16 [label="Enter when branch condition else"];
17 [label="Exit when branch condition"];
}
18 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
19 [label="Enter block"];
20 [label="Access variable R|<local>/b|"];
21 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
22 [label="Exit block"];
}
23 [label="Exit when branch result"];
24 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
25 [label="Enter block"];
26 [label="Access variable R|<local>/b|"];
27 [label="Smart cast: R|<local>/b|"];
28 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
29 [label="Exit block"];
}
30 [label="Exit when branch result"];
31 [label="Exit when"];
}
32 [label="Exit block"];
}
33 [label="Exit function test_1" style="filled" fillcolor=red];
}
6 -> {7};
7 -> {8};
8 -> {9};
@@ -75,17 +80,17 @@ digraph equalsToBoolean_kt {
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14 22};
13 -> {14};
14 -> {15};
15 -> {16};
15 -> {16 24};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {29};
21 -> {22};
22 -> {23};
23 -> {24};
23 -> {31};
24 -> {25};
25 -> {26};
26 -> {27};
@@ -93,58 +98,58 @@ digraph equalsToBoolean_kt {
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
subgraph cluster_9 {
subgraph cluster_10 {
color=red
32 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_10 {
34 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
33 [label="Enter block"];
subgraph cluster_11 {
35 [label="Enter block"];
subgraph cluster_12 {
color=blue
34 [label="Enter when"];
subgraph cluster_12 {
color=blue
35 [label="Enter when branch condition "];
36 [label="Access variable R|<local>/b|"];
37 [label="Const: Boolean(true)"];
38 [label="Equality operator =="];
39 [label="Const: Boolean(true)"];
40 [label="Equality operator !="];
41 [label="Exit when branch condition"];
}
36 [label="Enter when"];
subgraph cluster_13 {
color=blue
42 [label="Enter when branch condition else"];
37 [label="Enter when branch condition "];
38 [label="Access variable R|<local>/b|"];
39 [label="Const: Boolean(true)"];
40 [label="Equality operator =="];
41 [label="Const: Boolean(true)"];
42 [label="Equality operator !="];
43 [label="Exit when branch condition"];
}
44 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
45 [label="Enter block"];
46 [label="Access variable R|<local>/b|"];
47 [label="Smart cast: R|<local>/b|"];
48 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
49 [label="Exit block"];
44 [label="Enter when branch condition else"];
45 [label="Exit when branch condition"];
}
50 [label="Exit when branch result"];
51 [label="Enter when branch result"];
46 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
52 [label="Enter block"];
53 [label="Access variable R|<local>/b|"];
54 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
55 [label="Exit block"];
47 [label="Enter block"];
48 [label="Access variable R|<local>/b|"];
49 [label="Smart cast: R|<local>/b|"];
50 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
51 [label="Exit block"];
}
56 [label="Exit when branch result"];
57 [label="Exit when"];
52 [label="Exit when branch result"];
53 [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|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
57 [label="Exit block"];
}
58 [label="Exit when branch result"];
59 [label="Exit when"];
}
58 [label="Exit block"];
60 [label="Exit block"];
}
59 [label="Exit function test_2" style="filled" fillcolor=red];
61 [label="Exit function test_2" style="filled" fillcolor=red];
}
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
@@ -152,76 +157,76 @@ digraph equalsToBoolean_kt {
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42 51};
41 -> {42};
42 -> {43};
43 -> {44};
43 -> {44 53};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {57};
50 -> {51};
51 -> {52};
52 -> {53};
52 -> {59};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
subgraph cluster_16 {
subgraph cluster_17 {
color=red
60 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_17 {
62 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
61 [label="Enter block"];
subgraph cluster_18 {
63 [label="Enter block"];
subgraph cluster_19 {
color=blue
62 [label="Enter when"];
subgraph cluster_19 {
color=blue
63 [label="Enter when branch condition "];
64 [label="Access variable R|<local>/b|"];
65 [label="Const: Boolean(true)"];
66 [label="Equality operator =="];
67 [label="Const: Boolean(false)"];
68 [label="Equality operator =="];
69 [label="Exit when branch condition"];
}
64 [label="Enter when"];
subgraph cluster_20 {
color=blue
70 [label="Enter when branch condition else"];
65 [label="Enter when branch condition "];
66 [label="Access variable R|<local>/b|"];
67 [label="Const: Boolean(true)"];
68 [label="Equality operator =="];
69 [label="Const: Boolean(false)"];
70 [label="Equality operator =="];
71 [label="Exit when branch condition"];
}
72 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
73 [label="Enter block"];
74 [label="Access variable R|<local>/b|"];
75 [label="Smart cast: R|<local>/b|"];
76 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
77 [label="Exit block"];
72 [label="Enter when branch condition else"];
73 [label="Exit when branch condition"];
}
78 [label="Exit when branch result"];
79 [label="Enter when branch result"];
74 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
80 [label="Enter block"];
81 [label="Access variable R|<local>/b|"];
82 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
83 [label="Exit block"];
75 [label="Enter block"];
76 [label="Access variable R|<local>/b|"];
77 [label="Smart cast: R|<local>/b|"];
78 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
79 [label="Exit block"];
}
84 [label="Exit when branch result"];
85 [label="Exit when"];
80 [label="Exit when branch result"];
81 [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|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
85 [label="Exit block"];
}
86 [label="Exit when branch result"];
87 [label="Exit when"];
}
86 [label="Exit block"];
88 [label="Exit block"];
}
87 [label="Exit function test_3" style="filled" fillcolor=red];
89 [label="Exit function test_3" style="filled" fillcolor=red];
}
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
@@ -229,76 +234,76 @@ digraph equalsToBoolean_kt {
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70 79};
69 -> {70};
70 -> {71};
71 -> {72};
71 -> {72 81};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {85};
78 -> {79};
79 -> {80};
80 -> {81};
80 -> {87};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
subgraph cluster_23 {
subgraph cluster_24 {
color=red
88 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_24 {
90 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_25 {
color=blue
89 [label="Enter block"];
subgraph cluster_25 {
91 [label="Enter block"];
subgraph cluster_26 {
color=blue
90 [label="Enter when"];
subgraph cluster_26 {
color=blue
91 [label="Enter when branch condition "];
92 [label="Access variable R|<local>/b|"];
93 [label="Const: Boolean(true)"];
94 [label="Equality operator =="];
95 [label="Const: Boolean(false)"];
96 [label="Equality operator !="];
97 [label="Exit when branch condition"];
}
92 [label="Enter when"];
subgraph cluster_27 {
color=blue
98 [label="Enter when branch condition else"];
93 [label="Enter when branch condition "];
94 [label="Access variable R|<local>/b|"];
95 [label="Const: Boolean(true)"];
96 [label="Equality operator =="];
97 [label="Const: Boolean(false)"];
98 [label="Equality operator !="];
99 [label="Exit when branch condition"];
}
100 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
101 [label="Enter block"];
102 [label="Access variable R|<local>/b|"];
103 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
104 [label="Exit block"];
100 [label="Enter when branch condition else"];
101 [label="Exit when branch condition"];
}
105 [label="Exit when branch result"];
106 [label="Enter when branch result"];
102 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
107 [label="Enter block"];
108 [label="Access variable R|<local>/b|"];
109 [label="Smart cast: R|<local>/b|"];
110 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
111 [label="Exit block"];
103 [label="Enter block"];
104 [label="Access variable R|<local>/b|"];
105 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
106 [label="Exit block"];
}
112 [label="Exit when branch result"];
113 [label="Exit when"];
107 [label="Exit when branch result"];
108 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
109 [label="Enter block"];
110 [label="Access variable R|<local>/b|"];
111 [label="Smart cast: R|<local>/b|"];
112 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
113 [label="Exit block"];
}
114 [label="Exit when branch result"];
115 [label="Exit when"];
}
114 [label="Exit block"];
116 [label="Exit block"];
}
115 [label="Exit function test_4" style="filled" fillcolor=red];
117 [label="Exit function test_4" style="filled" fillcolor=red];
}
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
@@ -306,17 +311,17 @@ digraph equalsToBoolean_kt {
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98 106};
97 -> {98};
98 -> {99};
99 -> {100};
99 -> {100 108};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {113};
105 -> {106};
106 -> {107};
107 -> {108};
107 -> {115};
108 -> {109};
109 -> {110};
110 -> {111};
@@ -324,58 +329,58 @@ digraph equalsToBoolean_kt {
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
subgraph cluster_30 {
subgraph cluster_31 {
color=red
116 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_31 {
118 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_32 {
color=blue
117 [label="Enter block"];
subgraph cluster_32 {
119 [label="Enter block"];
subgraph cluster_33 {
color=blue
118 [label="Enter when"];
subgraph cluster_33 {
color=blue
119 [label="Enter when branch condition "];
120 [label="Access variable R|<local>/b|"];
121 [label="Const: Boolean(true)"];
122 [label="Equality operator !="];
123 [label="Const: Boolean(true)"];
124 [label="Equality operator =="];
125 [label="Exit when branch condition"];
}
120 [label="Enter when"];
subgraph cluster_34 {
color=blue
126 [label="Enter when branch condition else"];
121 [label="Enter when branch condition "];
122 [label="Access variable R|<local>/b|"];
123 [label="Const: Boolean(true)"];
124 [label="Equality operator !="];
125 [label="Const: Boolean(true)"];
126 [label="Equality operator =="];
127 [label="Exit when branch condition"];
}
128 [label="Enter when branch result"];
subgraph cluster_35 {
color=blue
129 [label="Enter block"];
130 [label="Access variable R|<local>/b|"];
131 [label="Smart cast: R|<local>/b|"];
132 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
133 [label="Exit block"];
128 [label="Enter when branch condition else"];
129 [label="Exit when branch condition"];
}
134 [label="Exit when branch result"];
135 [label="Enter when branch result"];
130 [label="Enter when branch result"];
subgraph cluster_36 {
color=blue
136 [label="Enter block"];
137 [label="Access variable R|<local>/b|"];
138 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
139 [label="Exit block"];
131 [label="Enter block"];
132 [label="Access variable R|<local>/b|"];
133 [label="Smart cast: R|<local>/b|"];
134 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
135 [label="Exit block"];
}
140 [label="Exit when branch result"];
141 [label="Exit when"];
136 [label="Exit when branch result"];
137 [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|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
141 [label="Exit block"];
}
142 [label="Exit when branch result"];
143 [label="Exit when"];
}
142 [label="Exit block"];
144 [label="Exit block"];
}
143 [label="Exit function test_5" style="filled" fillcolor=red];
145 [label="Exit function test_5" style="filled" fillcolor=red];
}
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
@@ -383,76 +388,76 @@ digraph equalsToBoolean_kt {
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126 135};
125 -> {126};
126 -> {127};
127 -> {128};
127 -> {128 137};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {141};
134 -> {135};
135 -> {136};
136 -> {137};
136 -> {143};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
subgraph cluster_37 {
subgraph cluster_38 {
color=red
144 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_38 {
146 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
145 [label="Enter block"];
subgraph cluster_39 {
147 [label="Enter block"];
subgraph cluster_40 {
color=blue
146 [label="Enter when"];
subgraph cluster_40 {
color=blue
147 [label="Enter when branch condition "];
148 [label="Access variable R|<local>/b|"];
149 [label="Const: Boolean(true)"];
150 [label="Equality operator !="];
151 [label="Const: Boolean(true)"];
152 [label="Equality operator !="];
153 [label="Exit when branch condition"];
}
148 [label="Enter when"];
subgraph cluster_41 {
color=blue
154 [label="Enter when branch condition else"];
149 [label="Enter when branch condition "];
150 [label="Access variable R|<local>/b|"];
151 [label="Const: Boolean(true)"];
152 [label="Equality operator !="];
153 [label="Const: Boolean(true)"];
154 [label="Equality operator !="];
155 [label="Exit when branch condition"];
}
156 [label="Enter when branch result"];
subgraph cluster_42 {
color=blue
157 [label="Enter block"];
158 [label="Access variable R|<local>/b|"];
159 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
160 [label="Exit block"];
156 [label="Enter when branch condition else"];
157 [label="Exit when branch condition"];
}
161 [label="Exit when branch result"];
162 [label="Enter when branch result"];
158 [label="Enter when branch result"];
subgraph cluster_43 {
color=blue
163 [label="Enter block"];
164 [label="Access variable R|<local>/b|"];
165 [label="Smart cast: R|<local>/b|"];
166 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
167 [label="Exit block"];
159 [label="Enter block"];
160 [label="Access variable R|<local>/b|"];
161 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
162 [label="Exit block"];
}
168 [label="Exit when branch result"];
169 [label="Exit when"];
163 [label="Exit when branch result"];
164 [label="Enter when branch result"];
subgraph cluster_44 {
color=blue
165 [label="Enter block"];
166 [label="Access variable R|<local>/b|"];
167 [label="Smart cast: R|<local>/b|"];
168 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
169 [label="Exit block"];
}
170 [label="Exit when branch result"];
171 [label="Exit when"];
}
170 [label="Exit block"];
172 [label="Exit block"];
}
171 [label="Exit function test_6" style="filled" fillcolor=red];
173 [label="Exit function test_6" style="filled" fillcolor=red];
}
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
@@ -460,17 +465,17 @@ digraph equalsToBoolean_kt {
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {154 162};
153 -> {154};
154 -> {155};
155 -> {156};
155 -> {156 164};
156 -> {157};
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {169};
161 -> {162};
162 -> {163};
163 -> {164};
163 -> {171};
164 -> {165};
165 -> {166};
166 -> {167};
@@ -478,58 +483,58 @@ digraph equalsToBoolean_kt {
168 -> {169};
169 -> {170};
170 -> {171};
171 -> {172};
172 -> {173};
subgraph cluster_44 {
subgraph cluster_45 {
color=red
172 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_45 {
174 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_46 {
color=blue
173 [label="Enter block"];
subgraph cluster_46 {
175 [label="Enter block"];
subgraph cluster_47 {
color=blue
174 [label="Enter when"];
subgraph cluster_47 {
color=blue
175 [label="Enter when branch condition "];
176 [label="Access variable R|<local>/b|"];
177 [label="Const: Boolean(true)"];
178 [label="Equality operator !="];
179 [label="Const: Boolean(false)"];
180 [label="Equality operator =="];
181 [label="Exit when branch condition"];
}
176 [label="Enter when"];
subgraph cluster_48 {
color=blue
182 [label="Enter when branch condition else"];
177 [label="Enter when branch condition "];
178 [label="Access variable R|<local>/b|"];
179 [label="Const: Boolean(true)"];
180 [label="Equality operator !="];
181 [label="Const: Boolean(false)"];
182 [label="Equality operator =="];
183 [label="Exit when branch condition"];
}
184 [label="Enter when branch result"];
subgraph cluster_49 {
color=blue
185 [label="Enter block"];
186 [label="Access variable R|<local>/b|"];
187 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
188 [label="Exit block"];
184 [label="Enter when branch condition else"];
185 [label="Exit when branch condition"];
}
189 [label="Exit when branch result"];
190 [label="Enter when branch result"];
186 [label="Enter when branch result"];
subgraph cluster_50 {
color=blue
191 [label="Enter block"];
192 [label="Access variable R|<local>/b|"];
193 [label="Smart cast: R|<local>/b|"];
194 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
195 [label="Exit block"];
187 [label="Enter block"];
188 [label="Access variable R|<local>/b|"];
189 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
190 [label="Exit block"];
}
196 [label="Exit when branch result"];
197 [label="Exit when"];
191 [label="Exit when branch result"];
192 [label="Enter when branch result"];
subgraph cluster_51 {
color=blue
193 [label="Enter block"];
194 [label="Access variable R|<local>/b|"];
195 [label="Smart cast: R|<local>/b|"];
196 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
197 [label="Exit block"];
}
198 [label="Exit when branch result"];
199 [label="Exit when"];
}
198 [label="Exit block"];
200 [label="Exit block"];
}
199 [label="Exit function test_7" style="filled" fillcolor=red];
201 [label="Exit function test_7" style="filled" fillcolor=red];
}
172 -> {173};
173 -> {174};
174 -> {175};
175 -> {176};
176 -> {177};
@@ -537,17 +542,17 @@ digraph equalsToBoolean_kt {
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {182 190};
181 -> {182};
182 -> {183};
183 -> {184};
183 -> {184 192};
184 -> {185};
185 -> {186};
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {197};
189 -> {190};
190 -> {191};
191 -> {192};
191 -> {199};
192 -> {193};
193 -> {194};
194 -> {195};
@@ -555,58 +560,58 @@ digraph equalsToBoolean_kt {
196 -> {197};
197 -> {198};
198 -> {199};
199 -> {200};
200 -> {201};
subgraph cluster_51 {
subgraph cluster_52 {
color=red
200 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_52 {
202 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_53 {
color=blue
201 [label="Enter block"];
subgraph cluster_53 {
203 [label="Enter block"];
subgraph cluster_54 {
color=blue
202 [label="Enter when"];
subgraph cluster_54 {
color=blue
203 [label="Enter when branch condition "];
204 [label="Access variable R|<local>/b|"];
205 [label="Const: Boolean(true)"];
206 [label="Equality operator !="];
207 [label="Const: Boolean(false)"];
208 [label="Equality operator !="];
209 [label="Exit when branch condition"];
}
204 [label="Enter when"];
subgraph cluster_55 {
color=blue
210 [label="Enter when branch condition else"];
205 [label="Enter when branch condition "];
206 [label="Access variable R|<local>/b|"];
207 [label="Const: Boolean(true)"];
208 [label="Equality operator !="];
209 [label="Const: Boolean(false)"];
210 [label="Equality operator !="];
211 [label="Exit when branch condition"];
}
212 [label="Enter when branch result"];
subgraph cluster_56 {
color=blue
213 [label="Enter block"];
214 [label="Access variable R|<local>/b|"];
215 [label="Smart cast: R|<local>/b|"];
216 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
217 [label="Exit block"];
212 [label="Enter when branch condition else"];
213 [label="Exit when branch condition"];
}
218 [label="Exit when branch result"];
219 [label="Enter when branch result"];
214 [label="Enter when branch result"];
subgraph cluster_57 {
color=blue
220 [label="Enter block"];
221 [label="Access variable R|<local>/b|"];
222 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
223 [label="Exit block"];
215 [label="Enter block"];
216 [label="Access variable R|<local>/b|"];
217 [label="Smart cast: R|<local>/b|"];
218 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
219 [label="Exit block"];
}
224 [label="Exit when branch result"];
225 [label="Exit when"];
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|.R|kotlin/Boolean.not<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#|()" style="filled" fillcolor=yellow];
225 [label="Exit block"];
}
226 [label="Exit when branch result"];
227 [label="Exit when"];
}
226 [label="Exit block"];
228 [label="Exit block"];
}
227 [label="Exit function test_8" style="filled" fillcolor=red];
229 [label="Exit function test_8" style="filled" fillcolor=red];
}
200 -> {201};
201 -> {202};
202 -> {203};
203 -> {204};
204 -> {205};
@@ -614,23 +619,25 @@ digraph equalsToBoolean_kt {
206 -> {207};
207 -> {208};
208 -> {209};
209 -> {210 219};
209 -> {210};
210 -> {211};
211 -> {212};
211 -> {212 221};
212 -> {213};
213 -> {214};
214 -> {215};
215 -> {216};
216 -> {217};
217 -> {218};
218 -> {225};
218 -> {219};
219 -> {220};
220 -> {221};
220 -> {227};
221 -> {222};
222 -> {223};
223 -> {224};
224 -> {225};
225 -> {226};
226 -> {227};
227 -> {228};
228 -> {229};
}