Test: FIR CFA: index nodes in rendering order

This commit is contained in:
pyos
2022-12-11 01:22:45 +01:00
committed by Dmitriy Novozhilov
parent a9397b7b23
commit 54f32a6fba
71 changed files with 6272 additions and 6323 deletions
@@ -13,41 +13,41 @@ digraph callsInPlace_kt {
3 [label="Postponed enter to lambda"];
subgraph cluster_2 {
color=blue
10 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
4 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
11 [label="Enter block"];
12 [label="Const: Int(1)"];
13 [label="Assignment: R|<local>/x|"];
14 [label="Exit block"];
5 [label="Enter block"];
6 [label="Const: Int(1)"];
7 [label="Assignment: R|<local>/x|"];
8 [label="Exit block"];
}
15 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
9 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
4 [label="Postponed exit from lambda"];
5 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
6 [label="Access variable R|<local>/x|"];
7 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
8 [label="Exit block"];
10 [label="Postponed exit from lambda"];
11 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
12 [label="Access variable R|<local>/x|"];
13 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
14 [label="Exit block"];
}
9 [label="Exit function test" style="filled" fillcolor=red];
15 [label="Exit function test" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {5 10};
3 -> {4} [style=dotted];
3 -> {10} [style=dashed];
3 -> {4 11};
3 -> {10} [style=dotted];
3 -> {4} [style=dashed];
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {4};
subgraph cluster_4 {
color=red
@@ -59,35 +59,35 @@ digraph callsInPlace_kt {
19 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
24 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
20 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
25 [label="Enter block"];
26 [label="Const: String(test_2)"];
27 [label="Exit block"];
21 [label="Enter block"];
22 [label="Const: String(test_2)"];
23 [label="Exit block"];
}
28 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
24 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
20 [label="Postponed exit from lambda"];
21 [label="Function call: R|kotlin/repeat|(...)" style="filled" fillcolor=yellow];
22 [label="Exit block"];
25 [label="Postponed exit from lambda"];
26 [label="Function call: R|kotlin/repeat|(...)" style="filled" fillcolor=yellow];
27 [label="Exit block"];
}
23 [label="Exit function test_2" style="filled" fillcolor=red];
28 [label="Exit function test_2" style="filled" fillcolor=red];
}
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20 21 24};
19 -> {24} [style=dashed];
19 -> {20 25 26};
19 -> {20} [style=dashed];
20 -> {21};
20 -> {19} [color=green style=dashed];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
25 -> {19} [color=green style=dashed];
26 -> {27};
27 -> {28};
28 -> {20};
subgraph cluster_8 {
color=red
@@ -99,35 +99,35 @@ digraph callsInPlace_kt {
32 [label="Postponed enter to lambda"];
subgraph cluster_10 {
color=blue
37 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
33 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
38 [label="Enter block"];
39 [label="Const: String(test_3)"];
40 [label="Exit block"];
34 [label="Enter block"];
35 [label="Const: String(test_3)"];
36 [label="Exit block"];
}
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
37 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
33 [label="Postponed exit from lambda"];
34 [label="Function call: R|kotlin/repeat|(...)" style="filled" fillcolor=yellow];
35 [label="Exit block"];
38 [label="Postponed exit from lambda"];
39 [label="Function call: R|kotlin/repeat|(...)" style="filled" fillcolor=yellow];
40 [label="Exit block"];
}
36 [label="Exit function test_3" style="filled" fillcolor=red];
41 [label="Exit function test_3" style="filled" fillcolor=red];
}
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33 34 37};
32 -> {37} [style=dashed];
32 -> {33 38 39};
32 -> {33} [style=dashed];
33 -> {34};
33 -> {32} [color=green style=dashed];
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
38 -> {32} [color=green style=dashed];
39 -> {40};
40 -> {41};
41 -> {33};
subgraph cluster_12 {
color=red
@@ -139,34 +139,35 @@ digraph callsInPlace_kt {
45 [label="Postponed enter to lambda"];
subgraph cluster_14 {
color=blue
50 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
46 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
51 [label="Enter block"];
52 [label="Const: String(test_4)"];
53 [label="Access variable R|<local>/it|"];
54 [label="Const: Int(0)"];
55 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)" style="filled" fillcolor=yellow];
56 [label="Comparison >"];
57 [label="Exit block"];
47 [label="Enter block"];
48 [label="Const: String(test_4)"];
49 [label="Access variable R|<local>/it|"];
50 [label="Const: Int(0)"];
51 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)" style="filled" fillcolor=yellow];
52 [label="Comparison >"];
53 [label="Exit block"];
}
58 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
54 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
46 [label="Postponed exit from lambda"];
47 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
48 [label="Exit block"];
55 [label="Postponed exit from lambda"];
56 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
57 [label="Exit block"];
}
49 [label="Exit function test_4" style="filled" fillcolor=red];
58 [label="Exit function test_4" style="filled" fillcolor=red];
}
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {47 50};
45 -> {46} [style=dotted];
45 -> {50} [style=dashed];
45 -> {46 56};
45 -> {55} [style=dotted];
45 -> {46} [style=dashed];
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
@@ -175,7 +176,6 @@ digraph callsInPlace_kt {
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {46};
subgraph cluster_16 {
color=red
@@ -187,34 +187,35 @@ digraph callsInPlace_kt {
62 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
67 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
63 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
68 [label="Enter block"];
69 [label="Const: String(test_5)"];
70 [label="Access variable R|<local>/it|"];
71 [label="Const: Int(0)"];
72 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)" style="filled" fillcolor=yellow];
73 [label="Comparison >"];
74 [label="Exit block"];
64 [label="Enter block"];
65 [label="Const: String(test_5)"];
66 [label="Access variable R|<local>/it|"];
67 [label="Const: Int(0)"];
68 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)" style="filled" fillcolor=yellow];
69 [label="Comparison >"];
70 [label="Exit block"];
}
75 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
71 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
63 [label="Postponed exit from lambda"];
64 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
65 [label="Exit block"];
72 [label="Postponed exit from lambda"];
73 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
74 [label="Exit block"];
}
66 [label="Exit function test_5" style="filled" fillcolor=red];
75 [label="Exit function test_5" style="filled" fillcolor=red];
}
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {64 67};
62 -> {63} [style=dotted];
62 -> {67} [style=dashed];
62 -> {63 73};
62 -> {72} [style=dotted];
62 -> {63} [style=dashed];
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
@@ -223,7 +224,6 @@ digraph callsInPlace_kt {
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {63};
subgraph cluster_20 {
color=red
@@ -252,14 +252,14 @@ digraph callsInPlace_kt {
84 [label="Postponed enter to lambda"];
subgraph cluster_24 {
color=blue
95 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
85 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_25 {
color=blue
96 [label="Enter block"];
97 [label="Const: String(test_6_2)"];
98 [label="Exit block"];
86 [label="Enter block"];
87 [label="Const: String(test_6_2)"];
88 [label="Exit block"];
}
99 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
89 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
subgraph cluster_26 {
color=blue
@@ -272,33 +272,33 @@ digraph callsInPlace_kt {
}
94 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
85 [label="Postponed exit from lambda"];
86 [label="Postponed exit from lambda"];
87 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
88 [label="Exit block"];
95 [label="Postponed exit from lambda"];
96 [label="Postponed exit from lambda"];
97 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
98 [label="Exit block"];
}
89 [label="Exit function test_6" style="filled" fillcolor=red];
99 [label="Exit function test_6" style="filled" fillcolor=red];
}
82 -> {83};
83 -> {84};
84 -> {85 86 87 90 95};
84 -> {90 95} [style=dashed];
85 -> {87};
85 -> {84} [color=green style=dashed];
84 -> {85 90 95 96 97};
84 -> {85 90} [style=dashed];
85 -> {86};
86 -> {87};
86 -> {84} [color=green style=dashed];
87 -> {88};
88 -> {89};
89 -> {95};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {86};
95 -> {96};
94 -> {96};
95 -> {97};
95 -> {84} [color=green style=dashed];
96 -> {97};
96 -> {84} [color=green style=dashed];
97 -> {98};
98 -> {99};
99 -> {85};
subgraph cluster_28 {
color=red
@@ -309,14 +309,14 @@ digraph callsInPlace_kt {
102 [label="Postponed enter to lambda"];
subgraph cluster_30 {
color=blue
113 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
103 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
114 [label="Enter block"];
115 [label="Const: String(test_7_1)"];
116 [label="Exit block"];
104 [label="Enter block"];
105 [label="Const: String(test_7_1)"];
106 [label="Exit block"];
}
117 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
107 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
subgraph cluster_32 {
color=blue
@@ -329,33 +329,33 @@ digraph callsInPlace_kt {
}
112 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
103 [label="Postponed exit from lambda"];
104 [label="Postponed exit from lambda"];
105 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
106 [label="Exit block"];
113 [label="Postponed exit from lambda"];
114 [label="Postponed exit from lambda"];
115 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
116 [label="Exit block"];
}
107 [label="Exit function test_7" style="filled" fillcolor=red];
117 [label="Exit function test_7" style="filled" fillcolor=red];
}
100 -> {101};
101 -> {102};
102 -> {103 104 105 108 113};
102 -> {108 113} [style=dashed];
103 -> {105};
103 -> {102} [color=green style=dashed];
102 -> {103 108 113 114 115};
102 -> {103 108} [style=dashed];
103 -> {104};
104 -> {105};
104 -> {102} [color=green style=dashed];
105 -> {106};
106 -> {107};
107 -> {113};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {104};
113 -> {114};
112 -> {114};
113 -> {115};
113 -> {102} [color=green style=dashed];
114 -> {115};
114 -> {102} [color=green style=dashed];
115 -> {116};
116 -> {117};
117 -> {103};
subgraph cluster_34 {
color=red
@@ -382,29 +382,29 @@ digraph callsInPlace_kt {
125 [label="Postponed enter to lambda"];
subgraph cluster_38 {
color=blue
130 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
126 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
131 [label="Enter block"];
132 [label="Const: String(test_8)"];
133 [label="Exit block"];
127 [label="Enter block"];
128 [label="Const: String(test_8)"];
129 [label="Exit block"];
}
134 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
130 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
126 [label="Postponed exit from lambda"];
127 [label="Function call: R|/myDummyRun|(...)" style="filled" fillcolor=yellow];
128 [label="Exit block"];
131 [label="Postponed exit from lambda"];
132 [label="Function call: R|/myDummyRun|(...)" style="filled" fillcolor=yellow];
133 [label="Exit block"];
}
129 [label="Exit function test_8" style="filled" fillcolor=red];
134 [label="Exit function test_8" style="filled" fillcolor=red];
}
123 -> {124};
124 -> {125};
125 -> {126 127 130};
125 -> {130} [style=dashed];
125 -> {126 131 132};
125 -> {126} [style=dashed];
126 -> {127};
127 -> {128};
128 -> {129};
130 -> {131};
129 -> {130};
131 -> {132};
132 -> {133};
133 -> {134};