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|"];
|
||||
|
||||
Reference in New Issue
Block a user