FIR CFA: add edges according to constructor delegation

This commit is contained in:
pyos
2023-01-18 12:02:00 +01:00
committed by teamcity
parent 29b7a8e435
commit 9f17b5de97
21 changed files with 593 additions and 562 deletions
@@ -22,57 +22,57 @@ digraph initBlockAndInPlaceLambda_kt {
4 [label="Enter class C" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
7 [label="Exit function <init>" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
8 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_5 {
5 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
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 {
6 [label="Enter block"];
7 [label="Access variable R|<local>/a|"];
8 [label="Access variable R|/A.b|"];
9 [label="Enter safe call"];
10 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
14 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_7 {
11 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
15 [label="Enter block"];
16 [label="Access variable R|<local>/a|"];
17 [label="Access variable R|<local>/it|"];
18 [label="Function call: R|/C.C|(...)" style="filled" fillcolor=yellow];
19 [label="Exit block"];
12 [label="Enter block"];
13 [label="Access variable R|<local>/a|"];
14 [label="Access variable R|<local>/it|"];
15 [label="Function call: R|/C.C|(...)" style="filled" fillcolor=yellow];
16 [label="Exit block"];
}
20 [label="Exit function <anonymous>" style="filled" fillcolor=red];
17 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
21 [label="Postponed exit from lambda"];
22 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)" style="filled" fillcolor=yellow];
23 [label="Exit safe call"];
24 [label="Variable declaration: lval c: R|C?|"];
25 [label="Exit block"];
18 [label="Postponed exit from lambda"];
19 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)" style="filled" fillcolor=yellow];
20 [label="Exit safe call"];
21 [label="Variable declaration: lval c: R|C?|"];
22 [label="Exit block"];
}
26 [label="Exit init block" style="filled" fillcolor=red];
23 [label="Exit init block" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
24 [label="Enter function <init>" style="filled" fillcolor=red];
25 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
26 [label="Exit function <init>" style="filled" fillcolor=red];
}
27 [label="Exit class C" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
4 -> {27} [style=dotted];
4 -> {5 8} [style=dashed];
4 -> {5 24} [style=dashed];
5 -> {6};
6 -> {7};
7 -> {8} [color=green];
8 -> {9};
7 -> {8};
8 -> {9 20};
9 -> {10};
10 -> {11};
11 -> {12 23};
10 -> {11 19};
10 -> {18} [style=dotted];
10 -> {11} [style=dashed];
11 -> {12};
12 -> {13};
13 -> {14 22};
13 -> {21} [style=dotted];
13 -> {14} [style=dashed];
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
@@ -82,7 +82,7 @@ digraph initBlockAndInPlaceLambda_kt {
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
23 -> {24} [color=green];
24 -> {25};
25 -> {26};
26 -> {27} [color=green];