320 lines
11 KiB
Plaintext
Vendored
320 lines
11 KiB
Plaintext
Vendored
digraph safeCalls_kt {
|
|
graph [nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter function foo" style="filled" fillcolor=red];
|
|
subgraph cluster_1 {
|
|
color=blue
|
|
1 [label="Enter block"];
|
|
2 [label="Const: String()"];
|
|
3 [label="Jump: ^foo String()"];
|
|
4 [label="Stub" style="filled" fillcolor=gray];
|
|
5 [label="Exit block" style="filled" fillcolor=gray];
|
|
}
|
|
6 [label="Exit function foo" style="filled" fillcolor=red];
|
|
}
|
|
0 -> {1};
|
|
1 -> {2};
|
|
2 -> {3};
|
|
3 -> {6};
|
|
3 -> {4} [style=dotted];
|
|
4 -> {5} [style=dotted];
|
|
5 -> {6} [style=dotted];
|
|
|
|
subgraph cluster_2 {
|
|
color=red
|
|
7 [label="Enter function let" style="filled" fillcolor=red];
|
|
subgraph cluster_3 {
|
|
color=blue
|
|
8 [label="Enter block"];
|
|
9 [label="Exit block"];
|
|
}
|
|
10 [label="Exit function let" style="filled" fillcolor=red];
|
|
}
|
|
7 -> {8};
|
|
8 -> {9};
|
|
9 -> {10};
|
|
|
|
subgraph cluster_4 {
|
|
color=red
|
|
11 [label="Enter function test" style="filled" fillcolor=red];
|
|
subgraph cluster_5 {
|
|
color=blue
|
|
12 [label="Enter block"];
|
|
13 [label="Access variable R|<local>/x|"];
|
|
14 [label="Enter safe call"];
|
|
15 [label="Access variable R|<local>/x|"];
|
|
16 [label="Smart cast: R|<local>/x|"];
|
|
17 [label="Access variable R|kotlin/String.length|"];
|
|
18 [label="Const: Int(1)"];
|
|
19 [label="Equality operator =="];
|
|
20 [label="Function call: $subj$.R|/foo|(...)" style="filled" fillcolor=yellow];
|
|
21 [label="Exit safe call"];
|
|
22 [label="Access variable R|<local>/x|"];
|
|
23 [label="Access variable R|kotlin/String.length<Inapplicable(UNSAFE_CALL): kotlin/String.length>#|"];
|
|
24 [label="Exit block"];
|
|
}
|
|
25 [label="Exit function test" style="filled" fillcolor=red];
|
|
}
|
|
11 -> {12};
|
|
12 -> {13};
|
|
13 -> {14 21};
|
|
14 -> {15};
|
|
15 -> {16};
|
|
16 -> {17};
|
|
17 -> {18};
|
|
18 -> {19};
|
|
19 -> {20};
|
|
20 -> {21};
|
|
21 -> {22};
|
|
22 -> {23};
|
|
23 -> {24};
|
|
24 -> {25};
|
|
|
|
subgraph cluster_6 {
|
|
color=red
|
|
26 [label="Enter function bar" style="filled" fillcolor=red];
|
|
27 [label="Exit function bar" style="filled" fillcolor=red];
|
|
}
|
|
26 -> {27};
|
|
|
|
subgraph cluster_7 {
|
|
color=red
|
|
28 [label="Enter function bool" style="filled" fillcolor=red];
|
|
29 [label="Exit function bool" style="filled" fillcolor=red];
|
|
}
|
|
28 -> {29};
|
|
|
|
subgraph cluster_8 {
|
|
color=red
|
|
30 [label="Enter function id" style="filled" fillcolor=red];
|
|
31 [label="Exit function id" style="filled" fillcolor=red];
|
|
}
|
|
30 -> {31};
|
|
|
|
subgraph cluster_9 {
|
|
color=red
|
|
32 [label="Enter class A" style="filled" fillcolor=red];
|
|
33 [label="Exit class A" style="filled" fillcolor=red];
|
|
}
|
|
32 -> {33} [color=green];
|
|
|
|
subgraph cluster_10 {
|
|
color=red
|
|
34 [label="Enter function test_2" style="filled" fillcolor=red];
|
|
subgraph cluster_11 {
|
|
color=blue
|
|
35 [label="Enter block"];
|
|
36 [label="Access variable R|<local>/x|"];
|
|
37 [label="Type operator: (R|<local>/x| as? R|A|)"];
|
|
38 [label="Enter safe call"];
|
|
39 [label="Access variable R|<local>/x|"];
|
|
40 [label="Smart cast: R|<local>/x|"];
|
|
41 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow];
|
|
42 [label="Exit safe call"];
|
|
43 [label="Exit block"];
|
|
}
|
|
44 [label="Exit function test_2" style="filled" fillcolor=red];
|
|
}
|
|
34 -> {35};
|
|
35 -> {36};
|
|
36 -> {37};
|
|
37 -> {38 42};
|
|
38 -> {39};
|
|
39 -> {40};
|
|
40 -> {41};
|
|
41 -> {42};
|
|
42 -> {43};
|
|
43 -> {44};
|
|
|
|
subgraph cluster_12 {
|
|
color=red
|
|
45 [label="Enter function test_3" style="filled" fillcolor=red];
|
|
subgraph cluster_13 {
|
|
color=blue
|
|
46 [label="Enter block"];
|
|
47 [label="Access variable R|<local>/x|"];
|
|
48 [label="Type operator: (R|<local>/x| as? R|A|)"];
|
|
49 [label="Enter safe call"];
|
|
50 [label="Access variable R|<local>/x|"];
|
|
51 [label="Smart cast: R|<local>/x|"];
|
|
52 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow];
|
|
53 [label="Enter safe call"];
|
|
54 [label="Access variable R|<local>/x|"];
|
|
55 [label="Smart cast: R|<local>/x|"];
|
|
56 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=yellow];
|
|
57 [label="Function call: $subj$.R|/foo|(...)" style="filled" fillcolor=yellow];
|
|
58 [label="Enter safe call"];
|
|
59 [label="Postponed enter to lambda"];
|
|
subgraph cluster_14 {
|
|
color=blue
|
|
69 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
|
subgraph cluster_15 {
|
|
color=blue
|
|
70 [label="Enter block"];
|
|
71 [label="Access variable R|<local>/x|"];
|
|
72 [label="Smart cast: R|<local>/x|"];
|
|
73 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=yellow];
|
|
74 [label="Exit block"];
|
|
}
|
|
75 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
|
|
}
|
|
60 [label="Postponed exit from lambda"];
|
|
61 [label="Function call: $subj$.R|/let|(...)" style="filled" fillcolor=yellow];
|
|
62 [label="Exit safe call"];
|
|
63 [label="Exit safe call"];
|
|
64 [label="Exit safe call"];
|
|
65 [label="Access variable R|<local>/x|"];
|
|
66 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()" style="filled" fillcolor=yellow];
|
|
67 [label="Exit block"];
|
|
}
|
|
68 [label="Exit function test_3" style="filled" fillcolor=red];
|
|
}
|
|
45 -> {46};
|
|
46 -> {47};
|
|
47 -> {48};
|
|
48 -> {49 62};
|
|
49 -> {50};
|
|
50 -> {51};
|
|
51 -> {52};
|
|
52 -> {62 53};
|
|
53 -> {54};
|
|
54 -> {55};
|
|
55 -> {56};
|
|
56 -> {57};
|
|
57 -> {63 58};
|
|
58 -> {59};
|
|
59 -> {60 69 61};
|
|
59 -> {69} [style=dashed];
|
|
60 -> {61};
|
|
61 -> {64};
|
|
62 -> {63};
|
|
63 -> {64};
|
|
64 -> {65};
|
|
65 -> {66};
|
|
66 -> {67};
|
|
67 -> {68};
|
|
69 -> {70};
|
|
70 -> {71};
|
|
71 -> {72};
|
|
72 -> {73};
|
|
73 -> {74};
|
|
74 -> {75};
|
|
|
|
subgraph cluster_16 {
|
|
color=red
|
|
76 [label="Enter function test_4" style="filled" fillcolor=red];
|
|
subgraph cluster_17 {
|
|
color=blue
|
|
77 [label="Enter block"];
|
|
78 [label="Access variable R|<local>/x|"];
|
|
79 [label="Enter safe call"];
|
|
80 [label="Function call: $subj$.R|/A.id|()" style="filled" fillcolor=yellow];
|
|
81 [label="Enter safe call"];
|
|
82 [label="Function call: $subj$.R|/A.bool|()" style="filled" fillcolor=yellow];
|
|
83 [label="Exit safe call"];
|
|
84 [label="Exit safe call"];
|
|
85 [label="Access variable R|<local>/x|"];
|
|
86 [label="Function call: R|<local>/x|.R|/A.id<Inapplicable(UNSAFE_CALL): /A.id>#|()" style="filled" fillcolor=yellow];
|
|
87 [label="Exit block"];
|
|
}
|
|
88 [label="Exit function test_4" style="filled" fillcolor=red];
|
|
}
|
|
76 -> {77};
|
|
77 -> {78};
|
|
78 -> {79 83};
|
|
79 -> {80};
|
|
80 -> {83 81};
|
|
81 -> {82};
|
|
82 -> {84};
|
|
83 -> {84};
|
|
84 -> {85};
|
|
85 -> {86};
|
|
86 -> {87};
|
|
87 -> {88};
|
|
|
|
subgraph cluster_18 {
|
|
color=red
|
|
89 [label="Enter function boo" style="filled" fillcolor=red];
|
|
subgraph cluster_19 {
|
|
color=blue
|
|
90 [label="Enter block"];
|
|
91 [label="Exit block"];
|
|
}
|
|
92 [label="Exit function boo" style="filled" fillcolor=red];
|
|
}
|
|
89 -> {90};
|
|
90 -> {91};
|
|
91 -> {92};
|
|
|
|
subgraph cluster_20 {
|
|
color=red
|
|
93 [label="Enter function test_5" style="filled" fillcolor=red];
|
|
subgraph cluster_21 {
|
|
color=blue
|
|
94 [label="Enter block"];
|
|
95 [label="Access variable R|<local>/x|"];
|
|
96 [label="Enter safe call"];
|
|
97 [label="Postponed enter to lambda"];
|
|
subgraph cluster_22 {
|
|
color=blue
|
|
112 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
|
|
subgraph cluster_23 {
|
|
color=blue
|
|
113 [label="Enter block"];
|
|
114 [label="Jump: ^test_5 Unit"];
|
|
115 [label="Stub" style="filled" fillcolor=gray];
|
|
116 [label="Exit block" style="filled" fillcolor=gray];
|
|
}
|
|
117 [label="Exit function anonymousFunction" style="filled" fillcolor=red style="filled" fillcolor=gray];
|
|
}
|
|
98 [label="Postponed exit from lambda" style="filled" fillcolor=gray];
|
|
99 [label="Function call: $subj$.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
|
|
100 [label="Stub" style="filled" fillcolor=gray];
|
|
101 [label="Enter safe call" style="filled" fillcolor=gray];
|
|
102 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray];
|
|
103 [label="Smart cast: R|<local>/x|" style="filled" fillcolor=gray];
|
|
104 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=gray];
|
|
105 [label="Function call: $subj$.R|/boo|(...)" style="filled" fillcolor=gray];
|
|
106 [label="Exit safe call"];
|
|
107 [label="Exit safe call"];
|
|
108 [label="Access variable R|<local>/x|"];
|
|
109 [label="Function call: R|<local>/x|.R|/A.id<Inapplicable(UNSAFE_CALL): /A.id>#|()" style="filled" fillcolor=yellow];
|
|
110 [label="Exit block"];
|
|
}
|
|
111 [label="Exit function test_5" style="filled" fillcolor=red];
|
|
}
|
|
93 -> {94};
|
|
94 -> {95};
|
|
95 -> {96 106};
|
|
96 -> {97};
|
|
97 -> {112};
|
|
97 -> {98 99} [style=dotted];
|
|
97 -> {112} [style=dashed];
|
|
98 -> {99} [style=dotted];
|
|
99 -> {100} [style=dotted];
|
|
99 -> {111} [style=dotted] [label=onUncaughtException];
|
|
100 -> {106 101} [style=dotted];
|
|
101 -> {102} [style=dotted];
|
|
102 -> {103} [style=dotted];
|
|
103 -> {104} [style=dotted];
|
|
104 -> {105} [style=dotted];
|
|
105 -> {107} [style=dotted];
|
|
106 -> {107};
|
|
107 -> {108};
|
|
108 -> {109};
|
|
109 -> {110};
|
|
110 -> {111};
|
|
112 -> {113};
|
|
113 -> {114};
|
|
114 -> {111};
|
|
114 -> {115} [style=dotted];
|
|
115 -> {116} [style=dotted];
|
|
116 -> {117} [style=dotted];
|
|
117 -> {98} [style=dotted];
|
|
|
|
}
|