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

356 lines
11 KiB
Plaintext
Vendored

digraph bangbang_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_0" style="filled" fillcolor=red];
6 [label="Access variable R|<local>/a|"];
7 [label="Check not null: R|<local>/a|!!"];
8 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
9 [label="Access variable R|<local>/a|"];
10 [label="Function call: R|<local>/a|.R|/A.foo|()"];
5 [label="Exit function test_0" style="filled" fillcolor=red];
}
4 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {5};
subgraph cluster_3 {
color=red
11 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
13 [label="Enter when"];
subgraph cluster_5 {
color=blue
15 [label="Enter when branch condition "];
16 [label="Access variable R|<local>/a|"];
17 [label="Check not null: R|<local>/a|!!"];
18 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
19 [label="Exit when branch condition"];
}
26 [label="Synthetic else branch"];
20 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
21 [label="Enter block"];
22 [label="Access variable R|<local>/a|"];
23 [label="Function call: R|<local>/a|.R|/A.foo|()"];
24 [label="Exit block"];
}
25 [label="Exit when branch result"];
14 [label="Exit when"];
}
27 [label="Access variable R|<local>/a|"];
28 [label="Function call: R|<local>/a|.R|/A.foo|()"];
12 [label="Exit function test_1" style="filled" fillcolor=red];
}
11 -> {13};
13 -> {15};
14 -> {27};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20 26};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {14};
26 -> {14};
27 -> {28};
28 -> {12};
subgraph cluster_7 {
color=red
29 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
31 [label="Enter when"];
subgraph cluster_9 {
color=blue
33 [label="Enter when branch condition "];
subgraph cluster_10 {
color=blue
35 [label="Enter &&"];
36 [label="Access variable R|<local>/a|"];
37 [label="Check not null: R|<local>/a|!!"];
38 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
39 [label="Exit left part of &&"];
40 [label="Enter right part of &&"];
41 [label="Access variable R|<local>/b|"];
34 [label="Exit &&"];
}
42 [label="Exit when branch condition"];
}
49 [label="Synthetic else branch"];
43 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
44 [label="Enter block"];
45 [label="Access variable R|<local>/a|"];
46 [label="Function call: R|<local>/a|.R|/A.foo|()"];
47 [label="Exit block"];
}
48 [label="Exit when branch result"];
32 [label="Exit when"];
}
50 [label="Access variable R|<local>/a|"];
51 [label="Function call: R|<local>/a|.R|/A.foo|()"];
30 [label="Exit function test_2" style="filled" fillcolor=red];
}
29 -> {31};
31 -> {33};
32 -> {50};
33 -> {35};
34 -> {42};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {34 40};
40 -> {41};
41 -> {34};
42 -> {43 49};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {32};
49 -> {32};
50 -> {51};
51 -> {30};
subgraph cluster_12 {
color=red
52 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
54 [label="Enter when"];
subgraph cluster_14 {
color=blue
56 [label="Enter when branch condition "];
subgraph cluster_15 {
color=blue
58 [label="Enter &&"];
59 [label="Access variable R|<local>/b|"];
60 [label="Exit left part of &&"];
61 [label="Enter right part of &&"];
62 [label="Access variable R|<local>/a|"];
63 [label="Check not null: R|<local>/a|!!"];
64 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
57 [label="Exit &&"];
}
65 [label="Exit when branch condition"];
}
72 [label="Synthetic else branch"];
66 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
67 [label="Enter block"];
68 [label="Access variable R|<local>/a|"];
69 [label="Function call: R|<local>/a|.R|/A.foo|()"];
70 [label="Exit block"];
}
71 [label="Exit when branch result"];
55 [label="Exit when"];
}
73 [label="Access variable R|<local>/a|"];
74 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
53 [label="Exit function test_3" style="filled" fillcolor=red];
}
52 -> {54};
54 -> {56};
55 -> {73};
56 -> {58};
57 -> {65};
58 -> {59};
59 -> {60};
60 -> {57 61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {57};
65 -> {66 72};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {55};
72 -> {55};
73 -> {74};
74 -> {53};
subgraph cluster_17 {
color=red
75 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
77 [label="Enter when"];
subgraph cluster_19 {
color=blue
79 [label="Enter when branch condition "];
subgraph cluster_20 {
color=blue
81 [label="Enter ||"];
82 [label="Access variable R|<local>/a|"];
83 [label="Check not null: R|<local>/a|!!"];
84 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
85 [label="Exit left part of ||"];
86 [label="Enter right part of ||"];
87 [label="Access variable R|<local>/b|"];
80 [label="Exit ||"];
}
88 [label="Exit when branch condition"];
}
95 [label="Synthetic else branch"];
89 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
90 [label="Enter block"];
91 [label="Access variable R|<local>/a|"];
92 [label="Function call: R|<local>/a|.R|/A.foo|()"];
93 [label="Exit block"];
}
94 [label="Exit when branch result"];
78 [label="Exit when"];
}
96 [label="Access variable R|<local>/a|"];
97 [label="Function call: R|<local>/a|.R|/A.foo|()"];
76 [label="Exit function test_4" style="filled" fillcolor=red];
}
75 -> {77};
77 -> {79};
78 -> {96};
79 -> {81};
80 -> {88};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {80 86};
86 -> {87};
87 -> {80};
88 -> {89 95};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {78};
95 -> {78};
96 -> {97};
97 -> {76};
subgraph cluster_22 {
color=red
98 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
100 [label="Enter when"];
subgraph cluster_24 {
color=blue
102 [label="Enter when branch condition "];
subgraph cluster_25 {
color=blue
104 [label="Enter ||"];
105 [label="Access variable R|<local>/b|"];
106 [label="Exit left part of ||"];
107 [label="Enter right part of ||"];
108 [label="Access variable R|<local>/a|"];
109 [label="Check not null: R|<local>/a|!!"];
110 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
103 [label="Exit ||"];
}
111 [label="Exit when branch condition"];
}
118 [label="Synthetic else branch"];
112 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
113 [label="Enter block"];
114 [label="Access variable R|<local>/a|"];
115 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
116 [label="Exit block"];
}
117 [label="Exit when branch result"];
101 [label="Exit when"];
}
119 [label="Access variable R|<local>/a|"];
120 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
99 [label="Exit function test_5" style="filled" fillcolor=red];
}
98 -> {100};
100 -> {102};
101 -> {119};
102 -> {104};
103 -> {111};
104 -> {105};
105 -> {106};
106 -> {103 107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {103};
111 -> {112 118};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {101};
118 -> {101};
119 -> {120};
120 -> {99};
subgraph cluster_27 {
color=red
121 [label="Enter function test_6" style="filled" fillcolor=red];
123 [label="Access variable R|<local>/x|"];
124 [label="Check not null: R|<local>/x|!!"];
125 [label="Function call: R|<local>/x|!!.R|/A.foo|()"];
122 [label="Exit function test_6" style="filled" fillcolor=red];
}
121 -> {123};
123 -> {124};
124 -> {125};
125 -> {122};
subgraph cluster_28 {
color=red
126 [label="Enter function test_7" style="filled" fillcolor=red];
128 [label="Access variable R|<local>/x|"];
129 [label="Check not null: R|<local>/x|!!"];
130 [label="Function call: R|<local>/x|!!.R|/A.foo|()"];
127 [label="Exit function test_7" style="filled" fillcolor=red];
}
126 -> {128};
128 -> {129};
129 -> {130};
130 -> {127};
}