[FIR] Add CFG nodes, add multiple subGraphs for CFGOwner

This commit is contained in:
Oleg Ivanov
2020-07-30 17:06:30 +03:00
parent 128075e780
commit cc9c5b9e3c
52 changed files with 2359 additions and 1940 deletions
@@ -92,6 +92,7 @@ digraph complexPostponedCfg_kt {
8 -> {9};
9 -> {19};
9 -> {11} [color=red];
9 -> {19} [style=dashed];
10 -> {12} [color=red];
11 -> {12} [color=green];
12 -> {13};
@@ -105,6 +106,7 @@ digraph complexPostponedCfg_kt {
20 -> {21};
21 -> {26};
21 -> {22} [color=red];
21 -> {26} [style=dashed];
22 -> {23};
23 -> {24};
24 -> {25};
@@ -119,6 +121,7 @@ digraph complexPostponedCfg_kt {
32 -> {33};
33 -> {39};
33 -> {35} [color=red];
33 -> {39} [style=dashed];
34 -> {36} [color=red];
35 -> {36} [color=green];
36 -> {37};
@@ -37,6 +37,7 @@ digraph callsInPlace_kt {
2 -> {3};
3 -> {11};
3 -> {5} [color=red];
3 -> {11} [style=dashed];
4 -> {6} [color=red];
5 -> {6} [color=green];
6 -> {7};
@@ -81,6 +82,7 @@ digraph callsInPlace_kt {
19 -> {20};
20 -> {25};
20 -> {21} [color=red];
20 -> {25} [style=dashed];
21 -> {22};
22 -> {23};
23 -> {24};
@@ -120,6 +122,7 @@ digraph callsInPlace_kt {
31 -> {32};
32 -> {38};
32 -> {33} [color=red];
32 -> {38} [style=dashed];
33 -> {34};
34 -> {35};
35 -> {36};
@@ -166,6 +169,7 @@ digraph callsInPlace_kt {
45 -> {46};
46 -> {52};
46 -> {48} [color=red];
46 -> {52} [style=dashed];
47 -> {49} [color=red];
48 -> {49} [color=green];
49 -> {50};
@@ -216,6 +220,7 @@ digraph callsInPlace_kt {
63 -> {64};
64 -> {70};
64 -> {66} [color=red];
64 -> {70} [style=dashed];
65 -> {67} [color=red];
66 -> {67} [color=green];
67 -> {68};
@@ -290,9 +295,11 @@ digraph callsInPlace_kt {
86 -> {87};
87 -> {94};
87 -> {88} [color=red];
87 -> {94} [style=dashed];
88 -> {89};
89 -> {99};
89 -> {90} [color=red];
89 -> {99} [style=dashed];
90 -> {91};
91 -> {92};
92 -> {93};
@@ -350,9 +357,11 @@ digraph callsInPlace_kt {
105 -> {106};
106 -> {113};
106 -> {107} [color=red];
106 -> {113} [style=dashed];
107 -> {108};
108 -> {118};
108 -> {109} [color=red];
108 -> {118} [style=dashed];
109 -> {110};
110 -> {111};
111 -> {112};
@@ -412,6 +421,7 @@ digraph callsInPlace_kt {
128 -> {129};
129 -> {130};
130 -> {131 135};
130 -> {135} [style=dashed];
131 -> {132};
132 -> {133};
133 -> {134};
@@ -68,6 +68,7 @@ digraph atLeastOnce_kt {
12 -> {13};
13 -> {20};
13 -> {14} [color=red];
13 -> {20} [style=dashed];
14 -> {15};
15 -> {16};
16 -> {17};
@@ -114,6 +115,7 @@ digraph atLeastOnce_kt {
28 -> {29};
29 -> {36};
29 -> {30} [color=red];
29 -> {36} [style=dashed];
30 -> {31};
31 -> {32};
32 -> {33};
@@ -68,6 +68,7 @@ digraph atMostOnce_kt {
12 -> {13};
13 -> {20};
13 -> {14} [color=red];
13 -> {20} [style=dashed];
14 -> {15};
15 -> {16};
16 -> {17};
@@ -113,6 +114,7 @@ digraph atMostOnce_kt {
28 -> {29};
29 -> {36};
29 -> {30} [color=red];
29 -> {36} [style=dashed];
30 -> {31};
31 -> {32};
32 -> {33};
@@ -69,6 +69,7 @@ digraph exactlyOnce_kt {
12 -> {13};
13 -> {21};
13 -> {15} [color=red];
13 -> {21} [style=dashed];
14 -> {16} [color=red];
15 -> {16} [color=green];
16 -> {17};
@@ -117,6 +118,7 @@ digraph exactlyOnce_kt {
29 -> {30};
30 -> {38};
30 -> {32} [color=red];
30 -> {38} [style=dashed];
31 -> {33} [color=red];
32 -> {33} [color=green];
33 -> {34};
@@ -68,6 +68,7 @@ digraph unknown_kt {
12 -> {13};
13 -> {20};
13 -> {14} [color=red];
13 -> {20} [style=dashed];
14 -> {15};
15 -> {16};
16 -> {17};
@@ -114,6 +115,7 @@ digraph unknown_kt {
28 -> {29};
29 -> {36};
29 -> {30} [color=red];
29 -> {36} [style=dashed];
30 -> {31};
31 -> {32};
32 -> {33};
@@ -77,162 +77,173 @@ digraph delegateWithAnonymousObject_kt {
22 [label="Enter class IssuesListUserProfile" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
39 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
40 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
23 [label="Part of class initialization"];
24 [label="Exit class IssuesListUserProfile" style="filled" fillcolor=red];
}
22 -> {23} [color=green];
23 -> {24} [style=dotted];
23 -> {71} [color=green];
23 -> {71} [style=dashed];
subgraph cluster_10 {
color=blue
24 [label="Enter property" style="filled" fillcolor=red];
25 [label="Postponed enter to lambda"];
26 [label="Postponed exit from lambda"];
27 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
28 [label="Access variable this@R|/IssuesListUserProfile|"];
29 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)"];
30 [label="Postponed enter to lambda"];
subgraph cluster_11 {
color=red
25 [label="Enter function <init>" style="filled" fillcolor=red];
26 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()"];
27 [label="Exit function <init>" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27};
subgraph cluster_11 {
color=red
35 [label="Enter function <init>" style="filled" fillcolor=red];
36 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
37 [label="Exit function <init>" style="filled" fillcolor=red];
}
35 -> {36};
36 -> {37};
subgraph cluster_12 {
color=red
38 [label="Enter function getValue" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
34 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
35 [label="Enter block"];
36 [label="Exit anonymous object"];
37 [label="Exit block"];
}
38 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
39 [label="Enter block"];
40 [label="Function call: R|/IssueListView.IssueListView|()"];
41 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
42 [label="Stub" style="filled" fillcolor=gray];
43 [label="Exit block" style="filled" fillcolor=gray];
}
31 [label="Postponed exit from lambda"];
32 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
33 [label="Exit property" style="filled" fillcolor=red];
44 [label="Exit function getValue" style="filled" fillcolor=red];
}
23 [label="Exit class IssuesListUserProfile" style="filled" fillcolor=red];
}
22 -> {24} [color=green];
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31 34};
31 -> {32};
32 -> {33};
33 -> {23} [color=green];
34 -> {35};
35 -> {36};
35 -> {44 47 54} [color=red];
36 -> {37};
37 -> {38};
39 -> {40} [color=green];
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {44};
41 -> {42} [style=dotted];
42 -> {43} [style=dotted];
43 -> {44} [style=dotted];
subgraph cluster_13 {
color=red
41 [label="Enter function <init>" style="filled" fillcolor=red];
42 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()"];
43 [label="Exit function <init>" style="filled" fillcolor=red];
}
41 -> {42};
42 -> {43};
subgraph cluster_14 {
color=red
45 [label="Enter function setValue" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
46 [label="Enter block"];
47 [label="Function call: R|/IssueListView.IssueListView|()"];
48 [label="Access variable R|<local>/value|"];
49 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)"];
50 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
51 [label="Stub" style="filled" fillcolor=gray];
52 [label="Exit block" style="filled" fillcolor=gray];
}
53 [label="Exit function setValue" style="filled" fillcolor=red];
}
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {53};
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
52 -> {53} [style=dotted];
subgraph cluster_14 {
color=red
44 [label="Enter function <init>" style="filled" fillcolor=red];
45 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
46 [label="Exit function <init>" style="filled" fillcolor=red];
}
44 -> {45};
45 -> {46};
subgraph cluster_15 {
color=red
47 [label="Enter function getValue" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
48 [label="Enter block"];
49 [label="Function call: R|/IssueListView.IssueListView|()"];
50 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
51 [label="Stub" style="filled" fillcolor=gray];
52 [label="Exit block" style="filled" fillcolor=gray];
color=red
54 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
55 [label="Enter block"];
56 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
57 [label="Access variable this@R|/IssuesListUserProfile|"];
58 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(...)"];
59 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"];
60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Exit block" style="filled" fillcolor=gray];
}
62 [label="Exit function getter" style="filled" fillcolor=red];
}
53 [label="Exit function getValue" style="filled" fillcolor=red];
}
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {53};
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
52 -> {53} [style=dotted];
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {62};
59 -> {60} [style=dotted];
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
subgraph cluster_17 {
color=red
54 [label="Enter function setValue" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
55 [label="Enter block"];
56 [label="Function call: R|/IssueListView.IssueListView|()"];
57 [label="Access variable R|<local>/value|"];
58 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)"];
59 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Exit block" style="filled" fillcolor=gray];
color=red
63 [label="Enter function setter" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
64 [label="Enter block"];
65 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
66 [label="Access variable this@R|/IssuesListUserProfile|"];
67 [label="Access variable R|<local>/issueListView|"];
68 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)"];
69 [label="Exit block"];
}
70 [label="Exit function setter" style="filled" fillcolor=red];
}
62 [label="Exit function setValue" style="filled" fillcolor=red];
}
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {62};
59 -> {60} [style=dotted];
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
subgraph cluster_19 {
color=red
63 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_20 {
color=blue
64 [label="Enter block"];
65 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
66 [label="Access variable this@R|/IssuesListUserProfile|"];
67 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(...)"];
68 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"];
69 [label="Stub" style="filled" fillcolor=gray];
70 [label="Exit block" style="filled" fillcolor=gray];
}
71 [label="Exit function getter" style="filled" fillcolor=red];
}
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {71};
68 -> {69} [style=dotted];
69 -> {70} [style=dotted];
70 -> {71} [style=dotted];
subgraph cluster_21 {
color=red
72 [label="Enter function setter" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
73 [label="Enter block"];
74 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
color=red
71 [label="Enter property" style="filled" fillcolor=red];
72 [label="Postponed enter to lambda"];
73 [label="Postponed exit from lambda"];
74 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
75 [label="Access variable this@R|/IssuesListUserProfile|"];
76 [label="Access variable R|<local>/issueListView|"];
77 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)"];
78 [label="Exit block"];
76 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)"];
77 [label="Postponed enter to lambda"];
subgraph cluster_21 {
color=blue
28 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
29 [label="Enter block"];
30 [label="Exit anonymous object"];
31 [label="Exit block"];
}
32 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
subgraph cluster_23 {
color=blue
33 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
34 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
}
78 [label="Postponed exit from lambda"];
79 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
80 [label="Exit property" style="filled" fillcolor=red];
}
79 [label="Exit function setter" style="filled" fillcolor=red];
}
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
71 -> {72};
72 -> {73};
72 -> {} [style=dashed];
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78 28};
77 -> {28} [style=dashed];
78 -> {79};
79 -> {80};
80 -> {24} [color=green];
28 -> {29};
29 -> {30};
29 -> {35 38 45} [color=red];
30 -> {31};
30 -> {35 38 45 33} [color=green];
30 -> {35 38 45 33} [style=dashed];
31 -> {32};
33 -> {34} [color=green];
}
}
@@ -39,6 +39,7 @@ digraph plusAssignWithLambdaInRhs_kt {
5 -> {6};
6 -> {11};
6 -> {7} [color=red];
6 -> {11} [style=dashed];
7 -> {8};
8 -> {9};
9 -> {10};
@@ -54,107 +55,116 @@ digraph plusAssignWithLambdaInRhs_kt {
16 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
18 [label="Enter property" style="filled" fillcolor=red];
19 [label="Access variable R|<local>/executor|"];
20 [label="Exit property" style="filled" fillcolor=red];
17 [label="Part of class initialization"];
18 [label="Exit class A" style="filled" fillcolor=red];
}
17 [label="Exit class A" style="filled" fillcolor=red];
}
16 -> {18} [color=green];
18 -> {19};
19 -> {20};
20 -> {17} [color=green];
16 -> {17} [color=green];
17 -> {18} [style=dotted];
17 -> {24} [color=green];
17 -> {24} [style=dashed];
subgraph cluster_6 {
color=red
21 [label="Enter function <init>" style="filled" fillcolor=red];
22 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
23 [label="Exit function <init>" style="filled" fillcolor=red];
}
21 -> {22};
22 -> {23};
subgraph cluster_6 {
color=red
19 [label="Enter function <init>" style="filled" fillcolor=red];
20 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
21 [label="Exit function <init>" style="filled" fillcolor=red];
}
19 -> {20};
20 -> {21};
subgraph cluster_7 {
color=red
24 [label="Enter function getter" style="filled" fillcolor=red];
25 [label="Exit function getter" style="filled" fillcolor=red];
}
24 -> {25};
subgraph cluster_7 {
color=red
22 [label="Enter function getter" style="filled" fillcolor=red];
23 [label="Exit function getter" style="filled" fillcolor=red];
}
22 -> {23};
subgraph cluster_8 {
color=red
24 [label="Enter property" style="filled" fillcolor=red];
25 [label="Access variable R|<local>/executor|"];
26 [label="Exit property" style="filled" fillcolor=red];
}
24 -> {25};
25 -> {26};
26 -> {18} [color=green];
subgraph cluster_8 {
color=red
26 [label="Enter function postpone" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
27 [label="Enter block"];
28 [label="Function call: R|kotlin/collections/mutableListOf|<R|() -> kotlin/Unit|>()"];
29 [label="Variable declaration: lval queue: R|kotlin/collections/MutableList<kotlin/Function0<kotlin/Unit>>|"];
30 [label="Postponed enter to lambda"];
color=red
27 [label="Enter function postpone" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
37 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
28 [label="Enter block"];
29 [label="Function call: R|kotlin/collections/mutableListOf|<R|() -> kotlin/Unit|>()"];
30 [label="Variable declaration: lval queue: R|kotlin/collections/MutableList<kotlin/Function0<kotlin/Unit>>|"];
31 [label="Postponed enter to lambda"];
subgraph cluster_11 {
color=blue
38 [label="Enter block"];
39 [label="Access variable R|<local>/queue|"];
40 [label="Postponed enter to lambda"];
38 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
45 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
39 [label="Enter block"];
40 [label="Access variable R|<local>/queue|"];
41 [label="Postponed enter to lambda"];
subgraph cluster_13 {
color=blue
46 [label="Enter block"];
47 [label="Function call: R|<local>/computation|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
48 [label="Function call: R|<local>/resolve|.R|FakeOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(...)"];
49 [label="Exit block"];
46 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
47 [label="Enter block"];
48 [label="Function call: R|<local>/computation|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
49 [label="Function call: R|<local>/resolve|.R|FakeOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(...)"];
50 [label="Exit block"];
}
51 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
50 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
42 [label="Postponed exit from lambda"];
43 [label="Function call: R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(...)"];
44 [label="Exit block"];
}
41 [label="Postponed exit from lambda"];
42 [label="Function call: R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(...)"];
43 [label="Exit block"];
45 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
44 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
31 [label="Postponed exit from lambda"];
32 [label="Function call: R|/A.A|<R|T|>(...)"];
33 [label="Jump: ^postpone R|/A.A|<R|T|>(<L> = A@fun <anonymous>(resolve: R|(T) -> kotlin/Unit|): R|kotlin/Unit| {
32 [label="Postponed exit from lambda"];
33 [label="Function call: R|/A.A|<R|T|>(...)"];
34 [label="Jump: ^postpone R|/A.A|<R|T|>(<L> = A@fun <anonymous>(resolve: R|(T) -> kotlin/Unit|): R|kotlin/Unit| {
R|<local>/queue|.R|kotlin/collections/plusAssign|<R|() -> kotlin/Unit|>(A@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
R|<local>/resolve|.R|FakeOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(R|<local>/computation|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|())
}
)
}
)"];
34 [label="Stub" style="filled" fillcolor=gray];
35 [label="Exit block" style="filled" fillcolor=gray];
35 [label="Stub" style="filled" fillcolor=gray];
36 [label="Exit block" style="filled" fillcolor=gray];
}
37 [label="Exit function postpone" style="filled" fillcolor=red];
}
36 [label="Exit function postpone" style="filled" fillcolor=red];
}
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31 37};
31 -> {32};
32 -> {33};
33 -> {36};
33 -> {34} [style=dotted];
34 -> {35} [style=dotted];
35 -> {36} [style=dotted];
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {45};
40 -> {41} [color=red];
41 -> {42};
42 -> {43};
43 -> {44};
45 -> {50 46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {41} [color=green];
50 -> {45} [color=green style=dashed];
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32 38};
31 -> {38} [style=dashed];
32 -> {33};
33 -> {34};
34 -> {37};
34 -> {35} [style=dotted];
35 -> {36} [style=dotted];
36 -> {37} [style=dotted];
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {46};
41 -> {42} [color=red];
41 -> {46} [style=dashed];
42 -> {43};
43 -> {44};
44 -> {45};
46 -> {51 47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {42} [color=green];
51 -> {46} [color=green style=dashed];
}
}
@@ -0,0 +1,46 @@
fun test1() {
val x: Int
fun func() {
x = 0
}
println(<!UNINITIALIZED_VARIABLE!>x<!>)
}
fun test2() {
val x: Int
val y: Int
object {
init {
x = 0
}
fun localFunc() {
y = 0
}
}
println(<!UNINITIALIZED_VARIABLE!>x<!>)
println(<!UNINITIALIZED_VARIABLE!>x<!>)
}
fun test3() {
val x: Int
val y: Int
class A {
init {
x = 0
}
fun localFunc() {
y = 0
}
}
println(<!UNINITIALIZED_VARIABLE!>x<!>)
println(<!UNINITIALIZED_VARIABLE!>x<!>)
}
@@ -0,0 +1,51 @@
FILE: fromLocalMembers.kt
public final fun test1(): R|kotlin/Unit| {
lval x: R|kotlin/Int|
local final fun func(): R|kotlin/Unit| {
R|<local>/x| = Int(0)
}
R|kotlin/io/println|(R|<local>/x|)
}
public final fun test2(): R|kotlin/Unit| {
lval x: R|kotlin/Int|
lval y: R|kotlin/Int|
object : R|kotlin/Any| {
private[local] constructor(): R|<anonymous>| {
super<R|kotlin/Any|>()
}
init {
R|<local>/x| = Int(0)
}
public[local] final fun localFunc(): R|kotlin/Unit| {
R|<local>/y| = Int(0)
}
}
R|kotlin/io/println|(R|<local>/x|)
R|kotlin/io/println|(R|<local>/x|)
}
public final fun test3(): R|kotlin/Unit| {
lval x: R|kotlin/Int|
lval y: R|kotlin/Int|
local final class A : R|kotlin/Any| {
public[local] constructor(): R|A| {
super<R|kotlin/Any|>()
}
init {
R|<local>/x| = Int(0)
}
public[local] final fun localFunc(): R|kotlin/Unit| {
R|<local>/y| = Int(0)
}
}
R|kotlin/io/println|(R|<local>/x|)
R|kotlin/io/println|(R|<local>/x|)
}
@@ -106,6 +106,7 @@ finally {
16 -> {17};
17 -> {31};
17 -> {18} [color=red];
17 -> {31} [style=dashed];
18 -> {19};
19 -> {20};
20 -> {21};
@@ -193,6 +194,7 @@ finally {
40 -> {41};
41 -> {42};
42 -> {43 56};
42 -> {56} [style=dashed];
43 -> {44};
44 -> {45};
45 -> {46};