Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/equalsAndIdentity.dot
T
2020-04-03 10:08:23 +03:00

326 lines
10 KiB
Plaintext
Vendored

digraph equalsAndIdentity_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];
1 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit class A" style="filled" fillcolor=red];
}
2 -> {3} [color=green];
subgraph cluster_2 {
color=red
4 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
6 [label="Enter when"];
subgraph cluster_4 {
color=blue
8 [label="Enter when branch condition "];
9 [label="Access variable R|<local>/x|"];
10 [label="Access variable R|<local>/y|"];
11 [label="Operator =="];
12 [label="Exit when branch condition"];
}
21 [label="Synthetic else branch"];
13 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
14 [label="Enter block"];
15 [label="Access variable R|<local>/x|"];
16 [label="Function call: R|<local>/x|.R|/A.foo|()"];
17 [label="Access variable R|<local>/y|"];
18 [label="Function call: R|<local>/y|.R|/A.foo|()"];
19 [label="Exit block"];
}
20 [label="Exit when branch result"];
7 [label="Exit when"];
}
subgraph cluster_6 {
color=blue
22 [label="Enter when"];
subgraph cluster_7 {
color=blue
24 [label="Enter when branch condition "];
25 [label="Access variable R|<local>/x|"];
26 [label="Access variable R|<local>/y|"];
27 [label="Operator ==="];
28 [label="Exit when branch condition"];
}
37 [label="Synthetic else branch"];
29 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
30 [label="Enter block"];
31 [label="Access variable R|<local>/x|"];
32 [label="Function call: R|<local>/x|.R|/A.foo|()"];
33 [label="Access variable R|<local>/y|"];
34 [label="Function call: R|<local>/y|.R|/A.foo|()"];
35 [label="Exit block"];
}
36 [label="Exit when branch result"];
23 [label="Exit when"];
}
5 [label="Exit function test_1" style="filled" fillcolor=red];
}
4 -> {6};
6 -> {8};
7 -> {22};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13 21};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {7};
21 -> {7};
22 -> {24};
23 -> {5};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29 37};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {23};
37 -> {23};
subgraph cluster_9 {
color=red
38 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
40 [label="Enter when"];
subgraph cluster_11 {
color=blue
42 [label="Enter when branch condition "];
43 [label="Access variable R|<local>/x|"];
44 [label="Access variable R|<local>/y|"];
45 [label="Operator =="];
46 [label="Exit when branch condition"];
}
55 [label="Synthetic else branch"];
47 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
48 [label="Enter block"];
49 [label="Access variable R|<local>/x|"];
50 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
51 [label="Access variable R|<local>/y|"];
52 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
53 [label="Exit block"];
}
54 [label="Exit when branch result"];
41 [label="Exit when"];
}
subgraph cluster_13 {
color=blue
56 [label="Enter when"];
subgraph cluster_14 {
color=blue
58 [label="Enter when branch condition "];
59 [label="Access variable R|<local>/x|"];
60 [label="Access variable R|<local>/y|"];
61 [label="Operator ==="];
62 [label="Exit when branch condition"];
}
71 [label="Synthetic else branch"];
63 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
64 [label="Enter block"];
65 [label="Access variable R|<local>/x|"];
66 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
67 [label="Access variable R|<local>/y|"];
68 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
69 [label="Exit block"];
}
70 [label="Exit when branch result"];
57 [label="Exit when"];
}
39 [label="Exit function test_2" style="filled" fillcolor=red];
}
38 -> {40};
40 -> {42};
41 -> {56};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47 55};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {41};
55 -> {41};
56 -> {58};
57 -> {39};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63 71};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {57};
71 -> {57};
subgraph cluster_16 {
color=red
72 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
74 [label="Enter when"];
subgraph cluster_18 {
color=blue
76 [label="Enter when branch condition "];
77 [label="Access variable R|<local>/y|"];
78 [label="Const: Null(null)"];
79 [label="Operator =="];
80 [label="Exit when branch condition"];
}
87 [label="Synthetic else branch"];
81 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
82 [label="Enter block"];
83 [label="Jump: ^test_3 Unit"];
84 [label="Stub" style="filled" fillcolor=gray];
85 [label="Exit block" style="filled" fillcolor=gray];
}
86 [label="Exit when branch result" style="filled" fillcolor=gray];
75 [label="Exit when"];
}
subgraph cluster_20 {
color=blue
88 [label="Enter when"];
subgraph cluster_21 {
color=blue
90 [label="Enter when branch condition "];
91 [label="Access variable R|<local>/x|"];
92 [label="Access variable R|<local>/y|"];
93 [label="Operator =="];
94 [label="Exit when branch condition"];
}
103 [label="Synthetic else branch"];
95 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
96 [label="Enter block"];
97 [label="Access variable R|<local>/x|"];
98 [label="Function call: R|<local>/x|.R|/A.foo|()"];
99 [label="Access variable R|<local>/y|"];
100 [label="Function call: R|<local>/y|.R|/A.foo|()"];
101 [label="Exit block"];
}
102 [label="Exit when branch result"];
89 [label="Exit when"];
}
subgraph cluster_23 {
color=blue
104 [label="Enter when"];
subgraph cluster_24 {
color=blue
106 [label="Enter when branch condition "];
107 [label="Access variable R|<local>/x|"];
108 [label="Access variable R|<local>/y|"];
109 [label="Operator ==="];
110 [label="Exit when branch condition"];
}
119 [label="Synthetic else branch"];
111 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
112 [label="Enter block"];
113 [label="Access variable R|<local>/x|"];
114 [label="Function call: R|<local>/x|.R|/A.foo|()"];
115 [label="Access variable R|<local>/y|"];
116 [label="Function call: R|<local>/y|.R|/A.foo|()"];
117 [label="Exit block"];
}
118 [label="Exit when branch result"];
105 [label="Exit when"];
}
73 [label="Exit function test_3" style="filled" fillcolor=red];
}
72 -> {74};
74 -> {76};
75 -> {88};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81 87};
81 -> {82};
82 -> {83};
83 -> {73};
83 -> {84} [style=dotted];
84 -> {85} [style=dotted];
85 -> {86} [style=dotted];
86 -> {75} [style=dotted];
87 -> {75};
88 -> {90};
89 -> {104};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95 103};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {89};
103 -> {89};
104 -> {106};
105 -> {73};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111 119};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {105};
119 -> {105};
}