digraph boundSmartcasts_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 bar" style="filled" fillcolor=red]; 5 [label="Exit function bar" style="filled" fillcolor=red]; } 4 -> {5}; subgraph cluster_3 { color=red 6 [label="Enter class B" style="filled" fillcolor=red]; 7 [label="Exit class B" style="filled" fillcolor=red]; } 6 -> {7} [color=green]; subgraph cluster_4 { color=red 8 [label="Enter function test_1" style="filled" fillcolor=red]; 10 [label="Access variable R|/x|"]; 11 [label="Variable declaration: lval y: R|kotlin/Any|"]; subgraph cluster_5 { color=blue 12 [label="Enter when"]; subgraph cluster_6 { color=blue 14 [label="Enter when branch condition "]; 15 [label="Access variable R|/x|"]; 16 [label="Type operator: (R|/x| is R|A|)"]; 17 [label="Exit when branch condition"]; } 26 [label="Synthetic else branch"]; 18 [label="Enter when branch result"]; subgraph cluster_7 { color=blue 19 [label="Enter block"]; 20 [label="Access variable R|/x|"]; 21 [label="Function call: R|/x|.R|/A.foo|()"]; 22 [label="Access variable R|/y|"]; 23 [label="Function call: R|/y|.R|/A.foo|()"]; 24 [label="Exit block"]; } 25 [label="Exit when branch result"]; 13 [label="Exit when"]; } 9 [label="Exit function test_1" style="filled" fillcolor=red]; } 8 -> {10}; 10 -> {11}; 11 -> {12}; 12 -> {14}; 13 -> {9}; 14 -> {15}; 15 -> {16}; 16 -> {17}; 17 -> {18 26}; 18 -> {19}; 19 -> {20}; 20 -> {21}; 21 -> {22}; 22 -> {23}; 23 -> {24}; 24 -> {25}; 25 -> {13}; 26 -> {13}; subgraph cluster_8 { color=red 27 [label="Enter function test_2" style="filled" fillcolor=red]; 29 [label="Access variable R|/x|"]; 30 [label="Variable declaration: lval y: R|kotlin/Any|"]; subgraph cluster_9 { color=blue 31 [label="Enter when"]; subgraph cluster_10 { color=blue 33 [label="Enter when branch condition "]; 34 [label="Access variable R|/y|"]; 35 [label="Type operator: (R|/y| is R|A|)"]; 36 [label="Exit when branch condition"]; } 45 [label="Synthetic else branch"]; 37 [label="Enter when branch result"]; subgraph cluster_11 { color=blue 38 [label="Enter block"]; 39 [label="Access variable R|/x|"]; 40 [label="Function call: R|/x|.R|/A.foo|()"]; 41 [label="Access variable R|/y|"]; 42 [label="Function call: R|/y|.R|/A.foo|()"]; 43 [label="Exit block"]; } 44 [label="Exit when branch result"]; 32 [label="Exit when"]; } 28 [label="Exit function test_2" style="filled" fillcolor=red]; } 27 -> {29}; 29 -> {30}; 30 -> {31}; 31 -> {33}; 32 -> {28}; 33 -> {34}; 34 -> {35}; 35 -> {36}; 36 -> {37 45}; 37 -> {38}; 38 -> {39}; 39 -> {40}; 40 -> {41}; 41 -> {42}; 42 -> {43}; 43 -> {44}; 44 -> {32}; 45 -> {32}; subgraph cluster_12 { color=red 46 [label="Enter function test_3" style="filled" fillcolor=red]; 48 [label="Access variable R|/x|"]; 49 [label="Variable declaration: lvar z: R|kotlin/Any|"]; subgraph cluster_13 { color=blue 50 [label="Enter when"]; subgraph cluster_14 { color=blue 52 [label="Enter when branch condition "]; 53 [label="Access variable R|/x|"]; 54 [label="Type operator: (R|/x| is R|A|)"]; 55 [label="Exit when branch condition"]; } 62 [label="Synthetic else branch"]; 56 [label="Enter when branch result"]; subgraph cluster_15 { color=blue 57 [label="Enter block"]; 58 [label="Access variable R|/z|"]; 59 [label="Function call: R|/z|.R|/A.foo|()"]; 60 [label="Exit block"]; } 61 [label="Exit when branch result"]; 51 [label="Exit when"]; } 63 [label="Access variable R|/y|"]; 64 [label="Assignment: R|/z|"]; subgraph cluster_16 { color=blue 65 [label="Enter when"]; subgraph cluster_17 { color=blue 67 [label="Enter when branch condition "]; 68 [label="Access variable R|/y|"]; 69 [label="Type operator: (R|/y| is R|B|)"]; 70 [label="Exit when branch condition"]; } 79 [label="Synthetic else branch"]; 71 [label="Enter when branch result"]; subgraph cluster_18 { color=blue 72 [label="Enter block"]; 73 [label="Access variable R|/z|"]; 74 [label="Function call: R|/z|.#()"]; 75 [label="Access variable R|/z|"]; 76 [label="Function call: R|/z|.R|/B.bar|()"]; 77 [label="Exit block"]; } 78 [label="Exit when branch result"]; 66 [label="Exit when"]; } 47 [label="Exit function test_3" style="filled" fillcolor=red]; } 46 -> {48}; 48 -> {49}; 49 -> {50}; 50 -> {52}; 51 -> {63}; 52 -> {53}; 53 -> {54}; 54 -> {55}; 55 -> {56 62}; 56 -> {57}; 57 -> {58}; 58 -> {59}; 59 -> {60}; 60 -> {61}; 61 -> {51}; 62 -> {51}; 63 -> {64}; 64 -> {65}; 65 -> {67}; 66 -> {47}; 67 -> {68}; 68 -> {69}; 69 -> {70}; 70 -> {71 79}; 71 -> {72}; 72 -> {73}; 73 -> {74}; 74 -> {75}; 75 -> {76}; 76 -> {77}; 77 -> {78}; 78 -> {66}; 79 -> {66}; subgraph cluster_19 { color=red 80 [label="Enter function test_4" style="filled" fillcolor=red]; 82 [label="Const: Int(1)"]; 83 [label="Variable declaration: lvar x: R|kotlin/Any|"]; 84 [label="Access variable R|/x|"]; 85 [label="Type operator: (R|/x| as R|kotlin/Int|)"]; 86 [label="Access variable R|/x|"]; 87 [label="Function call: R|/x|.R|kotlin/Int.inc|()"]; 88 [label="Access variable R|/y|"]; 89 [label="Assignment: R|/x|"]; 90 [label="Access variable R|/x|"]; 91 [label="Function call: R|/x|.#()"]; subgraph cluster_20 { color=blue 92 [label="Enter when"]; subgraph cluster_21 { color=blue 94 [label="Enter when branch condition "]; 95 [label="Access variable R|/y|"]; 96 [label="Type operator: (R|/y| is R|A|)"]; 97 [label="Exit when branch condition"]; } 106 [label="Synthetic else branch"]; 98 [label="Enter when branch result"]; subgraph cluster_22 { color=blue 99 [label="Enter block"]; 100 [label="Access variable R|/x|"]; 101 [label="Function call: R|/x|.R|/A.foo|()"]; 102 [label="Access variable R|/y|"]; 103 [label="Function call: R|/y|.R|/A.foo|()"]; 104 [label="Exit block"]; } 105 [label="Exit when branch result"]; 93 [label="Exit when"]; } 81 [label="Exit function test_4" style="filled" fillcolor=red]; } 80 -> {82}; 82 -> {83}; 83 -> {84}; 84 -> {85}; 85 -> {86}; 86 -> {87}; 87 -> {88}; 88 -> {89}; 89 -> {90}; 90 -> {91}; 91 -> {92}; 92 -> {94}; 93 -> {81}; 94 -> {95}; 95 -> {96}; 96 -> {97}; 97 -> {98 106}; 98 -> {99}; 99 -> {100}; 100 -> {101}; 101 -> {102}; 102 -> {103}; 103 -> {104}; 104 -> {105}; 105 -> {93}; 106 -> {93}; subgraph cluster_23 { color=red 107 [label="Enter function " style="filled" fillcolor=red]; 109 [label="Delegated constructor call: super()"]; 108 [label="Exit function " style="filled" fillcolor=red]; } 107 -> {109}; 109 -> {108}; subgraph cluster_24 { color=red 115 [label="Enter class D" style="filled" fillcolor=red]; subgraph cluster_25 { color=blue 110 [label="Enter function getter" style="filled" fillcolor=red]; 111 [label="Exit function getter" style="filled" fillcolor=red]; } subgraph cluster_26 { color=blue 112 [label="Enter property" style="filled" fillcolor=red]; 114 [label="Access variable R|/any|"]; 113 [label="Exit property" style="filled" fillcolor=red]; } 116 [label="Exit class D" style="filled" fillcolor=red]; } 115 -> {112} [color=green]; 112 -> {114}; 113 -> {116} [color=green]; 114 -> {113}; 110 -> {111}; subgraph cluster_27 { color=red 117 [label="Enter function baz" style="filled" fillcolor=red]; 118 [label="Exit function baz" style="filled" fillcolor=red]; } 117 -> {118}; subgraph cluster_28 { color=red 119 [label="Enter function test_5" style="filled" fillcolor=red]; subgraph cluster_29 { color=blue 121 [label="Enter when"]; 123 [label="Access variable R|/d|"]; 124 [label="Access variable R|/D.any|"]; 125 [label="Variable declaration: lval : R|kotlin/Any?|"]; subgraph cluster_30 { color=blue 126 [label="Enter when branch condition "]; 127 [label="Const: Null(null)"]; 128 [label="Operator =="]; 129 [label="Exit when branch condition"]; } subgraph cluster_31 { color=blue 136 [label="Enter when branch condition else"]; 137 [label="Exit when branch condition"]; } 138 [label="Enter when branch result"]; subgraph cluster_32 { color=blue 139 [label="Enter block"]; 140 [label="Access variable R|/|"]; 141 [label="Exit block"]; } 142 [label="Exit when branch result"]; 130 [label="Enter when branch result"]; subgraph cluster_33 { color=blue 131 [label="Enter block"]; 132 [label="Jump: ^test_5 Unit"]; 133 [label="Stub" style="filled" fillcolor=gray]; 134 [label="Exit block" style="filled" fillcolor=gray]; } 135 [label="Exit when branch result" style="filled" fillcolor=gray]; 122 [label="Exit when"]; } 143 [label="Variable declaration: lval a: R|kotlin/Any|"]; 144 [label="Access variable R|/a|"]; 145 [label="Function call: R|/a|.R|/baz|()"]; 146 [label="Access variable R|/d|"]; 147 [label="Access variable R|/D.any|"]; 148 [label="Function call: R|/d|.R|/D.any|.R|/baz|()"]; 149 [label="Access variable R|/a|"]; 150 [label="Type operator: (R|/a| as R|A|)"]; 151 [label="Access variable R|/a|"]; 152 [label="Function call: R|/a|.R|/A.foo|()"]; 120 [label="Exit function test_5" style="filled" fillcolor=red]; } 119 -> {121}; 121 -> {123}; 122 -> {143}; 123 -> {124}; 124 -> {125}; 125 -> {126}; 126 -> {127}; 127 -> {128}; 128 -> {129}; 129 -> {130 136}; 130 -> {131}; 131 -> {132}; 132 -> {120}; 132 -> {133} [style=dotted]; 133 -> {134} [style=dotted]; 134 -> {135} [style=dotted]; 135 -> {122} [style=dotted]; 136 -> {137}; 137 -> {138}; 138 -> {139}; 139 -> {140}; 140 -> {141}; 141 -> {142}; 142 -> {122}; 143 -> {144}; 144 -> {145}; 145 -> {146}; 146 -> {147}; 147 -> {148}; 148 -> {149}; 149 -> {150}; 150 -> {151}; 151 -> {152}; 152 -> {120}; subgraph cluster_34 { color=red 153 [label="Enter function test_6" style="filled" fillcolor=red]; 155 [label="Access variable R|/d1|"]; 156 [label="Access variable R|/D.any|"]; 157 [label="Variable declaration: lval a: R|kotlin/Any?|"]; 158 [label="Access variable R|/a|"]; 159 [label="Type operator: (R|/a| as R|A|)"]; 160 [label="Access variable R|/a|"]; 161 [label="Function call: R|/a|.R|/A.foo|()"]; 162 [label="Access variable R|/d1|"]; 163 [label="Access variable R|/D.any|"]; 164 [label="Function call: R|/d1|.R|/D.any|.R|/A.foo|()"]; 165 [label="Access variable R|/d1|"]; 166 [label="Access variable R|/D.any|"]; 167 [label="Function call: R|/d1|.R|/D.any|.R|/baz|()"]; 154 [label="Exit function test_6" style="filled" fillcolor=red]; } 153 -> {155}; 155 -> {156}; 156 -> {157}; 157 -> {158}; 158 -> {159}; 159 -> {160}; 160 -> {161}; 161 -> {162}; 162 -> {163}; 163 -> {164}; 164 -> {165}; 165 -> {166}; 166 -> {167}; 167 -> {154}; subgraph cluster_35 { color=red 168 [label="Enter function test_7" style="filled" fillcolor=red]; 170 [label="Access variable R|/d1|"]; 171 [label="Enter safe call"]; 173 [label="Access variable R|/D.any|"]; 172 [label="Exit safe call"]; 174 [label="Variable declaration: lval a: R|kotlin/Any?|"]; 175 [label="Access variable R|/d2|"]; 176 [label="Enter safe call"]; 178 [label="Access variable R|/D.any|"]; 177 [label="Exit safe call"]; 179 [label="Variable declaration: lval b: R|kotlin/Any?|"]; 180 [label="Access variable R|/a|"]; 181 [label="Type operator: (R|/a| as R|A|)"]; 182 [label="Access variable R|/a|"]; 183 [label="Function call: R|/a|.R|/A.foo|()"]; 184 [label="Access variable R|/b|"]; 185 [label="Type operator: (R|/b| as R|B|)"]; 186 [label="Access variable R|/b|"]; 187 [label="Function call: R|/b|.R|/B.bar|()"]; 169 [label="Exit function test_7" style="filled" fillcolor=red]; } 168 -> {170}; 170 -> {171 172}; 171 -> {173}; 172 -> {174}; 173 -> {172}; 174 -> {175}; 175 -> {176 177}; 176 -> {178}; 177 -> {179}; 178 -> {177}; 179 -> {180}; 180 -> {181}; 181 -> {182}; 182 -> {183}; 183 -> {184}; 184 -> {185}; 185 -> {186}; 186 -> {187}; 187 -> {169}; }