[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,451 @@
digraph flowFromInplaceLambda_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function takeInt" style="filled" fillcolor=red];
1 [label="Exit function takeInt" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function select" style="filled" fillcolor=red];
3 [label="Access variable R|<local>/x|"];
4 [label="Const: Int(0)"];
5 [label="Function call: R|<local>/x|.R|FakeOverride<kotlin/Array.get: R|K|>|(...)"];
6 [label="Jump: ^select R|<local>/x|.R|FakeOverride<kotlin/Array.get: R|K|>|(Int(0))"];
7 [label="Stub" style="filled" fillcolor=gray];
8 [label="Exit function select" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {8};
6 -> {7} [style=dotted];
7 -> {8} [style=dotted];
subgraph cluster_2 {
color=red
9 [label="Enter function id" style="filled" fillcolor=red];
10 [label="Access variable R|<local>/x|"];
11 [label="Jump: ^id R|<local>/x|"];
12 [label="Stub" style="filled" fillcolor=gray];
13 [label="Exit function id" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
11 -> {13};
11 -> {12} [style=dotted];
12 -> {13} [style=dotted];
subgraph cluster_3 {
color=red
14 [label="Enter function materialize" style="filled" fillcolor=red];
15 [label="Const: Null(null)"];
16 [label="Check not null: Null(null)!!"];
17 [label="Jump: ^materialize Null(null)!!"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit function materialize" style="filled" fillcolor=red];
}
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {19};
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
subgraph cluster_4 {
color=red
20 [label="Enter function myRun" style="filled" fillcolor=red];
21 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|R|>|()"];
22 [label="Jump: ^myRun R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|R|>|()"];
23 [label="Stub" style="filled" fillcolor=gray];
24 [label="Exit function myRun" style="filled" fillcolor=red];
}
20 -> {21};
21 -> {22};
22 -> {24};
22 -> {23} [style=dotted];
23 -> {24} [style=dotted];
subgraph cluster_5 {
color=red
25 [label="Enter function test_1" style="filled" fillcolor=red];
26 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
27 [label="Enter function anonymousFunction"];
28 [label="Access variable R|<local>/x|"];
29 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
30 [label="Exit function anonymousFunction"];
}
31 [label="Call arguments union" style="filled" fillcolor=yellow];
32 [label="Postponed exit from lambda"];
33 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
34 [label="Access variable R|<local>/x|"];
35 [label="Function call: R|/takeInt|(...)"];
36 [label="Exit function test_1" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27};
26 -> {32} [color=red];
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {32} [color=green];
30 -> {31} [color=red];
31 -> {33} [color=red];
32 -> {33} [color=green];
33 -> {34};
34 -> {35};
35 -> {36};
subgraph cluster_7 {
color=red
37 [label="Enter function test_2" style="filled" fillcolor=red];
38 [label="Postponed enter to lambda"];
subgraph cluster_8 {
color=blue
39 [label="Enter function anonymousFunction"];
40 [label="Access variable R|<local>/y|"];
41 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
42 [label="Access variable R|<local>/x|"];
43 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
44 [label="Exit function anonymousFunction"];
}
45 [label="Postponed exit from lambda"];
46 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
47 [label="Call arguments union" style="filled" fillcolor=yellow];
48 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
49 [label="Access variable R|<local>/y|"];
50 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
51 [label="Postponed enter to lambda"];
subgraph cluster_9 {
color=blue
52 [label="Enter function anonymousFunction"];
53 [label="Access variable R|<local>/x|"];
54 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
55 [label="Access variable R|<local>/y|"];
56 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
57 [label="Const: Int(1)"];
58 [label="Exit function anonymousFunction"];
}
59 [label="Postponed exit from lambda"];
60 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
61 [label="Call arguments union" style="filled" fillcolor=yellow];
62 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
63 [label="Variable declaration: lval a: R|kotlin/Int|"];
64 [label="Access variable R|<local>/x|"];
65 [label="Function call: R|/takeInt|(...)"];
66 [label="Access variable R|<local>/y|"];
67 [label="Function call: R|/takeInt|(...)"];
68 [label="Access variable R|<local>/a|"];
69 [label="Function call: R|/takeInt|(...)"];
70 [label="Exit function test_2" style="filled" fillcolor=red];
}
37 -> {38};
38 -> {39};
38 -> {45} [color=red];
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45} [color=green];
44 -> {47} [color=red];
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
51 -> {59} [color=red];
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59} [color=green];
58 -> {61} [color=red];
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
subgraph cluster_10 {
color=red
71 [label="Enter function test_3" style="filled" fillcolor=red];
72 [label="Postponed enter to lambda"];
subgraph cluster_11 {
color=blue
73 [label="Enter function anonymousFunction"];
74 [label="Access variable R|<local>/y|"];
75 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
76 [label="Access variable R|<local>/x|"];
77 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
78 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
79 [label="Exit function anonymousFunction"];
}
80 [label="Postponed exit from lambda"];
81 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
82 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
83 [label="Postponed enter to lambda"];
subgraph cluster_12 {
color=blue
84 [label="Enter function anonymousFunction"];
85 [label="Access variable R|<local>/y|"];
86 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
87 [label="Access variable R|<local>/x|"];
88 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
89 [label="Access variable R|<local>/y|"];
90 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
91 [label="Const: Int(1)"];
92 [label="Exit function anonymousFunction"];
}
93 [label="Postponed exit from lambda"];
94 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
95 [label="Call arguments union" style="filled" fillcolor=yellow];
96 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
97 [label="Variable declaration: lval a: R|kotlin/Int|"];
98 [label="Access variable R|<local>/x|"];
99 [label="Function call: R|/takeInt|(...)"];
100 [label="Access variable R|<local>/y|"];
101 [label="Function call: R|/takeInt|(...)"];
102 [label="Access variable R|<local>/a|"];
103 [label="Function call: R|/takeInt|(...)"];
104 [label="Exit function test_3" style="filled" fillcolor=red];
}
71 -> {72};
72 -> {73};
72 -> {80} [color=red];
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80} [color=green];
79 -> {95} [color=red];
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
83 -> {93} [color=red];
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93} [color=green];
92 -> {95} [color=red];
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
subgraph cluster_13 {
color=red
105 [label="Enter function test_4" style="filled" fillcolor=red];
106 [label="Postponed enter to lambda"];
107 [label="Postponed exit from lambda"];
108 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
109 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
110 [label="Access variable R|<local>/y|"];
111 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
112 [label="Postponed enter to lambda"];
113 [label="Postponed exit from lambda"];
114 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
115 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
116 [label="Variable declaration: lval a: R|kotlin/Int|"];
117 [label="Access variable R|<local>/x|"];
118 [label="Access variable R|<local>/x|"];
119 [label="Access variable R|<local>/x|"];
120 [label="Function call: <Inapplicable(INAPPLICABLE): [/takeInt]>#(...)"];
121 [label="Access variable R|<local>/y|"];
122 [label="Function call: R|/takeInt|(...)"];
123 [label="Access variable R|<local>/a|"];
124 [label="Function call: R|/takeInt|(...)"];
125 [label="Exit function test_4" style="filled" fillcolor=red];
}
105 -> {106};
106 -> {107 107} [color=green];
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113 113} [color=green];
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
subgraph cluster_14 {
color=red
126 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
127 [label="Access variable R|<local>/y|"];
128 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
129 [label="Access variable R|<local>/x|"];
130 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
131 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {131};
subgraph cluster_15 {
color=red
132 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
133 [label="Access variable R|<local>/x|"];
134 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
135 [label="Access variable R|<local>/y|"];
136 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
137 [label="Const: Int(1)"];
138 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {138};
subgraph cluster_16 {
color=red
139 [label="Enter function test_5" style="filled" fillcolor=red];
140 [label="Postponed enter to lambda"];
subgraph cluster_17 {
color=blue
141 [label="Enter function anonymousFunction"];
142 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
143 [label="Exit function anonymousFunction"];
}
144 [label="Postponed exit from lambda"];
145 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
146 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
147 [label="Enter function anonymousFunction"];
148 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
149 [label="Exit function anonymousFunction"];
}
150 [label="Postponed exit from lambda"];
151 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
152 [label="Call arguments union" style="filled" fillcolor=yellow];
153 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
154 [label="Variable declaration: lval x: R|kotlin/Int|"];
155 [label="Access variable R|<local>/x|"];
156 [label="Function call: R|/takeInt|(...)"];
157 [label="Exit function test_5" style="filled" fillcolor=red];
}
139 -> {140};
140 -> {141};
140 -> {144} [color=red];
141 -> {142};
142 -> {143};
143 -> {144} [color=green];
143 -> {152} [color=red];
144 -> {145};
145 -> {146};
146 -> {147};
146 -> {150} [color=red];
147 -> {148};
148 -> {149};
149 -> {150} [color=green];
149 -> {152} [color=red];
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {157};
subgraph cluster_19 {
color=red
158 [label="Enter function test_6" style="filled" fillcolor=red];
159 [label="Postponed enter to lambda"];
160 [label="Postponed exit from lambda"];
161 [label="Function call: R|/myRun|<R|kotlin/String|>(...)"];
162 [label="Function call: R|/id|<R|kotlin/String|>(...)"];
163 [label="Variable declaration: lval x: R|kotlin/String|"];
164 [label="Exit function test_6" style="filled" fillcolor=red];
}
158 -> {159};
159 -> {160 160} [color=green];
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {164};
subgraph cluster_20 {
color=red
165 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
166 [label="Postponed enter to lambda"];
subgraph cluster_21 {
color=blue
167 [label="Enter function anonymousFunction"];
168 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
169 [label="Exit function anonymousFunction"];
}
170 [label="Postponed exit from lambda"];
171 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
172 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
165 -> {166};
166 -> {167};
166 -> {170} [color=red];
167 -> {168};
168 -> {169};
169 -> {170} [color=green];
170 -> {171};
171 -> {172};
}