[FIR] Add checker for uninitialized properties

This commit is contained in:
Dmitriy Novozhilov
2020-06-17 11:51:15 +03:00
parent 25621d699b
commit 26458875d5
96 changed files with 1476 additions and 1358 deletions
@@ -12,86 +12,86 @@ digraph initBlockAndInPlaceLambda_kt {
subgraph cluster_1 {
color=red
2 [label="Enter function getter" style="filled" fillcolor=red];
3 [label="Exit function getter" 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 class A" style="filled" fillcolor=red];
5 [label="Exit class A" style="filled" fillcolor=red];
4 [label="Enter function getter" style="filled" fillcolor=red];
5 [label="Exit function getter" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
4 -> {5};
subgraph cluster_3 {
color=red
6 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
8 [label="Exit function <init>" style="filled" fillcolor=red];
}
6 -> {7};
7 -> {8};
subgraph cluster_4 {
color=red
29 [label="Enter class C" style="filled" fillcolor=red];
subgraph cluster_5 {
6 [label="Enter class C" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
16 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
8 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
17 [label="Enter block"];
18 [label="Access variable R|<local>/a|"];
19 [label="Access variable R|/A.b|"];
20 [label="Enter safe call"];
21 [label="Postponed enter to lambda"];
subgraph cluster_7 {
9 [label="Enter block"];
10 [label="Access variable R|<local>/a|"];
11 [label="Access variable R|/A.b|"];
12 [label="Enter safe call"];
13 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
9 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_8 {
21 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
10 [label="Enter block"];
11 [label="Access variable R|<local>/a|"];
12 [label="Access variable R|<local>/it|"];
13 [label="Function call: R|/C.C|(...)"];
14 [label="Exit block"];
22 [label="Enter block"];
23 [label="Access variable R|<local>/a|"];
24 [label="Access variable R|<local>/it|"];
25 [label="Function call: R|/C.C|(...)"];
26 [label="Exit block"];
}
15 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
27 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
22 [label="Call arguments union" style="filled" fillcolor=yellow];
23 [label="Postponed exit from lambda"];
24 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)"];
25 [label="Exit safe call"];
26 [label="Variable declaration: lval c: R|C?|"];
27 [label="Exit block"];
14 [label="Call arguments union" style="filled" fillcolor=yellow];
15 [label="Postponed exit from lambda"];
16 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)"];
17 [label="Exit safe call"];
18 [label="Variable declaration: lval c: R|C?|"];
19 [label="Exit block"];
}
28 [label="Exit init block" style="filled" fillcolor=red];
20 [label="Exit init block" style="filled" fillcolor=red];
}
30 [label="Exit class C" style="filled" fillcolor=red];
7 [label="Exit class C" style="filled" fillcolor=red];
}
29 -> {16} [color=green];
6 -> {8} [color=green];
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12 17};
12 -> {13};
13 -> {21};
13 -> {15} [color=red];
14 -> {16} [color=red];
15 -> {16} [color=green];
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20 25};
20 -> {21};
21 -> {9};
21 -> {23} [color=red];
22 -> {24} [color=red];
23 -> {24} [color=green];
19 -> {20};
20 -> {7} [color=green];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {30} [color=green];
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {23} [color=green];
15 -> {22} [color=red];
27 -> {15} [color=green];
27 -> {14} [color=red];
subgraph cluster_8 {
color=red
28 [label="Enter function <init>" style="filled" fillcolor=red];
29 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
30 [label="Exit function <init>" style="filled" fillcolor=red];
}
28 -> {29};
29 -> {30};
}