Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/assignSafeCall.dot
T
2020-04-03 10:08:17 +03:00

480 lines
14 KiB
Plaintext
Vendored

digraph assignSafeCall_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=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};
1 -> {2};
subgraph cluster_1 {
color=red
3 [label="Enter function foo" style="filled" fillcolor=red];
4 [label="Const: Int(1)"];
5 [label="Jump: ^foo Int(1)"];
6 [label="Stub" style="filled" fillcolor=gray];
7 [label="Exit function foo" style="filled" fillcolor=red];
}
3 -> {4};
4 -> {5};
5 -> {7};
5 -> {6} [style=dotted];
6 -> {7} [style=dotted];
subgraph cluster_2 {
color=red
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red];
}
8 -> {9};
subgraph cluster_3 {
color=red
10 [label="Enter property" style="filled" fillcolor=red];
11 [label="Const: Int(1)"];
12 [label="Exit property" style="filled" fillcolor=red];
}
10 -> {11};
11 -> {12};
subgraph cluster_4 {
color=red
13 [label="Enter function bar" style="filled" fillcolor=red];
14 [label="Exit function bar" style="filled" fillcolor=red];
}
13 -> {14};
subgraph cluster_5 {
color=red
15 [label="Enter class A" style="filled" fillcolor=red];
16 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_6 {
color=red
17 [label="Enter function test_1" style="filled" fillcolor=red];
18 [label="Access variable R|<local>/a|"];
19 [label="Enter safe call"];
20 [label="Access variable R|/A.x|"];
21 [label="Exit safe call"];
22 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_7 {
color=blue
23 [label="Enter when"];
subgraph cluster_8 {
color=blue
24 [label="Enter when branch condition "];
25 [label="Access variable R|<local>/x|"];
26 [label="Const: Null(null)"];
27 [label="Operator !="];
28 [label="Exit when branch condition"];
}
29 [label="Synthetic else branch"];
30 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
31 [label="Enter block"];
32 [label="Access variable R|<local>/a|"];
33 [label="Function call: R|<local>/a|.R|/A.bar|()"];
34 [label="Exit block"];
}
35 [label="Exit when branch result"];
36 [label="Exit when"];
}
37 [label="Exit function test_1" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19 21};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {30 29};
29 -> {36};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
subgraph cluster_10 {
color=red
38 [label="Enter function test_2" style="filled" fillcolor=red];
39 [label="Access variable R|<local>/a|"];
40 [label="Enter safe call"];
41 [label="Function call: R|<local>/a|?.R|/A.foo|()"];
42 [label="Exit safe call"];
43 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_11 {
color=blue
44 [label="Enter when"];
subgraph cluster_12 {
color=blue
45 [label="Enter when branch condition "];
46 [label="Access variable R|<local>/x|"];
47 [label="Const: Null(null)"];
48 [label="Operator !="];
49 [label="Exit when branch condition"];
}
50 [label="Synthetic else branch"];
51 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
52 [label="Enter block"];
53 [label="Access variable R|<local>/a|"];
54 [label="Function call: R|<local>/a|.R|/A.bar|()"];
55 [label="Exit block"];
}
56 [label="Exit when branch result"];
57 [label="Exit when"];
}
58 [label="Exit function test_2" style="filled" fillcolor=red];
}
38 -> {39};
39 -> {40 42};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {51 50};
50 -> {57};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_14 {
color=red
59 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
60 [label="Enter when"];
61 [label="Access variable R|<local>/x|"];
62 [label="Type operator: (R|<local>/x| as? R|A|)"];
63 [label="Variable declaration: lval <elvis>: R|A?|"];
subgraph cluster_16 {
color=blue
64 [label="Enter when branch condition "];
65 [label="Const: Null(null)"];
66 [label="Operator =="];
67 [label="Exit when branch condition"];
}
subgraph cluster_17 {
color=blue
68 [label="Enter when branch condition else"];
69 [label="Exit when branch condition"];
}
70 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
71 [label="Enter block"];
72 [label="Access variable R|<local>/<elvis>|"];
73 [label="Exit block"];
}
74 [label="Exit when branch result"];
75 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
76 [label="Enter block"];
77 [label="Jump: ^test_3 Unit"];
78 [label="Stub" style="filled" fillcolor=gray];
79 [label="Exit block" style="filled" fillcolor=gray];
}
80 [label="Exit when branch result" style="filled" fillcolor=gray];
81 [label="Exit when"];
}
82 [label="Variable declaration: lval a: R|A|"];
83 [label="Access variable R|<local>/a|"];
84 [label="Function call: R|<local>/a|.R|/A.foo|()"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.R|/A.foo|()"];
87 [label="Exit function test_3" style="filled" fillcolor=red];
}
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {75 68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {81};
75 -> {76};
76 -> {77};
77 -> {87};
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
subgraph cluster_20 {
color=red
88 [label="Enter function foo" style="filled" fillcolor=red];
89 [label="Exit function foo" style="filled" fillcolor=red];
}
88 -> {89};
subgraph cluster_21 {
color=red
90 [label="Enter function getter" style="filled" fillcolor=red];
91 [label="Exit function getter" style="filled" fillcolor=red];
}
90 -> {91};
subgraph cluster_22 {
color=red
92 [label="Enter property" style="filled" fillcolor=red];
93 [label="Exit property" style="filled" fillcolor=red];
}
92 -> {93};
subgraph cluster_23 {
color=red
94 [label="Enter function bar" style="filled" fillcolor=red];
95 [label="Exit function bar" style="filled" fillcolor=red];
}
94 -> {95};
subgraph cluster_24 {
color=red
96 [label="Enter class B" style="filled" fillcolor=red];
97 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_25 {
color=red
98 [label="Enter function test_1" style="filled" fillcolor=red];
99 [label="Access variable R|<local>/a|"];
100 [label="Enter safe call"];
101 [label="Access variable R|/B.x|"];
102 [label="Exit safe call"];
103 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_26 {
color=blue
104 [label="Enter when"];
subgraph cluster_27 {
color=blue
105 [label="Enter when branch condition "];
106 [label="Access variable R|<local>/x|"];
107 [label="Const: Null(null)"];
108 [label="Operator !="];
109 [label="Exit when branch condition"];
}
110 [label="Synthetic else branch"];
111 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
112 [label="Enter block"];
113 [label="Access variable R|<local>/a|"];
114 [label="Function call: R|<local>/a|.R|/B.bar|()"];
115 [label="Exit block"];
}
116 [label="Exit when branch result"];
117 [label="Exit when"];
}
118 [label="Exit function test_1" style="filled" fillcolor=red];
}
98 -> {99};
99 -> {100 102};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {111 110};
110 -> {117};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
subgraph cluster_29 {
color=red
119 [label="Enter function test_2" style="filled" fillcolor=red];
120 [label="Access variable R|<local>/a|"];
121 [label="Enter safe call"];
122 [label="Function call: R|<local>/a|?.R|/B.foo|()"];
123 [label="Exit safe call"];
124 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_30 {
color=blue
125 [label="Enter when"];
subgraph cluster_31 {
color=blue
126 [label="Enter when branch condition "];
127 [label="Access variable R|<local>/x|"];
128 [label="Const: Null(null)"];
129 [label="Operator !="];
130 [label="Exit when branch condition"];
}
131 [label="Synthetic else branch"];
132 [label="Enter when branch result"];
subgraph cluster_32 {
color=blue
133 [label="Enter block"];
134 [label="Access variable R|<local>/a|"];
135 [label="Function call: R|<local>/a|.R|/B.bar|()"];
136 [label="Exit block"];
}
137 [label="Exit when branch result"];
138 [label="Exit when"];
}
139 [label="Exit function test_2" style="filled" fillcolor=red];
}
119 -> {120};
120 -> {121 123};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {132 131};
131 -> {138};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
subgraph cluster_33 {
color=red
140 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_34 {
color=blue
141 [label="Enter when"];
142 [label="Access variable R|<local>/x|"];
143 [label="Type operator: (R|<local>/x| as? R|B|)"];
144 [label="Variable declaration: lval <elvis>: R|B?|"];
subgraph cluster_35 {
color=blue
145 [label="Enter when branch condition "];
146 [label="Const: Null(null)"];
147 [label="Operator =="];
148 [label="Exit when branch condition"];
}
subgraph cluster_36 {
color=blue
149 [label="Enter when branch condition else"];
150 [label="Exit when branch condition"];
}
151 [label="Enter when branch result"];
subgraph cluster_37 {
color=blue
152 [label="Enter block"];
153 [label="Access variable R|<local>/<elvis>|"];
154 [label="Exit block"];
}
155 [label="Exit when branch result"];
156 [label="Enter when branch result"];
subgraph cluster_38 {
color=blue
157 [label="Enter block"];
158 [label="Jump: ^test_3 Unit"];
159 [label="Stub" style="filled" fillcolor=gray];
160 [label="Exit block" style="filled" fillcolor=gray];
}
161 [label="Exit when branch result" style="filled" fillcolor=gray];
162 [label="Exit when"];
}
163 [label="Variable declaration: lval a: R|B|"];
164 [label="Access variable R|<local>/a|"];
165 [label="Function call: R|<local>/a|.R|/B.foo|()"];
166 [label="Access variable R|<local>/x|"];
167 [label="Function call: R|<local>/x|.R|/B.foo|()"];
168 [label="Exit function test_3" style="filled" fillcolor=red];
}
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {156 149};
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {162};
156 -> {157};
157 -> {158};
158 -> {168};
158 -> {159} [style=dotted];
159 -> {160} [style=dotted];
160 -> {161} [style=dotted];
161 -> {162} [style=dotted];
162 -> {163};
163 -> {164};
164 -> {165};
165 -> {166};
166 -> {167};
167 -> {168};
}