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