[FIR] Add control flow graph to inplace lambdas
This commit is contained in:
+164
-164
@@ -78,31 +78,31 @@ digraph flowFromInplaceLambda_kt {
|
||||
27 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
29 [label="Enter function anonymousFunction"];
|
||||
31 [label="Access variable R|<local>/x|"];
|
||||
32 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
|
||||
30 [label="Exit function anonymousFunction"];
|
||||
33 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
35 [label="Access variable R|<local>/x|"];
|
||||
36 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
|
||||
34 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
34 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
30 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
28 [label="Postponed exit from lambda"];
|
||||
33 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
35 [label="Access variable R|<local>/x|"];
|
||||
36 [label="Function call: R|/takeInt|(...)"];
|
||||
29 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
31 [label="Access variable R|<local>/x|"];
|
||||
32 [label="Function call: R|/takeInt|(...)"];
|
||||
26 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
25 -> {27};
|
||||
27 -> {29};
|
||||
27 -> {33};
|
||||
27 -> {28} [color=red];
|
||||
28 -> {33} [color=green];
|
||||
28 -> {29} [color=green];
|
||||
29 -> {31};
|
||||
30 -> {28} [color=green];
|
||||
30 -> {34} [color=red];
|
||||
30 -> {29} [color=red];
|
||||
31 -> {32};
|
||||
32 -> {30};
|
||||
32 -> {26};
|
||||
33 -> {35};
|
||||
34 -> {33} [color=red];
|
||||
34 -> {28} [color=green];
|
||||
34 -> {30} [color=red];
|
||||
35 -> {36};
|
||||
36 -> {26};
|
||||
36 -> {34};
|
||||
|
||||
subgraph cluster_7 {
|
||||
color=red
|
||||
@@ -110,80 +110,80 @@ digraph flowFromInplaceLambda_kt {
|
||||
39 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
41 [label="Enter function anonymousFunction"];
|
||||
43 [label="Access variable R|<local>/y|"];
|
||||
44 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
|
||||
45 [label="Access variable R|<local>/x|"];
|
||||
46 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
|
||||
42 [label="Exit function anonymousFunction"];
|
||||
58 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
60 [label="Access variable R|<local>/y|"];
|
||||
61 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
|
||||
62 [label="Access variable R|<local>/x|"];
|
||||
63 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
|
||||
59 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
40 [label="Postponed exit from lambda"];
|
||||
47 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
49 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
48 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
|
||||
50 [label="Access variable R|<local>/y|"];
|
||||
51 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
|
||||
52 [label="Postponed enter to lambda"];
|
||||
41 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
43 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
42 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
|
||||
44 [label="Access variable R|<local>/y|"];
|
||||
45 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
|
||||
46 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
54 [label="Enter function anonymousFunction"];
|
||||
56 [label="Access variable R|<local>/x|"];
|
||||
57 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
58 [label="Access variable R|<local>/y|"];
|
||||
59 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
|
||||
60 [label="Const: Int(1)"];
|
||||
55 [label="Exit function anonymousFunction"];
|
||||
64 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
66 [label="Access variable R|<local>/x|"];
|
||||
67 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
68 [label="Access variable R|<local>/y|"];
|
||||
69 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
|
||||
70 [label="Const: Int(1)"];
|
||||
65 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
53 [label="Postponed exit from lambda"];
|
||||
61 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
63 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
62 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
|
||||
64 [label="Variable declaration: lval a: R|kotlin/Int|"];
|
||||
65 [label="Access variable R|<local>/x|"];
|
||||
66 [label="Function call: R|/takeInt|(...)"];
|
||||
67 [label="Access variable R|<local>/y|"];
|
||||
68 [label="Function call: R|/takeInt|(...)"];
|
||||
69 [label="Access variable R|<local>/a|"];
|
||||
70 [label="Function call: R|/takeInt|(...)"];
|
||||
47 [label="Postponed exit from lambda"];
|
||||
48 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
50 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
49 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
|
||||
51 [label="Variable declaration: lval a: R|kotlin/Int|"];
|
||||
52 [label="Access variable R|<local>/x|"];
|
||||
53 [label="Function call: R|/takeInt|(...)"];
|
||||
54 [label="Access variable R|<local>/y|"];
|
||||
55 [label="Function call: R|/takeInt|(...)"];
|
||||
56 [label="Access variable R|<local>/a|"];
|
||||
57 [label="Function call: R|/takeInt|(...)"];
|
||||
38 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
37 -> {39};
|
||||
39 -> {41};
|
||||
39 -> {58};
|
||||
39 -> {40} [color=red];
|
||||
40 -> {47};
|
||||
40 -> {41};
|
||||
41 -> {43};
|
||||
42 -> {40} [color=green];
|
||||
42 -> {49} [color=red];
|
||||
43 -> {44};
|
||||
42 -> {44};
|
||||
43 -> {42};
|
||||
44 -> {45};
|
||||
45 -> {46};
|
||||
46 -> {42};
|
||||
47 -> {49};
|
||||
46 -> {64};
|
||||
46 -> {47} [color=red];
|
||||
47 -> {48};
|
||||
48 -> {50};
|
||||
49 -> {48};
|
||||
50 -> {51};
|
||||
49 -> {51};
|
||||
50 -> {49};
|
||||
51 -> {52};
|
||||
52 -> {54};
|
||||
52 -> {53} [color=red];
|
||||
53 -> {61};
|
||||
54 -> {56};
|
||||
55 -> {53} [color=green];
|
||||
55 -> {63} [color=red];
|
||||
52 -> {53};
|
||||
53 -> {54};
|
||||
54 -> {55};
|
||||
55 -> {56};
|
||||
56 -> {57};
|
||||
57 -> {58};
|
||||
58 -> {59};
|
||||
59 -> {60};
|
||||
60 -> {55};
|
||||
61 -> {63};
|
||||
62 -> {64};
|
||||
63 -> {62};
|
||||
64 -> {65};
|
||||
65 -> {66};
|
||||
57 -> {38};
|
||||
58 -> {60};
|
||||
59 -> {40} [color=green];
|
||||
59 -> {43} [color=red];
|
||||
60 -> {61};
|
||||
61 -> {62};
|
||||
62 -> {63};
|
||||
63 -> {59};
|
||||
64 -> {66};
|
||||
65 -> {47} [color=green];
|
||||
65 -> {50} [color=red];
|
||||
66 -> {67};
|
||||
67 -> {68};
|
||||
68 -> {69};
|
||||
69 -> {70};
|
||||
70 -> {38};
|
||||
70 -> {65};
|
||||
|
||||
subgraph cluster_10 {
|
||||
color=red
|
||||
@@ -191,80 +191,80 @@ digraph flowFromInplaceLambda_kt {
|
||||
73 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
75 [label="Enter function anonymousFunction"];
|
||||
77 [label="Access variable R|<local>/y|"];
|
||||
78 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
|
||||
79 [label="Access variable R|<local>/x|"];
|
||||
80 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
|
||||
81 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
|
||||
76 [label="Exit function anonymousFunction"];
|
||||
89 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
91 [label="Access variable R|<local>/y|"];
|
||||
92 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
|
||||
93 [label="Access variable R|<local>/x|"];
|
||||
94 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
|
||||
95 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
|
||||
90 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
74 [label="Postponed exit from lambda"];
|
||||
82 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
83 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
|
||||
84 [label="Postponed enter to lambda"];
|
||||
75 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
76 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
|
||||
77 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
86 [label="Enter function anonymousFunction"];
|
||||
88 [label="Access variable R|<local>/y|"];
|
||||
89 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
|
||||
90 [label="Access variable R|<local>/x|"];
|
||||
91 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
|
||||
92 [label="Access variable R|<local>/y|"];
|
||||
93 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
|
||||
94 [label="Const: Int(1)"];
|
||||
87 [label="Exit function anonymousFunction"];
|
||||
96 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
98 [label="Access variable R|<local>/y|"];
|
||||
99 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
|
||||
100 [label="Access variable R|<local>/x|"];
|
||||
101 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
|
||||
102 [label="Access variable R|<local>/y|"];
|
||||
103 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
|
||||
104 [label="Const: Int(1)"];
|
||||
97 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
85 [label="Postponed exit from lambda"];
|
||||
95 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
97 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
96 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
|
||||
98 [label="Variable declaration: lval a: R|kotlin/Int|"];
|
||||
99 [label="Access variable R|<local>/x|"];
|
||||
100 [label="Function call: R|/takeInt|(...)"];
|
||||
101 [label="Access variable R|<local>/y|"];
|
||||
102 [label="Function call: R|/takeInt|(...)"];
|
||||
103 [label="Access variable R|<local>/a|"];
|
||||
104 [label="Function call: R|/takeInt|(...)"];
|
||||
78 [label="Postponed exit from lambda"];
|
||||
79 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
81 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
80 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
|
||||
82 [label="Variable declaration: lval a: R|kotlin/Int|"];
|
||||
83 [label="Access variable R|<local>/x|"];
|
||||
84 [label="Function call: R|/takeInt|(...)"];
|
||||
85 [label="Access variable R|<local>/y|"];
|
||||
86 [label="Function call: R|/takeInt|(...)"];
|
||||
87 [label="Access variable R|<local>/a|"];
|
||||
88 [label="Function call: R|/takeInt|(...)"];
|
||||
72 [label="Exit function test_3" style="filled" fillcolor=red];
|
||||
}
|
||||
71 -> {73};
|
||||
73 -> {75};
|
||||
73 -> {89};
|
||||
73 -> {74} [color=red];
|
||||
74 -> {82};
|
||||
75 -> {77};
|
||||
76 -> {74} [color=green];
|
||||
76 -> {97} [color=red];
|
||||
77 -> {78};
|
||||
74 -> {75};
|
||||
75 -> {76};
|
||||
76 -> {77};
|
||||
77 -> {96};
|
||||
77 -> {78} [color=red];
|
||||
78 -> {79};
|
||||
79 -> {80};
|
||||
80 -> {81};
|
||||
81 -> {76};
|
||||
79 -> {81};
|
||||
80 -> {82};
|
||||
81 -> {80};
|
||||
82 -> {83};
|
||||
83 -> {84};
|
||||
84 -> {86};
|
||||
84 -> {85} [color=red];
|
||||
85 -> {95};
|
||||
86 -> {88};
|
||||
87 -> {85} [color=green];
|
||||
87 -> {97} [color=red];
|
||||
88 -> {89};
|
||||
89 -> {90};
|
||||
90 -> {91};
|
||||
84 -> {85};
|
||||
85 -> {86};
|
||||
86 -> {87};
|
||||
87 -> {88};
|
||||
88 -> {72};
|
||||
89 -> {91};
|
||||
90 -> {74} [color=green];
|
||||
90 -> {81} [color=red];
|
||||
91 -> {92};
|
||||
92 -> {93};
|
||||
93 -> {94};
|
||||
94 -> {87};
|
||||
95 -> {97};
|
||||
94 -> {95};
|
||||
95 -> {90};
|
||||
96 -> {98};
|
||||
97 -> {96};
|
||||
97 -> {78} [color=green];
|
||||
97 -> {81} [color=red];
|
||||
98 -> {99};
|
||||
99 -> {100};
|
||||
100 -> {101};
|
||||
101 -> {102};
|
||||
102 -> {103};
|
||||
103 -> {104};
|
||||
104 -> {72};
|
||||
104 -> {97};
|
||||
|
||||
subgraph cluster_13 {
|
||||
color=red
|
||||
@@ -349,50 +349,50 @@ digraph flowFromInplaceLambda_kt {
|
||||
141 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_17 {
|
||||
color=blue
|
||||
143 [label="Enter function anonymousFunction"];
|
||||
145 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
|
||||
144 [label="Exit function anonymousFunction"];
|
||||
152 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
154 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
|
||||
153 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
142 [label="Postponed exit from lambda"];
|
||||
146 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
147 [label="Postponed enter to lambda"];
|
||||
143 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
144 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_18 {
|
||||
color=blue
|
||||
149 [label="Enter function anonymousFunction"];
|
||||
151 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
|
||||
150 [label="Exit function anonymousFunction"];
|
||||
155 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
157 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
|
||||
156 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
148 [label="Postponed exit from lambda"];
|
||||
152 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
154 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
153 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
|
||||
155 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
156 [label="Access variable R|<local>/x|"];
|
||||
157 [label="Function call: R|/takeInt|(...)"];
|
||||
145 [label="Postponed exit from lambda"];
|
||||
146 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
|
||||
148 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
147 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
|
||||
149 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
150 [label="Access variable R|<local>/x|"];
|
||||
151 [label="Function call: R|/takeInt|(...)"];
|
||||
140 [label="Exit function test_5" style="filled" fillcolor=red];
|
||||
}
|
||||
139 -> {141};
|
||||
141 -> {143};
|
||||
141 -> {152};
|
||||
141 -> {142} [color=red];
|
||||
142 -> {146};
|
||||
143 -> {145};
|
||||
144 -> {142} [color=green];
|
||||
144 -> {154} [color=red];
|
||||
145 -> {144};
|
||||
146 -> {147};
|
||||
142 -> {143};
|
||||
143 -> {144};
|
||||
144 -> {155};
|
||||
144 -> {145} [color=red];
|
||||
145 -> {146};
|
||||
146 -> {148};
|
||||
147 -> {149};
|
||||
147 -> {148} [color=red];
|
||||
148 -> {152};
|
||||
149 -> {151};
|
||||
150 -> {148} [color=green];
|
||||
150 -> {154} [color=red];
|
||||
151 -> {150};
|
||||
148 -> {147};
|
||||
149 -> {150};
|
||||
150 -> {151};
|
||||
151 -> {140};
|
||||
152 -> {154};
|
||||
153 -> {155};
|
||||
153 -> {142} [color=green];
|
||||
153 -> {148} [color=red];
|
||||
154 -> {153};
|
||||
155 -> {156};
|
||||
156 -> {157};
|
||||
157 -> {140};
|
||||
155 -> {157};
|
||||
156 -> {145} [color=green];
|
||||
156 -> {148} [color=red];
|
||||
157 -> {156};
|
||||
|
||||
subgraph cluster_19 {
|
||||
color=red
|
||||
@@ -404,12 +404,12 @@ digraph flowFromInplaceLambda_kt {
|
||||
167 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_21 {
|
||||
color=blue
|
||||
169 [label="Enter function anonymousFunction"];
|
||||
171 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
|
||||
170 [label="Exit function anonymousFunction"];
|
||||
170 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
172 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
|
||||
171 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
168 [label="Postponed exit from lambda"];
|
||||
172 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
|
||||
169 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
|
||||
166 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
161 [label="Postponed exit from lambda"];
|
||||
@@ -426,12 +426,12 @@ digraph flowFromInplaceLambda_kt {
|
||||
163 -> {164};
|
||||
164 -> {159};
|
||||
165 -> {167};
|
||||
167 -> {169};
|
||||
167 -> {170};
|
||||
167 -> {168} [color=red];
|
||||
168 -> {172};
|
||||
169 -> {171};
|
||||
170 -> {168} [color=green];
|
||||
171 -> {170};
|
||||
172 -> {166};
|
||||
168 -> {169};
|
||||
169 -> {166};
|
||||
170 -> {172};
|
||||
171 -> {168} [color=green];
|
||||
172 -> {171};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user