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