[FIR] Create CFG for files to track top-level property initialization
In order to properly analyze top-level property initialization, a control-flow graph must be created for FirFiles. This change adds the foundation for the file CFG and updates body resolve to create the CFG. Checking the CFG for proper initialization is separated into a following change to ease code review. KT-56683
This commit is contained in:
+110
-103
@@ -5,142 +5,149 @@ digraph atLeastOnce_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter function inlineRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
2 [label="Enter block"];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
0 [label="Enter file atLeastOnce.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file atLeastOnce.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter function inlineRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
3 [label="Enter block"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
4 [label="Enter block"];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
7 [label="Exit block"];
|
||||
}
|
||||
8 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
|
||||
subgraph cluster_3 {
|
||||
color=red
|
||||
7 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
8 [label="Enter block"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
9 [label="Enter block"];
|
||||
10 [label="Exit block"];
|
||||
}
|
||||
11 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
12 [label="Exit block"];
|
||||
}
|
||||
13 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
9 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
10 [label="Enter block"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
11 [label="Enter block"];
|
||||
12 [label="Exit block"];
|
||||
}
|
||||
13 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
14 [label="Exit block"];
|
||||
}
|
||||
15 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
|
||||
subgraph cluster_6 {
|
||||
color=red
|
||||
14 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
15 [label="Enter block"];
|
||||
16 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
17 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
18 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
19 [label="Enter block"];
|
||||
20 [label="Const: Int(1)"];
|
||||
21 [label="Assignment: R|<local>/x|"];
|
||||
22 [label="Exit block"];
|
||||
}
|
||||
23 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
24 [label="Postponed exit from lambda"];
|
||||
25 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
26 [label="Access variable R|<local>/x|"];
|
||||
27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
28 [label="Exit block"];
|
||||
}
|
||||
29 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
|
||||
subgraph cluster_7 {
|
||||
color=red
|
||||
16 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
17 [label="Enter block"];
|
||||
18 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
19 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
20 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
21 [label="Enter block"];
|
||||
22 [label="Const: Int(1)"];
|
||||
23 [label="Assignment: R|<local>/x|"];
|
||||
24 [label="Exit block"];
|
||||
}
|
||||
25 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
26 [label="Postponed exit from lambda"];
|
||||
27 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
28 [label="Access variable R|<local>/x|"];
|
||||
29 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
30 [label="Exit block"];
|
||||
}
|
||||
31 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
16 -> {17};
|
||||
17 -> {18 25};
|
||||
17 -> {24} [style=dotted];
|
||||
17 -> {18} [style=dashed];
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
19 -> {20 27};
|
||||
19 -> {26} [style=dotted];
|
||||
19 -> {20} [style=dashed];
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
24 -> {17} [color=green style=dashed];
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
26 -> {19} [color=green style=dashed];
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
|
||||
subgraph cluster_10 {
|
||||
color=red
|
||||
30 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
31 [label="Enter block"];
|
||||
32 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
33 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
34 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
35 [label="Enter block"];
|
||||
36 [label="Const: Int(1)"];
|
||||
37 [label="Assignment: R|<local>/x|"];
|
||||
38 [label="Exit block"];
|
||||
}
|
||||
39 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
40 [label="Postponed exit from lambda"];
|
||||
41 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
42 [label="Access variable R|<local>/x|"];
|
||||
43 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
44 [label="Exit block"];
|
||||
}
|
||||
45 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
|
||||
subgraph cluster_11 {
|
||||
color=red
|
||||
32 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
33 [label="Enter block"];
|
||||
34 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
35 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
36 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_14 {
|
||||
color=blue
|
||||
37 [label="Enter block"];
|
||||
38 [label="Const: Int(1)"];
|
||||
39 [label="Assignment: R|<local>/x|"];
|
||||
40 [label="Exit block"];
|
||||
}
|
||||
41 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
42 [label="Postponed exit from lambda"];
|
||||
43 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
44 [label="Access variable R|<local>/x|"];
|
||||
45 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
46 [label="Exit block"];
|
||||
}
|
||||
47 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
32 -> {33};
|
||||
33 -> {34 41};
|
||||
33 -> {40} [style=dotted];
|
||||
33 -> {34} [style=dashed];
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
35 -> {36 43};
|
||||
35 -> {42} [style=dotted];
|
||||
35 -> {36} [style=dashed];
|
||||
36 -> {37};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
40 -> {33} [color=green style=dashed];
|
||||
41 -> {42};
|
||||
42 -> {43};
|
||||
42 -> {35} [color=green style=dashed];
|
||||
43 -> {44};
|
||||
44 -> {45};
|
||||
45 -> {46};
|
||||
46 -> {47};
|
||||
|
||||
}
|
||||
|
||||
+106
-99
@@ -5,85 +5,90 @@ digraph atMostOnce_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter function inlineRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
2 [label="Enter block"];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
0 [label="Enter file atMostOnce.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file atMostOnce.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter function inlineRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
3 [label="Enter block"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
4 [label="Enter block"];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
7 [label="Exit block"];
|
||||
}
|
||||
8 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
|
||||
subgraph cluster_3 {
|
||||
color=red
|
||||
7 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
8 [label="Enter block"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
9 [label="Enter block"];
|
||||
10 [label="Exit block"];
|
||||
}
|
||||
11 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
12 [label="Exit block"];
|
||||
}
|
||||
13 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
9 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
10 [label="Enter block"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
11 [label="Enter block"];
|
||||
12 [label="Exit block"];
|
||||
}
|
||||
13 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
14 [label="Exit block"];
|
||||
}
|
||||
15 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
|
||||
subgraph cluster_6 {
|
||||
color=red
|
||||
14 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
15 [label="Enter block"];
|
||||
16 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
17 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
18 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
19 [label="Enter block"];
|
||||
20 [label="Const: Int(1)"];
|
||||
21 [label="Assignment: R|<local>/x|"];
|
||||
22 [label="Exit block"];
|
||||
}
|
||||
23 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
24 [label="Postponed exit from lambda"];
|
||||
25 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
26 [label="Access variable R|<local>/x|"];
|
||||
27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
28 [label="Exit block"];
|
||||
}
|
||||
29 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
|
||||
subgraph cluster_7 {
|
||||
color=red
|
||||
16 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
17 [label="Enter block"];
|
||||
18 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
19 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
20 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
21 [label="Enter block"];
|
||||
22 [label="Const: Int(1)"];
|
||||
23 [label="Assignment: R|<local>/x|"];
|
||||
24 [label="Exit block"];
|
||||
}
|
||||
25 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
26 [label="Postponed exit from lambda"];
|
||||
27 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
28 [label="Access variable R|<local>/x|"];
|
||||
29 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
30 [label="Exit block"];
|
||||
}
|
||||
31 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
16 -> {17};
|
||||
17 -> {18 24 25};
|
||||
17 -> {18} [style=dashed];
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
19 -> {20 26 27};
|
||||
19 -> {20} [style=dashed];
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
@@ -93,42 +98,42 @@ digraph atMostOnce_kt {
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
|
||||
subgraph cluster_10 {
|
||||
color=red
|
||||
30 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
31 [label="Enter block"];
|
||||
32 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
33 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
34 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
35 [label="Enter block"];
|
||||
36 [label="Const: Int(1)"];
|
||||
37 [label="Assignment: R|<local>/x|"];
|
||||
38 [label="Exit block"];
|
||||
}
|
||||
39 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
40 [label="Postponed exit from lambda"];
|
||||
41 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
42 [label="Access variable R|<local>/x|"];
|
||||
43 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
44 [label="Exit block"];
|
||||
}
|
||||
45 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
|
||||
subgraph cluster_11 {
|
||||
color=red
|
||||
32 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
33 [label="Enter block"];
|
||||
34 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
35 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
36 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_14 {
|
||||
color=blue
|
||||
37 [label="Enter block"];
|
||||
38 [label="Const: Int(1)"];
|
||||
39 [label="Assignment: R|<local>/x|"];
|
||||
40 [label="Exit block"];
|
||||
}
|
||||
41 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
42 [label="Postponed exit from lambda"];
|
||||
43 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
44 [label="Access variable R|<local>/x|"];
|
||||
45 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
46 [label="Exit block"];
|
||||
}
|
||||
47 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
32 -> {33};
|
||||
33 -> {34 40 41};
|
||||
33 -> {34} [style=dashed];
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
35 -> {36 42 43};
|
||||
35 -> {36} [style=dashed];
|
||||
36 -> {37};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
@@ -138,5 +143,7 @@ digraph atMostOnce_kt {
|
||||
42 -> {43};
|
||||
43 -> {44};
|
||||
44 -> {45};
|
||||
45 -> {46};
|
||||
46 -> {47};
|
||||
|
||||
}
|
||||
|
||||
+98
-91
@@ -5,148 +5,155 @@ digraph contractsUsage_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter function bar" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
2 [label="Enter block"];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Access variable R|<local>/x|"];
|
||||
5 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
6 [label="Exit block"];
|
||||
}
|
||||
7 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
0 [label="Enter file contractsUsage.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file contractsUsage.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter function bar" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
3 [label="Enter block"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
4 [label="Enter block"];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Access variable R|<local>/x|"];
|
||||
7 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
8 [label="Exit block"];
|
||||
}
|
||||
9 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
|
||||
subgraph cluster_3 {
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
8 [label="Enter function baz" style="filled" fillcolor=red];
|
||||
subgraph cluster_4 {
|
||||
10 [label="Enter function baz" style="filled" fillcolor=red];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
9 [label="Enter block"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
10 [label="Enter block"];
|
||||
11 [label="Exit block"];
|
||||
}
|
||||
11 [label="Enter block"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
12 [label="Enter when"];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
13 [label="Enter when branch condition "];
|
||||
14 [label="Const: Boolean(true)"];
|
||||
15 [label="Exit when branch condition"];
|
||||
}
|
||||
16 [label="Synthetic else branch"];
|
||||
17 [label="Enter when branch result"];
|
||||
12 [label="Enter block"];
|
||||
13 [label="Exit block"];
|
||||
}
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
14 [label="Enter when"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
18 [label="Enter block"];
|
||||
19 [label="Access variable this@R|/baz|"];
|
||||
20 [label="Function call: this@R|/baz|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
21 [label="Exit block"];
|
||||
15 [label="Enter when branch condition "];
|
||||
16 [label="Const: Boolean(true)"];
|
||||
17 [label="Exit when branch condition"];
|
||||
}
|
||||
22 [label="Exit when branch result"];
|
||||
23 [label="Exit when"];
|
||||
18 [label="Synthetic else branch"];
|
||||
19 [label="Enter when branch result"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
20 [label="Enter block"];
|
||||
21 [label="Access variable this@R|/baz|"];
|
||||
22 [label="Function call: this@R|/baz|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
23 [label="Exit block"];
|
||||
}
|
||||
24 [label="Exit when branch result"];
|
||||
25 [label="Exit when"];
|
||||
}
|
||||
24 [label="Exit block"];
|
||||
26 [label="Exit block"];
|
||||
}
|
||||
25 [label="Exit function baz" style="filled" fillcolor=red];
|
||||
27 [label="Exit function baz" style="filled" fillcolor=red];
|
||||
}
|
||||
8 -> {9};
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {16 17};
|
||||
16 -> {23};
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
17 -> {18 19};
|
||||
18 -> {25};
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
|
||||
subgraph cluster_9 {
|
||||
subgraph cluster_10 {
|
||||
color=red
|
||||
26 [label="Enter function foo" style="filled" fillcolor=red];
|
||||
subgraph cluster_10 {
|
||||
28 [label="Enter function foo" style="filled" fillcolor=red];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
27 [label="Enter block"];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
28 [label="Enter block"];
|
||||
29 [label="Exit block"];
|
||||
}
|
||||
29 [label="Enter block"];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
30 [label="Enter when"];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
31 [label="Enter when branch condition "];
|
||||
32 [label="Const: Boolean(true)"];
|
||||
33 [label="Exit when branch condition"];
|
||||
}
|
||||
34 [label="Synthetic else branch"];
|
||||
35 [label="Enter when branch result"];
|
||||
30 [label="Enter block"];
|
||||
31 [label="Exit block"];
|
||||
}
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
32 [label="Enter when"];
|
||||
subgraph cluster_14 {
|
||||
color=blue
|
||||
36 [label="Enter block"];
|
||||
37 [label="Access variable R|<local>/x|"];
|
||||
38 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
39 [label="Access variable R|<local>/y|"];
|
||||
40 [label="Function call: R|<local>/y|.R|/baz|()" style="filled" fillcolor=yellow];
|
||||
41 [label="Jump: ^foo Unit"];
|
||||
42 [label="Stub" style="filled" fillcolor=gray];
|
||||
43 [label="Exit block" style="filled" fillcolor=gray];
|
||||
33 [label="Enter when branch condition "];
|
||||
34 [label="Const: Boolean(true)"];
|
||||
35 [label="Exit when branch condition"];
|
||||
}
|
||||
44 [label="Exit when branch result" style="filled" fillcolor=gray];
|
||||
45 [label="Exit when"];
|
||||
36 [label="Synthetic else branch"];
|
||||
37 [label="Enter when branch result"];
|
||||
subgraph cluster_15 {
|
||||
color=blue
|
||||
38 [label="Enter block"];
|
||||
39 [label="Access variable R|<local>/x|"];
|
||||
40 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
41 [label="Access variable R|<local>/y|"];
|
||||
42 [label="Function call: R|<local>/y|.R|/baz|()" style="filled" fillcolor=yellow];
|
||||
43 [label="Jump: ^foo Unit"];
|
||||
44 [label="Stub" style="filled" fillcolor=gray];
|
||||
45 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
46 [label="Exit when branch result" style="filled" fillcolor=gray];
|
||||
47 [label="Exit when"];
|
||||
}
|
||||
46 [label="Access variable R|<local>/x|"];
|
||||
47 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
48 [label="Exit block"];
|
||||
48 [label="Access variable R|<local>/x|"];
|
||||
49 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
50 [label="Exit block"];
|
||||
}
|
||||
49 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
51 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
}
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
32 -> {33};
|
||||
33 -> {34 35};
|
||||
34 -> {45};
|
||||
35 -> {36};
|
||||
36 -> {37};
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36 37};
|
||||
36 -> {47};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
41 -> {49};
|
||||
41 -> {42} [style=dotted];
|
||||
42 -> {43} [style=dotted];
|
||||
41 -> {42};
|
||||
42 -> {43};
|
||||
43 -> {51};
|
||||
43 -> {44} [style=dotted];
|
||||
44 -> {45} [style=dotted];
|
||||
45 -> {46};
|
||||
46 -> {47};
|
||||
45 -> {46} [style=dotted];
|
||||
46 -> {47} [style=dotted];
|
||||
47 -> {48};
|
||||
48 -> {49};
|
||||
49 -> {50};
|
||||
50 -> {51};
|
||||
|
||||
}
|
||||
|
||||
+108
-101
@@ -5,86 +5,91 @@ digraph exactlyOnce_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter function inlineRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
2 [label="Enter block"];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
0 [label="Enter file exactlyOnce.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file exactlyOnce.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter function inlineRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
3 [label="Enter block"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
4 [label="Enter block"];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
7 [label="Exit block"];
|
||||
}
|
||||
8 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
|
||||
subgraph cluster_3 {
|
||||
color=red
|
||||
7 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
8 [label="Enter block"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
9 [label="Enter block"];
|
||||
10 [label="Exit block"];
|
||||
}
|
||||
11 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
12 [label="Exit block"];
|
||||
}
|
||||
13 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
9 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
10 [label="Enter block"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
11 [label="Enter block"];
|
||||
12 [label="Exit block"];
|
||||
}
|
||||
13 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
14 [label="Exit block"];
|
||||
}
|
||||
15 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
|
||||
subgraph cluster_6 {
|
||||
color=red
|
||||
14 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
15 [label="Enter block"];
|
||||
16 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
17 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
18 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
19 [label="Enter block"];
|
||||
20 [label="Const: Int(1)"];
|
||||
21 [label="Assignment: R|<local>/x|"];
|
||||
22 [label="Exit block"];
|
||||
}
|
||||
23 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
24 [label="Postponed exit from lambda"];
|
||||
25 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
26 [label="Access variable R|<local>/x|"];
|
||||
27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
28 [label="Exit block"];
|
||||
}
|
||||
29 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
|
||||
subgraph cluster_7 {
|
||||
color=red
|
||||
16 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
17 [label="Enter block"];
|
||||
18 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
19 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
20 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
21 [label="Enter block"];
|
||||
22 [label="Const: Int(1)"];
|
||||
23 [label="Assignment: R|<local>/x|"];
|
||||
24 [label="Exit block"];
|
||||
}
|
||||
25 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
26 [label="Postponed exit from lambda"];
|
||||
27 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
28 [label="Access variable R|<local>/x|"];
|
||||
29 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
30 [label="Exit block"];
|
||||
}
|
||||
31 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
16 -> {17};
|
||||
17 -> {18 25};
|
||||
17 -> {24} [style=dotted];
|
||||
17 -> {18} [style=dashed];
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
19 -> {20 27};
|
||||
19 -> {26} [style=dotted];
|
||||
19 -> {20} [style=dashed];
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
@@ -94,43 +99,43 @@ digraph exactlyOnce_kt {
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
|
||||
subgraph cluster_10 {
|
||||
color=red
|
||||
30 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
31 [label="Enter block"];
|
||||
32 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
33 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
34 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
35 [label="Enter block"];
|
||||
36 [label="Const: Int(1)"];
|
||||
37 [label="Assignment: R|<local>/x|"];
|
||||
38 [label="Exit block"];
|
||||
}
|
||||
39 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
40 [label="Postponed exit from lambda"];
|
||||
41 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
42 [label="Access variable R|<local>/x|"];
|
||||
43 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
44 [label="Exit block"];
|
||||
}
|
||||
45 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
|
||||
subgraph cluster_11 {
|
||||
color=red
|
||||
32 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
33 [label="Enter block"];
|
||||
34 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
35 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
36 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_14 {
|
||||
color=blue
|
||||
37 [label="Enter block"];
|
||||
38 [label="Const: Int(1)"];
|
||||
39 [label="Assignment: R|<local>/x|"];
|
||||
40 [label="Exit block"];
|
||||
}
|
||||
41 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
42 [label="Postponed exit from lambda"];
|
||||
43 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
44 [label="Access variable R|<local>/x|"];
|
||||
45 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
46 [label="Exit block"];
|
||||
}
|
||||
47 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
32 -> {33};
|
||||
33 -> {34 41};
|
||||
33 -> {40} [style=dotted];
|
||||
33 -> {34} [style=dashed];
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
35 -> {36 43};
|
||||
35 -> {42} [style=dotted];
|
||||
35 -> {36} [style=dashed];
|
||||
36 -> {37};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
@@ -140,5 +145,7 @@ digraph exactlyOnce_kt {
|
||||
42 -> {43};
|
||||
43 -> {44};
|
||||
44 -> {45};
|
||||
45 -> {46};
|
||||
46 -> {47};
|
||||
|
||||
}
|
||||
|
||||
+179
-172
@@ -5,257 +5,262 @@ digraph flow_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter function bar" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
0 [label="Enter file flow.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file flow.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter function bar" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
2 [label="Enter block"];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
3 [label="Enter block"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
4 [label="Enter when"];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
5 [label="Enter when branch condition "];
|
||||
6 [label="Const: Boolean(true)"];
|
||||
7 [label="Exit when branch condition"];
|
||||
}
|
||||
8 [label="Synthetic else branch"];
|
||||
9 [label="Enter when branch result"];
|
||||
4 [label="Enter block"];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
6 [label="Enter when"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
10 [label="Enter block"];
|
||||
11 [label="Access variable R|<local>/x|"];
|
||||
12 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
13 [label="Jump: ^bar Unit"];
|
||||
14 [label="Stub" style="filled" fillcolor=gray];
|
||||
15 [label="Exit block" style="filled" fillcolor=gray];
|
||||
7 [label="Enter when branch condition "];
|
||||
8 [label="Const: Boolean(true)"];
|
||||
9 [label="Exit when branch condition"];
|
||||
}
|
||||
16 [label="Exit when branch result" style="filled" fillcolor=gray];
|
||||
17 [label="Exit when"];
|
||||
10 [label="Synthetic else branch"];
|
||||
11 [label="Enter when branch result"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
12 [label="Enter block"];
|
||||
13 [label="Access variable R|<local>/x|"];
|
||||
14 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
15 [label="Jump: ^bar Unit"];
|
||||
16 [label="Stub" style="filled" fillcolor=gray];
|
||||
17 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
18 [label="Exit when branch result" style="filled" fillcolor=gray];
|
||||
19 [label="Exit when"];
|
||||
}
|
||||
18 [label="Access variable R|<local>/x|"];
|
||||
19 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
20 [label="Exit block"];
|
||||
20 [label="Access variable R|<local>/x|"];
|
||||
21 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
22 [label="Exit block"];
|
||||
}
|
||||
21 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
23 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
6 -> {7};
|
||||
7 -> {8 9};
|
||||
8 -> {17};
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
9 -> {10 11};
|
||||
10 -> {19};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
13 -> {21};
|
||||
13 -> {14} [style=dotted];
|
||||
14 -> {15} [style=dotted];
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {23};
|
||||
15 -> {16} [style=dotted];
|
||||
16 -> {17} [style=dotted];
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
17 -> {18} [style=dotted];
|
||||
18 -> {19} [style=dotted];
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
|
||||
subgraph cluster_6 {
|
||||
subgraph cluster_7 {
|
||||
color=red
|
||||
22 [label="Enter function foo" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
24 [label="Enter function foo" style="filled" fillcolor=red];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
23 [label="Enter block"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
24 [label="Enter block"];
|
||||
25 [label="Exit block"];
|
||||
}
|
||||
25 [label="Enter block"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
26 [label="Enter when"];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
27 [label="Enter when branch condition "];
|
||||
28 [label="Const: Boolean(true)"];
|
||||
29 [label="Exit when branch condition"];
|
||||
}
|
||||
26 [label="Enter block"];
|
||||
27 [label="Exit block"];
|
||||
}
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
28 [label="Enter when"];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
30 [label="Enter when branch condition else"];
|
||||
29 [label="Enter when branch condition "];
|
||||
30 [label="Const: Boolean(true)"];
|
||||
31 [label="Exit when branch condition"];
|
||||
}
|
||||
32 [label="Enter when branch result"];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
33 [label="Enter block"];
|
||||
subgraph cluster_13 {
|
||||
32 [label="Enter when branch condition else"];
|
||||
33 [label="Exit when branch condition"];
|
||||
}
|
||||
34 [label="Enter when branch result"];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
35 [label="Enter block"];
|
||||
subgraph cluster_14 {
|
||||
color=blue
|
||||
34 [label="Enter when"];
|
||||
subgraph cluster_14 {
|
||||
color=blue
|
||||
35 [label="Enter when branch condition "];
|
||||
36 [label="Const: Boolean(false)"];
|
||||
37 [label="Exit when branch condition"];
|
||||
}
|
||||
36 [label="Enter when"];
|
||||
subgraph cluster_15 {
|
||||
color=blue
|
||||
38 [label="Enter when branch condition else"];
|
||||
37 [label="Enter when branch condition "];
|
||||
38 [label="Const: Boolean(false)"];
|
||||
39 [label="Exit when branch condition"];
|
||||
}
|
||||
40 [label="Enter when branch result"];
|
||||
subgraph cluster_16 {
|
||||
color=blue
|
||||
41 [label="Enter block"];
|
||||
42 [label="Access variable R|<local>/y|"];
|
||||
43 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
44 [label="Access variable R|<local>/z|"];
|
||||
45 [label="Function call: R|<local>/z|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
46 [label="Jump: ^foo Unit"];
|
||||
47 [label="Stub" style="filled" fillcolor=gray];
|
||||
48 [label="Exit block" style="filled" fillcolor=gray];
|
||||
40 [label="Enter when branch condition else"];
|
||||
41 [label="Exit when branch condition"];
|
||||
}
|
||||
49 [label="Exit when branch result" style="filled" fillcolor=gray];
|
||||
50 [label="Enter when branch result"];
|
||||
42 [label="Enter when branch result"];
|
||||
subgraph cluster_17 {
|
||||
color=blue
|
||||
51 [label="Enter block"];
|
||||
52 [label="Access variable R|<local>/y|"];
|
||||
53 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
54 [label="Exit block"];
|
||||
43 [label="Enter block"];
|
||||
44 [label="Access variable R|<local>/y|"];
|
||||
45 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
46 [label="Access variable R|<local>/z|"];
|
||||
47 [label="Function call: R|<local>/z|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
48 [label="Jump: ^foo Unit"];
|
||||
49 [label="Stub" style="filled" fillcolor=gray];
|
||||
50 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
55 [label="Exit when branch result"];
|
||||
56 [label="Exit when"];
|
||||
}
|
||||
57 [label="Exit block"];
|
||||
}
|
||||
58 [label="Exit when branch result"];
|
||||
59 [label="Enter when branch result"];
|
||||
subgraph cluster_18 {
|
||||
color=blue
|
||||
60 [label="Enter block"];
|
||||
subgraph cluster_19 {
|
||||
color=blue
|
||||
61 [label="Enter block"];
|
||||
62 [label="Const: Int(0)"];
|
||||
63 [label="Const: Int(0)"];
|
||||
64 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...)" style="filled" fillcolor=yellow];
|
||||
65 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...).R|kotlin/ranges/IntProgression.iterator|()" style="filled" fillcolor=yellow];
|
||||
66 [label="Variable declaration: lval <iterator>: R|kotlin/collections/IntIterator|"];
|
||||
subgraph cluster_20 {
|
||||
51 [label="Exit when branch result" style="filled" fillcolor=gray];
|
||||
52 [label="Enter when branch result"];
|
||||
subgraph cluster_18 {
|
||||
color=blue
|
||||
67 [label="Enter while loop"];
|
||||
subgraph cluster_21 {
|
||||
color=blue
|
||||
68 [label="Enter loop condition"];
|
||||
69 [label="Access variable R|<local>/<iterator>|"];
|
||||
70 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()" style="filled" fillcolor=yellow];
|
||||
71 [label="Exit loop condition"];
|
||||
}
|
||||
53 [label="Enter block"];
|
||||
54 [label="Access variable R|<local>/y|"];
|
||||
55 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
56 [label="Exit block"];
|
||||
}
|
||||
57 [label="Exit when branch result"];
|
||||
58 [label="Exit when"];
|
||||
}
|
||||
59 [label="Exit block"];
|
||||
}
|
||||
60 [label="Exit when branch result"];
|
||||
61 [label="Enter when branch result"];
|
||||
subgraph cluster_19 {
|
||||
color=blue
|
||||
62 [label="Enter block"];
|
||||
subgraph cluster_20 {
|
||||
color=blue
|
||||
63 [label="Enter block"];
|
||||
64 [label="Const: Int(0)"];
|
||||
65 [label="Const: Int(0)"];
|
||||
66 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...)" style="filled" fillcolor=yellow];
|
||||
67 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...).R|kotlin/ranges/IntProgression.iterator|()" style="filled" fillcolor=yellow];
|
||||
68 [label="Variable declaration: lval <iterator>: R|kotlin/collections/IntIterator|"];
|
||||
subgraph cluster_21 {
|
||||
color=blue
|
||||
69 [label="Enter while loop"];
|
||||
subgraph cluster_22 {
|
||||
color=blue
|
||||
72 [label="Enter loop block"];
|
||||
subgraph cluster_23 {
|
||||
color=blue
|
||||
73 [label="Enter block"];
|
||||
74 [label="Access variable R|<local>/<iterator>|"];
|
||||
75 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()" style="filled" fillcolor=yellow];
|
||||
76 [label="Variable declaration: lval i: R|kotlin/Int|"];
|
||||
subgraph cluster_24 {
|
||||
color=blue
|
||||
77 [label="Enter block"];
|
||||
78 [label="Access variable R|<local>/x|"];
|
||||
79 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
80 [label="Exit block"];
|
||||
}
|
||||
81 [label="Exit block"];
|
||||
}
|
||||
82 [label="Exit loop block"];
|
||||
70 [label="Enter loop condition"];
|
||||
71 [label="Access variable R|<local>/<iterator>|"];
|
||||
72 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()" style="filled" fillcolor=yellow];
|
||||
73 [label="Exit loop condition"];
|
||||
}
|
||||
83 [label="Exit while loop"];
|
||||
subgraph cluster_23 {
|
||||
color=blue
|
||||
74 [label="Enter loop block"];
|
||||
subgraph cluster_24 {
|
||||
color=blue
|
||||
75 [label="Enter block"];
|
||||
76 [label="Access variable R|<local>/<iterator>|"];
|
||||
77 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()" style="filled" fillcolor=yellow];
|
||||
78 [label="Variable declaration: lval i: R|kotlin/Int|"];
|
||||
subgraph cluster_25 {
|
||||
color=blue
|
||||
79 [label="Enter block"];
|
||||
80 [label="Access variable R|<local>/x|"];
|
||||
81 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
82 [label="Exit block"];
|
||||
}
|
||||
83 [label="Exit block"];
|
||||
}
|
||||
84 [label="Exit loop block"];
|
||||
}
|
||||
85 [label="Exit while loop"];
|
||||
}
|
||||
84 [label="Exit block"];
|
||||
86 [label="Exit block"];
|
||||
}
|
||||
85 [label="Access variable R|<local>/y|"];
|
||||
86 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
87 [label="Exit block"];
|
||||
87 [label="Access variable R|<local>/y|"];
|
||||
88 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
89 [label="Exit block"];
|
||||
}
|
||||
88 [label="Exit when branch result"];
|
||||
89 [label="Exit when"];
|
||||
90 [label="Exit when branch result"];
|
||||
91 [label="Exit when"];
|
||||
}
|
||||
subgraph cluster_25 {
|
||||
subgraph cluster_26 {
|
||||
color=blue
|
||||
90 [label="Enter do-while loop"];
|
||||
subgraph cluster_26 {
|
||||
92 [label="Enter do-while loop"];
|
||||
subgraph cluster_27 {
|
||||
color=blue
|
||||
91 [label="Enter loop block"];
|
||||
subgraph cluster_27 {
|
||||
93 [label="Enter loop block"];
|
||||
subgraph cluster_28 {
|
||||
color=blue
|
||||
92 [label="Enter block"];
|
||||
93 [label="Access variable R|<local>/z|"];
|
||||
94 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
95 [label="Exit block"];
|
||||
94 [label="Enter block"];
|
||||
95 [label="Access variable R|<local>/z|"];
|
||||
96 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
97 [label="Exit block"];
|
||||
}
|
||||
96 [label="Exit loop block"];
|
||||
98 [label="Exit loop block"];
|
||||
}
|
||||
subgraph cluster_28 {
|
||||
subgraph cluster_29 {
|
||||
color=blue
|
||||
97 [label="Enter loop condition"];
|
||||
98 [label="Const: Boolean(true)"];
|
||||
99 [label="Exit loop condition"];
|
||||
99 [label="Enter loop condition"];
|
||||
100 [label="Const: Boolean(true)"];
|
||||
101 [label="Exit loop condition"];
|
||||
}
|
||||
100 [label="Exit do-while loop" style="filled" fillcolor=gray];
|
||||
102 [label="Exit do-while loop" style="filled" fillcolor=gray];
|
||||
}
|
||||
101 [label="Exit block" style="filled" fillcolor=gray];
|
||||
103 [label="Exit block" style="filled" fillcolor=gray];
|
||||
}
|
||||
102 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
104 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
}
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {30 59};
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
31 -> {32 61};
|
||||
32 -> {33};
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
36 -> {37};
|
||||
37 -> {38 50};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
39 -> {40 52};
|
||||
40 -> {41};
|
||||
41 -> {42};
|
||||
42 -> {43};
|
||||
43 -> {44};
|
||||
44 -> {45};
|
||||
45 -> {46};
|
||||
46 -> {102};
|
||||
46 -> {47} [style=dotted];
|
||||
47 -> {48} [style=dotted];
|
||||
46 -> {47};
|
||||
47 -> {48};
|
||||
48 -> {104};
|
||||
48 -> {49} [style=dotted];
|
||||
49 -> {56} [style=dotted];
|
||||
50 -> {51};
|
||||
51 -> {52};
|
||||
49 -> {50} [style=dotted];
|
||||
50 -> {51} [style=dotted];
|
||||
51 -> {58} [style=dotted];
|
||||
52 -> {53};
|
||||
53 -> {54};
|
||||
54 -> {55};
|
||||
55 -> {56};
|
||||
56 -> {57};
|
||||
57 -> {58};
|
||||
58 -> {89};
|
||||
58 -> {59};
|
||||
59 -> {60};
|
||||
60 -> {61};
|
||||
60 -> {91};
|
||||
61 -> {62};
|
||||
62 -> {63};
|
||||
63 -> {64};
|
||||
@@ -266,9 +271,9 @@ digraph flow_kt {
|
||||
68 -> {69};
|
||||
69 -> {70};
|
||||
70 -> {71};
|
||||
71 -> {72 83};
|
||||
71 -> {72};
|
||||
72 -> {73};
|
||||
73 -> {74};
|
||||
73 -> {74 85};
|
||||
74 -> {75};
|
||||
75 -> {76};
|
||||
76 -> {77};
|
||||
@@ -277,9 +282,9 @@ digraph flow_kt {
|
||||
79 -> {80};
|
||||
80 -> {81};
|
||||
81 -> {82};
|
||||
82 -> {68} [color=green style=dashed];
|
||||
82 -> {83};
|
||||
83 -> {84};
|
||||
84 -> {85};
|
||||
84 -> {70} [color=green style=dashed];
|
||||
85 -> {86};
|
||||
86 -> {87};
|
||||
87 -> {88};
|
||||
@@ -294,9 +299,11 @@ digraph flow_kt {
|
||||
96 -> {97};
|
||||
97 -> {98};
|
||||
98 -> {99};
|
||||
99 -> {91} [color=green style=dashed];
|
||||
99 -> {100} [style=dotted];
|
||||
100 -> {101} [style=dotted];
|
||||
99 -> {100};
|
||||
100 -> {101};
|
||||
101 -> {93} [color=green style=dashed];
|
||||
101 -> {102} [style=dotted];
|
||||
102 -> {103} [style=dotted];
|
||||
103 -> {104} [style=dotted];
|
||||
|
||||
}
|
||||
|
||||
+65
-58
@@ -5,100 +5,107 @@ digraph inPlaceLambda_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter function bar" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
0 [label="Enter file inPlaceLambda.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file inPlaceLambda.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter function bar" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
2 [label="Enter block"];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
3 [label="Enter block"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
4 [label="Enter when"];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
5 [label="Enter when branch condition "];
|
||||
6 [label="Const: Boolean(true)"];
|
||||
7 [label="Exit when branch condition"];
|
||||
}
|
||||
8 [label="Synthetic else branch"];
|
||||
9 [label="Enter when branch result"];
|
||||
4 [label="Enter block"];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
6 [label="Enter when"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
10 [label="Enter block"];
|
||||
11 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
12 [label="Exit block"];
|
||||
7 [label="Enter when branch condition "];
|
||||
8 [label="Const: Boolean(true)"];
|
||||
9 [label="Exit when branch condition"];
|
||||
}
|
||||
13 [label="Exit when branch result"];
|
||||
14 [label="Exit when"];
|
||||
10 [label="Synthetic else branch"];
|
||||
11 [label="Enter when branch result"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
12 [label="Enter block"];
|
||||
13 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
14 [label="Exit block"];
|
||||
}
|
||||
15 [label="Exit when branch result"];
|
||||
16 [label="Exit when"];
|
||||
}
|
||||
15 [label="Exit block"];
|
||||
17 [label="Exit block"];
|
||||
}
|
||||
16 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
18 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
6 -> {7};
|
||||
7 -> {8 9};
|
||||
8 -> {14};
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
9 -> {10 11};
|
||||
10 -> {16};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
17 -> {18};
|
||||
|
||||
subgraph cluster_6 {
|
||||
subgraph cluster_7 {
|
||||
color=red
|
||||
17 [label="Enter function foo" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
19 [label="Enter function foo" style="filled" fillcolor=red];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
18 [label="Enter block"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
19 [label="Enter block"];
|
||||
20 [label="Exit block"];
|
||||
}
|
||||
21 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
22 [label="Postponed enter to lambda"];
|
||||
20 [label="Enter block"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
23 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
24 [label="Enter block"];
|
||||
25 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
26 [label="Exit block"];
|
||||
}
|
||||
27 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
21 [label="Enter block"];
|
||||
22 [label="Exit block"];
|
||||
}
|
||||
28 [label="Postponed exit from lambda"];
|
||||
29 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
30 [label="Exit block"];
|
||||
23 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
24 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
25 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
26 [label="Enter block"];
|
||||
27 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
28 [label="Exit block"];
|
||||
}
|
||||
29 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
30 [label="Postponed exit from lambda"];
|
||||
31 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
32 [label="Exit block"];
|
||||
}
|
||||
31 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
33 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
}
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23 28 29};
|
||||
22 -> {23} [style=dashed];
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
24 -> {25 30 31};
|
||||
24 -> {25} [style=dashed];
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
32 -> {33};
|
||||
|
||||
}
|
||||
|
||||
+58
-51
@@ -5,70 +5,75 @@ digraph simple_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter function bar" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
2 [label="Enter block"];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Access variable R|<local>/x|"];
|
||||
5 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
6 [label="Exit block"];
|
||||
}
|
||||
7 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
0 [label="Enter file simple.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file simple.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter function bar" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
3 [label="Enter block"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
4 [label="Enter block"];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Access variable R|<local>/x|"];
|
||||
7 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
8 [label="Exit block"];
|
||||
}
|
||||
9 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
|
||||
subgraph cluster_3 {
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
8 [label="Enter function foo" style="filled" fillcolor=red];
|
||||
subgraph cluster_4 {
|
||||
10 [label="Enter function foo" style="filled" fillcolor=red];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
9 [label="Enter block"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
10 [label="Enter block"];
|
||||
11 [label="Exit block"];
|
||||
}
|
||||
12 [label="Access variable R|<local>/x|"];
|
||||
13 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
11 [label="Enter block"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
14 [label="Enter when"];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
15 [label="Enter when branch condition "];
|
||||
16 [label="Const: Boolean(true)"];
|
||||
17 [label="Exit when branch condition"];
|
||||
}
|
||||
18 [label="Synthetic else branch"];
|
||||
19 [label="Enter when branch result"];
|
||||
12 [label="Enter block"];
|
||||
13 [label="Exit block"];
|
||||
}
|
||||
14 [label="Access variable R|<local>/x|"];
|
||||
15 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
16 [label="Enter when"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
20 [label="Enter block"];
|
||||
21 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
22 [label="Exit block"];
|
||||
17 [label="Enter when branch condition "];
|
||||
18 [label="Const: Boolean(true)"];
|
||||
19 [label="Exit when branch condition"];
|
||||
}
|
||||
23 [label="Exit when branch result"];
|
||||
24 [label="Exit when"];
|
||||
20 [label="Synthetic else branch"];
|
||||
21 [label="Enter when branch result"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
22 [label="Enter block"];
|
||||
23 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
24 [label="Exit block"];
|
||||
}
|
||||
25 [label="Exit when branch result"];
|
||||
26 [label="Exit when"];
|
||||
}
|
||||
25 [label="Access variable R|<local>/z|"];
|
||||
26 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
27 [label="Exit block"];
|
||||
27 [label="Access variable R|<local>/z|"];
|
||||
28 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
29 [label="Exit block"];
|
||||
}
|
||||
28 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
30 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
}
|
||||
8 -> {9};
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
@@ -76,10 +81,10 @@ digraph simple_kt {
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
17 -> {18 19};
|
||||
18 -> {24};
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20 21};
|
||||
20 -> {26};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
@@ -87,5 +92,7 @@ digraph simple_kt {
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {30};
|
||||
|
||||
}
|
||||
|
||||
+108
-101
@@ -5,140 +5,147 @@ digraph unknown_kt {
|
||||
|
||||
subgraph cluster_0 {
|
||||
color=red
|
||||
0 [label="Enter function inlineRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
2 [label="Enter block"];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
0 [label="Enter file unknown.kt" style="filled" fillcolor=red];
|
||||
1 [label="Exit file unknown.kt" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1} [color=green];
|
||||
|
||||
subgraph cluster_1 {
|
||||
color=red
|
||||
2 [label="Enter function inlineRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
3 [label="Enter block"];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
4 [label="Enter block"];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
7 [label="Exit block"];
|
||||
}
|
||||
8 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {4};
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
|
||||
subgraph cluster_3 {
|
||||
color=red
|
||||
7 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
8 [label="Enter block"];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
9 [label="Enter block"];
|
||||
10 [label="Exit block"];
|
||||
}
|
||||
11 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
12 [label="Exit block"];
|
||||
}
|
||||
13 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
9 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
10 [label="Enter block"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
11 [label="Enter block"];
|
||||
12 [label="Exit block"];
|
||||
}
|
||||
13 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
14 [label="Exit block"];
|
||||
}
|
||||
15 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
|
||||
subgraph cluster_6 {
|
||||
color=red
|
||||
14 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
15 [label="Enter block"];
|
||||
16 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
17 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
18 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
19 [label="Enter block"];
|
||||
20 [label="Const: Int(1)"];
|
||||
21 [label="Assignment: R|<local>/x|"];
|
||||
22 [label="Exit block"];
|
||||
}
|
||||
23 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
24 [label="Postponed exit from lambda"];
|
||||
25 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
26 [label="Access variable R|<local>/x|"];
|
||||
27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
28 [label="Exit block"];
|
||||
}
|
||||
29 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
|
||||
subgraph cluster_7 {
|
||||
color=red
|
||||
16 [label="Enter function test_1" style="filled" fillcolor=red];
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
17 [label="Enter block"];
|
||||
18 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
19 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
20 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
21 [label="Enter block"];
|
||||
22 [label="Const: Int(1)"];
|
||||
23 [label="Assignment: R|<local>/x|"];
|
||||
24 [label="Exit block"];
|
||||
}
|
||||
25 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
26 [label="Postponed exit from lambda"];
|
||||
27 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
28 [label="Access variable R|<local>/x|"];
|
||||
29 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
30 [label="Exit block"];
|
||||
}
|
||||
31 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
16 -> {17};
|
||||
17 -> {18 24 25};
|
||||
17 -> {18} [style=dashed];
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
19 -> {20 26 27};
|
||||
19 -> {20} [style=dashed];
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
24 -> {17} [color=green style=dashed];
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
26 -> {19} [color=green style=dashed];
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
|
||||
subgraph cluster_10 {
|
||||
color=red
|
||||
30 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
31 [label="Enter block"];
|
||||
32 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
33 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
34 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
35 [label="Enter block"];
|
||||
36 [label="Const: Int(1)"];
|
||||
37 [label="Assignment: R|<local>/x|"];
|
||||
38 [label="Exit block"];
|
||||
}
|
||||
39 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
40 [label="Postponed exit from lambda"];
|
||||
41 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
42 [label="Access variable R|<local>/x|"];
|
||||
43 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
44 [label="Exit block"];
|
||||
}
|
||||
45 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
|
||||
subgraph cluster_11 {
|
||||
color=red
|
||||
32 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
33 [label="Enter block"];
|
||||
34 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
35 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
36 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_14 {
|
||||
color=blue
|
||||
37 [label="Enter block"];
|
||||
38 [label="Const: Int(1)"];
|
||||
39 [label="Assignment: R|<local>/x|"];
|
||||
40 [label="Exit block"];
|
||||
}
|
||||
41 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
42 [label="Postponed exit from lambda"];
|
||||
43 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
44 [label="Access variable R|<local>/x|"];
|
||||
45 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
46 [label="Exit block"];
|
||||
}
|
||||
47 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
32 -> {33};
|
||||
33 -> {34 40 41};
|
||||
33 -> {34} [style=dashed];
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
35 -> {36 42 43};
|
||||
35 -> {36} [style=dashed];
|
||||
36 -> {37};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
40 -> {33} [color=green style=dashed];
|
||||
41 -> {42};
|
||||
42 -> {43};
|
||||
42 -> {35} [color=green style=dashed];
|
||||
43 -> {44};
|
||||
44 -> {45};
|
||||
45 -> {46};
|
||||
46 -> {47};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user