[FIR] Add control flow graph to inplace lambdas

This commit is contained in:
Dmitriy Novozhilov
2020-03-31 15:23:32 +03:00
parent 1d39270b3e
commit bcd2e5ed2c
20 changed files with 983 additions and 996 deletions
@@ -33,17 +33,17 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
}
subgraph cluster_4 {
color=blue
23 [label="Enter when branch condition else"];
24 [label="Exit when branch condition"];
20 [label="Enter when branch condition else"];
21 [label="Exit when branch condition"];
}
25 [label="Enter when branch result"];
22 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
26 [label="Enter block"];
27 [label="Const: String()"];
28 [label="Exit block"];
23 [label="Enter block"];
24 [label="Const: String()"];
25 [label="Exit block"];
}
29 [label="Exit when branch result"];
26 [label="Exit when branch result"];
13 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
@@ -51,48 +51,48 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
15 [label="Postponed enter to lambda"];
subgraph cluster_7 {
color=blue
17 [label="Enter function anonymousFunction"];
19 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
18 [label="Exit function anonymousFunction"];
29 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
31 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
30 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
16 [label="Postponed exit from lambda"];
20 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
21 [label="Exit block"];
17 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
18 [label="Exit block"];
}
22 [label="Exit when branch result"];
19 [label="Exit when branch result"];
9 [label="Exit when"];
}
30 [label="Call arguments union" style="filled" fillcolor=yellow];
31 [label="Variable declaration: lval x: R|kotlin/String|"];
27 [label="Call arguments union" style="filled" fillcolor=yellow];
28 [label="Variable declaration: lval x: R|kotlin/String|"];
7 [label="Exit function test_1" style="filled" fillcolor=red];
}
6 -> {8};
8 -> {10};
9 -> {30};
9 -> {27};
10 -> {11};
11 -> {12};
12 -> {13 23};
12 -> {13 20};
13 -> {14};
14 -> {15};
15 -> {17};
15 -> {29};
15 -> {16} [color=red];
16 -> {20};
17 -> {19};
18 -> {16} [color=green];
18 -> {30} [color=red];
19 -> {18};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {9};
20 -> {21};
21 -> {22};
22 -> {9};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
26 -> {9};
27 -> {28};
28 -> {29};
29 -> {9};
30 -> {31};
31 -> {7};
28 -> {7};
29 -> {31};
30 -> {16} [color=green];
30 -> {27} [color=red];
31 -> {30};
subgraph cluster_8 {
color=red
@@ -109,55 +109,55 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
39 [label="Postponed enter to lambda"];
subgraph cluster_12 {
color=blue
41 [label="Enter function anonymousFunction"];
43 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
42 [label="Exit function anonymousFunction"];
50 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
52 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
51 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
40 [label="Postponed exit from lambda"];
44 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
45 [label="Exit block"];
41 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
42 [label="Exit block"];
}
46 [label="Try main block exit"];
43 [label="Try main block exit"];
}
subgraph cluster_13 {
color=blue
37 [label="Catch enter"];
subgraph cluster_14 {
color=blue
47 [label="Enter block"];
48 [label="Const: String()"];
49 [label="Exit block"];
44 [label="Enter block"];
45 [label="Const: String()"];
46 [label="Exit block"];
}
50 [label="Catch exit"];
47 [label="Catch exit"];
}
35 [label="Try expression exit"];
}
51 [label="Call arguments union" style="filled" fillcolor=yellow];
52 [label="Variable declaration: lval x: R|kotlin/String|"];
48 [label="Call arguments union" style="filled" fillcolor=yellow];
49 [label="Variable declaration: lval x: R|kotlin/String|"];
33 [label="Exit function test_2" style="filled" fillcolor=red];
}
32 -> {34};
34 -> {36};
35 -> {51};
35 -> {48};
36 -> {33 37 38};
37 -> {33 47};
37 -> {33 44};
38 -> {39};
39 -> {41};
39 -> {50};
39 -> {40} [color=red];
40 -> {44};
41 -> {43};
42 -> {40} [color=green];
42 -> {51} [color=red];
43 -> {42};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {35};
44 -> {45};
45 -> {46};
46 -> {35};
47 -> {48};
46 -> {47};
47 -> {35};
48 -> {49};
49 -> {50};
50 -> {35};
51 -> {52};
52 -> {33};
49 -> {33};
50 -> {52};
51 -> {40} [color=green];
51 -> {48} [color=red];
52 -> {51};
subgraph cluster_15 {
color=red
@@ -165,28 +165,28 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
55 [label="Postponed enter to lambda"];
subgraph cluster_16 {
color=blue
57 [label="Enter function anonymousFunction"];
59 [label="Function call: R|/materialize|<R|kotlin/String?|>()"];
58 [label="Exit function anonymousFunction"];
61 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
63 [label="Function call: R|/materialize|<R|kotlin/String?|>()"];
62 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
56 [label="Postponed exit from lambda"];
60 [label="Function call: R|kotlin/run|<R|kotlin/String?|>(...)"];
61 [label="Check not null: R|kotlin/run|<R|kotlin/String?|>(...)!!"];
62 [label="Call arguments union" style="filled" fillcolor=yellow];
63 [label="Variable declaration: lval x: R|kotlin/String|"];
57 [label="Function call: R|kotlin/run|<R|kotlin/String?|>(...)"];
58 [label="Check not null: R|kotlin/run|<R|kotlin/String?|>(...)!!"];
59 [label="Call arguments union" style="filled" fillcolor=yellow];
60 [label="Variable declaration: lval x: R|kotlin/String|"];
54 [label="Exit function test_3" style="filled" fillcolor=red];
}
53 -> {55};
55 -> {57};
55 -> {61};
55 -> {56} [color=red];
56 -> {60};
57 -> {59};
58 -> {56} [color=green];
58 -> {62} [color=red];
59 -> {58};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {54};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {54};
61 -> {63};
62 -> {56} [color=green];
62 -> {59} [color=red];
63 -> {62};
}