Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/cfg/localClassesWithImplicit.dot
T
2020-06-16 00:01:06 +03:00

412 lines
14 KiB
Plaintext
Vendored

digraph localClassesWithImplicit_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function myRun" style="filled" fillcolor=red];
2 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
3 [label="Jump: ^myRun R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
4 [label="Stub" style="filled" fillcolor=gray];
1 [label="Exit function myRun" style="filled" fillcolor=red];
}
0 -> {2};
2 -> {3};
3 -> {1};
3 -> {4} [style=dotted];
4 -> {1} [style=dotted];
subgraph cluster_1 {
color=red
5 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
7 [label="Enter when"];
subgraph cluster_3 {
color=blue
9 [label="Enter when branch condition "];
10 [label="Access variable R|<local>/a|"];
11 [label="Type operator: (R|<local>/a| !is R|kotlin/String|)"];
12 [label="Exit when branch condition"];
}
19 [label="Synthetic else branch"];
13 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
14 [label="Enter block"];
15 [label="Jump: ^test Unit"];
16 [label="Stub" style="filled" fillcolor=gray];
17 [label="Exit block" style="filled" fillcolor=gray];
}
18 [label="Exit when branch result" style="filled" fillcolor=gray];
8 [label="Exit when"];
}
20 [label="Exit local class test"];
21 [label="Exit anonymous object"];
22 [label="Variable declaration: lval x: R|<anonymous>|"];
6 [label="Exit function test" style="filled" fillcolor=red];
}
5 -> {7};
7 -> {9};
8 -> {20};
8 -> {23 26 57 71} [color=red];
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13 19};
13 -> {14};
14 -> {15};
15 -> {6};
15 -> {16} [style=dotted];
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
18 -> {8} [style=dotted];
19 -> {8};
20 -> {21};
20 -> {78 81 112 126} [color=red];
21 -> {22};
22 -> {6};
subgraph cluster_5 {
color=red
23 [label="Enter function <init>" style="filled" fillcolor=red];
25 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
24 [label="Exit function <init>" style="filled" fillcolor=red];
}
23 -> {25};
25 -> {24};
subgraph cluster_6 {
color=red
26 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
71 [label="Enter function baz" style="filled" fillcolor=red];
73 [label="Const: Int(1)"];
74 [label="Jump: ^baz Int(1)"];
75 [label="Stub" style="filled" fillcolor=gray];
72 [label="Exit function baz" style="filled" fillcolor=red];
}
subgraph cluster_8 {
color=blue
57 [label="Enter function bar" style="filled" fillcolor=red];
59 [label="Postponed enter to lambda"];
subgraph cluster_9 {
color=blue
64 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
66 [label="Access variable R|<local>/b|"];
67 [label="Access variable <Unresolved name: length>#"];
68 [label="Access variable R|<local>/a|"];
69 [label="Access variable R|kotlin/String.length|"];
70 [label="Function call: this@R|/A|.R|/A.baz|()"];
65 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
60 [label="Postponed exit from lambda"];
61 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
62 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/b|.<Unresolved name: length>#
R|<local>/a|.R|kotlin/String.length|
^ this@R|/A|.R|/A.baz|()
}
)"];
63 [label="Stub" style="filled" fillcolor=gray];
58 [label="Exit function bar" style="filled" fillcolor=red];
}
28 [label="Postponed enter to lambda"];
subgraph cluster_10 {
color=blue
33 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
35 [label="Access variable R|<local>/a|"];
36 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_11 {
color=blue
37 [label="Enter when"];
subgraph cluster_12 {
color=blue
39 [label="Enter when branch condition "];
40 [label="Access variable R|<local>/b|"];
41 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
42 [label="Exit when branch condition"];
}
subgraph cluster_13 {
color=blue
50 [label="Enter when branch condition else"];
51 [label="Exit when branch condition"];
}
52 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
53 [label="Enter block"];
54 [label="Const: Int(1)"];
55 [label="Exit block"];
}
56 [label="Exit when branch result"];
43 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
44 [label="Enter block"];
45 [label="Access variable R|<local>/b|"];
46 [label="Access variable R|kotlin/String.length|"];
47 [label="Function call: this@R|/A|.R|/A.bar|()"];
48 [label="Exit block"];
}
49 [label="Exit when branch result"];
38 [label="Exit when"];
}
34 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
29 [label="Postponed exit from lambda"];
30 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
31 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
^ when () {
(R|<local>/b| is R|kotlin/String|) -> {
R|<local>/b|.R|kotlin/String.length|
this@R|/A|.R|/A.bar|()
}
else -> {
Int(1)
}
}
}
)"];
32 [label="Stub" style="filled" fillcolor=gray];
27 [label="Exit function foo" style="filled" fillcolor=red];
}
26 -> {28};
28 -> {33};
28 -> {29} [color=red];
29 -> {30};
30 -> {31};
31 -> {27};
31 -> {32} [style=dotted];
32 -> {27} [style=dotted];
33 -> {34 35};
34 -> {33};
34 -> {29} [color=green];
35 -> {36};
36 -> {37};
37 -> {39};
38 -> {34};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43 50};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {38};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {38};
57 -> {59};
59 -> {64};
59 -> {60} [color=red];
60 -> {61};
61 -> {62};
62 -> {58};
62 -> {63} [style=dotted];
63 -> {58} [style=dotted];
64 -> {65 66};
65 -> {64};
65 -> {60} [color=green];
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {65};
71 -> {73};
73 -> {74};
74 -> {72};
74 -> {75} [style=dotted];
75 -> {72} [style=dotted];
subgraph cluster_16 {
color=red
76 [label="Enter class A" style="filled" fillcolor=red];
77 [label="Exit class A" style="filled" fillcolor=red];
}
76 -> {77} [color=green];
subgraph cluster_17 {
color=red
78 [label="Enter function <init>" style="filled" fillcolor=red];
80 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
79 [label="Exit function <init>" style="filled" fillcolor=red];
}
78 -> {80};
80 -> {79};
subgraph cluster_18 {
color=red
81 [label="Enter function foo" style="filled" fillcolor=red];
83 [label="Postponed enter to lambda"];
subgraph cluster_19 {
color=blue
88 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
90 [label="Access variable R|<local>/a|"];
91 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_20 {
color=blue
92 [label="Enter when"];
subgraph cluster_21 {
color=blue
94 [label="Enter when branch condition "];
95 [label="Access variable R|<local>/b|"];
96 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
97 [label="Exit when branch condition"];
}
subgraph cluster_22 {
color=blue
105 [label="Enter when branch condition else"];
106 [label="Exit when branch condition"];
}
107 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
108 [label="Enter block"];
109 [label="Const: Int(1)"];
110 [label="Exit block"];
}
111 [label="Exit when branch result"];
98 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
99 [label="Enter block"];
100 [label="Access variable R|<local>/b|"];
101 [label="Access variable R|kotlin/String.length|"];
102 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.bar|()"];
103 [label="Exit block"];
}
104 [label="Exit when branch result"];
93 [label="Exit when"];
}
89 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
84 [label="Postponed exit from lambda"];
85 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
86 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
^ when () {
(R|<local>/b| is R|kotlin/String|) -> {
R|<local>/b|.R|kotlin/String.length|
this@R|/<anonymous>|.R|/<anonymous>.bar|()
}
else -> {
Int(1)
}
}
}
)"];
87 [label="Stub" style="filled" fillcolor=gray];
82 [label="Exit function foo" style="filled" fillcolor=red];
}
81 -> {83};
83 -> {88};
83 -> {84} [color=red];
84 -> {85};
85 -> {86};
86 -> {82};
86 -> {87} [style=dotted];
87 -> {82} [style=dotted];
88 -> {89 90};
89 -> {88};
89 -> {84} [color=green];
90 -> {91};
91 -> {92};
92 -> {94};
93 -> {89};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98 105};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {93};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {93};
subgraph cluster_25 {
color=red
112 [label="Enter function bar" style="filled" fillcolor=red];
114 [label="Postponed enter to lambda"];
subgraph cluster_26 {
color=blue
119 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
121 [label="Access variable R|<local>/a|"];
122 [label="Access variable R|kotlin/String.length|"];
123 [label="Access variable R|<local>/b|"];
124 [label="Access variable <Unresolved name: length>#"];
125 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.baz|()"];
120 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
115 [label="Postponed exit from lambda"];
116 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
117 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
R|<local>/b|.<Unresolved name: length>#
^ this@R|/<anonymous>|.R|/<anonymous>.baz|()
}
)"];
118 [label="Stub" style="filled" fillcolor=gray];
113 [label="Exit function bar" style="filled" fillcolor=red];
}
112 -> {114};
114 -> {119};
114 -> {115} [color=red];
115 -> {116};
116 -> {117};
117 -> {113};
117 -> {118} [style=dotted];
118 -> {113} [style=dotted];
119 -> {120 121};
120 -> {119};
120 -> {115} [color=green];
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {120};
subgraph cluster_27 {
color=red
126 [label="Enter function baz" style="filled" fillcolor=red];
128 [label="Const: Int(1)"];
129 [label="Jump: ^baz Int(1)"];
130 [label="Stub" style="filled" fillcolor=gray];
127 [label="Exit function baz" style="filled" fillcolor=red];
}
126 -> {128};
128 -> {129};
129 -> {127};
129 -> {130} [style=dotted];
130 -> {127} [style=dotted];
subgraph cluster_28 {
color=red
131 [label="Enter class <anonymous>" style="filled" fillcolor=red];
132 [label="Exit class <anonymous>" style="filled" fillcolor=red];
}
131 -> {132} [color=green];
}