[FIR] Update CFG dumps according to changed order of visiting class children

This commit is contained in:
Dmitriy Novozhilov
2021-06-21 10:07:03 +03:00
parent 1324e9223f
commit 4225813d79
41 changed files with 1641 additions and 1640 deletions
@@ -5,19 +5,19 @@ digraph annotatedLocalClass_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class Ann" style="filled" fillcolor=red];
1 [label="Exit class Ann" style="filled" fillcolor=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} [color=green];
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=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 [label="Enter class Ann" style="filled" fillcolor=red];
4 [label="Exit class Ann" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
3 -> {4} [color=green];
subgraph cluster_2 {
color=red
@@ -5,17 +5,17 @@ digraph complex_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class AutoCloseable" style="filled" fillcolor=red];
1 [label="Exit class AutoCloseable" style="filled" fillcolor=red];
0 [label="Enter function close" style="filled" fillcolor=red];
1 [label="Exit function close" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function close" style="filled" fillcolor=red];
3 [label="Exit function close" style="filled" fillcolor=red];
2 [label="Enter class AutoCloseable" style="filled" fillcolor=red];
3 [label="Exit class AutoCloseable" style="filled" fillcolor=red];
}
2 -> {3};
2 -> {3} [color=green];
subgraph cluster_2 {
color=red
@@ -5,91 +5,91 @@ digraph initBlock_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class Foo" style="filled" fillcolor=red];
1 [label="Part of class initialization"];
2 [label="Exit class Foo" style="filled" fillcolor=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} [color=green];
1 -> {2} [style=dotted];
1 -> {6} [color=green];
1 -> {6} [style=dashed];
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
5 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
4 [label="Enter block"];
5 [label="Const: Int(1)"];
6 [label="Variable declaration: lval x: R|kotlin/Int|"];
7 [label="Exit block"];
}
8 [label="Exit init block" style="filled" fillcolor=red];
}
3 -> {4};
4 -> {5};
subgraph cluster_2 {
color=red
6 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
7 [label="Enter block"];
8 [label="Const: Int(1)"];
9 [label="Variable declaration: lval x: R|kotlin/Int|"];
10 [label="Exit block"];
}
11 [label="Exit init block" style="filled" fillcolor=red];
}
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {2} [color=green];
8 -> {11} [color=green];
subgraph cluster_3 {
color=red
9 [label="Enter class Foo" style="filled" fillcolor=red];
10 [label="Part of class initialization"];
11 [label="Exit class Foo" style="filled" fillcolor=red];
}
9 -> {10} [color=green];
10 -> {11} [style=dotted];
10 -> {3} [color=green];
10 -> {3} [style=dashed];
subgraph cluster_4 {
color=red
12 [label="Enter class Bar" style="filled" fillcolor=red];
13 [label="Part of class initialization"];
14 [label="Exit class Bar" style="filled" fillcolor=red];
12 [label="Enter function <init>" style="filled" fillcolor=red];
13 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
14 [label="Exit function <init>" style="filled" fillcolor=red];
}
12 -> {13} [color=green];
13 -> {14} [style=dotted];
13 -> {18} [color=green];
13 -> {18} [style=dashed];
12 -> {13};
13 -> {14};
subgraph cluster_5 {
color=red
15 [label="Enter function <init>" style="filled" fillcolor=red];
16 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
17 [label="Exit function <init>" style="filled" fillcolor=red];
15 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
16 [label="Enter block"];
17 [label="Const: Int(1)"];
18 [label="Variable declaration: lval x: R|kotlin/Int|"];
19 [label="Function call: R|java/lang/Exception.Exception|()"];
20 [label="Throw: throw R|java/lang/Exception.Exception|()"];
21 [label="Stub" style="filled" fillcolor=gray];
22 [label="Const: Int(2)" style="filled" fillcolor=gray];
23 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
24 [label="Exit block" style="filled" fillcolor=gray];
}
25 [label="Exit init block" style="filled" fillcolor=red];
}
15 -> {16};
16 -> {17};
subgraph cluster_6 {
color=red
18 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
19 [label="Enter block"];
20 [label="Const: Int(1)"];
21 [label="Variable declaration: lval x: R|kotlin/Int|"];
22 [label="Function call: R|java/lang/Exception.Exception|()"];
23 [label="Throw: throw R|java/lang/Exception.Exception|()"];
24 [label="Stub" style="filled" fillcolor=gray];
25 [label="Const: Int(2)" style="filled" fillcolor=gray];
26 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
27 [label="Exit block" style="filled" fillcolor=gray];
}
28 [label="Exit init block" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {28} [label=onUncaughtException];
20 -> {25} [label=onUncaughtException];
20 -> {21} [style=dotted];
21 -> {22} [style=dotted];
22 -> {23} [style=dotted];
23 -> {24} [style=dotted];
24 -> {25} [style=dotted];
25 -> {26} [style=dotted];
26 -> {27} [style=dotted];
25 -> {28} [color=green];
subgraph cluster_7 {
color=red
26 [label="Enter class Bar" style="filled" fillcolor=red];
27 [label="Part of class initialization"];
28 [label="Exit class Bar" style="filled" fillcolor=red];
}
26 -> {27} [color=green];
27 -> {28} [style=dotted];
28 -> {14} [color=green];
27 -> {15} [color=green];
27 -> {15} [style=dashed];
}
@@ -19,78 +19,78 @@ digraph initBlockAndInPlaceLambda_kt {
subgraph cluster_2 {
color=red
4 [label="Enter class C" style="filled" fillcolor=red];
5 [label="Part of class initialization"];
6 [label="Exit class C" style="filled" fillcolor=red];
4 [label="Enter function <init>" style="filled" fillcolor=red];
5 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
6 [label="Exit function <init>" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
5 -> {6} [style=dotted];
5 -> {10} [color=green];
5 -> {10} [style=dashed];
4 -> {5};
5 -> {6};
subgraph cluster_3 {
color=red
7 [label="Enter function <init>" style="filled" fillcolor=red];
8 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
9 [label="Exit function <init>" style="filled" fillcolor=red];
7 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
8 [label="Enter block"];
9 [label="Access variable R|<local>/a|"];
10 [label="Access variable R|/A.b|"];
11 [label="Enter safe call"];
12 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
20 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
21 [label="Enter block"];
22 [label="Access variable R|<local>/a|"];
23 [label="Access variable R|<local>/it|"];
24 [label="Function call: R|/C.C|(...)"];
25 [label="Exit block"];
}
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
13 [label="Call arguments union" style="filled" fillcolor=yellow];
14 [label="Postponed exit from lambda"];
15 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)"];
16 [label="Exit safe call"];
17 [label="Variable declaration: lval c: R|C?|"];
18 [label="Exit block"];
}
19 [label="Exit init block" style="filled" fillcolor=red];
}
7 -> {8};
8 -> {9};
subgraph cluster_4 {
color=red
10 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
11 [label="Enter block"];
12 [label="Access variable R|<local>/a|"];
13 [label="Access variable R|/A.b|"];
14 [label="Enter safe call"];
15 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
23 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
24 [label="Enter block"];
25 [label="Access variable R|<local>/a|"];
26 [label="Access variable R|<local>/it|"];
27 [label="Function call: R|/C.C|(...)"];
28 [label="Exit block"];
}
29 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
16 [label="Call arguments union" style="filled" fillcolor=yellow];
17 [label="Postponed exit from lambda"];
18 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)"];
19 [label="Exit safe call"];
20 [label="Variable declaration: lval c: R|C?|"];
21 [label="Exit block"];
}
22 [label="Exit init block" style="filled" fillcolor=red];
}
10 -> {11};
9 -> {10};
10 -> {11 16};
11 -> {12};
12 -> {13};
13 -> {14 19};
14 -> {15};
15 -> {23};
15 -> {17} [color=red];
15 -> {23} [style=dashed];
16 -> {18} [color=red];
17 -> {18} [color=green];
12 -> {20};
12 -> {14} [color=red];
12 -> {20} [style=dashed];
13 -> {15} [color=red];
14 -> {15} [color=green];
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
19 -> {29} [color=green];
20 -> {21};
21 -> {22};
22 -> {6} [color=green];
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {16} [color=red];
29 -> {17} [color=green];
26 -> {13} [color=red];
26 -> {14} [color=green];
subgraph cluster_7 {
color=red
27 [label="Enter class C" style="filled" fillcolor=red];
28 [label="Part of class initialization"];
29 [label="Exit class C" style="filled" fillcolor=red];
}
27 -> {28} [color=green];
28 -> {29} [style=dotted];
28 -> {7} [color=green];
28 -> {7} [style=dashed];
}
@@ -14,33 +14,33 @@ digraph innerClassInAnonymousObject_kt {
subgraph cluster_1 {
color=red
3 [label="Enter class Nested" style="filled" fillcolor=red];
4 [label="Exit class Nested" style="filled" fillcolor=red];
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
5 [label="Exit function <init>" style="filled" fillcolor=red];
}
3 -> {4} [color=green];
3 -> {4};
4 -> {5};
subgraph cluster_2 {
color=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];
}
5 -> {6};
6 -> {7};
subgraph cluster_3 {
color=red
8 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_4 {
6 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
9 [label="Enter block"];
10 [label="Exit block"];
7 [label="Enter block"];
8 [label="Exit block"];
}
11 [label="Exit function foo" style="filled" fillcolor=red];
9 [label="Exit function foo" style="filled" fillcolor=red];
}
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
subgraph cluster_4 {
color=red
10 [label="Enter class Nested" style="filled" fillcolor=red];
11 [label="Exit class Nested" style="filled" fillcolor=red];
}
10 -> {11} [color=green];
subgraph cluster_5 {
color=red
@@ -55,7 +55,7 @@ digraph innerClassInAnonymousObject_kt {
13 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
}
14 -> {15};
14 -> {0 5 8} [color=red];
14 -> {0 3 6} [color=red];
15 -> {16};
15 -> {0 12} [color=green];
15 -> {0 12} [style=dashed];
@@ -33,19 +33,19 @@ digraph lambdaReturningObject_kt {
subgraph cluster_4 {
color=red
8 [label="Enter class IrStarProjectionImpl" style="filled" fillcolor=red];
9 [label="Exit class IrStarProjectionImpl" style="filled" fillcolor=red];
8 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
10 [label="Exit function <init>" style="filled" fillcolor=red];
}
8 -> {9} [color=green];
8 -> {9};
9 -> {10};
subgraph cluster_5 {
color=red
10 [label="Enter function <init>" style="filled" fillcolor=red];
11 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
12 [label="Exit function <init>" style="filled" fillcolor=red];
11 [label="Enter class IrStarProjectionImpl" style="filled" fillcolor=red];
12 [label="Exit class IrStarProjectionImpl" style="filled" fillcolor=red];
}
10 -> {11};
11 -> {12};
11 -> {12} [color=green];
subgraph cluster_6 {
color=red
@@ -5,111 +5,111 @@ digraph postponedLambdaInConstructor_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=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} [color=green];
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=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 [label="Enter class A" style="filled" fillcolor=red];
4 [label="Exit class A" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
3 -> {4} [color=green];
subgraph cluster_2 {
color=red
5 [label="Enter class B" style="filled" fillcolor=red];
6 [label="Part of class initialization"];
7 [label="Exit class B" style="filled" fillcolor=red];
}
5 -> {6} [color=green];
6 -> {7} [style=dotted];
6 -> {27} [color=green];
6 -> {27} [style=dashed];
subgraph cluster_3 {
color=red
8 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Access variable R|<local>/s|"];
10 [label="Postponed enter to lambda"];
subgraph cluster_4 {
5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Access variable R|<local>/s|"];
7 [label="Postponed enter to lambda"];
subgraph cluster_3 {
color=blue
16 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_5 {
13 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
17 [label="Enter block"];
18 [label="Postponed enter to lambda"];
subgraph cluster_6 {
14 [label="Enter block"];
15 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
22 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_7 {
19 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|<local>/it|"];
25 [label="Exit block"];
20 [label="Enter block"];
21 [label="Access variable R|<local>/it|"];
22 [label="Exit block"];
}
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
23 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
19 [label="Postponed exit from lambda"];
20 [label="Exit block"];
16 [label="Postponed exit from lambda"];
17 [label="Exit block"];
}
21 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
18 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
11 [label="Postponed exit from lambda"];
12 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)"];
13 [label="Call arguments union" style="filled" fillcolor=yellow];
14 [label="Delegated constructor call: super<R|A|>(...)"];
15 [label="Exit function <init>" style="filled" fillcolor=red];
8 [label="Postponed exit from lambda"];
9 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)"];
10 [label="Call arguments union" style="filled" fillcolor=yellow];
11 [label="Delegated constructor call: super<R|A|>(...)"];
12 [label="Exit function <init>" style="filled" fillcolor=red];
}
5 -> {6};
6 -> {7};
7 -> {13};
7 -> {8} [color=red];
7 -> {13} [style=dashed];
8 -> {9};
9 -> {10};
10 -> {16};
10 -> {11} [color=red];
10 -> {16} [style=dashed];
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16 19};
15 -> {19} [style=dashed];
16 -> {17};
17 -> {18};
18 -> {19 22};
18 -> {22} [style=dashed];
18 -> {10} [color=red];
18 -> {8} [color=green];
19 -> {20};
20 -> {21};
21 -> {13} [color=red];
21 -> {11} [color=green];
21 -> {22};
22 -> {23};
23 -> {24};
subgraph cluster_7 {
color=red
24 [label="Enter property" style="filled" fillcolor=red];
25 [label="Access variable R|<local>/s|"];
26 [label="Exit property" style="filled" fillcolor=red];
}
24 -> {25};
25 -> {26};
26 -> {34} [color=green];
subgraph cluster_8 {
color=red
27 [label="Enter property" style="filled" fillcolor=red];
28 [label="Access variable R|<local>/s|"];
29 [label="Exit property" style="filled" fillcolor=red];
27 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
28 [label="Enter block"];
29 [label="Function call: this@R|/B|.R|/B.foo|()"];
30 [label="Exit block"];
}
31 [label="Exit function foo" style="filled" fillcolor=red];
}
27 -> {28};
28 -> {29};
29 -> {7} [color=green];
subgraph cluster_9 {
color=red
30 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
31 [label="Enter block"];
32 [label="Function call: this@R|/B|.R|/B.foo|()"];
33 [label="Exit block"];
}
34 [label="Exit function foo" style="filled" fillcolor=red];
}
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
subgraph cluster_10 {
color=red
32 [label="Enter class B" style="filled" fillcolor=red];
33 [label="Part of class initialization"];
34 [label="Exit class B" style="filled" fillcolor=red];
}
32 -> {33} [color=green];
33 -> {34} [style=dotted];
33 -> {24} [color=green];
33 -> {24} [style=dashed];
}
@@ -12,35 +12,35 @@ digraph returnValuesFromLambda_kt {
subgraph cluster_1 {
color=red
2 [label="Enter class B" style="filled" fillcolor=red];
3 [label="Exit class B" 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];
}
2 -> {3} [color=green];
2 -> {3};
3 -> {4};
subgraph cluster_2 {
color=red
4 [label="Enter function <init>" style="filled" fillcolor=red];
5 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
6 [label="Exit function <init>" style="filled" fillcolor=red];
5 [label="Enter class B" style="filled" fillcolor=red];
6 [label="Exit class B" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
5 -> {6} [color=green];
subgraph cluster_3 {
color=red
7 [label="Enter class C" style="filled" fillcolor=red];
8 [label="Exit class C" style="filled" fillcolor=red];
7 [label="Enter function <init>" style="filled" fillcolor=red];
8 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
9 [label="Exit function <init>" style="filled" fillcolor=red];
}
7 -> {8} [color=green];
7 -> {8};
8 -> {9};
subgraph cluster_4 {
color=red
9 [label="Enter function <init>" style="filled" fillcolor=red];
10 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
11 [label="Exit function <init>" style="filled" fillcolor=red];
10 [label="Enter class C" style="filled" fillcolor=red];
11 [label="Exit class C" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
10 -> {11} [color=green];
subgraph cluster_5 {
color=red
@@ -5,24 +5,24 @@ digraph safeCalls_kt {
subgraph cluster_0 {
color=red
0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red];
0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
2 [label="Enter function bar" style="filled" fillcolor=red];
3 [label="Exit function bar" style="filled" fillcolor=red];
}
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 A" style="filled" fillcolor=red];
5 [label="Exit class A" style="filled" fillcolor=red];
}
4 -> {5};
4 -> {5} [color=green];
subgraph cluster_3 {
color=red