240 lines
7.2 KiB
Plaintext
Vendored
240 lines
7.2 KiB
Plaintext
Vendored
digraph safeCalls_kt {
|
|
graph [splines=ortho nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter function foo" style="filled" fillcolor=red];
|
|
1 [label="Const: String()"];
|
|
2 [label="Jump: ^foo String()"];
|
|
3 [label="Stub" style="filled" fillcolor=gray];
|
|
4 [label="Exit function foo" style="filled" fillcolor=red];
|
|
}
|
|
|
|
0 -> {1};
|
|
1 -> {2};
|
|
2 -> {4};
|
|
2 -> {3} [style=dotted];
|
|
3 -> {4} [style=dotted];
|
|
|
|
subgraph cluster_1 {
|
|
color=red
|
|
5 [label="Enter function let" style="filled" fillcolor=red];
|
|
6 [label="Exit function let" style="filled" fillcolor=red];
|
|
}
|
|
|
|
5 -> {6};
|
|
|
|
subgraph cluster_2 {
|
|
color=red
|
|
7 [label="Enter function test" style="filled" fillcolor=red];
|
|
8 [label="Access variable R|<local>/x|"];
|
|
9 [label="Enter safe call"];
|
|
10 [label="Access variable R|<local>/x|"];
|
|
11 [label="Access variable R|kotlin/String.length|"];
|
|
12 [label="Const: Int(1)"];
|
|
13 [label="Operator =="];
|
|
14 [label="Function call: R|<local>/x|?.R|/foo|(==(R|<local>/x|.R|kotlin/String.length|, Int(1)))"];
|
|
15 [label="Exit safe call"];
|
|
16 [label="Access variable R|<local>/x|"];
|
|
17 [label="Access variable <Inapplicable(WRONG_RECEIVER): [kotlin/String.length]>#"];
|
|
18 [label="Exit function test" style="filled" fillcolor=red];
|
|
}
|
|
|
|
7 -> {8};
|
|
8 -> {9 15};
|
|
9 -> {10};
|
|
10 -> {11};
|
|
11 -> {12};
|
|
12 -> {13};
|
|
13 -> {14};
|
|
14 -> {15};
|
|
15 -> {16};
|
|
16 -> {17};
|
|
17 -> {18};
|
|
|
|
subgraph cluster_3 {
|
|
color=red
|
|
19 [label="Enter function bar" style="filled" fillcolor=red];
|
|
20 [label="Exit function bar" style="filled" fillcolor=red];
|
|
}
|
|
|
|
19 -> {20};
|
|
|
|
subgraph cluster_4 {
|
|
color=red
|
|
21 [label="Enter function bool" style="filled" fillcolor=red];
|
|
22 [label="Exit function bool" style="filled" fillcolor=red];
|
|
}
|
|
|
|
21 -> {22};
|
|
|
|
subgraph cluster_5 {
|
|
color=red
|
|
23 [label="Enter function id" style="filled" fillcolor=red];
|
|
24 [label="Exit function id" style="filled" fillcolor=red];
|
|
}
|
|
|
|
23 -> {24};
|
|
|
|
subgraph cluster_6 {
|
|
color=red
|
|
25 [label="Enter function test_2" style="filled" fillcolor=red];
|
|
26 [label="Access variable R|<local>/x|"];
|
|
27 [label="Type operator: x as? A"];
|
|
28 [label="Enter safe call"];
|
|
29 [label="Access variable R|<local>/x|"];
|
|
30 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)"];
|
|
31 [label="Exit safe call"];
|
|
32 [label="Exit function test_2" style="filled" fillcolor=red];
|
|
}
|
|
|
|
25 -> {26};
|
|
26 -> {27};
|
|
27 -> {28 31};
|
|
28 -> {29};
|
|
29 -> {30};
|
|
30 -> {31};
|
|
31 -> {32};
|
|
|
|
subgraph cluster_7 {
|
|
color=red
|
|
33 [label="Enter function test_3" style="filled" fillcolor=red];
|
|
34 [label="Access variable R|<local>/x|"];
|
|
35 [label="Type operator: x as? A"];
|
|
36 [label="Enter safe call"];
|
|
37 [label="Access variable R|<local>/x|"];
|
|
38 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)"];
|
|
39 [label="Exit safe call"];
|
|
40 [label="Enter safe call"];
|
|
41 [label="Access variable R|<local>/x|"];
|
|
42 [label="Function call: R|<local>/x|.R|/A.bool|()"];
|
|
43 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)?.R|/foo|(R|<local>/x|.R|/A.bool|())"];
|
|
44 [label="Exit safe call"];
|
|
45 [label="Enter safe call"];
|
|
46 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)?.R|/foo|(R|<local>/x|.R|/A.bool|())?.R|/let|(<L> = let@fun <anonymous>(): R|kotlin/Unit| {
|
|
R|<local>/x|.R|/A.bool|()
|
|
}
|
|
)"];
|
|
47 [label="Exit safe call"];
|
|
48 [label="Access variable R|<local>/x|"];
|
|
49 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()"];
|
|
50 [label="Exit function test_3" style="filled" fillcolor=red];
|
|
}
|
|
|
|
33 -> {34};
|
|
34 -> {35};
|
|
35 -> {36 39};
|
|
36 -> {37};
|
|
37 -> {38};
|
|
38 -> {39};
|
|
39 -> {40 44};
|
|
40 -> {41};
|
|
41 -> {42};
|
|
42 -> {43};
|
|
43 -> {44};
|
|
44 -> {45 47};
|
|
45 -> {46};
|
|
46 -> {47};
|
|
47 -> {48};
|
|
48 -> {49};
|
|
49 -> {50};
|
|
|
|
subgraph cluster_8 {
|
|
color=red
|
|
51 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
|
52 [label="Access variable R|<local>/x|"];
|
|
53 [label="Function call: R|<local>/x|.R|/A.bool|()"];
|
|
54 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
|
}
|
|
|
|
51 -> {52};
|
|
52 -> {53};
|
|
53 -> {54};
|
|
|
|
subgraph cluster_9 {
|
|
color=red
|
|
55 [label="Enter function test_4" style="filled" fillcolor=red];
|
|
56 [label="Access variable R|<local>/x|"];
|
|
57 [label="Enter safe call"];
|
|
58 [label="Function call: R|<local>/x|?.R|/A.id|()"];
|
|
59 [label="Exit safe call"];
|
|
60 [label="Enter safe call"];
|
|
61 [label="Function call: R|<local>/x|?.R|/A.id|()?.R|/A.bool|()"];
|
|
62 [label="Exit safe call"];
|
|
63 [label="Access variable R|<local>/x|"];
|
|
64 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
|
|
65 [label="Exit function test_4" style="filled" fillcolor=red];
|
|
}
|
|
|
|
55 -> {56};
|
|
56 -> {57 59};
|
|
57 -> {58};
|
|
58 -> {59};
|
|
59 -> {60 62};
|
|
60 -> {61};
|
|
61 -> {62};
|
|
62 -> {63};
|
|
63 -> {64};
|
|
64 -> {65};
|
|
|
|
subgraph cluster_10 {
|
|
color=red
|
|
66 [label="Enter function boo" style="filled" fillcolor=red];
|
|
67 [label="Exit function boo" style="filled" fillcolor=red];
|
|
}
|
|
|
|
66 -> {67};
|
|
|
|
subgraph cluster_11 {
|
|
color=red
|
|
68 [label="Enter function test_5" style="filled" fillcolor=red];
|
|
69 [label="Access variable R|<local>/x|"];
|
|
70 [label="Enter safe call"];
|
|
subgraph cluster_12 {
|
|
color=blue
|
|
71 [label="Enter function anonymousFunction"];
|
|
72 [label="Jump: ^test_5 Unit"];
|
|
73 [label="Stub" style="filled" fillcolor=gray];
|
|
74 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
|
|
}
|
|
75 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(<L> = let@fun <anonymous>(it: R|A|): R|kotlin/Nothing| <kind=EXACTLY_ONCE> {
|
|
^test_5 Unit
|
|
}
|
|
)" style="filled" fillcolor=gray];
|
|
76 [label="Exit safe call" style="filled" fillcolor=gray];
|
|
77 [label="Enter safe call" style="filled" fillcolor=gray];
|
|
78 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray];
|
|
79 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=gray];
|
|
80 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(<L> = let@fun <anonymous>(it: R|A|): R|kotlin/Nothing| <kind=EXACTLY_ONCE> {
|
|
^test_5 Unit
|
|
}
|
|
)?.R|/boo|(R|<local>/x|.R|/A.bool|())" style="filled" fillcolor=gray];
|
|
81 [label="Exit safe call" style="filled" fillcolor=gray];
|
|
82 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray];
|
|
83 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()" style="filled" fillcolor=gray];
|
|
84 [label="Exit function test_5" style="filled" fillcolor=red];
|
|
}
|
|
|
|
68 -> {69};
|
|
69 -> {70};
|
|
69 -> {76} [style=dotted];
|
|
70 -> {71};
|
|
71 -> {72};
|
|
72 -> {84};
|
|
72 -> {73} [style=dotted];
|
|
73 -> {74} [style=dotted];
|
|
74 -> {75} [style=dotted];
|
|
75 -> {76} [style=dotted];
|
|
76 -> {77 81} [style=dotted];
|
|
77 -> {78} [style=dotted];
|
|
78 -> {79} [style=dotted];
|
|
79 -> {80} [style=dotted];
|
|
80 -> {81} [style=dotted];
|
|
81 -> {82} [style=dotted];
|
|
82 -> {83} [style=dotted];
|
|
83 -> {84} [style=dotted];
|
|
|
|
}
|