FIR CFA: remove class initializer part nodes

Instead, attach subgraphs directly to the class enter node.
This commit is contained in:
pyos
2022-12-11 13:43:55 +01:00
committed by Dmitriy Novozhilov
parent b9f366af05
commit c6e9afb788
25 changed files with 3271 additions and 3385 deletions
@@ -23,89 +23,87 @@ digraph postponedLambdaInConstructor_kt {
subgraph cluster_2 {
color=red
5 [label="Enter class B" style="filled" fillcolor=red];
6 [label="Part of class initialization"];
subgraph cluster_3 {
color=blue
7 [label="Enter property" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/s|"];
9 [label="Exit property" style="filled" fillcolor=red];
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/s|"];
8 [label="Exit property" style="filled" fillcolor=red];
}
10 [label="Exit class B" style="filled" fillcolor=red];
9 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
11 [label="Enter function foo" style="filled" fillcolor=red];
10 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
12 [label="Enter block"];
13 [label="Function call: this@R|/B|.R|/B.foo|()" style="filled" fillcolor=yellow];
14 [label="Exit block"];
11 [label="Enter block"];
12 [label="Function call: this@R|/B|.R|/B.foo|()" style="filled" fillcolor=yellow];
13 [label="Exit block"];
}
15 [label="Exit function foo" style="filled" fillcolor=red];
14 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_6 {
color=blue
16 [label="Enter function <init>" style="filled" fillcolor=red];
17 [label="Access variable R|<local>/s|"];
18 [label="Postponed enter to lambda"];
15 [label="Enter function <init>" style="filled" fillcolor=red];
16 [label="Access variable R|<local>/s|"];
17 [label="Postponed enter to lambda"];
subgraph cluster_7 {
color=blue
19 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
18 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
20 [label="Enter block"];
21 [label="Exit anonymous function expression"];
19 [label="Enter block"];
20 [label="Exit anonymous function expression"];
subgraph cluster_9 {
color=blue
22 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
21 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|<local>/it|"];
25 [label="Exit block"];
22 [label="Enter block"];
23 [label="Access variable R|<local>/it|"];
24 [label="Exit block"];
}
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
27 [label="Exit block"];
26 [label="Exit block"];
}
28 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
27 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
29 [label="Postponed exit from lambda"];
30 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)" style="filled" fillcolor=yellow];
31 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
32 [label="Exit function <init>" style="filled" fillcolor=red];
28 [label="Postponed exit from lambda"];
29 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)" style="filled" fillcolor=yellow];
30 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
31 [label="Exit function <init>" style="filled" fillcolor=red];
}
5 -> {6} [color=green];
6 -> {7} [color=green];
6 -> {10} [style=dotted];
6 -> {7} [style=dashed];
5 -> {9} [style=dotted];
5 -> {6} [style=dashed];
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10} [color=green];
10 -> {11 16} [color=green];
10 -> {11 16} [style=dashed];
8 -> {9} [color=green];
9 -> {10 15} [color=green];
9 -> {10 15} [style=dashed];
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19 30};
18 -> {29} [style=dotted];
18 -> {19} [style=dashed];
17 -> {18 29};
17 -> {28} [style=dotted];
17 -> {18} [style=dashed];
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22 27};
21 -> {22} [style=dashed];
20 -> {21 26};
20 -> {21} [style=dashed];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30} [color=green];
29 -> {31} [color=red];
28 -> {29} [color=green];
28 -> {30} [color=red];
29 -> {30};
30 -> {31};
31 -> {32};
}