b55fda0c55
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
482 lines
15 KiB
Plaintext
Vendored
482 lines
15 KiB
Plaintext
Vendored
digraph booleanOperatorsWithConsts_kt {
|
|
graph [nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter file booleanOperatorsWithConsts.kt" style="filled" fillcolor=red];
|
|
1 [label="Exit file booleanOperatorsWithConsts.kt" style="filled" fillcolor=red];
|
|
}
|
|
0 -> {1} [color=green];
|
|
|
|
subgraph cluster_1 {
|
|
color=red
|
|
2 [label="Enter function test_1" 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 "];
|
|
subgraph cluster_5 {
|
|
color=blue
|
|
6 [label="Enter ||"];
|
|
7 [label="Access variable R|<local>/b|"];
|
|
8 [label="Exit left part of ||"];
|
|
9 [label="Enter right part of ||"];
|
|
10 [label="Const: Boolean(false)"];
|
|
11 [label="Exit ||"];
|
|
}
|
|
12 [label="Exit when branch condition"];
|
|
}
|
|
13 [label="Synthetic else branch"];
|
|
14 [label="Enter when branch result"];
|
|
subgraph cluster_6 {
|
|
color=blue
|
|
15 [label="Enter block"];
|
|
16 [label="Const: Int(1)"];
|
|
17 [label="Exit block"];
|
|
}
|
|
18 [label="Exit when branch result"];
|
|
19 [label="Exit when"];
|
|
}
|
|
20 [label="Exit block"];
|
|
}
|
|
21 [label="Exit function test_1" style="filled" fillcolor=red];
|
|
}
|
|
2 -> {3};
|
|
3 -> {4};
|
|
4 -> {5};
|
|
5 -> {6};
|
|
6 -> {7};
|
|
7 -> {8};
|
|
8 -> {9 11};
|
|
9 -> {10};
|
|
10 -> {11};
|
|
11 -> {12};
|
|
12 -> {13 14};
|
|
13 -> {19};
|
|
14 -> {15};
|
|
15 -> {16};
|
|
16 -> {17};
|
|
17 -> {18};
|
|
18 -> {19};
|
|
19 -> {20};
|
|
20 -> {21};
|
|
|
|
subgraph cluster_7 {
|
|
color=red
|
|
22 [label="Enter function test_2" style="filled" fillcolor=red];
|
|
subgraph cluster_8 {
|
|
color=blue
|
|
23 [label="Enter block"];
|
|
subgraph cluster_9 {
|
|
color=blue
|
|
24 [label="Enter when"];
|
|
subgraph cluster_10 {
|
|
color=blue
|
|
25 [label="Enter when branch condition "];
|
|
subgraph cluster_11 {
|
|
color=blue
|
|
26 [label="Enter ||"];
|
|
27 [label="Const: Boolean(false)"];
|
|
28 [label="Exit left part of ||"];
|
|
29 [label="Enter right part of ||"];
|
|
30 [label="Access variable R|<local>/b|"];
|
|
31 [label="Exit ||"];
|
|
}
|
|
32 [label="Exit when branch condition"];
|
|
}
|
|
33 [label="Synthetic else branch"];
|
|
34 [label="Enter when branch result"];
|
|
subgraph cluster_12 {
|
|
color=blue
|
|
35 [label="Enter block"];
|
|
36 [label="Const: Int(1)"];
|
|
37 [label="Exit block"];
|
|
}
|
|
38 [label="Exit when branch result"];
|
|
39 [label="Exit when"];
|
|
}
|
|
40 [label="Exit block"];
|
|
}
|
|
41 [label="Exit function test_2" style="filled" fillcolor=red];
|
|
}
|
|
22 -> {23};
|
|
23 -> {24};
|
|
24 -> {25};
|
|
25 -> {26};
|
|
26 -> {27};
|
|
27 -> {28};
|
|
28 -> {29};
|
|
28 -> {31} [style=dotted];
|
|
29 -> {30};
|
|
30 -> {31};
|
|
31 -> {32};
|
|
32 -> {33 34};
|
|
33 -> {39};
|
|
34 -> {35};
|
|
35 -> {36};
|
|
36 -> {37};
|
|
37 -> {38};
|
|
38 -> {39};
|
|
39 -> {40};
|
|
40 -> {41};
|
|
|
|
subgraph cluster_13 {
|
|
color=red
|
|
42 [label="Enter function test_3" style="filled" fillcolor=red];
|
|
subgraph cluster_14 {
|
|
color=blue
|
|
43 [label="Enter block"];
|
|
subgraph cluster_15 {
|
|
color=blue
|
|
44 [label="Enter when"];
|
|
subgraph cluster_16 {
|
|
color=blue
|
|
45 [label="Enter when branch condition "];
|
|
subgraph cluster_17 {
|
|
color=blue
|
|
46 [label="Enter ||"];
|
|
47 [label="Access variable R|<local>/b|"];
|
|
48 [label="Exit left part of ||"];
|
|
49 [label="Enter right part of ||"];
|
|
50 [label="Const: Boolean(true)"];
|
|
51 [label="Exit ||"];
|
|
}
|
|
52 [label="Exit when branch condition"];
|
|
}
|
|
53 [label="Synthetic else branch"];
|
|
54 [label="Enter when branch result"];
|
|
subgraph cluster_18 {
|
|
color=blue
|
|
55 [label="Enter block"];
|
|
56 [label="Const: Int(1)"];
|
|
57 [label="Exit block"];
|
|
}
|
|
58 [label="Exit when branch result"];
|
|
59 [label="Exit when"];
|
|
}
|
|
60 [label="Exit block"];
|
|
}
|
|
61 [label="Exit function test_3" style="filled" fillcolor=red];
|
|
}
|
|
42 -> {43};
|
|
43 -> {44};
|
|
44 -> {45};
|
|
45 -> {46};
|
|
46 -> {47};
|
|
47 -> {48};
|
|
48 -> {49 51};
|
|
49 -> {50};
|
|
50 -> {51};
|
|
51 -> {52};
|
|
52 -> {53 54};
|
|
53 -> {59};
|
|
54 -> {55};
|
|
55 -> {56};
|
|
56 -> {57};
|
|
57 -> {58};
|
|
58 -> {59};
|
|
59 -> {60};
|
|
60 -> {61};
|
|
|
|
subgraph cluster_19 {
|
|
color=red
|
|
62 [label="Enter function test_4" style="filled" fillcolor=red];
|
|
subgraph cluster_20 {
|
|
color=blue
|
|
63 [label="Enter block"];
|
|
subgraph cluster_21 {
|
|
color=blue
|
|
64 [label="Enter when"];
|
|
subgraph cluster_22 {
|
|
color=blue
|
|
65 [label="Enter when branch condition "];
|
|
subgraph cluster_23 {
|
|
color=blue
|
|
66 [label="Enter ||"];
|
|
67 [label="Const: Boolean(true)"];
|
|
68 [label="Exit left part of ||"];
|
|
69 [label="Enter right part of ||" style="filled" fillcolor=gray];
|
|
70 [label="Access variable R|<local>/b|" style="filled" fillcolor=gray];
|
|
71 [label="Exit ||"];
|
|
}
|
|
72 [label="Exit when branch condition"];
|
|
}
|
|
73 [label="Synthetic else branch"];
|
|
74 [label="Enter when branch result"];
|
|
subgraph cluster_24 {
|
|
color=blue
|
|
75 [label="Enter block"];
|
|
76 [label="Const: Int(1)"];
|
|
77 [label="Exit block"];
|
|
}
|
|
78 [label="Exit when branch result"];
|
|
79 [label="Exit when"];
|
|
}
|
|
80 [label="Exit block"];
|
|
}
|
|
81 [label="Exit function test_4" style="filled" fillcolor=red];
|
|
}
|
|
62 -> {63};
|
|
63 -> {64};
|
|
64 -> {65};
|
|
65 -> {66};
|
|
66 -> {67};
|
|
67 -> {68};
|
|
68 -> {71};
|
|
68 -> {69} [style=dotted];
|
|
69 -> {70} [style=dotted];
|
|
70 -> {71} [style=dotted];
|
|
71 -> {72};
|
|
72 -> {73 74};
|
|
73 -> {79};
|
|
74 -> {75};
|
|
75 -> {76};
|
|
76 -> {77};
|
|
77 -> {78};
|
|
78 -> {79};
|
|
79 -> {80};
|
|
80 -> {81};
|
|
|
|
subgraph cluster_25 {
|
|
color=red
|
|
82 [label="Enter function test_5" style="filled" fillcolor=red];
|
|
subgraph cluster_26 {
|
|
color=blue
|
|
83 [label="Enter block"];
|
|
subgraph cluster_27 {
|
|
color=blue
|
|
84 [label="Enter when"];
|
|
subgraph cluster_28 {
|
|
color=blue
|
|
85 [label="Enter when branch condition "];
|
|
subgraph cluster_29 {
|
|
color=blue
|
|
86 [label="Enter &&"];
|
|
87 [label="Access variable R|<local>/b|"];
|
|
88 [label="Exit left part of &&"];
|
|
89 [label="Enter right part of &&"];
|
|
90 [label="Const: Boolean(false)"];
|
|
91 [label="Exit &&"];
|
|
}
|
|
92 [label="Exit when branch condition"];
|
|
}
|
|
93 [label="Synthetic else branch"];
|
|
94 [label="Enter when branch result"];
|
|
subgraph cluster_30 {
|
|
color=blue
|
|
95 [label="Enter block"];
|
|
96 [label="Const: Int(1)"];
|
|
97 [label="Exit block"];
|
|
}
|
|
98 [label="Exit when branch result"];
|
|
99 [label="Exit when"];
|
|
}
|
|
100 [label="Exit block"];
|
|
}
|
|
101 [label="Exit function test_5" style="filled" fillcolor=red];
|
|
}
|
|
82 -> {83};
|
|
83 -> {84};
|
|
84 -> {85};
|
|
85 -> {86};
|
|
86 -> {87};
|
|
87 -> {88};
|
|
88 -> {89 91};
|
|
89 -> {90};
|
|
90 -> {91};
|
|
91 -> {92};
|
|
92 -> {93 94};
|
|
93 -> {99};
|
|
94 -> {95};
|
|
95 -> {96};
|
|
96 -> {97};
|
|
97 -> {98};
|
|
98 -> {99};
|
|
99 -> {100};
|
|
100 -> {101};
|
|
|
|
subgraph cluster_31 {
|
|
color=red
|
|
102 [label="Enter function test_6" style="filled" fillcolor=red];
|
|
subgraph cluster_32 {
|
|
color=blue
|
|
103 [label="Enter block"];
|
|
subgraph cluster_33 {
|
|
color=blue
|
|
104 [label="Enter when"];
|
|
subgraph cluster_34 {
|
|
color=blue
|
|
105 [label="Enter when branch condition "];
|
|
subgraph cluster_35 {
|
|
color=blue
|
|
106 [label="Enter &&"];
|
|
107 [label="Const: Boolean(false)"];
|
|
108 [label="Exit left part of &&"];
|
|
109 [label="Enter right part of &&" style="filled" fillcolor=gray];
|
|
110 [label="Access variable R|<local>/b|" style="filled" fillcolor=gray];
|
|
111 [label="Exit &&"];
|
|
}
|
|
112 [label="Exit when branch condition"];
|
|
}
|
|
113 [label="Synthetic else branch"];
|
|
114 [label="Enter when branch result"];
|
|
subgraph cluster_36 {
|
|
color=blue
|
|
115 [label="Enter block"];
|
|
116 [label="Const: Int(1)"];
|
|
117 [label="Exit block"];
|
|
}
|
|
118 [label="Exit when branch result"];
|
|
119 [label="Exit when"];
|
|
}
|
|
120 [label="Exit block"];
|
|
}
|
|
121 [label="Exit function test_6" style="filled" fillcolor=red];
|
|
}
|
|
102 -> {103};
|
|
103 -> {104};
|
|
104 -> {105};
|
|
105 -> {106};
|
|
106 -> {107};
|
|
107 -> {108};
|
|
108 -> {111};
|
|
108 -> {109} [style=dotted];
|
|
109 -> {110} [style=dotted];
|
|
110 -> {111} [style=dotted];
|
|
111 -> {112};
|
|
112 -> {113 114};
|
|
113 -> {119};
|
|
114 -> {115};
|
|
115 -> {116};
|
|
116 -> {117};
|
|
117 -> {118};
|
|
118 -> {119};
|
|
119 -> {120};
|
|
120 -> {121};
|
|
|
|
subgraph cluster_37 {
|
|
color=red
|
|
122 [label="Enter function test_7" style="filled" fillcolor=red];
|
|
subgraph cluster_38 {
|
|
color=blue
|
|
123 [label="Enter block"];
|
|
subgraph cluster_39 {
|
|
color=blue
|
|
124 [label="Enter when"];
|
|
subgraph cluster_40 {
|
|
color=blue
|
|
125 [label="Enter when branch condition "];
|
|
subgraph cluster_41 {
|
|
color=blue
|
|
126 [label="Enter &&"];
|
|
127 [label="Access variable R|<local>/b|"];
|
|
128 [label="Exit left part of &&"];
|
|
129 [label="Enter right part of &&"];
|
|
130 [label="Const: Boolean(true)"];
|
|
131 [label="Exit &&"];
|
|
}
|
|
132 [label="Exit when branch condition"];
|
|
}
|
|
133 [label="Synthetic else branch"];
|
|
134 [label="Enter when branch result"];
|
|
subgraph cluster_42 {
|
|
color=blue
|
|
135 [label="Enter block"];
|
|
136 [label="Const: Int(1)"];
|
|
137 [label="Exit block"];
|
|
}
|
|
138 [label="Exit when branch result"];
|
|
139 [label="Exit when"];
|
|
}
|
|
140 [label="Exit block"];
|
|
}
|
|
141 [label="Exit function test_7" style="filled" fillcolor=red];
|
|
}
|
|
122 -> {123};
|
|
123 -> {124};
|
|
124 -> {125};
|
|
125 -> {126};
|
|
126 -> {127};
|
|
127 -> {128};
|
|
128 -> {129 131};
|
|
129 -> {130};
|
|
130 -> {131};
|
|
131 -> {132};
|
|
132 -> {133 134};
|
|
133 -> {139};
|
|
134 -> {135};
|
|
135 -> {136};
|
|
136 -> {137};
|
|
137 -> {138};
|
|
138 -> {139};
|
|
139 -> {140};
|
|
140 -> {141};
|
|
|
|
subgraph cluster_43 {
|
|
color=red
|
|
142 [label="Enter function test_8" style="filled" fillcolor=red];
|
|
subgraph cluster_44 {
|
|
color=blue
|
|
143 [label="Enter block"];
|
|
subgraph cluster_45 {
|
|
color=blue
|
|
144 [label="Enter when"];
|
|
subgraph cluster_46 {
|
|
color=blue
|
|
145 [label="Enter when branch condition "];
|
|
subgraph cluster_47 {
|
|
color=blue
|
|
146 [label="Enter &&"];
|
|
147 [label="Const: Boolean(true)"];
|
|
148 [label="Exit left part of &&"];
|
|
149 [label="Enter right part of &&"];
|
|
150 [label="Access variable R|<local>/b|"];
|
|
151 [label="Exit &&"];
|
|
}
|
|
152 [label="Exit when branch condition"];
|
|
}
|
|
153 [label="Synthetic else branch"];
|
|
154 [label="Enter when branch result"];
|
|
subgraph cluster_48 {
|
|
color=blue
|
|
155 [label="Enter block"];
|
|
156 [label="Const: Int(1)"];
|
|
157 [label="Exit block"];
|
|
}
|
|
158 [label="Exit when branch result"];
|
|
159 [label="Exit when"];
|
|
}
|
|
160 [label="Exit block"];
|
|
}
|
|
161 [label="Exit function test_8" style="filled" fillcolor=red];
|
|
}
|
|
142 -> {143};
|
|
143 -> {144};
|
|
144 -> {145};
|
|
145 -> {146};
|
|
146 -> {147};
|
|
147 -> {148};
|
|
148 -> {149};
|
|
148 -> {151} [style=dotted];
|
|
149 -> {150};
|
|
150 -> {151};
|
|
151 -> {152};
|
|
152 -> {153 154};
|
|
153 -> {159};
|
|
154 -> {155};
|
|
155 -> {156};
|
|
156 -> {157};
|
|
157 -> {158};
|
|
158 -> {159};
|
|
159 -> {160};
|
|
160 -> {161};
|
|
|
|
}
|