[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,241 @@
digraph safeCalls_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="Const: String()"];
2 [label="Jump: ^foo String()"];
3 [label="Stub" style="filled" fillcolor=gray];
4 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {4};
2 -> {3} [style=dotted];
3 -> {4} [style=dotted];
subgraph cluster_1 {
color=red
5 [label="Enter function let" style="filled" fillcolor=red];
6 [label="Exit function let" style="filled" fillcolor=red];
}
5 -> {6};
subgraph cluster_2 {
color=red
7 [label="Enter function test" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/x|"];
9 [label="Enter safe call"];
10 [label="Access variable R|<local>/x|"];
11 [label="Access variable R|kotlin/String.length|"];
12 [label="Const: Int(1)"];
13 [label="Operator =="];
14 [label="Function call: R|<local>/x|?.R|/foo|(...)"];
15 [label="Exit safe call"];
16 [label="Access variable R|<local>/x|"];
17 [label="Access variable <Inapplicable(WRONG_RECEIVER): [kotlin/String.length]>#"];
18 [label="Exit function test" style="filled" fillcolor=red];
}
7 -> {8};
8 -> {9 15};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
subgraph cluster_3 {
color=red
19 [label="Enter function bar" style="filled" fillcolor=red];
20 [label="Exit function bar" style="filled" fillcolor=red];
}
19 -> {20};
subgraph cluster_4 {
color=red
21 [label="Enter function bool" style="filled" fillcolor=red];
22 [label="Exit function bool" style="filled" fillcolor=red];
}
21 -> {22};
subgraph cluster_5 {
color=red
23 [label="Enter function id" style="filled" fillcolor=red];
24 [label="Exit function id" style="filled" fillcolor=red];
}
23 -> {24};
subgraph cluster_6 {
color=red
25 [label="Enter function test_2" style="filled" fillcolor=red];
26 [label="Access variable R|<local>/x|"];
27 [label="Type operator: (R|<local>/x| as? R|A|)"];
28 [label="Enter safe call"];
29 [label="Access variable R|<local>/x|"];
30 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)"];
31 [label="Exit safe call"];
32 [label="Exit function test_2" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27};
27 -> {28 31};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
subgraph cluster_7 {
color=red
33 [label="Enter function test_3" style="filled" fillcolor=red];
34 [label="Access variable R|<local>/x|"];
35 [label="Type operator: (R|<local>/x| as? R|A|)"];
36 [label="Enter safe call"];
37 [label="Access variable R|<local>/x|"];
38 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)"];
39 [label="Exit safe call"];
40 [label="Enter safe call"];
41 [label="Access variable R|<local>/x|"];
42 [label="Function call: R|<local>/x|.R|/A.bool|()"];
43 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)?.R|/foo|(...)"];
44 [label="Exit safe call"];
45 [label="Enter safe call"];
46 [label="Postponed enter to lambda"];
47 [label="Postponed exit from lambda"];
48 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)?.R|/foo|(...)?.R|/let|(...)"];
49 [label="Exit safe call"];
50 [label="Access variable R|<local>/x|"];
51 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()"];
52 [label="Exit function test_3" style="filled" fillcolor=red];
}
33 -> {34};
34 -> {35};
35 -> {36 39};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40 44};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45 49};
45 -> {46};
46 -> {47 47} [color=green];
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
subgraph cluster_8 {
color=red
53 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
54 [label="Access variable R|<local>/x|"];
55 [label="Function call: R|<local>/x|.R|/A.bool|()"];
56 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
53 -> {54};
54 -> {55};
55 -> {56};
subgraph cluster_9 {
color=red
57 [label="Enter function test_4" style="filled" fillcolor=red];
58 [label="Access variable R|<local>/x|"];
59 [label="Enter safe call"];
60 [label="Function call: R|<local>/x|?.R|/A.id|()"];
61 [label="Exit safe call"];
62 [label="Enter safe call"];
63 [label="Function call: R|<local>/x|?.R|/A.id|()?.R|/A.bool|()"];
64 [label="Exit safe call"];
65 [label="Access variable R|<local>/x|"];
66 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
67 [label="Exit function test_4" style="filled" fillcolor=red];
}
57 -> {58};
58 -> {59 61};
59 -> {60};
60 -> {61};
61 -> {62 64};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
subgraph cluster_10 {
color=red
68 [label="Enter function boo" style="filled" fillcolor=red];
69 [label="Exit function boo" style="filled" fillcolor=red];
}
68 -> {69};
subgraph cluster_11 {
color=red
70 [label="Enter function test_5" style="filled" fillcolor=red];
71 [label="Access variable R|<local>/x|"];
72 [label="Enter safe call"];
73 [label="Postponed enter to lambda"];
subgraph cluster_12 {
color=blue
74 [label="Enter function anonymousFunction"];
75 [label="Jump: ^test_5 Unit"];
76 [label="Stub" style="filled" fillcolor=gray];
77 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
}
78 [label="Call arguments union" style="filled" fillcolor=gray];
79 [label="Postponed exit from lambda"];
80 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
81 [label="Exit safe call"];
82 [label="Enter safe call"];
83 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|/A.bool|()"];
85 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)?.R|/boo|(...)"];
86 [label="Exit safe call"];
87 [label="Access variable R|<local>/x|"];
88 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
89 [label="Exit function test_5" style="filled" fillcolor=red];
}
70 -> {71};
71 -> {72 81};
72 -> {73};
73 -> {74};
73 -> {79} [color=red];
74 -> {75};
75 -> {89};
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
77 -> {79} [color=green];
78 -> {80} [style=dotted];
79 -> {80} [color=green];
80 -> {81} [style=dotted];
81 -> {82 86};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
}