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
@@ -26,41 +26,41 @@ digraph postponedLambdaInConstructor_kt {
5 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
6 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/s|"];
8 [label="Postponed enter to lambda"];
subgraph cluster_4 {
color=blue
9 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
10 [label="Enter block"];
11 [label="Exit anonymous function expression"];
subgraph cluster_6 {
color=blue
12 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
13 [label="Enter block"];
14 [label="Access variable R|<local>/it|"];
15 [label="Exit block"];
}
16 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
17 [label="Exit block"];
}
18 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
19 [label="Postponed exit from lambda"];
20 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)" style="filled" fillcolor=yellow];
21 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
22 [label="Exit function <init>" style="filled" fillcolor=red];
8 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_8 {
subgraph cluster_4 {
color=blue
23 [label="Enter property" style="filled" fillcolor=red];
24 [label="Access variable R|<local>/s|"];
25 [label="Exit property" style="filled" fillcolor=red];
9 [label="Enter function <init>" style="filled" fillcolor=red];
10 [label="Access variable R|<local>/s|"];
11 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
12 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
13 [label="Enter block"];
14 [label="Exit anonymous function expression"];
subgraph cluster_7 {
color=blue
15 [label="Enter function <anonymous>" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
16 [label="Enter block"];
17 [label="Access variable R|<local>/it|"];
18 [label="Exit block"];
}
19 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
20 [label="Exit block"];
}
21 [label="Exit function <anonymous>" style="filled" fillcolor=red];
}
22 [label="Postponed exit from lambda"];
23 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)" style="filled" fillcolor=yellow];
24 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
25 [label="Exit function <init>" style="filled" fillcolor=red];
}
26 [label="Exit class B" style="filled" fillcolor=red];
}
@@ -77,27 +77,27 @@ digraph postponedLambdaInConstructor_kt {
}
5 -> {6} [color=green];
5 -> {26} [style=dotted];
5 -> {6 23} [style=dashed];
5 -> {6 9} [style=dashed];
6 -> {7};
7 -> {8};
8 -> {9 20};
8 -> {19} [style=dotted];
8 -> {9} [style=dashed];
8 -> {9} [color=green];
9 -> {10};
10 -> {11};
11 -> {12 17};
11 -> {12 23};
11 -> {22} [style=dotted];
11 -> {12} [style=dashed];
12 -> {13};
13 -> {14};
14 -> {15};
14 -> {15 20};
14 -> {15} [style=dashed];
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20} [color=green];
19 -> {21} [color=red];
20 -> {21};
21 -> {22};
22 -> {23} [color=green];
22 -> {24} [color=red];
23 -> {24};
24 -> {25};
25 -> {26} [color=green];