[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
@@ -5,31 +5,31 @@ digraph boundSmartcasts_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red];
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {1};
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit class A" style="filled" fillcolor=red];
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3} [color=green];
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function bar" style="filled" fillcolor=red];
5 [label="Exit function bar" style="filled" fillcolor=red];
4 [label="Enter class B" style="filled" fillcolor=red];
5 [label="Exit class B" style="filled" fillcolor=red];
}
4 -> {5};
4 -> {5} [color=green];
subgraph cluster_3 {
color=red
6 [label="Enter class B" style="filled" fillcolor=red];
7 [label="Exit class B" style="filled" fillcolor=red];
6 [label="Enter function bar" style="filled" fillcolor=red];
7 [label="Exit function bar" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
6 -> {7};
subgraph cluster_4 {
color=red
@@ -316,35 +316,35 @@ digraph boundSmartcasts_kt {
subgraph cluster_27 {
color=red
115 [label="Enter function <init>" style="filled" fillcolor=red];
116 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
117 [label="Exit function <init>" style="filled" fillcolor=red];
}
115 -> {116};
116 -> {117};
subgraph cluster_28 {
color=red
118 [label="Enter function getter" style="filled" fillcolor=red];
119 [label="Exit function getter" style="filled" fillcolor=red];
115 [label="Enter class D" style="filled" fillcolor=red];
subgraph cluster_28 {
color=blue
117 [label="Enter property" style="filled" fillcolor=red];
118 [label="Access variable R|<local>/any|"];
119 [label="Exit property" style="filled" fillcolor=red];
}
116 [label="Exit class D" style="filled" fillcolor=red];
}
115 -> {117} [color=green];
117 -> {118};
118 -> {119};
119 -> {116} [color=green];
subgraph cluster_29 {
color=red
123 [label="Enter class D" style="filled" fillcolor=red];
subgraph cluster_30 {
color=blue
120 [label="Enter property" style="filled" fillcolor=red];
121 [label="Access variable R|<local>/any|"];
122 [label="Exit property" style="filled" fillcolor=red];
}
124 [label="Exit class D" style="filled" fillcolor=red];
120 [label="Enter function <init>" style="filled" fillcolor=red];
121 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
122 [label="Exit function <init>" style="filled" fillcolor=red];
}
123 -> {120} [color=green];
120 -> {121};
121 -> {122};
122 -> {124} [color=green];
subgraph cluster_30 {
color=red
123 [label="Enter function getter" style="filled" fillcolor=red];
124 [label="Exit function getter" style="filled" fillcolor=red];
}
123 -> {124};
subgraph cluster_31 {
color=red
@@ -5,35 +5,35 @@ digraph boundSmartcastsInBranches_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
3 [label="Enter function getter" style="filled" fillcolor=red];
4 [label="Exit function getter" style="filled" fillcolor=red];
0 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
2 [label="Enter property" style="filled" fillcolor=red];
3 [label="Const: String()"];
4 [label="Exit property" style="filled" fillcolor=red];
}
1 [label="Exit class A" style="filled" fillcolor=red];
}
0 -> {2} [color=green];
2 -> {3};
3 -> {4};
4 -> {1} [color=green];
subgraph cluster_2 {
color=red
8 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
5 [label="Enter property" style="filled" fillcolor=red];
6 [label="Const: String()"];
7 [label="Exit property" style="filled" fillcolor=red];
}
9 [label="Exit class A" style="filled" fillcolor=red];
5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
7 [label="Exit function <init>" style="filled" fillcolor=red];
}
8 -> {5} [color=green];
5 -> {6};
6 -> {7};
7 -> {9} [color=green];
subgraph cluster_3 {
color=red
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red];
}
8 -> {9};
subgraph cluster_4 {
color=red
@@ -5,51 +5,51 @@ digraph functionCallBound_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
0 [label="Enter class Base" style="filled" fillcolor=red];
1 [label="Exit class Base" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
3 [label="Enter class Base" style="filled" fillcolor=red];
4 [label="Exit class Base" style="filled" fillcolor=red];
2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
4 [label="Exit function <init>" style="filled" fillcolor=red];
}
3 -> {4} [color=green];
2 -> {3};
3 -> {4};
subgraph cluster_2 {
color=red
5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|Base|>()"];
7 [label="Exit function <init>" style="filled" fillcolor=red];
}
5 -> {6};
6 -> {7};
subgraph cluster_3 {
color=red
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red];
5 [label="Enter class Sub" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
7 [label="Enter property" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/data|"];
9 [label="Exit property" style="filled" fillcolor=red];
}
6 [label="Exit class Sub" style="filled" fillcolor=red];
}
5 -> {7} [color=green];
7 -> {8};
8 -> {9};
9 -> {6} [color=green];
subgraph cluster_4 {
color=red
13 [label="Enter class Sub" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
10 [label="Enter property" style="filled" fillcolor=red];
11 [label="Access variable R|<local>/data|"];
12 [label="Exit property" style="filled" fillcolor=red];
}
14 [label="Exit class Sub" style="filled" fillcolor=red];
10 [label="Enter function <init>" style="filled" fillcolor=red];
11 [label="Delegated constructor call: super<R|Base|>()"];
12 [label="Exit function <init>" style="filled" fillcolor=red];
}
13 -> {10} [color=green];
10 -> {11};
11 -> {12};
12 -> {14} [color=green];
subgraph cluster_5 {
color=red
13 [label="Enter function getter" style="filled" fillcolor=red];
14 [label="Exit function getter" style="filled" fillcolor=red];
}
13 -> {14};
subgraph cluster_6 {
color=red