[FIR-TEST] Move analysis tests to separate module

This commit is contained in:
Dmitriy Novozhilov
2020-03-18 15:10:46 +03:00
parent 3a479d5d16
commit cc07ae96b3
1477 changed files with 1001 additions and 980 deletions
@@ -0,0 +1,544 @@
digraph implicitReceivers_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="Exit function foo" style="filled" fillcolor=red];
}
3 -> {4};
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 bar" style="filled" fillcolor=red];
9 [label="Exit function bar" style="filled" fillcolor=red];
}
8 -> {9};
subgraph cluster_4 {
color=red
10 [label="Enter function with" style="filled" fillcolor=red];
11 [label="Exit function with" style="filled" fillcolor=red];
}
10 -> {11};
subgraph cluster_5 {
color=red
12 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
13 [label="Enter when"];
subgraph cluster_7 {
color=blue
14 [label="Enter when branch condition "];
15 [label="Access variable this@R|/test_1|"];
16 [label="Type operator: (this@R|/test_1| is R|A|)"];
17 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
18 [label="Enter when branch condition else"];
19 [label="Exit when branch condition"];
}
20 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
21 [label="Enter block"];
22 [label="Access variable this@R|/test_1|"];
23 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
24 [label="Function call: <Unresolved name: foo>#()"];
25 [label="Exit block"];
}
26 [label="Exit when branch result"];
27 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
28 [label="Enter block"];
29 [label="Access variable this@R|/test_1|"];
30 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
31 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
}
35 [label="Access variable this@R|/test_1|"];
36 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
37 [label="Function call: <Unresolved name: foo>#()"];
38 [label="Exit function test_1" style="filled" fillcolor=red];
}
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {27 18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {34};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
subgraph cluster_11 {
color=red
39 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
40 [label="Enter when"];
subgraph cluster_13 {
color=blue
41 [label="Enter when branch condition "];
42 [label="Access variable this@R|/test_2|"];
43 [label="Type operator: (this@R|/test_2| !is R|A|)"];
44 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
45 [label="Enter when branch condition else"];
46 [label="Exit when branch condition"];
}
47 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
48 [label="Enter block"];
49 [label="Access variable this@R|/test_2|"];
50 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
51 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
52 [label="Exit block"];
}
53 [label="Exit when branch result"];
54 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
55 [label="Enter block"];
56 [label="Access variable this@R|/test_2|"];
57 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
58 [label="Function call: <Unresolved name: foo>#()"];
59 [label="Exit block"];
}
60 [label="Exit when branch result"];
61 [label="Exit when"];
}
62 [label="Access variable this@R|/test_2|"];
63 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
64 [label="Function call: <Unresolved name: foo>#()"];
65 [label="Exit function test_2" style="filled" fillcolor=red];
}
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {54 45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {61};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
subgraph cluster_17 {
color=red
66 [label="Enter function test_3" style="filled" fillcolor=red];
67 [label="Access variable R|<local>/a|"];
68 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
69 [label="Enter function anonymousFunction"];
70 [label="Access variable R|<local>/b|"];
71 [label="Postponed enter to lambda"];
subgraph cluster_19 {
color=blue
72 [label="Enter function anonymousFunction"];
73 [label="Access variable R|<local>/c|"];
74 [label="Postponed enter to lambda"];
subgraph cluster_20 {
color=blue
75 [label="Enter function anonymousFunction"];
76 [label="Access variable this@R|special/anonymous|"];
77 [label="Type operator: (this@R|special/anonymous| as R|A|)"];
78 [label="Access variable this@R|special/anonymous|"];
79 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
80 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
81 [label="Exit function anonymousFunction"];
}
82 [label="Call arguments union" style="filled" fillcolor=yellow];
83 [label="Postponed exit from lambda"];
84 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
85 [label="Access variable this@R|special/anonymous|"];
86 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
87 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
88 [label="Exit function anonymousFunction"];
}
89 [label="Postponed exit from lambda"];
90 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
91 [label="Exit function anonymousFunction"];
}
92 [label="Call arguments union" style="filled" fillcolor=yellow];
93 [label="Postponed exit from lambda"];
94 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
95 [label="Exit function test_3" style="filled" fillcolor=red];
}
66 -> {67};
67 -> {68};
68 -> {69};
68 -> {93} [color=red];
69 -> {70};
70 -> {71};
71 -> {72};
71 -> {89} [color=red];
72 -> {73};
73 -> {74};
74 -> {75};
74 -> {83} [color=red];
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {83} [color=green];
81 -> {82} [color=red];
82 -> {84} [color=red];
83 -> {84} [color=green];
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89} [color=green];
88 -> {92} [color=red];
89 -> {90};
90 -> {91};
91 -> {93} [color=green];
91 -> {92} [color=red];
92 -> {94} [color=red];
93 -> {94} [color=green];
94 -> {95};
subgraph cluster_21 {
color=red
96 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
97 [label="Enter when"];
subgraph cluster_23 {
color=blue
98 [label="Enter when branch condition "];
99 [label="Access variable this@R|/test_4|"];
100 [label="Type operator: (this@R|/test_4| !is R|A|)"];
101 [label="Exit when branch condition"];
}
subgraph cluster_24 {
color=blue
102 [label="Enter when branch condition else"];
103 [label="Exit when branch condition"];
}
104 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
105 [label="Enter block"];
subgraph cluster_26 {
color=blue
106 [label="Enter when"];
subgraph cluster_27 {
color=blue
107 [label="Enter when branch condition "];
108 [label="Access variable this@R|/test_4|"];
109 [label="Type operator: (this@R|/test_4| !is R|B|)"];
110 [label="Exit when branch condition"];
}
subgraph cluster_28 {
color=blue
111 [label="Enter when branch condition else"];
112 [label="Exit when branch condition"];
}
113 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
114 [label="Enter block"];
115 [label="Access variable this@R|/test_4|"];
116 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
117 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
118 [label="Access variable this@R|/test_4|"];
119 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
120 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
121 [label="Exit block"];
}
122 [label="Exit when branch result"];
123 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
124 [label="Enter block"];
125 [label="Access variable this@R|/test_4|"];
126 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
127 [label="Function call: <Unresolved name: bar>#()"];
128 [label="Access variable this@R|/test_4|"];
129 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
130 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
131 [label="Exit block"];
}
132 [label="Exit when branch result"];
133 [label="Exit when"];
}
134 [label="Exit block"];
}
135 [label="Exit when branch result"];
136 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
137 [label="Enter block"];
138 [label="Access variable this@R|/test_4|"];
139 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
140 [label="Function call: <Unresolved name: foo>#()"];
141 [label="Access variable this@R|/test_4|"];
142 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
143 [label="Function call: <Unresolved name: bar>#()"];
144 [label="Exit block"];
}
145 [label="Exit when branch result"];
146 [label="Exit when"];
}
147 [label="Access variable this@R|/test_4|"];
148 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
149 [label="Function call: <Unresolved name: foo>#()"];
150 [label="Access variable this@R|/test_4|"];
151 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
152 [label="Function call: <Unresolved name: bar>#()"];
153 [label="Exit function test_4" style="filled" fillcolor=red];
}
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {136 102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {123 111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {133};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {146};
136 -> {137};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
subgraph cluster_32 {
color=red
154 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
155 [label="Enter when"];
subgraph cluster_34 {
color=blue
156 [label="Enter when branch condition "];
157 [label="Access variable this@R|/test_5|"];
158 [label="Type operator: (this@R|/test_5| is R|kotlin/collections/List<*>|)"];
159 [label="Exit when branch condition"];
}
subgraph cluster_35 {
color=blue
160 [label="Enter when branch condition "];
161 [label="Access variable this@R|/test_5|"];
162 [label="Type operator: (this@R|/test_5| is R|kotlin/String|)"];
163 [label="Exit when branch condition"];
}
subgraph cluster_36 {
color=blue
164 [label="Enter when branch condition else"];
165 [label="Exit when branch condition"];
}
166 [label="Enter when branch result"];
subgraph cluster_37 {
color=blue
167 [label="Enter block"];
168 [label="Const: Int(0)"];
169 [label="Exit block"];
}
170 [label="Exit when branch result"];
171 [label="Enter when branch result"];
subgraph cluster_38 {
color=blue
172 [label="Enter block"];
173 [label="Access variable R|kotlin/String.length|"];
174 [label="Exit block"];
}
175 [label="Exit when branch result"];
176 [label="Enter when branch result"];
subgraph cluster_39 {
color=blue
177 [label="Enter block"];
178 [label="Access variable R|kotlin/collections/List.size|"];
179 [label="Exit block"];
}
180 [label="Exit when branch result"];
181 [label="Exit when"];
}
182 [label="Jump: ^test_5 when () {
(this@R|/test_5| is R|kotlin/collections/List<*>|) -> {
this@R|/test_5|.R|kotlin/collections/List.size|
}
(this@R|/test_5| is R|kotlin/String|) -> {
this@R|/test_5|.R|kotlin/String.length|
}
else -> {
Int(0)
}
}
"];
183 [label="Stub" style="filled" fillcolor=gray];
184 [label="Exit function test_5" style="filled" fillcolor=red];
}
154 -> {155};
155 -> {156};
156 -> {157};
157 -> {158};
158 -> {159};
159 -> {176 160};
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {171 164};
164 -> {165};
165 -> {166};
166 -> {167};
167 -> {168};
168 -> {169};
169 -> {170};
170 -> {181};
171 -> {172};
172 -> {173};
173 -> {174};
174 -> {175};
175 -> {181};
176 -> {177};
177 -> {178};
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {182};
182 -> {184};
182 -> {183} [style=dotted];
183 -> {184} [style=dotted];
subgraph cluster_40 {
color=red
185 [label="Enter function test_6" style="filled" fillcolor=red];
186 [label="Access variable this@R|/test_6|"];
187 [label="Type operator: (this@R|/test_6| as R|kotlin/collections/List<*>|)"];
188 [label="Access variable R|kotlin/collections/List.size|"];
189 [label="Access variable this@R|/test_6|"];
190 [label="Type operator: (this@R|/test_6| as R|kotlin/String|)"];
191 [label="Access variable R|kotlin/String.length|"];
192 [label="Exit function test_6" style="filled" fillcolor=red];
}
185 -> {186};
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {190};
190 -> {191};
191 -> {192};
}