[FIR] Create CFG for files to track top-level property initialization
In order to properly analyze top-level property initialization, a control-flow graph must be created for FirFiles. This change adds the foundation for the file CFG and updates body resolve to create the CFG. Checking the CFG for proper initialization is separated into a following change to ease code review. KT-56683
This commit is contained in:
Vendored
+260
-253
@@ -5,386 +5,391 @@ digraph singleReturnFromTry_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()" style="filled" fillcolor=yellow];
|
||||
3 [label="Jump: ^myRun R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()"];
|
||||
4 [label="Stub" style="filled" fillcolor=gray];
|
||||
5 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
6 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
0 [label="Enter file singleReturnFromTry.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file singleReturnFromTry.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {6};
|
||||
3 -> {4} [style=dotted];
|
||||
4 -> {5} [style=dotted];
|
||||
5 -> {6} [style=dotted];
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_2 {
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
7 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_3 {
|
||||
2 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
8 [label="Enter block"];
|
||||
9 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
10 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
11 [label="Enter block"];
|
||||
12 [label="Const: Int(2)"];
|
||||
13 [label="Jump: ^test_1 Int(2)"];
|
||||
14 [label="Stub" style="filled" fillcolor=gray];
|
||||
15 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
16 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
|
||||
}
|
||||
17 [label="Postponed exit from lambda"];
|
||||
18 [label="Function call: R|/myRun|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=yellow];
|
||||
19 [label="Stub" style="filled" fillcolor=gray];
|
||||
20 [label="Exit block" style="filled" fillcolor=gray];
|
||||
3 [label="Enter block"];
|
||||
4 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()" style="filled" fillcolor=yellow];
|
||||
5 [label="Jump: ^myRun R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()"];
|
||||
6 [label="Stub" style="filled" fillcolor=gray];
|
||||
7 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
21 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
8 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
9 -> {10 17 18};
|
||||
9 -> {10} [style=dashed];
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {8};
|
||||
5 -> {6} [style=dotted];
|
||||
6 -> {7} [style=dotted];
|
||||
7 -> {8} [style=dotted];
|
||||
|
||||
subgraph cluster_3 {
|
||||
color=red
|
||||
9 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
10 [label="Enter block"];
|
||||
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="Const: Int(2)"];
|
||||
15 [label="Jump: ^test_1 Int(2)"];
|
||||
16 [label="Stub" style="filled" fillcolor=gray];
|
||||
17 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
18 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
|
||||
}
|
||||
19 [label="Postponed exit from lambda"];
|
||||
20 [label="Function call: R|/myRun|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=yellow];
|
||||
21 [label="Stub" style="filled" fillcolor=gray];
|
||||
22 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
23 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
11 -> {12 19 20};
|
||||
11 -> {12} [style=dashed];
|
||||
12 -> {13};
|
||||
13 -> {21};
|
||||
13 -> {14} [style=dotted];
|
||||
14 -> {15} [style=dotted];
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {23};
|
||||
15 -> {16} [style=dotted];
|
||||
16 -> {17} [style=dotted];
|
||||
17 -> {18};
|
||||
17 -> {9} [color=green style=dashed];
|
||||
17 -> {18} [style=dotted];
|
||||
18 -> {19} [style=dotted];
|
||||
19 -> {20} [style=dotted];
|
||||
19 -> {20};
|
||||
19 -> {11} [color=green style=dashed];
|
||||
20 -> {21} [style=dotted];
|
||||
21 -> {22} [style=dotted];
|
||||
22 -> {23} [style=dotted];
|
||||
|
||||
subgraph cluster_6 {
|
||||
subgraph cluster_7 {
|
||||
color=red
|
||||
22 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
24 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
23 [label="Enter block"];
|
||||
subgraph cluster_8 {
|
||||
25 [label="Enter block"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
24 [label="Try expression enter"];
|
||||
subgraph cluster_9 {
|
||||
26 [label="Try expression enter"];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
25 [label="Try main block enter"];
|
||||
subgraph cluster_10 {
|
||||
27 [label="Try main block enter"];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
26 [label="Enter block"];
|
||||
27 [label="Const: Int(2)"];
|
||||
28 [label="Jump: ^test_2 Int(2)"];
|
||||
29 [label="Stub" style="filled" fillcolor=gray];
|
||||
30 [label="Exit block" style="filled" fillcolor=gray];
|
||||
28 [label="Enter block"];
|
||||
29 [label="Const: Int(2)"];
|
||||
30 [label="Jump: ^test_2 Int(2)"];
|
||||
31 [label="Stub" style="filled" fillcolor=gray];
|
||||
32 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
31 [label="Try main block exit" style="filled" fillcolor=gray];
|
||||
33 [label="Try main block exit" style="filled" fillcolor=gray];
|
||||
}
|
||||
subgraph cluster_11 {
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
32 [label="Enter finally"];
|
||||
subgraph cluster_12 {
|
||||
34 [label="Enter finally"];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
33 [label="Enter block"];
|
||||
34 [label="Exit block"];
|
||||
35 [label="Enter block"];
|
||||
36 [label="Exit block"];
|
||||
}
|
||||
35 [label="Exit finally"];
|
||||
37 [label="Exit finally"];
|
||||
}
|
||||
36 [label="Try expression exit" style="filled" fillcolor=gray];
|
||||
38 [label="Try expression exit" style="filled" fillcolor=gray];
|
||||
}
|
||||
37 [label="Exit block" style="filled" fillcolor=gray];
|
||||
39 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
38 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
40 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
24 -> {32} [label="onUncaughtException"];
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
26 -> {34} [label="onUncaughtException"];
|
||||
27 -> {28};
|
||||
28 -> {32} [label="return@/test_2"];
|
||||
28 -> {29} [style=dotted];
|
||||
29 -> {30} [style=dotted];
|
||||
28 -> {29};
|
||||
29 -> {30};
|
||||
30 -> {34} [label="return@/test_2"];
|
||||
30 -> {31} [style=dotted];
|
||||
31 -> {32} [style=dotted];
|
||||
32 -> {33};
|
||||
33 -> {34};
|
||||
32 -> {33} [style=dotted];
|
||||
33 -> {34} [style=dotted];
|
||||
34 -> {35};
|
||||
35 -> {38} [label="return@/test_2"];
|
||||
35 -> {36} [style=dotted];
|
||||
36 -> {37} [style=dotted];
|
||||
35 -> {36};
|
||||
36 -> {37};
|
||||
37 -> {40} [label="return@/test_2"];
|
||||
37 -> {38} [style=dotted];
|
||||
38 -> {39} [style=dotted];
|
||||
39 -> {40} [style=dotted];
|
||||
|
||||
subgraph cluster_13 {
|
||||
subgraph cluster_14 {
|
||||
color=red
|
||||
39 [label="Enter function test_3" style="filled" fillcolor=red];
|
||||
subgraph cluster_14 {
|
||||
41 [label="Enter function test_3" style="filled" fillcolor=red];
|
||||
subgraph cluster_15 {
|
||||
color=blue
|
||||
40 [label="Enter block"];
|
||||
subgraph cluster_15 {
|
||||
42 [label="Enter block"];
|
||||
subgraph cluster_16 {
|
||||
color=blue
|
||||
41 [label="Try expression enter"];
|
||||
subgraph cluster_16 {
|
||||
43 [label="Try expression enter"];
|
||||
subgraph cluster_17 {
|
||||
color=blue
|
||||
42 [label="Try main block enter"];
|
||||
subgraph cluster_17 {
|
||||
44 [label="Try main block enter"];
|
||||
subgraph cluster_18 {
|
||||
color=blue
|
||||
43 [label="Enter block"];
|
||||
44 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_18 {
|
||||
45 [label="Enter block"];
|
||||
46 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_19 {
|
||||
color=blue
|
||||
45 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_19 {
|
||||
47 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_20 {
|
||||
color=blue
|
||||
46 [label="Enter block"];
|
||||
47 [label="Const: Int(2)"];
|
||||
48 [label="Jump: ^test_3 Int(2)"];
|
||||
49 [label="Stub" style="filled" fillcolor=gray];
|
||||
50 [label="Exit block" style="filled" fillcolor=gray];
|
||||
48 [label="Enter block"];
|
||||
49 [label="Const: Int(2)"];
|
||||
50 [label="Jump: ^test_3 Int(2)"];
|
||||
51 [label="Stub" style="filled" fillcolor=gray];
|
||||
52 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
51 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
|
||||
53 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
|
||||
}
|
||||
52 [label="Postponed exit from lambda"];
|
||||
53 [label="Function call: R|/myRun|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=yellow];
|
||||
54 [label="Stub" style="filled" fillcolor=gray];
|
||||
55 [label="Exit block" style="filled" fillcolor=gray];
|
||||
54 [label="Postponed exit from lambda"];
|
||||
55 [label="Function call: R|/myRun|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=yellow];
|
||||
56 [label="Stub" style="filled" fillcolor=gray];
|
||||
57 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
56 [label="Try main block exit" style="filled" fillcolor=gray];
|
||||
58 [label="Try main block exit" style="filled" fillcolor=gray];
|
||||
}
|
||||
subgraph cluster_20 {
|
||||
subgraph cluster_21 {
|
||||
color=blue
|
||||
57 [label="Enter finally"];
|
||||
subgraph cluster_21 {
|
||||
59 [label="Enter finally"];
|
||||
subgraph cluster_22 {
|
||||
color=blue
|
||||
58 [label="Enter block"];
|
||||
59 [label="Exit block"];
|
||||
60 [label="Enter block"];
|
||||
61 [label="Exit block"];
|
||||
}
|
||||
60 [label="Exit finally"];
|
||||
62 [label="Exit finally"];
|
||||
}
|
||||
61 [label="Try expression exit" style="filled" fillcolor=gray];
|
||||
63 [label="Try expression exit" style="filled" fillcolor=gray];
|
||||
}
|
||||
62 [label="Exit block" style="filled" fillcolor=gray];
|
||||
64 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
63 [label="Exit function test_3" style="filled" fillcolor=red];
|
||||
65 [label="Exit function test_3" style="filled" fillcolor=red];
|
||||
}
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
41 -> {42};
|
||||
41 -> {57} [label="onUncaughtException"];
|
||||
42 -> {43};
|
||||
43 -> {44};
|
||||
44 -> {45 52 53};
|
||||
44 -> {45} [style=dashed];
|
||||
43 -> {59} [label="onUncaughtException"];
|
||||
44 -> {45};
|
||||
45 -> {46};
|
||||
46 -> {47};
|
||||
46 -> {47 54 55};
|
||||
46 -> {47} [style=dashed];
|
||||
47 -> {48};
|
||||
48 -> {57} [label="return@/test_3"];
|
||||
48 -> {49} [style=dotted];
|
||||
49 -> {50} [style=dotted];
|
||||
48 -> {49};
|
||||
49 -> {50};
|
||||
50 -> {59} [label="return@/test_3"];
|
||||
50 -> {51} [style=dotted];
|
||||
51 -> {52} [style=dotted];
|
||||
52 -> {44} [color=green style=dashed];
|
||||
52 -> {53} [color=green];
|
||||
52 -> {61} [style=dotted];
|
||||
52 -> {53} [style=dotted];
|
||||
53 -> {54} [style=dotted];
|
||||
54 -> {57} [style=dotted label="onUncaughtException"];
|
||||
54 -> {55} [style=dotted];
|
||||
54 -> {46} [color=green style=dashed];
|
||||
54 -> {55} [color=green];
|
||||
54 -> {63} [style=dotted];
|
||||
55 -> {56} [style=dotted];
|
||||
56 -> {59} [style=dotted label="onUncaughtException"];
|
||||
56 -> {57} [style=dotted];
|
||||
57 -> {58};
|
||||
58 -> {59};
|
||||
57 -> {58} [style=dotted];
|
||||
58 -> {59} [style=dotted];
|
||||
59 -> {60};
|
||||
60 -> {63} [label="return@/test_3"];
|
||||
60 -> {61} [style=dotted];
|
||||
61 -> {62} [style=dotted];
|
||||
60 -> {61};
|
||||
61 -> {62};
|
||||
62 -> {65} [label="return@/test_3"];
|
||||
62 -> {63} [style=dotted];
|
||||
63 -> {64} [style=dotted];
|
||||
64 -> {65} [style=dotted];
|
||||
|
||||
subgraph cluster_22 {
|
||||
subgraph cluster_23 {
|
||||
color=red
|
||||
64 [label="Enter function test_4" style="filled" fillcolor=red];
|
||||
subgraph cluster_23 {
|
||||
66 [label="Enter function test_4" style="filled" fillcolor=red];
|
||||
subgraph cluster_24 {
|
||||
color=blue
|
||||
65 [label="Enter block"];
|
||||
66 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_24 {
|
||||
67 [label="Enter block"];
|
||||
68 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_25 {
|
||||
color=blue
|
||||
67 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_25 {
|
||||
69 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_26 {
|
||||
color=blue
|
||||
68 [label="Enter block"];
|
||||
subgraph cluster_26 {
|
||||
70 [label="Enter block"];
|
||||
subgraph cluster_27 {
|
||||
color=blue
|
||||
69 [label="Try expression enter"];
|
||||
subgraph cluster_27 {
|
||||
71 [label="Try expression enter"];
|
||||
subgraph cluster_28 {
|
||||
color=blue
|
||||
70 [label="Try main block enter"];
|
||||
subgraph cluster_28 {
|
||||
72 [label="Try main block enter"];
|
||||
subgraph cluster_29 {
|
||||
color=blue
|
||||
71 [label="Enter block"];
|
||||
72 [label="Const: Int(2)"];
|
||||
73 [label="Jump: ^test_4 Int(2)"];
|
||||
74 [label="Stub" style="filled" fillcolor=gray];
|
||||
75 [label="Exit block" style="filled" fillcolor=gray];
|
||||
73 [label="Enter block"];
|
||||
74 [label="Const: Int(2)"];
|
||||
75 [label="Jump: ^test_4 Int(2)"];
|
||||
76 [label="Stub" style="filled" fillcolor=gray];
|
||||
77 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
76 [label="Try main block exit" style="filled" fillcolor=gray];
|
||||
78 [label="Try main block exit" style="filled" fillcolor=gray];
|
||||
}
|
||||
subgraph cluster_29 {
|
||||
subgraph cluster_30 {
|
||||
color=blue
|
||||
77 [label="Enter finally"];
|
||||
subgraph cluster_30 {
|
||||
79 [label="Enter finally"];
|
||||
subgraph cluster_31 {
|
||||
color=blue
|
||||
78 [label="Enter block"];
|
||||
79 [label="Exit block"];
|
||||
80 [label="Enter block"];
|
||||
81 [label="Exit block"];
|
||||
}
|
||||
80 [label="Exit finally"];
|
||||
82 [label="Exit finally"];
|
||||
}
|
||||
81 [label="Try expression exit" style="filled" fillcolor=gray];
|
||||
83 [label="Try expression exit" style="filled" fillcolor=gray];
|
||||
}
|
||||
82 [label="Exit block" style="filled" fillcolor=gray];
|
||||
84 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
83 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
|
||||
85 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
|
||||
}
|
||||
84 [label="Postponed exit from lambda"];
|
||||
85 [label="Function call: R|/myRun|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=yellow];
|
||||
86 [label="Stub" style="filled" fillcolor=gray];
|
||||
87 [label="Exit block" style="filled" fillcolor=gray];
|
||||
86 [label="Postponed exit from lambda"];
|
||||
87 [label="Function call: R|/myRun|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=yellow];
|
||||
88 [label="Stub" style="filled" fillcolor=gray];
|
||||
89 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
88 [label="Exit function test_4" style="filled" fillcolor=red];
|
||||
90 [label="Exit function test_4" style="filled" fillcolor=red];
|
||||
}
|
||||
64 -> {65};
|
||||
65 -> {66};
|
||||
66 -> {67 84 85};
|
||||
66 -> {67} [style=dashed];
|
||||
66 -> {67};
|
||||
67 -> {68};
|
||||
68 -> {69};
|
||||
68 -> {69 86 87};
|
||||
68 -> {69} [style=dashed];
|
||||
69 -> {70};
|
||||
69 -> {77} [label="onUncaughtException"];
|
||||
70 -> {71};
|
||||
71 -> {72};
|
||||
71 -> {79} [label="onUncaughtException"];
|
||||
72 -> {73};
|
||||
73 -> {77} [label="return@/test_4"];
|
||||
73 -> {74} [style=dotted];
|
||||
74 -> {75} [style=dotted];
|
||||
73 -> {74};
|
||||
74 -> {75};
|
||||
75 -> {79} [label="return@/test_4"];
|
||||
75 -> {76} [style=dotted];
|
||||
76 -> {77} [style=dotted];
|
||||
77 -> {78};
|
||||
78 -> {79};
|
||||
77 -> {78} [style=dotted];
|
||||
78 -> {79} [style=dotted];
|
||||
79 -> {80};
|
||||
80 -> {88} [label="return@/test_4"];
|
||||
80 -> {81} [style=dotted];
|
||||
81 -> {82} [style=dotted];
|
||||
80 -> {81};
|
||||
81 -> {82};
|
||||
82 -> {90} [label="return@/test_4"];
|
||||
82 -> {83} [style=dotted];
|
||||
83 -> {84} [style=dotted];
|
||||
84 -> {85};
|
||||
84 -> {66} [color=green style=dashed];
|
||||
84 -> {85} [style=dotted];
|
||||
85 -> {86} [style=dotted];
|
||||
86 -> {87} [style=dotted];
|
||||
86 -> {87};
|
||||
86 -> {68} [color=green style=dashed];
|
||||
87 -> {88} [style=dotted];
|
||||
88 -> {89} [style=dotted];
|
||||
89 -> {90} [style=dotted];
|
||||
|
||||
subgraph cluster_31 {
|
||||
subgraph cluster_32 {
|
||||
color=red
|
||||
89 [label="Enter function test_5" style="filled" fillcolor=red];
|
||||
subgraph cluster_32 {
|
||||
91 [label="Enter function test_5" style="filled" fillcolor=red];
|
||||
subgraph cluster_33 {
|
||||
color=blue
|
||||
90 [label="Enter block"];
|
||||
subgraph cluster_33 {
|
||||
92 [label="Enter block"];
|
||||
subgraph cluster_34 {
|
||||
color=blue
|
||||
91 [label="Try expression enter"];
|
||||
subgraph cluster_34 {
|
||||
93 [label="Try expression enter"];
|
||||
subgraph cluster_35 {
|
||||
color=blue
|
||||
92 [label="Try main block enter"];
|
||||
subgraph cluster_35 {
|
||||
94 [label="Try main block enter"];
|
||||
subgraph cluster_36 {
|
||||
color=blue
|
||||
93 [label="Enter block"];
|
||||
94 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_36 {
|
||||
95 [label="Enter block"];
|
||||
96 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_37 {
|
||||
color=blue
|
||||
95 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_37 {
|
||||
97 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_38 {
|
||||
color=blue
|
||||
96 [label="Enter block"];
|
||||
97 [label="Const: Int(2)"];
|
||||
98 [label="Jump: ^test_5 Int(2)"];
|
||||
99 [label="Stub" style="filled" fillcolor=gray];
|
||||
100 [label="Exit block" style="filled" fillcolor=gray];
|
||||
98 [label="Enter block"];
|
||||
99 [label="Const: Int(2)"];
|
||||
100 [label="Jump: ^test_5 Int(2)"];
|
||||
101 [label="Stub" style="filled" fillcolor=gray];
|
||||
102 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
101 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
|
||||
103 [label="Exit function <anonymous>" style="filled" fillcolor=gray];
|
||||
}
|
||||
102 [label="Postponed exit from lambda"];
|
||||
103 [label="Function call: R|/myRun|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=yellow];
|
||||
104 [label="Stub" style="filled" fillcolor=gray];
|
||||
105 [label="Exit block" style="filled" fillcolor=gray];
|
||||
104 [label="Postponed exit from lambda"];
|
||||
105 [label="Function call: R|/myRun|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=yellow];
|
||||
106 [label="Stub" style="filled" fillcolor=gray];
|
||||
107 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
106 [label="Try main block exit" style="filled" fillcolor=gray];
|
||||
108 [label="Try main block exit" style="filled" fillcolor=gray];
|
||||
}
|
||||
subgraph cluster_38 {
|
||||
subgraph cluster_39 {
|
||||
color=blue
|
||||
107 [label="Catch enter"];
|
||||
108 [label="Variable declaration: e: R|kotlin/Exception|"];
|
||||
subgraph cluster_39 {
|
||||
109 [label="Catch enter"];
|
||||
110 [label="Variable declaration: e: R|kotlin/Exception|"];
|
||||
subgraph cluster_40 {
|
||||
color=blue
|
||||
109 [label="Enter block"];
|
||||
110 [label="Const: String(hello)"];
|
||||
111 [label="Exit block"];
|
||||
111 [label="Enter block"];
|
||||
112 [label="Const: String(hello)"];
|
||||
113 [label="Exit block"];
|
||||
}
|
||||
112 [label="Catch exit"];
|
||||
114 [label="Catch exit"];
|
||||
}
|
||||
subgraph cluster_40 {
|
||||
subgraph cluster_41 {
|
||||
color=blue
|
||||
113 [label="Enter finally"];
|
||||
subgraph cluster_41 {
|
||||
115 [label="Enter finally"];
|
||||
subgraph cluster_42 {
|
||||
color=blue
|
||||
114 [label="Enter block"];
|
||||
115 [label="Exit block"];
|
||||
116 [label="Enter block"];
|
||||
117 [label="Exit block"];
|
||||
}
|
||||
116 [label="Exit finally"];
|
||||
118 [label="Exit finally"];
|
||||
}
|
||||
117 [label="Try expression exit"];
|
||||
119 [label="Try expression exit"];
|
||||
}
|
||||
118 [label="Exit block"];
|
||||
120 [label="Exit block"];
|
||||
}
|
||||
119 [label="Exit function test_5" style="filled" fillcolor=red];
|
||||
121 [label="Exit function test_5" style="filled" fillcolor=red];
|
||||
}
|
||||
89 -> {90};
|
||||
90 -> {91};
|
||||
91 -> {92 107};
|
||||
91 -> {113} [label="onUncaughtException"];
|
||||
91 -> {92};
|
||||
92 -> {93};
|
||||
93 -> {94};
|
||||
94 -> {95 102 103};
|
||||
94 -> {95} [style=dashed];
|
||||
93 -> {94 109};
|
||||
93 -> {115} [label="onUncaughtException"];
|
||||
94 -> {95};
|
||||
95 -> {96};
|
||||
96 -> {97};
|
||||
96 -> {97 104 105};
|
||||
96 -> {97} [style=dashed];
|
||||
97 -> {98};
|
||||
98 -> {113} [label="return@/test_5"];
|
||||
98 -> {99} [style=dotted];
|
||||
99 -> {100} [style=dotted];
|
||||
98 -> {99};
|
||||
99 -> {100};
|
||||
100 -> {115} [label="return@/test_5"];
|
||||
100 -> {101} [style=dotted];
|
||||
101 -> {102} [style=dotted];
|
||||
102 -> {94} [color=green style=dashed];
|
||||
102 -> {103} [color=green];
|
||||
102 -> {117} [color=red];
|
||||
102 -> {103} [style=dotted];
|
||||
103 -> {104} [style=dotted];
|
||||
104 -> {113} [style=dotted label="onUncaughtException"];
|
||||
104 -> {105 107} [style=dotted];
|
||||
104 -> {96} [color=green style=dashed];
|
||||
104 -> {105} [color=green];
|
||||
104 -> {119} [color=red];
|
||||
105 -> {106} [style=dotted];
|
||||
106 -> {107 113} [style=dotted];
|
||||
107 -> {108};
|
||||
107 -> {113} [label="onUncaughtException"];
|
||||
108 -> {109};
|
||||
106 -> {115} [style=dotted label="onUncaughtException"];
|
||||
106 -> {107 109} [style=dotted];
|
||||
107 -> {108} [style=dotted];
|
||||
108 -> {109 115} [style=dotted];
|
||||
109 -> {110};
|
||||
109 -> {115} [label="onUncaughtException"];
|
||||
110 -> {111};
|
||||
111 -> {112};
|
||||
112 -> {113};
|
||||
@@ -392,8 +397,10 @@ digraph singleReturnFromTry_kt {
|
||||
114 -> {115};
|
||||
115 -> {116};
|
||||
116 -> {117};
|
||||
116 -> {119} [label="return@/test_5"];
|
||||
117 -> {118};
|
||||
118 -> {119};
|
||||
118 -> {121} [label="return@/test_5"];
|
||||
119 -> {120};
|
||||
120 -> {121};
|
||||
|
||||
}
|
||||
|
||||
+134
-127
@@ -5,155 +5,160 @@ digraph delegatedConstructorArguments_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter class Test" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
2 [label="Access variable R|<local>/set|"];
|
||||
3 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
4 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
5 [label="Enter block"];
|
||||
6 [label="Access variable R|<local>/it|"];
|
||||
7 [label="Exit block"];
|
||||
}
|
||||
8 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
9 [label="Postponed exit from lambda"];
|
||||
10 [label="Function call: R|<local>/set|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
||||
11 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
12 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
13 [label="Access variable R|<local>/map|"];
|
||||
14 [label="Access variable R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|"];
|
||||
15 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
16 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
17 [label="Enter block"];
|
||||
18 [label="Access variable R|<local>/it|"];
|
||||
19 [label="Exit block"];
|
||||
}
|
||||
20 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
21 [label="Postponed exit from lambda"];
|
||||
22 [label="Function call: R|<local>/map|.R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
||||
23 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
24 [label="Enter init block" style="filled" fillcolor=red];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
25 [label="Enter block"];
|
||||
26 [label="Access variable this@R|/Test|"];
|
||||
27 [label="Const: Int(0)"];
|
||||
28 [label="Assignment: R|/Test.size|"];
|
||||
29 [label="Exit block"];
|
||||
}
|
||||
30 [label="Exit init block" style="filled" fillcolor=red];
|
||||
}
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
31 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
32 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
33 [label="Enter block"];
|
||||
34 [label="Access variable this@R|/Test|"];
|
||||
35 [label="Access variable R|<local>/list|"];
|
||||
36 [label="Assignment: R|/Test.values|"];
|
||||
37 [label="Exit block"];
|
||||
}
|
||||
38 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
}
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
39 [label="Enter block"];
|
||||
40 [label="Access variable this@R|/Test|"];
|
||||
41 [label="Access variable R|/Test.size|"];
|
||||
42 [label="Access variable this@R|/Test|"];
|
||||
43 [label="Access variable R|/Test.values|"];
|
||||
44 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
|
||||
45 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
|
||||
46 [label="Assignment: R|/Test.size|"];
|
||||
47 [label="Exit block"];
|
||||
}
|
||||
48 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
}
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
49 [label="Enter block"];
|
||||
50 [label="Access variable this@R|/Test|"];
|
||||
51 [label="Access variable R|/Test.size|"];
|
||||
52 [label="Access variable this@R|/Test|"];
|
||||
53 [label="Access variable R|/Test.values|"];
|
||||
54 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
|
||||
55 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
|
||||
56 [label="Assignment: R|/Test.size|"];
|
||||
57 [label="Exit block"];
|
||||
}
|
||||
58 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
}
|
||||
59 [label="Exit class Test" style="filled" fillcolor=red];
|
||||
0 [label="Enter file delegatedConstructorArguments.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file delegatedConstructorArguments.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1 12 24} [color=green];
|
||||
0 -> {59} [style=dotted];
|
||||
0 -> {1 12 24 31} [style=dashed];
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4 9 10};
|
||||
3 -> {4} [style=dashed];
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter class Test" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
3 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
4 [label="Access variable R|<local>/set|"];
|
||||
5 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
6 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
7 [label="Enter block"];
|
||||
8 [label="Access variable R|<local>/it|"];
|
||||
9 [label="Exit block"];
|
||||
}
|
||||
10 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
11 [label="Postponed exit from lambda"];
|
||||
12 [label="Function call: R|<local>/set|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
||||
13 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
14 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
15 [label="Access variable R|<local>/map|"];
|
||||
16 [label="Access variable R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|"];
|
||||
17 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
18 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
19 [label="Enter block"];
|
||||
20 [label="Access variable R|<local>/it|"];
|
||||
21 [label="Exit block"];
|
||||
}
|
||||
22 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
23 [label="Postponed exit from lambda"];
|
||||
24 [label="Function call: R|<local>/map|.R|SubstitutionOverride<kotlin/collections/Map.values: R|kotlin/collections/Collection<kotlin/String>|>|.R|kotlin/collections/map|<R|kotlin/String|, R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
||||
25 [label="Delegated constructor call: this<R|Test|>(...)" style="filled" fillcolor=yellow];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
26 [label="Enter init block" style="filled" fillcolor=red];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
27 [label="Enter block"];
|
||||
28 [label="Access variable this@R|/Test|"];
|
||||
29 [label="Const: Int(0)"];
|
||||
30 [label="Assignment: R|/Test.size|"];
|
||||
31 [label="Exit block"];
|
||||
}
|
||||
32 [label="Exit init block" style="filled" fillcolor=red];
|
||||
}
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
33 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
34 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
35 [label="Enter block"];
|
||||
36 [label="Access variable this@R|/Test|"];
|
||||
37 [label="Access variable R|<local>/list|"];
|
||||
38 [label="Assignment: R|/Test.values|"];
|
||||
39 [label="Exit block"];
|
||||
}
|
||||
40 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
}
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
41 [label="Enter block"];
|
||||
42 [label="Access variable this@R|/Test|"];
|
||||
43 [label="Access variable R|/Test.size|"];
|
||||
44 [label="Access variable this@R|/Test|"];
|
||||
45 [label="Access variable R|/Test.values|"];
|
||||
46 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
|
||||
47 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
|
||||
48 [label="Assignment: R|/Test.size|"];
|
||||
49 [label="Exit block"];
|
||||
}
|
||||
50 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
}
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
51 [label="Enter block"];
|
||||
52 [label="Access variable this@R|/Test|"];
|
||||
53 [label="Access variable R|/Test.size|"];
|
||||
54 [label="Access variable this@R|/Test|"];
|
||||
55 [label="Access variable R|/Test.values|"];
|
||||
56 [label="Access variable R|SubstitutionOverride<kotlin/collections/List.size: R|kotlin/Int|>|"];
|
||||
57 [label="Function call: this@R|/Test|.R|/Test.size|.R|kotlin/Int.plus|(...)" style="filled" fillcolor=yellow];
|
||||
58 [label="Assignment: R|/Test.size|"];
|
||||
59 [label="Exit block"];
|
||||
}
|
||||
60 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
}
|
||||
61 [label="Exit class Test" style="filled" fillcolor=red];
|
||||
}
|
||||
2 -> {3 14 26} [color=green];
|
||||
2 -> {61} [style=dotted];
|
||||
2 -> {3 14 26 33} [style=dashed];
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
5 -> {6 11 12};
|
||||
5 -> {6} [style=dashed];
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
9 -> {3} [color=green style=dashed];
|
||||
9 -> {10} [color=green];
|
||||
9 -> {11} [color=red];
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {24} [color=green label="return@/Test.Test"];
|
||||
11 -> {39} [color=red];
|
||||
11 -> {5} [color=green style=dashed];
|
||||
11 -> {12} [color=green];
|
||||
11 -> {13} [color=red];
|
||||
12 -> {13};
|
||||
13 -> {14};
|
||||
13 -> {26} [color=green label="return@/Test.Test"];
|
||||
13 -> {41} [color=red];
|
||||
14 -> {15};
|
||||
15 -> {16 21 22};
|
||||
15 -> {16} [style=dashed];
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
17 -> {18};
|
||||
17 -> {18 23 24};
|
||||
17 -> {18} [style=dashed];
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
21 -> {15} [color=green style=dashed];
|
||||
21 -> {22} [color=green];
|
||||
21 -> {23} [color=red];
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24} [color=green label="return@/Test.Test"];
|
||||
23 -> {49} [color=red];
|
||||
23 -> {17} [color=green style=dashed];
|
||||
23 -> {24} [color=green];
|
||||
23 -> {25} [color=red];
|
||||
24 -> {25};
|
||||
25 -> {26};
|
||||
25 -> {26} [color=green label="return@/Test.Test"];
|
||||
25 -> {51} [color=red];
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {30};
|
||||
30 -> {31} [color=green];
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
32 -> {33};
|
||||
32 -> {33} [color=green];
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
36 -> {37};
|
||||
37 -> {38};
|
||||
38 -> {39 49} [color=green label="return@/Test.Test"];
|
||||
38 -> {59} [color=green];
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
40 -> {41 51} [color=green label="return@/Test.Test"];
|
||||
40 -> {61} [color=green];
|
||||
41 -> {42};
|
||||
42 -> {43};
|
||||
43 -> {44};
|
||||
@@ -161,9 +166,9 @@ digraph delegatedConstructorArguments_kt {
|
||||
45 -> {46};
|
||||
46 -> {47};
|
||||
47 -> {48};
|
||||
48 -> {59} [color=green];
|
||||
48 -> {49};
|
||||
49 -> {50};
|
||||
50 -> {51};
|
||||
50 -> {61} [color=green];
|
||||
51 -> {52};
|
||||
52 -> {53};
|
||||
53 -> {54};
|
||||
@@ -171,6 +176,8 @@ digraph delegatedConstructorArguments_kt {
|
||||
55 -> {56};
|
||||
56 -> {57};
|
||||
57 -> {58};
|
||||
58 -> {59} [color=green];
|
||||
58 -> {59};
|
||||
59 -> {60};
|
||||
60 -> {61} [color=green];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user