6a03f31e50
Previously unsafe call is reported as part of InapplicableWrongReceiver. This makes it difficult for the downstream checkers to report different diagnostics.
336 lines
11 KiB
Plaintext
Vendored
336 lines
11 KiB
Plaintext
Vendored
digraph safeCallAndEqualityToBool_kt {
|
|
graph [nodesep=3]
|
|
node [shape=box penwidth=2]
|
|
edge [penwidth=2]
|
|
|
|
subgraph cluster_0 {
|
|
color=red
|
|
0 [label="Enter function check" style="filled" fillcolor=red];
|
|
subgraph cluster_1 {
|
|
color=blue
|
|
1 [label="Enter block"];
|
|
2 [label="Const: Boolean(true)"];
|
|
3 [label="Jump: ^check Boolean(true)"];
|
|
4 [label="Stub" style="filled" fillcolor=gray];
|
|
5 [label="Exit block" style="filled" fillcolor=gray];
|
|
}
|
|
6 [label="Exit function check" 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 test_1" style="filled" fillcolor=red];
|
|
subgraph cluster_3 {
|
|
color=blue
|
|
8 [label="Enter block"];
|
|
subgraph cluster_4 {
|
|
color=blue
|
|
9 [label="Enter when"];
|
|
subgraph cluster_5 {
|
|
color=blue
|
|
10 [label="Enter when branch condition "];
|
|
11 [label="Access variable R|<local>/s|"];
|
|
12 [label="Enter safe call"];
|
|
13 [label="Function call: $subj$.R|/check|()"];
|
|
14 [label="Exit safe call"];
|
|
15 [label="Const: Boolean(true)"];
|
|
16 [label="Equality operator =="];
|
|
17 [label="Exit when branch condition"];
|
|
}
|
|
subgraph cluster_6 {
|
|
color=blue
|
|
18 [label="Enter when branch condition else"];
|
|
19 [label="Exit when branch condition"];
|
|
}
|
|
20 [label="Enter when branch result"];
|
|
subgraph cluster_7 {
|
|
color=blue
|
|
21 [label="Enter block"];
|
|
22 [label="Access variable R|<local>/s|"];
|
|
23 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
|
|
24 [label="Exit block"];
|
|
}
|
|
25 [label="Exit when branch result"];
|
|
26 [label="Enter when branch result"];
|
|
subgraph cluster_8 {
|
|
color=blue
|
|
27 [label="Enter block"];
|
|
28 [label="Access variable R|<local>/s|"];
|
|
29 [label="Access variable R|kotlin/String.length|"];
|
|
30 [label="Exit block"];
|
|
}
|
|
31 [label="Exit when branch result"];
|
|
32 [label="Exit when"];
|
|
}
|
|
33 [label="Exit block"];
|
|
}
|
|
34 [label="Exit function test_1" style="filled" fillcolor=red];
|
|
}
|
|
7 -> {8};
|
|
8 -> {9};
|
|
9 -> {10};
|
|
10 -> {11};
|
|
11 -> {12 14};
|
|
12 -> {13};
|
|
13 -> {14};
|
|
14 -> {15};
|
|
15 -> {16};
|
|
16 -> {17};
|
|
17 -> {26 18};
|
|
18 -> {19};
|
|
19 -> {20};
|
|
20 -> {21};
|
|
21 -> {22};
|
|
22 -> {23};
|
|
23 -> {24};
|
|
24 -> {25};
|
|
25 -> {32};
|
|
26 -> {27};
|
|
27 -> {28};
|
|
28 -> {29};
|
|
29 -> {30};
|
|
30 -> {31};
|
|
31 -> {32};
|
|
32 -> {33};
|
|
33 -> {34};
|
|
|
|
subgraph cluster_9 {
|
|
color=red
|
|
35 [label="Enter function test_2" style="filled" fillcolor=red];
|
|
subgraph cluster_10 {
|
|
color=blue
|
|
36 [label="Enter block"];
|
|
subgraph cluster_11 {
|
|
color=blue
|
|
37 [label="Enter when"];
|
|
subgraph cluster_12 {
|
|
color=blue
|
|
38 [label="Enter when branch condition "];
|
|
39 [label="Access variable R|<local>/s|"];
|
|
40 [label="Enter safe call"];
|
|
41 [label="Function call: $subj$.R|/check|()"];
|
|
42 [label="Exit safe call"];
|
|
43 [label="Const: Boolean(false)"];
|
|
44 [label="Equality operator =="];
|
|
45 [label="Exit when branch condition"];
|
|
}
|
|
subgraph cluster_13 {
|
|
color=blue
|
|
46 [label="Enter when branch condition else"];
|
|
47 [label="Exit when branch condition"];
|
|
}
|
|
48 [label="Enter when branch result"];
|
|
subgraph cluster_14 {
|
|
color=blue
|
|
49 [label="Enter block"];
|
|
50 [label="Access variable R|<local>/s|"];
|
|
51 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
|
|
52 [label="Exit block"];
|
|
}
|
|
53 [label="Exit when branch result"];
|
|
54 [label="Enter when branch result"];
|
|
subgraph cluster_15 {
|
|
color=blue
|
|
55 [label="Enter block"];
|
|
56 [label="Access variable R|<local>/s|"];
|
|
57 [label="Access variable R|kotlin/String.length|"];
|
|
58 [label="Exit block"];
|
|
}
|
|
59 [label="Exit when branch result"];
|
|
60 [label="Exit when"];
|
|
}
|
|
61 [label="Exit block"];
|
|
}
|
|
62 [label="Exit function test_2" style="filled" fillcolor=red];
|
|
}
|
|
35 -> {36};
|
|
36 -> {37};
|
|
37 -> {38};
|
|
38 -> {39};
|
|
39 -> {40 42};
|
|
40 -> {41};
|
|
41 -> {42};
|
|
42 -> {43};
|
|
43 -> {44};
|
|
44 -> {45};
|
|
45 -> {54 46};
|
|
46 -> {47};
|
|
47 -> {48};
|
|
48 -> {49};
|
|
49 -> {50};
|
|
50 -> {51};
|
|
51 -> {52};
|
|
52 -> {53};
|
|
53 -> {60};
|
|
54 -> {55};
|
|
55 -> {56};
|
|
56 -> {57};
|
|
57 -> {58};
|
|
58 -> {59};
|
|
59 -> {60};
|
|
60 -> {61};
|
|
61 -> {62};
|
|
|
|
subgraph cluster_16 {
|
|
color=red
|
|
63 [label="Enter function test_3" style="filled" fillcolor=red];
|
|
subgraph cluster_17 {
|
|
color=blue
|
|
64 [label="Enter block"];
|
|
subgraph cluster_18 {
|
|
color=blue
|
|
65 [label="Enter when"];
|
|
subgraph cluster_19 {
|
|
color=blue
|
|
66 [label="Enter when branch condition "];
|
|
67 [label="Access variable R|<local>/s|"];
|
|
68 [label="Enter safe call"];
|
|
69 [label="Function call: $subj$.R|/check|()"];
|
|
70 [label="Exit safe call"];
|
|
71 [label="Const: Boolean(true)"];
|
|
72 [label="Equality operator !="];
|
|
73 [label="Exit when branch condition"];
|
|
}
|
|
subgraph cluster_20 {
|
|
color=blue
|
|
74 [label="Enter when branch condition else"];
|
|
75 [label="Exit when branch condition"];
|
|
}
|
|
76 [label="Enter when branch result"];
|
|
subgraph cluster_21 {
|
|
color=blue
|
|
77 [label="Enter block"];
|
|
78 [label="Access variable R|<local>/s|"];
|
|
79 [label="Access variable R|kotlin/String.length|"];
|
|
80 [label="Exit block"];
|
|
}
|
|
81 [label="Exit when branch result"];
|
|
82 [label="Enter when branch result"];
|
|
subgraph cluster_22 {
|
|
color=blue
|
|
83 [label="Enter block"];
|
|
84 [label="Access variable R|<local>/s|"];
|
|
85 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
|
|
86 [label="Exit block"];
|
|
}
|
|
87 [label="Exit when branch result"];
|
|
88 [label="Exit when"];
|
|
}
|
|
89 [label="Exit block"];
|
|
}
|
|
90 [label="Exit function test_3" style="filled" fillcolor=red];
|
|
}
|
|
63 -> {64};
|
|
64 -> {65};
|
|
65 -> {66};
|
|
66 -> {67};
|
|
67 -> {68 70};
|
|
68 -> {69};
|
|
69 -> {70};
|
|
70 -> {71};
|
|
71 -> {72};
|
|
72 -> {73};
|
|
73 -> {82 74};
|
|
74 -> {75};
|
|
75 -> {76};
|
|
76 -> {77};
|
|
77 -> {78};
|
|
78 -> {79};
|
|
79 -> {80};
|
|
80 -> {81};
|
|
81 -> {88};
|
|
82 -> {83};
|
|
83 -> {84};
|
|
84 -> {85};
|
|
85 -> {86};
|
|
86 -> {87};
|
|
87 -> {88};
|
|
88 -> {89};
|
|
89 -> {90};
|
|
|
|
subgraph cluster_23 {
|
|
color=red
|
|
91 [label="Enter function test_4" style="filled" fillcolor=red];
|
|
subgraph cluster_24 {
|
|
color=blue
|
|
92 [label="Enter block"];
|
|
subgraph cluster_25 {
|
|
color=blue
|
|
93 [label="Enter when"];
|
|
subgraph cluster_26 {
|
|
color=blue
|
|
94 [label="Enter when branch condition "];
|
|
95 [label="Access variable R|<local>/s|"];
|
|
96 [label="Enter safe call"];
|
|
97 [label="Function call: $subj$.R|/check|()"];
|
|
98 [label="Exit safe call"];
|
|
99 [label="Const: Boolean(false)"];
|
|
100 [label="Equality operator !="];
|
|
101 [label="Exit when branch condition"];
|
|
}
|
|
subgraph cluster_27 {
|
|
color=blue
|
|
102 [label="Enter when branch condition else"];
|
|
103 [label="Exit when branch condition"];
|
|
}
|
|
104 [label="Enter when branch result"];
|
|
subgraph cluster_28 {
|
|
color=blue
|
|
105 [label="Enter block"];
|
|
106 [label="Access variable R|<local>/s|"];
|
|
107 [label="Access variable R|kotlin/String.length|"];
|
|
108 [label="Exit block"];
|
|
}
|
|
109 [label="Exit when branch result"];
|
|
110 [label="Enter when branch result"];
|
|
subgraph cluster_29 {
|
|
color=blue
|
|
111 [label="Enter block"];
|
|
112 [label="Access variable R|<local>/s|"];
|
|
113 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
|
|
114 [label="Exit block"];
|
|
}
|
|
115 [label="Exit when branch result"];
|
|
116 [label="Exit when"];
|
|
}
|
|
117 [label="Exit block"];
|
|
}
|
|
118 [label="Exit function test_4" style="filled" fillcolor=red];
|
|
}
|
|
91 -> {92};
|
|
92 -> {93};
|
|
93 -> {94};
|
|
94 -> {95};
|
|
95 -> {96 98};
|
|
96 -> {97};
|
|
97 -> {98};
|
|
98 -> {99};
|
|
99 -> {100};
|
|
100 -> {101};
|
|
101 -> {110 102};
|
|
102 -> {103};
|
|
103 -> {104};
|
|
104 -> {105};
|
|
105 -> {106};
|
|
106 -> {107};
|
|
107 -> {108};
|
|
108 -> {109};
|
|
109 -> {116};
|
|
110 -> {111};
|
|
111 -> {112};
|
|
112 -> {113};
|
|
113 -> {114};
|
|
114 -> {115};
|
|
115 -> {116};
|
|
116 -> {117};
|
|
117 -> {118};
|
|
|
|
}
|