Test: FIR CFA: index nodes in rendering order

This commit is contained in:
pyos
2022-12-11 01:22:45 +01:00
committed by Dmitriy Novozhilov
parent a9397b7b23
commit 54f32a6fba
71 changed files with 6272 additions and 6323 deletions
@@ -17,93 +17,93 @@ digraph inAnonymousObject_kt {
4 [label="Enter anonymous object"];
subgraph cluster_3 {
color=blue
13 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
14 [label="Part of class initialization"];
5 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
6 [label="Part of class initialization"];
subgraph cluster_4 {
color=blue
17 [label="Enter property" style="filled" fillcolor=red];
18 [label="Access variable R|<local>/a|"];
19 [label="Exit property" style="filled" fillcolor=red];
7 [label="Enter property" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/a|"];
9 [label="Exit property" style="filled" fillcolor=red];
}
15 [label="Part of class initialization"];
10 [label="Part of class initialization"];
subgraph cluster_5 {
color=blue
20 [label="Enter init block" style="filled" fillcolor=red];
11 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
21 [label="Enter block"];
22 [label="Access variable R|<local>/b|"];
23 [label="Assignment: R|/<anonymous>.leaked|"];
24 [label="Exit block"];
12 [label="Enter block"];
13 [label="Access variable R|<local>/b|"];
14 [label="Assignment: R|/<anonymous>.leaked|"];
15 [label="Exit block"];
}
25 [label="Exit init block" style="filled" fillcolor=red];
16 [label="Exit init block" style="filled" fillcolor=red];
}
16 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
17 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
}
5 [label="Exit anonymous object"];
6 [label="Exit anonymous object expression"];
7 [label="Variable declaration: lval obj: R|<anonymous>|"];
8 [label="Access variable R|<local>/obj|"];
9 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
10 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
11 [label="Exit block"];
18 [label="Exit anonymous object"];
19 [label="Exit anonymous object expression"];
20 [label="Variable declaration: lval obj: R|<anonymous>|"];
21 [label="Access variable R|<local>/obj|"];
22 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
23 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
24 [label="Exit block"];
}
12 [label="Exit function foo" style="filled" fillcolor=red];
25 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
29 [label="Enter function run" style="filled" fillcolor=red];
26 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
30 [label="Enter block"];
31 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
32 [label="Exit block"];
27 [label="Enter block"];
28 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
29 [label="Exit block"];
}
33 [label="Exit function run" style="filled" fillcolor=red];
30 [label="Exit function run" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
26 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
28 [label="Exit function <init>" style="filled" fillcolor=red];
31 [label="Enter function <init>" style="filled" fillcolor=red];
32 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
33 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {13};
4 -> {5} [color=red];
4 -> {13} [style=dashed];
5 -> {6};
6 -> {7};
4 -> {5};
4 -> {18} [color=red];
4 -> {5} [style=dashed];
5 -> {6} [color=green];
5 -> {7 11 26 31} [color=red];
6 -> {7} [color=green];
6 -> {10} [style=dotted];
6 -> {7} [style=dashed];
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
9 -> {10} [color=green];
10 -> {11} [color=green];
10 -> {17} [style=dotted];
10 -> {11} [style=dashed];
11 -> {12};
13 -> {14} [color=green];
13 -> {17 20 26 29} [color=red];
14 -> {17} [color=green];
14 -> {15} [style=dotted];
14 -> {17} [style=dashed];
15 -> {20} [color=green];
15 -> {16} [style=dotted];
15 -> {20} [style=dashed];
16 -> {5 26 29} [color=green];
16 -> {26 29} [style=dashed];
17 -> {18};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17} [color=green];
17 -> {18 26 31} [color=green];
17 -> {26 31} [style=dashed];
18 -> {19};
19 -> {15} [color=green];
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {16} [color=green];
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
@@ -28,47 +28,47 @@ digraph inLocalClass_kt {
11 [label="Part of class initialization"];
subgraph cluster_4 {
color=blue
14 [label="Enter property" style="filled" fillcolor=red];
15 [label="Access variable R|<local>/a|"];
16 [label="Exit property" style="filled" fillcolor=red];
12 [label="Enter property" style="filled" fillcolor=red];
13 [label="Access variable R|<local>/a|"];
14 [label="Exit property" style="filled" fillcolor=red];
}
12 [label="Part of class initialization"];
15 [label="Part of class initialization"];
subgraph cluster_5 {
color=blue
17 [label="Enter init block" style="filled" fillcolor=red];
16 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
18 [label="Enter block"];
19 [label="Access variable R|<local>/c|"];
20 [label="Assignment: R|<local>/leaked|"];
21 [label="Exit block"];
17 [label="Enter block"];
18 [label="Access variable R|<local>/c|"];
19 [label="Assignment: R|<local>/leaked|"];
20 [label="Exit block"];
}
22 [label="Exit init block" style="filled" fillcolor=red];
21 [label="Exit init block" style="filled" fillcolor=red];
}
13 [label="Exit class LocalClass" style="filled" fillcolor=red];
22 [label="Exit class LocalClass" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
29 [label="Enter function run" style="filled" fillcolor=red];
23 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
30 [label="Enter block"];
31 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
32 [label="Exit block"];
24 [label="Enter block"];
25 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
26 [label="Exit block"];
}
33 [label="Exit function run" style="filled" fillcolor=red];
27 [label="Exit function run" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
23 [label="Enter function <init>" style="filled" fillcolor=red];
24 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
28 [label="Enter function <init>" style="filled" fillcolor=red];
29 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
subgraph cluster_10 {
color=blue
25 [label="Enter block"];
26 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
27 [label="Exit block"];
30 [label="Enter block"];
31 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
32 [label="Exit block"];
}
28 [label="Exit function <init>" style="filled" fillcolor=red];
33 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
@@ -81,29 +81,29 @@ digraph inLocalClass_kt {
7 -> {8};
8 -> {9};
10 -> {11} [color=green];
10 -> {14 17 23 29} [color=red];
11 -> {14} [color=green];
11 -> {12} [style=dotted];
11 -> {14} [style=dashed];
12 -> {17} [color=green];
12 -> {13} [style=dotted];
12 -> {17} [style=dashed];
13 -> {23 29} [color=green];
13 -> {23 29} [style=dashed];
14 -> {15};
15 -> {16};
16 -> {12} [color=green];
10 -> {12 16 23 28} [color=red];
11 -> {12} [color=green];
11 -> {15} [style=dotted];
11 -> {12} [style=dashed];
12 -> {13};
13 -> {14};
14 -> {15} [color=green];
15 -> {16} [color=green];
15 -> {22} [style=dotted];
15 -> {16} [style=dashed];
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {13} [color=green];
21 -> {22} [color=green];
22 -> {23 28} [color=green];
22 -> {23 28} [style=dashed];
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};