[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,220 @@
digraph lambdas_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function run" style="filled" fillcolor=red];
1 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
2 [label="Exit function run" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
3 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
4 [label="Enter when"];
subgraph cluster_3 {
color=blue
5 [label="Enter when branch condition "];
6 [label="Access variable R|<local>/x|"];
7 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"];
8 [label="Exit when branch condition"];
}
9 [label="Synthetic else branch"];
10 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
11 [label="Enter block"];
12 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
13 [label="Enter function anonymousFunction"];
14 [label="Access variable R|<local>/x|"];
15 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
16 [label="Exit function anonymousFunction"];
}
17 [label="Postponed exit from lambda"];
18 [label="Function call: R|/run|(...)"];
19 [label="Exit block"];
}
20 [label="Exit when branch result"];
21 [label="Exit when"];
}
22 [label="Exit function test_1" style="filled" fillcolor=red];
}
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {10 9};
9 -> {21};
10 -> {11};
11 -> {12};
12 -> {13};
12 -> {17} [color=red];
13 -> {16 14};
14 -> {15};
15 -> {16};
16 -> {13};
16 -> {17} [color=green];
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];
subgraph cluster_7 {
color=blue
24 [label="Enter when"];
subgraph cluster_8 {
color=blue
25 [label="Enter when branch condition "];
26 [label="Access variable R|<local>/x|"];
27 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"];
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="Variable declaration: lval lambda: R|() -> kotlin/Int|"];
33 [label="Exit block"];
}
34 [label="Exit when branch result"];
35 [label="Exit when"];
}
36 [label="Exit function test_2" style="filled" fillcolor=red];
}
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {30 29};
29 -> {35};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
subgraph cluster_10 {
color=red
37 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
38 [label="Access variable R|<local>/x|"];
39 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
40 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
37 -> {38};
38 -> {39};
39 -> {40};
subgraph cluster_11 {
color=red
41 [label="Enter function getInt" style="filled" fillcolor=red];
42 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
43 [label="Const: Int(1)"];
44 [label="Jump: ^getInt Int(1)"];
45 [label="Stub" style="filled" fillcolor=gray];
46 [label="Exit function getInt" style="filled" fillcolor=red];
}
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {46};
44 -> {45} [style=dotted];
45 -> {46} [style=dotted];
subgraph cluster_12 {
color=red
47 [label="Enter function test_3" style="filled" fillcolor=red];
48 [label="Postponed enter to lambda"];
subgraph cluster_13 {
color=blue
49 [label="Enter function anonymousFunction"];
50 [label="Const: Int(1)"];
51 [label="Jump: ^test_3 Int(1)"];
52 [label="Stub" style="filled" fillcolor=gray];
53 [label="Exit function anonymousFunction"];
}
54 [label="Postponed exit from lambda"];
55 [label="Function call: R|/getInt|(...)"];
56 [label="Jump: ^test_3 R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
^test_3 Int(1)
}
)"];
57 [label="Stub" style="filled" fillcolor=gray];
58 [label="Exit function test_3" style="filled" fillcolor=red];
}
47 -> {48};
48 -> {49};
48 -> {54} [color=red];
49 -> {53 50};
50 -> {51};
51 -> {58};
51 -> {52} [style=dotted];
52 -> {53} [style=dotted];
53 -> {49};
53 -> {54} [color=green];
54 -> {55};
55 -> {56};
56 -> {58};
56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
subgraph cluster_14 {
color=red
59 [label="Enter function test_4" style="filled" fillcolor=red];
60 [label="Postponed enter to lambda"];
subgraph cluster_15 {
color=blue
61 [label="Enter function anonymousFunction"];
62 [label="Const: Int(1)"];
63 [label="Jump: ^test_4 Int(1)"];
64 [label="Stub" style="filled" fillcolor=gray];
65 [label="Exit function anonymousFunction"];
}
66 [label="Postponed exit from lambda"];
67 [label="Function call: R|/getInt|(...)"];
68 [label="Jump: ^test_4 R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
^test_4 Int(1)
}
)"];
69 [label="Stub" style="filled" fillcolor=gray];
70 [label="Exit function test_4" style="filled" fillcolor=red];
}
59 -> {60};
60 -> {61};
60 -> {66} [color=red];
61 -> {65 62};
62 -> {63};
63 -> {70};
63 -> {64} [style=dotted];
64 -> {65} [style=dotted];
65 -> {61};
65 -> {66} [color=green];
66 -> {67};
67 -> {68};
68 -> {70};
68 -> {69} [style=dotted];
69 -> {70} [style=dotted];
}