FIR CFG: add union nodes
Quick quiz:
Q: In a CFG, what does `a -> b -> c -> d` mean?
A: `a`, then `b`, then `c`, then `d`.
Q: In a CFG, what does `a -> b -> d; a -> c -> d` mean?
A: `a`, then `b` or `c`, then `d`.
Q: So how do you encode "a, then (b, then c) or (c, then b), then d`?
A: You can't.
Problem is, you need to, because that's what `a; run2({ b }, { c }); d`
does when `run2` has a contract that it calls both its lambda arguments
in-place: `shuffle(listOf(block1, block2)).forEach { it() }` is a
perfectly valid implementation for it, as little sense as that makes.
So that's what union nodes solve. When a node implements
`UnionNodeMarker`, its inputs are interpreted as "all visited in some
order" instead of the normal "one of the inputs is visited".
Currently this is used for data flow. It *should* also be used for
control flow, but it isn't. But it should be. But that's not so easy.
BTW, `try` exit is NOT a union node; although lambdas in one branch can
be completed according to types' of lambdas in another, data does not
flow between the branches anyway (since we don't know how much of the
`try` executed before jumping into `catch`, and `catch`es are mutually
exclusive) so a `try` expression is more like `when` than a function
call with called-in-place-exactly-once arguments. The fact that
`exitTryExpression` used `processUnionOfArguments` in a weird way
should've hinted at that, but now we know for certain.
This commit is contained in:
Vendored
+221
-227
@@ -13,415 +13,409 @@ digraph callsInPlace_kt {
|
||||
3 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_2 {
|
||||
color=blue
|
||||
11 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
10 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
12 [label="Enter block"];
|
||||
13 [label="Const: Int(1)"];
|
||||
14 [label="Assignment: R|<local>/x|"];
|
||||
15 [label="Exit block"];
|
||||
11 [label="Enter block"];
|
||||
12 [label="Const: Int(1)"];
|
||||
13 [label="Assignment: R|<local>/x|"];
|
||||
14 [label="Exit block"];
|
||||
}
|
||||
16 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
15 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
4 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
5 [label="Postponed exit from lambda"];
|
||||
6 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)"];
|
||||
7 [label="Access variable R|<local>/x|"];
|
||||
8 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
9 [label="Exit block"];
|
||||
4 [label="Postponed exit from lambda"];
|
||||
5 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)" style="filled" fillcolor=yellow];
|
||||
6 [label="Access variable R|<local>/x|"];
|
||||
7 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
8 [label="Exit block"];
|
||||
}
|
||||
10 [label="Exit function test" style="filled" fillcolor=red];
|
||||
9 [label="Exit function test" style="filled" fillcolor=red];
|
||||
}
|
||||
0 -> {1};
|
||||
1 -> {2};
|
||||
2 -> {3};
|
||||
3 -> {11};
|
||||
3 -> {5} [color=red];
|
||||
3 -> {11} [style=dashed];
|
||||
4 -> {6} [color=red];
|
||||
5 -> {6} [color=green];
|
||||
3 -> {10};
|
||||
3 -> {4} [color=red];
|
||||
3 -> {10} [style=dashed];
|
||||
4 -> {5};
|
||||
5 -> {6};
|
||||
6 -> {7};
|
||||
7 -> {8};
|
||||
8 -> {9};
|
||||
9 -> {10};
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
13 -> {14};
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
16 -> {4} [color=red];
|
||||
16 -> {5} [color=green];
|
||||
15 -> {5} [color=red];
|
||||
15 -> {4} [color=green];
|
||||
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
17 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
16 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
18 [label="Enter block"];
|
||||
19 [label="Const: Int(10)"];
|
||||
20 [label="Postponed enter to lambda"];
|
||||
17 [label="Enter block"];
|
||||
18 [label="Const: Int(10)"];
|
||||
19 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
25 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
24 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
26 [label="Enter block"];
|
||||
27 [label="Const: String(test_2)"];
|
||||
28 [label="Exit block"];
|
||||
25 [label="Enter block"];
|
||||
26 [label="Const: String(test_2)"];
|
||||
27 [label="Exit block"];
|
||||
}
|
||||
29 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
28 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
21 [label="Postponed exit from lambda"];
|
||||
22 [label="Function call: R|kotlin/repeat|(...)"];
|
||||
23 [label="Exit block"];
|
||||
20 [label="Postponed exit from lambda"];
|
||||
21 [label="Function call: R|kotlin/repeat|(...)" style="filled" fillcolor=yellow];
|
||||
22 [label="Exit block"];
|
||||
}
|
||||
24 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
23 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
16 -> {17};
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
20 -> {21 25};
|
||||
20 -> {25} [style=dashed];
|
||||
19 -> {20 24};
|
||||
19 -> {24} [style=dashed];
|
||||
20 -> {21};
|
||||
20 -> {19} [color=green style=dashed];
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
25 -> {29 26};
|
||||
24 -> {25};
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {21};
|
||||
29 -> {25} [color=green style=dashed];
|
||||
28 -> {20};
|
||||
|
||||
subgraph cluster_8 {
|
||||
color=red
|
||||
30 [label="Enter function test_3" style="filled" fillcolor=red];
|
||||
29 [label="Enter function test_3" style="filled" fillcolor=red];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
31 [label="Enter block"];
|
||||
32 [label="Postponed enter to lambda"];
|
||||
30 [label="Enter block"];
|
||||
31 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
38 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
37 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
39 [label="Enter block"];
|
||||
40 [label="Const: String(test_3)"];
|
||||
41 [label="Exit block"];
|
||||
38 [label="Enter block"];
|
||||
39 [label="Const: String(test_3)"];
|
||||
40 [label="Exit block"];
|
||||
}
|
||||
42 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
33 [label="Postponed exit from lambda"];
|
||||
34 [label="Const: Int(10)"];
|
||||
35 [label="Function call: R|kotlin/repeat|(...)"];
|
||||
36 [label="Exit block"];
|
||||
32 [label="Postponed exit from lambda"];
|
||||
33 [label="Const: Int(10)"];
|
||||
34 [label="Function call: R|kotlin/repeat|(...)" style="filled" fillcolor=yellow];
|
||||
35 [label="Exit block"];
|
||||
}
|
||||
37 [label="Exit function test_3" style="filled" fillcolor=red];
|
||||
36 [label="Exit function test_3" style="filled" fillcolor=red];
|
||||
}
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
32 -> {33 38};
|
||||
32 -> {38} [style=dashed];
|
||||
31 -> {32 37};
|
||||
31 -> {37} [style=dashed];
|
||||
32 -> {33};
|
||||
32 -> {31} [color=green style=dashed];
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
36 -> {37};
|
||||
38 -> {42 39};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
41 -> {42};
|
||||
42 -> {33};
|
||||
42 -> {38} [color=green style=dashed];
|
||||
41 -> {32};
|
||||
|
||||
subgraph cluster_12 {
|
||||
color=red
|
||||
43 [label="Enter function test_4" style="filled" fillcolor=red];
|
||||
42 [label="Enter function test_4" style="filled" fillcolor=red];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
44 [label="Enter block"];
|
||||
45 [label="Const: Int(1)"];
|
||||
46 [label="Postponed enter to lambda"];
|
||||
43 [label="Enter block"];
|
||||
44 [label="Const: Int(1)"];
|
||||
45 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_14 {
|
||||
color=blue
|
||||
52 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
50 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_15 {
|
||||
color=blue
|
||||
53 [label="Enter block"];
|
||||
54 [label="Const: String(test_4)"];
|
||||
55 [label="Access variable R|<local>/it|"];
|
||||
56 [label="Const: Int(0)"];
|
||||
57 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)"];
|
||||
58 [label="Comparison >"];
|
||||
59 [label="Exit block"];
|
||||
51 [label="Enter block"];
|
||||
52 [label="Const: String(test_4)"];
|
||||
53 [label="Access variable R|<local>/it|"];
|
||||
54 [label="Const: Int(0)"];
|
||||
55 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)" style="filled" fillcolor=yellow];
|
||||
56 [label="Comparison >"];
|
||||
57 [label="Exit block"];
|
||||
}
|
||||
60 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
58 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
47 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
48 [label="Postponed exit from lambda"];
|
||||
49 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)"];
|
||||
50 [label="Exit block"];
|
||||
46 [label="Postponed exit from lambda"];
|
||||
47 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
|
||||
48 [label="Exit block"];
|
||||
}
|
||||
51 [label="Exit function test_4" style="filled" fillcolor=red];
|
||||
49 [label="Exit function test_4" style="filled" fillcolor=red];
|
||||
}
|
||||
42 -> {43};
|
||||
43 -> {44};
|
||||
44 -> {45};
|
||||
45 -> {46};
|
||||
46 -> {52};
|
||||
46 -> {48} [color=red];
|
||||
46 -> {52} [style=dashed];
|
||||
47 -> {49} [color=red];
|
||||
48 -> {49} [color=green];
|
||||
49 -> {50};
|
||||
45 -> {50};
|
||||
45 -> {46} [color=red];
|
||||
45 -> {50} [style=dashed];
|
||||
46 -> {47};
|
||||
47 -> {48};
|
||||
48 -> {49};
|
||||
50 -> {51};
|
||||
51 -> {52};
|
||||
52 -> {53};
|
||||
53 -> {54};
|
||||
54 -> {55};
|
||||
55 -> {56};
|
||||
56 -> {57};
|
||||
57 -> {58};
|
||||
58 -> {59};
|
||||
59 -> {60};
|
||||
60 -> {47} [color=red];
|
||||
60 -> {48} [color=green];
|
||||
58 -> {47} [color=red];
|
||||
58 -> {46} [color=green];
|
||||
|
||||
subgraph cluster_16 {
|
||||
color=red
|
||||
61 [label="Enter function test_5" style="filled" fillcolor=red];
|
||||
59 [label="Enter function test_5" style="filled" fillcolor=red];
|
||||
subgraph cluster_17 {
|
||||
color=blue
|
||||
62 [label="Enter block"];
|
||||
63 [label="Const: Int(1)"];
|
||||
64 [label="Postponed enter to lambda"];
|
||||
60 [label="Enter block"];
|
||||
61 [label="Const: Int(1)"];
|
||||
62 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_18 {
|
||||
color=blue
|
||||
70 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
67 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_19 {
|
||||
color=blue
|
||||
71 [label="Enter block"];
|
||||
72 [label="Const: String(test_5)"];
|
||||
73 [label="Access variable R|<local>/it|"];
|
||||
74 [label="Const: Int(0)"];
|
||||
75 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)"];
|
||||
76 [label="Comparison >"];
|
||||
77 [label="Exit block"];
|
||||
68 [label="Enter block"];
|
||||
69 [label="Const: String(test_5)"];
|
||||
70 [label="Access variable R|<local>/it|"];
|
||||
71 [label="Const: Int(0)"];
|
||||
72 [label="Function call: R|<local>/it|.R|kotlin/Int.compareTo|(...)" style="filled" fillcolor=yellow];
|
||||
73 [label="Comparison >"];
|
||||
74 [label="Exit block"];
|
||||
}
|
||||
78 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
75 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
65 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
66 [label="Postponed exit from lambda"];
|
||||
67 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)"];
|
||||
68 [label="Exit block"];
|
||||
63 [label="Postponed exit from lambda"];
|
||||
64 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
|
||||
65 [label="Exit block"];
|
||||
}
|
||||
69 [label="Exit function test_5" style="filled" fillcolor=red];
|
||||
66 [label="Exit function test_5" style="filled" fillcolor=red];
|
||||
}
|
||||
59 -> {60};
|
||||
60 -> {61};
|
||||
61 -> {62};
|
||||
62 -> {63};
|
||||
62 -> {67};
|
||||
62 -> {63} [color=red];
|
||||
62 -> {67} [style=dashed];
|
||||
63 -> {64};
|
||||
64 -> {70};
|
||||
64 -> {66} [color=red];
|
||||
64 -> {70} [style=dashed];
|
||||
65 -> {67} [color=red];
|
||||
66 -> {67} [color=green];
|
||||
64 -> {65};
|
||||
65 -> {66};
|
||||
67 -> {68};
|
||||
68 -> {69};
|
||||
69 -> {70};
|
||||
70 -> {71};
|
||||
71 -> {72};
|
||||
72 -> {73};
|
||||
73 -> {74};
|
||||
74 -> {75};
|
||||
75 -> {76};
|
||||
76 -> {77};
|
||||
77 -> {78};
|
||||
78 -> {65} [color=red];
|
||||
78 -> {66} [color=green];
|
||||
75 -> {64} [color=red];
|
||||
75 -> {63} [color=green];
|
||||
|
||||
subgraph cluster_20 {
|
||||
color=red
|
||||
79 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
76 [label="Enter function myRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_21 {
|
||||
color=blue
|
||||
80 [label="Enter block"];
|
||||
81 [label="Function call: R|<local>/block1|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
82 [label="Function call: R|<local>/block2|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
83 [label="Exit block"];
|
||||
77 [label="Enter block"];
|
||||
78 [label="Function call: R|<local>/block1|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
79 [label="Function call: R|<local>/block2|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
80 [label="Exit block"];
|
||||
}
|
||||
84 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
81 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
}
|
||||
76 -> {77};
|
||||
77 -> {78};
|
||||
78 -> {79};
|
||||
79 -> {80};
|
||||
80 -> {81};
|
||||
81 -> {82};
|
||||
82 -> {83};
|
||||
83 -> {84};
|
||||
|
||||
subgraph cluster_22 {
|
||||
color=red
|
||||
85 [label="Enter function test_6" style="filled" fillcolor=red];
|
||||
82 [label="Enter function test_6" style="filled" fillcolor=red];
|
||||
subgraph cluster_23 {
|
||||
color=blue
|
||||
86 [label="Enter block"];
|
||||
87 [label="Postponed enter to lambda"];
|
||||
83 [label="Enter block"];
|
||||
84 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_24 {
|
||||
color=blue
|
||||
99 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
96 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_25 {
|
||||
color=blue
|
||||
100 [label="Enter block"];
|
||||
101 [label="Const: String(test_6_2)"];
|
||||
102 [label="Exit block"];
|
||||
97 [label="Enter block"];
|
||||
98 [label="Const: String(test_6_2)"];
|
||||
99 [label="Exit block"];
|
||||
}
|
||||
103 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
100 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
88 [label="Postponed exit from lambda"];
|
||||
89 [label="Postponed enter to lambda"];
|
||||
85 [label="Postponed exit from lambda"];
|
||||
86 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_26 {
|
||||
color=blue
|
||||
94 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
91 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_27 {
|
||||
color=blue
|
||||
95 [label="Enter block"];
|
||||
96 [label="Const: String(test_6_1)"];
|
||||
97 [label="Exit block"];
|
||||
92 [label="Enter block"];
|
||||
93 [label="Const: String(test_6_1)"];
|
||||
94 [label="Exit block"];
|
||||
}
|
||||
98 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
95 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
90 [label="Postponed exit from lambda"];
|
||||
91 [label="Function call: R|/myRun|(...)"];
|
||||
92 [label="Exit block"];
|
||||
87 [label="Postponed exit from lambda"];
|
||||
88 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
89 [label="Exit block"];
|
||||
}
|
||||
93 [label="Exit function test_6" style="filled" fillcolor=red];
|
||||
90 [label="Exit function test_6" style="filled" fillcolor=red];
|
||||
}
|
||||
82 -> {83};
|
||||
83 -> {84};
|
||||
84 -> {85 96};
|
||||
84 -> {96} [style=dashed];
|
||||
85 -> {86};
|
||||
86 -> {87};
|
||||
87 -> {88 99};
|
||||
87 -> {99} [style=dashed];
|
||||
85 -> {84} [color=green style=dashed];
|
||||
86 -> {87 91};
|
||||
86 -> {91} [style=dashed];
|
||||
87 -> {88};
|
||||
87 -> {86} [color=green style=dashed];
|
||||
88 -> {89};
|
||||
89 -> {90 94};
|
||||
89 -> {94} [style=dashed];
|
||||
90 -> {91};
|
||||
89 -> {90};
|
||||
91 -> {92};
|
||||
92 -> {93};
|
||||
94 -> {98 95};
|
||||
95 -> {96};
|
||||
93 -> {94};
|
||||
94 -> {95};
|
||||
95 -> {87};
|
||||
96 -> {97};
|
||||
97 -> {98};
|
||||
98 -> {90};
|
||||
98 -> {94} [color=green style=dashed];
|
||||
99 -> {103 100};
|
||||
100 -> {101};
|
||||
101 -> {102};
|
||||
102 -> {103};
|
||||
103 -> {88};
|
||||
103 -> {99} [color=green style=dashed];
|
||||
98 -> {99};
|
||||
99 -> {100};
|
||||
100 -> {85};
|
||||
|
||||
subgraph cluster_28 {
|
||||
color=red
|
||||
104 [label="Enter function test_7" style="filled" fillcolor=red];
|
||||
101 [label="Enter function test_7" style="filled" fillcolor=red];
|
||||
subgraph cluster_29 {
|
||||
color=blue
|
||||
105 [label="Enter block"];
|
||||
106 [label="Postponed enter to lambda"];
|
||||
102 [label="Enter block"];
|
||||
103 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_30 {
|
||||
color=blue
|
||||
113 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
110 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_31 {
|
||||
color=blue
|
||||
114 [label="Enter block"];
|
||||
115 [label="Const: String(test_7_2)"];
|
||||
116 [label="Exit block"];
|
||||
111 [label="Enter block"];
|
||||
112 [label="Const: String(test_7_2)"];
|
||||
113 [label="Exit block"];
|
||||
}
|
||||
117 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
114 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
107 [label="Postponed exit from lambda"];
|
||||
108 [label="Postponed enter to lambda"];
|
||||
104 [label="Postponed exit from lambda"];
|
||||
105 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_32 {
|
||||
color=blue
|
||||
118 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
115 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_33 {
|
||||
color=blue
|
||||
119 [label="Enter block"];
|
||||
120 [label="Const: String(test_7_1)"];
|
||||
121 [label="Exit block"];
|
||||
116 [label="Enter block"];
|
||||
117 [label="Const: String(test_7_1)"];
|
||||
118 [label="Exit block"];
|
||||
}
|
||||
122 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
119 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
109 [label="Postponed exit from lambda"];
|
||||
110 [label="Function call: R|/myRun|(...)"];
|
||||
111 [label="Exit block"];
|
||||
106 [label="Postponed exit from lambda"];
|
||||
107 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
108 [label="Exit block"];
|
||||
}
|
||||
112 [label="Exit function test_7" style="filled" fillcolor=red];
|
||||
109 [label="Exit function test_7" style="filled" fillcolor=red];
|
||||
}
|
||||
101 -> {102};
|
||||
102 -> {103};
|
||||
103 -> {104 110};
|
||||
103 -> {110} [style=dashed];
|
||||
104 -> {105};
|
||||
105 -> {106};
|
||||
106 -> {107 113};
|
||||
106 -> {113} [style=dashed];
|
||||
104 -> {103} [color=green style=dashed];
|
||||
105 -> {106 115};
|
||||
105 -> {115} [style=dashed];
|
||||
106 -> {107};
|
||||
106 -> {105} [color=green style=dashed];
|
||||
107 -> {108};
|
||||
108 -> {109 118};
|
||||
108 -> {118} [style=dashed];
|
||||
109 -> {110};
|
||||
108 -> {109};
|
||||
110 -> {111};
|
||||
111 -> {112};
|
||||
113 -> {117 114};
|
||||
114 -> {115};
|
||||
112 -> {113};
|
||||
113 -> {114};
|
||||
114 -> {104};
|
||||
115 -> {116};
|
||||
116 -> {117};
|
||||
117 -> {107};
|
||||
117 -> {113} [color=green style=dashed];
|
||||
118 -> {122 119};
|
||||
119 -> {120};
|
||||
120 -> {121};
|
||||
121 -> {122};
|
||||
122 -> {109};
|
||||
122 -> {118} [color=green style=dashed];
|
||||
117 -> {118};
|
||||
118 -> {119};
|
||||
119 -> {106};
|
||||
|
||||
subgraph cluster_34 {
|
||||
color=red
|
||||
123 [label="Enter function myDummyRun" style="filled" fillcolor=red];
|
||||
120 [label="Enter function myDummyRun" style="filled" fillcolor=red];
|
||||
subgraph cluster_35 {
|
||||
color=blue
|
||||
124 [label="Enter block"];
|
||||
125 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
126 [label="Exit block"];
|
||||
121 [label="Enter block"];
|
||||
122 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
123 [label="Exit block"];
|
||||
}
|
||||
127 [label="Exit function myDummyRun" style="filled" fillcolor=red];
|
||||
124 [label="Exit function myDummyRun" style="filled" fillcolor=red];
|
||||
}
|
||||
120 -> {121};
|
||||
121 -> {122};
|
||||
122 -> {123};
|
||||
123 -> {124};
|
||||
124 -> {125};
|
||||
125 -> {126};
|
||||
126 -> {127};
|
||||
|
||||
subgraph cluster_36 {
|
||||
color=red
|
||||
128 [label="Enter function test_8" style="filled" fillcolor=red];
|
||||
125 [label="Enter function test_8" style="filled" fillcolor=red];
|
||||
subgraph cluster_37 {
|
||||
color=blue
|
||||
129 [label="Enter block"];
|
||||
130 [label="Postponed enter to lambda"];
|
||||
126 [label="Enter block"];
|
||||
127 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_38 {
|
||||
color=blue
|
||||
135 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
132 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_39 {
|
||||
color=blue
|
||||
136 [label="Enter block"];
|
||||
137 [label="Const: String(test_8)"];
|
||||
138 [label="Exit block"];
|
||||
133 [label="Enter block"];
|
||||
134 [label="Const: String(test_8)"];
|
||||
135 [label="Exit block"];
|
||||
}
|
||||
139 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
136 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
131 [label="Postponed exit from lambda"];
|
||||
132 [label="Function call: R|/myDummyRun|(...)"];
|
||||
133 [label="Exit block"];
|
||||
128 [label="Postponed exit from lambda"];
|
||||
129 [label="Function call: R|/myDummyRun|(...)" style="filled" fillcolor=yellow];
|
||||
130 [label="Exit block"];
|
||||
}
|
||||
134 [label="Exit function test_8" style="filled" fillcolor=red];
|
||||
131 [label="Exit function test_8" style="filled" fillcolor=red];
|
||||
}
|
||||
125 -> {126};
|
||||
126 -> {127};
|
||||
127 -> {128 132};
|
||||
127 -> {132} [style=dashed];
|
||||
128 -> {129};
|
||||
129 -> {130};
|
||||
130 -> {131 135};
|
||||
130 -> {135} [style=dashed];
|
||||
131 -> {132};
|
||||
130 -> {131};
|
||||
132 -> {133};
|
||||
133 -> {134};
|
||||
134 -> {135};
|
||||
135 -> {136};
|
||||
136 -> {137};
|
||||
137 -> {138};
|
||||
138 -> {139};
|
||||
|
||||
}
|
||||
|
||||
Vendored
+8
-8
@@ -11,10 +11,10 @@ digraph conditionalEffects_kt {
|
||||
1 [label="Enter block"];
|
||||
2 [label="Access variable R|<local>/x|"];
|
||||
3 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"];
|
||||
4 [label="Function call: R|kotlin/require|(...)"];
|
||||
4 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
|
||||
5 [label="Access variable R|<local>/x|"];
|
||||
6 [label="Smart cast: R|<local>/x|"];
|
||||
7 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
7 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
8 [label="Exit block"];
|
||||
}
|
||||
9 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
@@ -36,7 +36,7 @@ digraph conditionalEffects_kt {
|
||||
color=blue
|
||||
11 [label="Enter block"];
|
||||
12 [label="Access variable R|<local>/x|"];
|
||||
13 [label="Function call: R|kotlin/requireNotNull|<R|kotlin/String|>(...)"];
|
||||
13 [label="Function call: R|kotlin/requireNotNull|<R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
||||
14 [label="Access variable R|<local>/x|"];
|
||||
15 [label="Smart cast: R|<local>/x|"];
|
||||
16 [label="Access variable R|kotlin/String.length|"];
|
||||
@@ -62,7 +62,7 @@ digraph conditionalEffects_kt {
|
||||
21 [label="Access variable R|<local>/x|"];
|
||||
22 [label="Const: Null(null)"];
|
||||
23 [label="Equality operator !="];
|
||||
24 [label="Function call: R|kotlin/require|(...)"];
|
||||
24 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
|
||||
25 [label="Access variable R|<local>/x|"];
|
||||
26 [label="Smart cast: R|<local>/x|"];
|
||||
27 [label="Access variable R|kotlin/String.length|"];
|
||||
@@ -99,7 +99,7 @@ digraph conditionalEffects_kt {
|
||||
39 [label="Equality operator !="];
|
||||
40 [label="Exit &&"];
|
||||
}
|
||||
41 [label="Function call: R|kotlin/require|(...)"];
|
||||
41 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
|
||||
42 [label="Access variable R|<local>/x|"];
|
||||
43 [label="Smart cast: R|<local>/x|"];
|
||||
44 [label="Access variable R|kotlin/String.length|"];
|
||||
@@ -165,7 +165,7 @@ digraph conditionalEffects_kt {
|
||||
65 [label="Enter block"];
|
||||
66 [label="Access variable R|<local>/x|"];
|
||||
67 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"];
|
||||
68 [label="Function call: R|kotlin/require|(...)"];
|
||||
68 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
|
||||
69 [label="Access variable R|<local>/x|"];
|
||||
70 [label="Smart cast: R|<local>/x|"];
|
||||
71 [label="Access variable R|kotlin/String.length|"];
|
||||
@@ -235,7 +235,7 @@ digraph conditionalEffects_kt {
|
||||
88 [label="Enter block"];
|
||||
89 [label="Access variable R|<local>/x|"];
|
||||
90 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"];
|
||||
91 [label="Function call: R|kotlin/require|(...)"];
|
||||
91 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
|
||||
92 [label="Access variable R|<local>/x|"];
|
||||
93 [label="Smart cast: R|<local>/x|"];
|
||||
94 [label="Access variable R|kotlin/String.length|"];
|
||||
@@ -248,7 +248,7 @@ digraph conditionalEffects_kt {
|
||||
98 [label="Enter block"];
|
||||
99 [label="Access variable R|<local>/x|"];
|
||||
100 [label="Type operator: (R|<local>/x| is R|kotlin/String|)"];
|
||||
101 [label="Function call: R|kotlin/require|(...)"];
|
||||
101 [label="Function call: R|kotlin/require|(...)" style="filled" fillcolor=yellow];
|
||||
102 [label="Access variable R|<local>/x|"];
|
||||
103 [label="Smart cast: R|<local>/x|"];
|
||||
104 [label="Access variable R|kotlin/String.length|"];
|
||||
|
||||
+4
-4
@@ -21,8 +21,8 @@ digraph inAnonymousObject_kt {
|
||||
4 [label="Exit anonymous object expression"];
|
||||
5 [label="Variable declaration: lval obj: R|<anonymous>|"];
|
||||
6 [label="Access variable R|<local>/obj|"];
|
||||
7 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()"];
|
||||
8 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
7 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
|
||||
8 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
9 [label="Exit block"];
|
||||
}
|
||||
10 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
@@ -54,7 +54,7 @@ digraph inAnonymousObject_kt {
|
||||
subgraph cluster_3 {
|
||||
color=red
|
||||
15 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
16 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
|
||||
16 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
||||
17 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
}
|
||||
15 -> {16};
|
||||
@@ -95,7 +95,7 @@ digraph inAnonymousObject_kt {
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
28 [label="Enter block"];
|
||||
29 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
29 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
30 [label="Exit block"];
|
||||
}
|
||||
31 [label="Exit function run" style="filled" fillcolor=red];
|
||||
|
||||
+6
-6
@@ -10,9 +10,9 @@ digraph inLocalClass_kt {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
2 [label="Exit local class foo"];
|
||||
3 [label="Function call: R|/LocalClass.LocalClass|()"];
|
||||
4 [label="Function call: R|/LocalClass.LocalClass|().R|<local>/run|()"];
|
||||
5 [label="Function call: R|<local>/e|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
3 [label="Function call: R|/LocalClass.LocalClass|()" style="filled" fillcolor=yellow];
|
||||
4 [label="Function call: R|/LocalClass.LocalClass|().R|<local>/run|()" style="filled" fillcolor=yellow];
|
||||
5 [label="Function call: R|<local>/e|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
6 [label="Exit block"];
|
||||
}
|
||||
7 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
@@ -55,11 +55,11 @@ digraph inLocalClass_kt {
|
||||
subgraph cluster_4 {
|
||||
color=red
|
||||
15 [label="Enter function <init>" style="filled" fillcolor=red];
|
||||
16 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
|
||||
16 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
|
||||
subgraph cluster_5 {
|
||||
color=blue
|
||||
17 [label="Enter block"];
|
||||
18 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
18 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
19 [label="Exit block"];
|
||||
}
|
||||
20 [label="Exit function <init>" style="filled" fillcolor=red];
|
||||
@@ -95,7 +95,7 @@ digraph inLocalClass_kt {
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
28 [label="Enter block"];
|
||||
29 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
29 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
30 [label="Exit block"];
|
||||
}
|
||||
31 [label="Exit function run" style="filled" fillcolor=red];
|
||||
|
||||
+4
-4
@@ -10,8 +10,8 @@ digraph inLocalFunction_kt {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
2 [label="Local function declaration foo"];
|
||||
3 [label="Function call: R|<local>/localFun|()"];
|
||||
4 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
3 [label="Function call: R|<local>/localFun|()" style="filled" fillcolor=yellow];
|
||||
4 [label="Function call: R|<local>/b|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
5 [label="Exit block"];
|
||||
}
|
||||
6 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
@@ -23,8 +23,8 @@ digraph inLocalFunction_kt {
|
||||
color=blue
|
||||
8 [label="Enter block"];
|
||||
9 [label="Access variable R|<local>/a|"];
|
||||
10 [label="Function call: R|<local>/a|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
11 [label="Function call: R|<local>/a|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
10 [label="Function call: R|<local>/a|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
11 [label="Function call: R|<local>/a|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
12 [label="Exit block"];
|
||||
}
|
||||
13 [label="Exit function localFun" style="filled" fillcolor=red];
|
||||
|
||||
+3
-3
@@ -43,7 +43,7 @@ digraph toLocalVariables_kt {
|
||||
13 [label="Enter block"];
|
||||
14 [label="Access variable R|<local>/y|"];
|
||||
15 [label="Variable declaration: lval yCopy: R|() -> kotlin/Unit|"];
|
||||
16 [label="Function call: R|<local>/yCopy|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
16 [label="Function call: R|<local>/yCopy|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
17 [label="Exit block"];
|
||||
}
|
||||
18 [label="Exit when branch result"];
|
||||
@@ -52,7 +52,7 @@ digraph toLocalVariables_kt {
|
||||
color=blue
|
||||
20 [label="Enter block"];
|
||||
21 [label="Access variable R|<local>/x|"];
|
||||
22 [label="Function call: R|/bar|(...)"];
|
||||
22 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
23 [label="Exit block"];
|
||||
}
|
||||
24 [label="Exit when branch result"];
|
||||
@@ -61,7 +61,7 @@ digraph toLocalVariables_kt {
|
||||
26 [label="Variable declaration: lval zCopy: R|() -> kotlin/Unit|"];
|
||||
27 [label="Access variable R|<local>/z|"];
|
||||
28 [label="Assignment: R|<local>/zCopy|"];
|
||||
29 [label="Function call: R|<local>/zCopy|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
29 [label="Function call: R|<local>/zCopy|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
30 [label="Exit block"];
|
||||
}
|
||||
31 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
|
||||
+50
-54
@@ -9,7 +9,7 @@ digraph atLeastOnce_kt {
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
@@ -25,7 +25,7 @@ digraph atLeastOnce_kt {
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
6 [label="Enter block"];
|
||||
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
8 [label="Exit block"];
|
||||
}
|
||||
9 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
@@ -45,94 +45,90 @@ digraph atLeastOnce_kt {
|
||||
13 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
21 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
20 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
22 [label="Enter block"];
|
||||
23 [label="Const: Int(1)"];
|
||||
24 [label="Assignment: R|<local>/x|"];
|
||||
25 [label="Exit block"];
|
||||
21 [label="Enter block"];
|
||||
22 [label="Const: Int(1)"];
|
||||
23 [label="Assignment: R|<local>/x|"];
|
||||
24 [label="Exit block"];
|
||||
}
|
||||
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
14 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
15 [label="Postponed exit from lambda"];
|
||||
16 [label="Function call: R|/inlineRun|(...)"];
|
||||
17 [label="Access variable R|<local>/x|"];
|
||||
18 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
19 [label="Exit block"];
|
||||
14 [label="Postponed exit from lambda"];
|
||||
15 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
16 [label="Access variable R|<local>/x|"];
|
||||
17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
18 [label="Exit block"];
|
||||
}
|
||||
20 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
19 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
13 -> {21};
|
||||
13 -> {15} [color=red];
|
||||
13 -> {21} [style=dashed];
|
||||
14 -> {16} [color=red];
|
||||
15 -> {16} [color=green];
|
||||
13 -> {20};
|
||||
13 -> {14} [color=red];
|
||||
13 -> {20} [style=dashed];
|
||||
14 -> {15};
|
||||
14 -> {13} [color=green style=dashed];
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
25 -> {26};
|
||||
26 -> {14} [color=red];
|
||||
26 -> {15} [color=green];
|
||||
26 -> {21} [color=green style=dashed];
|
||||
25 -> {15} [color=red];
|
||||
25 -> {14} [color=green];
|
||||
|
||||
subgraph cluster_8 {
|
||||
color=red
|
||||
27 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
26 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
28 [label="Enter block"];
|
||||
29 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
30 [label="Postponed enter to lambda"];
|
||||
27 [label="Enter block"];
|
||||
28 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
29 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
38 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
36 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
39 [label="Enter block"];
|
||||
40 [label="Const: Int(1)"];
|
||||
41 [label="Assignment: R|<local>/x|"];
|
||||
42 [label="Exit block"];
|
||||
37 [label="Enter block"];
|
||||
38 [label="Const: Int(1)"];
|
||||
39 [label="Assignment: R|<local>/x|"];
|
||||
40 [label="Exit block"];
|
||||
}
|
||||
43 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
31 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
32 [label="Postponed exit from lambda"];
|
||||
33 [label="Function call: R|/myRun|(...)"];
|
||||
34 [label="Access variable R|<local>/x|"];
|
||||
35 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
36 [label="Exit block"];
|
||||
30 [label="Postponed exit from lambda"];
|
||||
31 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
32 [label="Access variable R|<local>/x|"];
|
||||
33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
34 [label="Exit block"];
|
||||
}
|
||||
37 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
35 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {30};
|
||||
30 -> {38};
|
||||
30 -> {32} [color=red];
|
||||
30 -> {38} [style=dashed];
|
||||
31 -> {33} [color=red];
|
||||
32 -> {33} [color=green];
|
||||
29 -> {36};
|
||||
29 -> {30} [color=red];
|
||||
29 -> {36} [style=dashed];
|
||||
30 -> {31};
|
||||
30 -> {29} [color=green style=dashed];
|
||||
31 -> {32};
|
||||
32 -> {33};
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
36 -> {37};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
41 -> {42};
|
||||
42 -> {43};
|
||||
43 -> {31} [color=red];
|
||||
43 -> {32} [color=green];
|
||||
43 -> {38} [color=green style=dashed];
|
||||
41 -> {31} [color=red];
|
||||
41 -> {30} [color=green];
|
||||
|
||||
}
|
||||
|
||||
+8
-8
@@ -9,7 +9,7 @@ digraph atMostOnce_kt {
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
@@ -25,7 +25,7 @@ digraph atMostOnce_kt {
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
6 [label="Enter block"];
|
||||
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
8 [label="Exit block"];
|
||||
}
|
||||
9 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
@@ -56,9 +56,9 @@ digraph atMostOnce_kt {
|
||||
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
14 [label="Postponed exit from lambda"];
|
||||
15 [label="Function call: R|/inlineRun|(...)"];
|
||||
15 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
16 [label="Access variable R|<local>/x|"];
|
||||
17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
18 [label="Exit block"];
|
||||
}
|
||||
19 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
@@ -73,7 +73,7 @@ digraph atMostOnce_kt {
|
||||
16 -> {17};
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
20 -> {25 21};
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
@@ -101,9 +101,9 @@ digraph atMostOnce_kt {
|
||||
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
30 [label="Postponed exit from lambda"];
|
||||
31 [label="Function call: R|/myRun|(...)"];
|
||||
31 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
32 [label="Access variable R|<local>/x|"];
|
||||
33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
34 [label="Exit block"];
|
||||
}
|
||||
35 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
@@ -118,7 +118,7 @@ digraph atMostOnce_kt {
|
||||
32 -> {33};
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
36 -> {41 37};
|
||||
36 -> {37};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
|
||||
+5
-5
@@ -10,7 +10,7 @@ digraph contractsUsage_kt {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
2 [label="Access variable R|<local>/x|"];
|
||||
3 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
3 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
4 [label="Exit block"];
|
||||
}
|
||||
5 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
@@ -42,7 +42,7 @@ digraph contractsUsage_kt {
|
||||
color=blue
|
||||
14 [label="Enter block"];
|
||||
15 [label="Access variable this@R|/baz|"];
|
||||
16 [label="Function call: this@R|/baz|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
16 [label="Function call: this@R|/baz|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
17 [label="Exit block"];
|
||||
}
|
||||
18 [label="Exit when branch result"];
|
||||
@@ -89,9 +89,9 @@ digraph contractsUsage_kt {
|
||||
color=blue
|
||||
30 [label="Enter block"];
|
||||
31 [label="Access variable R|<local>/x|"];
|
||||
32 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
32 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
33 [label="Access variable R|<local>/y|"];
|
||||
34 [label="Function call: R|<local>/y|.R|/baz|()"];
|
||||
34 [label="Function call: R|<local>/y|.R|/baz|()" style="filled" fillcolor=yellow];
|
||||
35 [label="Jump: ^foo Unit"];
|
||||
36 [label="Stub" style="filled" fillcolor=gray];
|
||||
37 [label="Exit block" style="filled" fillcolor=gray];
|
||||
@@ -100,7 +100,7 @@ digraph contractsUsage_kt {
|
||||
39 [label="Exit when"];
|
||||
}
|
||||
40 [label="Access variable R|<local>/x|"];
|
||||
41 [label="Function call: R|/bar|(...)"];
|
||||
41 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
42 [label="Exit block"];
|
||||
}
|
||||
43 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
|
||||
+48
-52
@@ -9,7 +9,7 @@ digraph exactlyOnce_kt {
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
@@ -25,7 +25,7 @@ digraph exactlyOnce_kt {
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
6 [label="Enter block"];
|
||||
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
8 [label="Exit block"];
|
||||
}
|
||||
9 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
@@ -45,92 +45,88 @@ digraph exactlyOnce_kt {
|
||||
13 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
21 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
20 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
22 [label="Enter block"];
|
||||
23 [label="Const: Int(1)"];
|
||||
24 [label="Assignment: R|<local>/x|"];
|
||||
25 [label="Exit block"];
|
||||
21 [label="Enter block"];
|
||||
22 [label="Const: Int(1)"];
|
||||
23 [label="Assignment: R|<local>/x|"];
|
||||
24 [label="Exit block"];
|
||||
}
|
||||
26 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
14 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
15 [label="Postponed exit from lambda"];
|
||||
16 [label="Function call: R|/inlineRun|(...)"];
|
||||
17 [label="Access variable R|<local>/x|"];
|
||||
18 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
19 [label="Exit block"];
|
||||
14 [label="Postponed exit from lambda"];
|
||||
15 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
16 [label="Access variable R|<local>/x|"];
|
||||
17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
18 [label="Exit block"];
|
||||
}
|
||||
20 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
19 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
10 -> {11};
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
13 -> {21};
|
||||
13 -> {15} [color=red];
|
||||
13 -> {21} [style=dashed];
|
||||
14 -> {16} [color=red];
|
||||
15 -> {16} [color=green];
|
||||
13 -> {20};
|
||||
13 -> {14} [color=red];
|
||||
13 -> {20} [style=dashed];
|
||||
14 -> {15};
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
25 -> {26};
|
||||
26 -> {14} [color=red];
|
||||
26 -> {15} [color=green];
|
||||
25 -> {15} [color=red];
|
||||
25 -> {14} [color=green];
|
||||
|
||||
subgraph cluster_8 {
|
||||
color=red
|
||||
27 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
26 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
28 [label="Enter block"];
|
||||
29 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
30 [label="Postponed enter to lambda"];
|
||||
27 [label="Enter block"];
|
||||
28 [label="Variable declaration: lval x: R|kotlin/Int|"];
|
||||
29 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
38 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
36 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
39 [label="Enter block"];
|
||||
40 [label="Const: Int(1)"];
|
||||
41 [label="Assignment: R|<local>/x|"];
|
||||
42 [label="Exit block"];
|
||||
37 [label="Enter block"];
|
||||
38 [label="Const: Int(1)"];
|
||||
39 [label="Assignment: R|<local>/x|"];
|
||||
40 [label="Exit block"];
|
||||
}
|
||||
43 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
31 [label="Call arguments union" style="filled" fillcolor=yellow];
|
||||
32 [label="Postponed exit from lambda"];
|
||||
33 [label="Function call: R|/myRun|(...)"];
|
||||
34 [label="Access variable R|<local>/x|"];
|
||||
35 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
36 [label="Exit block"];
|
||||
30 [label="Postponed exit from lambda"];
|
||||
31 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
32 [label="Access variable R|<local>/x|"];
|
||||
33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
34 [label="Exit block"];
|
||||
}
|
||||
37 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
35 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
26 -> {27};
|
||||
27 -> {28};
|
||||
28 -> {29};
|
||||
29 -> {30};
|
||||
30 -> {38};
|
||||
30 -> {32} [color=red];
|
||||
30 -> {38} [style=dashed];
|
||||
31 -> {33} [color=red];
|
||||
32 -> {33} [color=green];
|
||||
29 -> {36};
|
||||
29 -> {30} [color=red];
|
||||
29 -> {36} [style=dashed];
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
32 -> {33};
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
36 -> {37};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
41 -> {42};
|
||||
42 -> {43};
|
||||
43 -> {31} [color=red];
|
||||
43 -> {32} [color=green];
|
||||
41 -> {31} [color=red];
|
||||
41 -> {30} [color=green];
|
||||
|
||||
}
|
||||
|
||||
+12
-12
@@ -24,7 +24,7 @@ digraph flow_kt {
|
||||
color=blue
|
||||
8 [label="Enter block"];
|
||||
9 [label="Access variable R|<local>/x|"];
|
||||
10 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
10 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
11 [label="Jump: ^bar Unit"];
|
||||
12 [label="Stub" style="filled" fillcolor=gray];
|
||||
13 [label="Exit block" style="filled" fillcolor=gray];
|
||||
@@ -33,7 +33,7 @@ digraph flow_kt {
|
||||
15 [label="Exit when"];
|
||||
}
|
||||
16 [label="Access variable R|<local>/x|"];
|
||||
17 [label="Function call: R|/bar|(...)"];
|
||||
17 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
18 [label="Exit block"];
|
||||
}
|
||||
19 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
@@ -102,9 +102,9 @@ digraph flow_kt {
|
||||
color=blue
|
||||
37 [label="Enter block"];
|
||||
38 [label="Access variable R|<local>/y|"];
|
||||
39 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
39 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
40 [label="Access variable R|<local>/z|"];
|
||||
41 [label="Function call: R|<local>/z|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
41 [label="Function call: R|<local>/z|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
42 [label="Jump: ^foo Unit"];
|
||||
43 [label="Stub" style="filled" fillcolor=gray];
|
||||
44 [label="Exit block" style="filled" fillcolor=gray];
|
||||
@@ -115,7 +115,7 @@ digraph flow_kt {
|
||||
color=blue
|
||||
47 [label="Enter block"];
|
||||
48 [label="Access variable R|<local>/y|"];
|
||||
49 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
49 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
50 [label="Exit block"];
|
||||
}
|
||||
51 [label="Exit when branch result"];
|
||||
@@ -133,8 +133,8 @@ digraph flow_kt {
|
||||
57 [label="Enter block"];
|
||||
58 [label="Const: Int(0)"];
|
||||
59 [label="Const: Int(0)"];
|
||||
60 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...)"];
|
||||
61 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...).R|kotlin/ranges/IntProgression.iterator|()"];
|
||||
60 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...)" style="filled" fillcolor=yellow];
|
||||
61 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(...).R|kotlin/ranges/IntProgression.iterator|()" style="filled" fillcolor=yellow];
|
||||
62 [label="Variable declaration: lval <iterator>: R|kotlin/collections/IntIterator|"];
|
||||
subgraph cluster_18 {
|
||||
color=blue
|
||||
@@ -143,7 +143,7 @@ digraph flow_kt {
|
||||
color=blue
|
||||
64 [label="Enter loop condition"];
|
||||
65 [label="Access variable R|<local>/<iterator>|"];
|
||||
66 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()"];
|
||||
66 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()" style="filled" fillcolor=yellow];
|
||||
67 [label="Exit loop condition"];
|
||||
}
|
||||
subgraph cluster_20 {
|
||||
@@ -153,10 +153,10 @@ digraph flow_kt {
|
||||
color=blue
|
||||
69 [label="Enter block"];
|
||||
70 [label="Access variable R|<local>/<iterator>|"];
|
||||
71 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()"];
|
||||
71 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()" style="filled" fillcolor=yellow];
|
||||
72 [label="Variable declaration: lval i: R|kotlin/Int|"];
|
||||
73 [label="Access variable R|<local>/x|"];
|
||||
74 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
74 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
75 [label="Exit block"];
|
||||
}
|
||||
76 [label="Exit loop block"];
|
||||
@@ -166,7 +166,7 @@ digraph flow_kt {
|
||||
78 [label="Exit block"];
|
||||
}
|
||||
79 [label="Access variable R|<local>/y|"];
|
||||
80 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
80 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
81 [label="Exit block"];
|
||||
}
|
||||
82 [label="Exit when branch result"];
|
||||
@@ -182,7 +182,7 @@ digraph flow_kt {
|
||||
color=blue
|
||||
86 [label="Enter block"];
|
||||
87 [label="Access variable R|<local>/z|"];
|
||||
88 [label="Function call: R|/bar|(...)"];
|
||||
88 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
89 [label="Exit block"];
|
||||
}
|
||||
90 [label="Exit loop block"];
|
||||
|
||||
+5
-5
@@ -23,7 +23,7 @@ digraph inPlaceLambda_kt {
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
8 [label="Enter block"];
|
||||
9 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
9 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
10 [label="Exit block"];
|
||||
}
|
||||
11 [label="Exit when branch result"];
|
||||
@@ -54,7 +54,7 @@ digraph inPlaceLambda_kt {
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
16 [label="Enter block"];
|
||||
17 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
17 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
18 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_7 {
|
||||
color=blue
|
||||
@@ -62,13 +62,13 @@ digraph inPlaceLambda_kt {
|
||||
subgraph cluster_8 {
|
||||
color=blue
|
||||
24 [label="Enter block"];
|
||||
25 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
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 anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
19 [label="Postponed exit from lambda"];
|
||||
20 [label="Function call: R|/bar|(...)"];
|
||||
20 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
21 [label="Exit block"];
|
||||
}
|
||||
22 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
@@ -81,7 +81,7 @@ digraph inPlaceLambda_kt {
|
||||
19 -> {20};
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
23 -> {27 24};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
25 -> {26};
|
||||
26 -> {27};
|
||||
|
||||
+4
-4
@@ -10,7 +10,7 @@ digraph simple_kt {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
2 [label="Access variable R|<local>/x|"];
|
||||
3 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
3 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
4 [label="Exit block"];
|
||||
}
|
||||
5 [label="Exit function bar" style="filled" fillcolor=red];
|
||||
@@ -28,7 +28,7 @@ digraph simple_kt {
|
||||
color=blue
|
||||
7 [label="Enter block"];
|
||||
8 [label="Access variable R|<local>/x|"];
|
||||
9 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
9 [label="Function call: R|<local>/x|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
subgraph cluster_4 {
|
||||
color=blue
|
||||
10 [label="Enter when"];
|
||||
@@ -43,14 +43,14 @@ digraph simple_kt {
|
||||
subgraph cluster_6 {
|
||||
color=blue
|
||||
16 [label="Enter block"];
|
||||
17 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
17 [label="Function call: R|<local>/y|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
18 [label="Exit block"];
|
||||
}
|
||||
19 [label="Exit when branch result"];
|
||||
20 [label="Exit when"];
|
||||
}
|
||||
21 [label="Access variable R|<local>/z|"];
|
||||
22 [label="Function call: R|/bar|(...)"];
|
||||
22 [label="Function call: R|/bar|(...)" style="filled" fillcolor=yellow];
|
||||
23 [label="Exit block"];
|
||||
}
|
||||
24 [label="Exit function foo" style="filled" fillcolor=red];
|
||||
|
||||
+10
-10
@@ -9,7 +9,7 @@ digraph unknown_kt {
|
||||
subgraph cluster_1 {
|
||||
color=blue
|
||||
1 [label="Enter block"];
|
||||
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
2 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
3 [label="Exit block"];
|
||||
}
|
||||
4 [label="Exit function inlineRun" style="filled" fillcolor=red];
|
||||
@@ -25,7 +25,7 @@ digraph unknown_kt {
|
||||
subgraph cluster_3 {
|
||||
color=blue
|
||||
6 [label="Enter block"];
|
||||
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
|
||||
7 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
|
||||
8 [label="Exit block"];
|
||||
}
|
||||
9 [label="Exit function myRun" style="filled" fillcolor=red];
|
||||
@@ -56,9 +56,9 @@ digraph unknown_kt {
|
||||
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
14 [label="Postponed exit from lambda"];
|
||||
15 [label="Function call: R|/inlineRun|(...)"];
|
||||
15 [label="Function call: R|/inlineRun|(...)" style="filled" fillcolor=yellow];
|
||||
16 [label="Access variable R|<local>/x|"];
|
||||
17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
17 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
18 [label="Exit block"];
|
||||
}
|
||||
19 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
@@ -69,17 +69,17 @@ digraph unknown_kt {
|
||||
13 -> {14 20};
|
||||
13 -> {20} [style=dashed];
|
||||
14 -> {15};
|
||||
14 -> {13} [color=green style=dashed];
|
||||
15 -> {16};
|
||||
16 -> {17};
|
||||
17 -> {18};
|
||||
18 -> {19};
|
||||
20 -> {25 21};
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {24};
|
||||
24 -> {25};
|
||||
25 -> {14};
|
||||
25 -> {20} [color=green style=dashed];
|
||||
|
||||
subgraph cluster_8 {
|
||||
color=red
|
||||
@@ -102,9 +102,9 @@ digraph unknown_kt {
|
||||
41 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
||||
}
|
||||
30 [label="Postponed exit from lambda"];
|
||||
31 [label="Function call: R|/myRun|(...)"];
|
||||
31 [label="Function call: R|/myRun|(...)" style="filled" fillcolor=yellow];
|
||||
32 [label="Access variable R|<local>/x|"];
|
||||
33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
|
||||
33 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow];
|
||||
34 [label="Exit block"];
|
||||
}
|
||||
35 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
@@ -115,16 +115,16 @@ digraph unknown_kt {
|
||||
29 -> {30 36};
|
||||
29 -> {36} [style=dashed];
|
||||
30 -> {31};
|
||||
30 -> {29} [color=green style=dashed];
|
||||
31 -> {32};
|
||||
32 -> {33};
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
36 -> {41 37};
|
||||
36 -> {37};
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
41 -> {30};
|
||||
41 -> {36} [color=green style=dashed];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user