digraph when_kt { graph [nodesep=3] node [shape=box penwidth=2] edge [penwidth=2] subgraph cluster_0 { color=red 0 [label="Enter class A" style="filled" fillcolor=red]; 1 [label="Exit class A" style="filled" fillcolor=red]; } 0 -> {1} [color=green]; subgraph cluster_1 { color=red 2 [label="Enter function foo" style="filled" fillcolor=red]; 3 [label="Exit function foo" style="filled" fillcolor=red]; } 2 -> {3}; subgraph cluster_2 { color=red 4 [label="Enter class B" style="filled" fillcolor=red]; 5 [label="Exit class B" style="filled" fillcolor=red]; } 4 -> {5} [color=green]; subgraph cluster_3 { color=red 6 [label="Enter function bar" style="filled" fillcolor=red]; 7 [label="Exit function bar" style="filled" fillcolor=red]; } 6 -> {7}; subgraph cluster_4 { color=red 8 [label="Enter function test_1" style="filled" fillcolor=red]; subgraph cluster_5 { color=blue 9 [label="Enter block"]; subgraph cluster_6 { color=blue 10 [label="Enter when"]; subgraph cluster_7 { color=blue 11 [label="Enter when branch condition "]; 12 [label="Access variable R|/x|"]; 13 [label="Type operator: (R|/x| is R|A|)"]; 14 [label="Exit when branch condition"]; } subgraph cluster_8 { color=blue 15 [label="Enter when branch condition "]; 16 [label="Access variable R|/x|"]; 17 [label="Type operator: (R|/x| is R|B|)"]; 18 [label="Exit when branch condition"]; } 19 [label="Synthetic else branch"]; 20 [label="Enter when branch result"]; subgraph cluster_9 { color=blue 21 [label="Enter block"]; 22 [label="Access variable R|/x|"]; 23 [label="Smart cast: R|/x|"]; 24 [label="Function call: R|/x|.R|/B.bar|()" style="filled" fillcolor=yellow]; 25 [label="Exit block"]; } 26 [label="Exit when branch result"]; 27 [label="Enter when branch result"]; subgraph cluster_10 { color=blue 28 [label="Enter block"]; 29 [label="Access variable R|/x|"]; 30 [label="Smart cast: R|/x|"]; 31 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 32 [label="Exit block"]; } 33 [label="Exit when branch result"]; 34 [label="Exit when"]; } subgraph cluster_11 { color=blue 35 [label="Enter when"]; subgraph cluster_12 { color=blue 36 [label="Enter when branch condition "]; 37 [label="Access variable R|/x|"]; 38 [label="Type operator: (R|/x| !is R|A|)"]; 39 [label="Exit when branch condition"]; } subgraph cluster_13 { color=blue 40 [label="Enter when branch condition "]; 41 [label="Access variable R|/x|"]; 42 [label="Smart cast: R|/x|"]; 43 [label="Type operator: (R|/x| !is R|B|)"]; 44 [label="Exit when branch condition"]; } subgraph cluster_14 { color=blue 45 [label="Enter when branch condition "]; 46 [label="Access variable R|/x|"]; 47 [label="Smart cast: R|/x|"]; 48 [label="Type operator: (R|/x| is R|kotlin/Int|)"]; 49 [label="Exit when branch condition"]; } subgraph cluster_15 { color=blue 50 [label="Enter when branch condition else"]; 51 [label="Exit when branch condition"]; } 52 [label="Enter when branch result"]; subgraph cluster_16 { color=blue 53 [label="Enter block"]; 54 [label="Access variable R|/x|"]; 55 [label="Smart cast: R|/x|"]; 56 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 57 [label="Access variable R|/x|"]; 58 [label="Smart cast: R|/x|"]; 59 [label="Function call: R|/x|.R|/B.bar|()" style="filled" fillcolor=yellow]; 60 [label="Exit block"]; } 61 [label="Exit when branch result"]; 62 [label="Enter when branch result"]; subgraph cluster_17 { color=blue 63 [label="Enter block"]; 64 [label="Access variable R|/x|"]; 65 [label="Smart cast: R|/x|"]; 66 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 67 [label="Access variable R|/x|"]; 68 [label="Smart cast: R|/x|"]; 69 [label="Function call: R|/x|.R|/B.bar|()" style="filled" fillcolor=yellow]; 70 [label="Access variable R|/x|"]; 71 [label="Smart cast: R|/x|"]; 72 [label="Function call: R|/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow]; 73 [label="Exit block"]; } 74 [label="Exit when branch result"]; 75 [label="Enter when branch result"]; subgraph cluster_18 { color=blue 76 [label="Enter block"]; 77 [label="Access variable R|/x|"]; 78 [label="Smart cast: R|/x|"]; 79 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 80 [label="Exit block"]; } 81 [label="Exit when branch result"]; 82 [label="Enter when branch result"]; subgraph cluster_19 { color=blue 83 [label="Enter block"]; 84 [label="Exit block"]; } 85 [label="Exit when branch result"]; 86 [label="Exit when"]; } 87 [label="Exit block"]; } 88 [label="Exit function test_1" style="filled" fillcolor=red]; } 8 -> {9}; 9 -> {10}; 10 -> {11}; 11 -> {12}; 12 -> {13}; 13 -> {14}; 14 -> {15 27}; 15 -> {16}; 16 -> {17}; 17 -> {18}; 18 -> {19 20}; 19 -> {34}; 20 -> {21}; 21 -> {22}; 22 -> {23}; 23 -> {24}; 24 -> {25}; 25 -> {26}; 26 -> {34}; 27 -> {28}; 28 -> {29}; 29 -> {30}; 30 -> {31}; 31 -> {32}; 32 -> {33}; 33 -> {34}; 34 -> {35}; 35 -> {36}; 36 -> {37}; 37 -> {38}; 38 -> {39}; 39 -> {40 82}; 40 -> {41}; 41 -> {42}; 42 -> {43}; 43 -> {44}; 44 -> {45 75}; 45 -> {46}; 46 -> {47}; 47 -> {48}; 48 -> {49}; 49 -> {50 62}; 50 -> {51}; 51 -> {52}; 52 -> {53}; 53 -> {54}; 54 -> {55}; 55 -> {56}; 56 -> {57}; 57 -> {58}; 58 -> {59}; 59 -> {60}; 60 -> {61}; 61 -> {86}; 62 -> {63}; 63 -> {64}; 64 -> {65}; 65 -> {66}; 66 -> {67}; 67 -> {68}; 68 -> {69}; 69 -> {70}; 70 -> {71}; 71 -> {72}; 72 -> {73}; 73 -> {74}; 74 -> {86}; 75 -> {76}; 76 -> {77}; 77 -> {78}; 78 -> {79}; 79 -> {80}; 80 -> {81}; 81 -> {86}; 82 -> {83}; 83 -> {84}; 84 -> {85}; 85 -> {86}; 86 -> {87}; 87 -> {88}; subgraph cluster_20 { color=red 89 [label="Enter function test_2" style="filled" fillcolor=red]; subgraph cluster_21 { color=blue 90 [label="Enter block"]; subgraph cluster_22 { color=blue 91 [label="Enter when"]; 92 [label="Access variable R|/x|"]; subgraph cluster_23 { color=blue 93 [label="Enter when branch condition "]; 94 [label="Exit $subj"]; 95 [label="Type operator: ($subj$ is R|A|)"]; 96 [label="Exit when branch condition"]; } subgraph cluster_24 { color=blue 97 [label="Enter when branch condition "]; 98 [label="Exit $subj"]; 99 [label="Type operator: ($subj$ is R|B|)"]; 100 [label="Exit when branch condition"]; } 101 [label="Synthetic else branch"]; 102 [label="Enter when branch result"]; subgraph cluster_25 { color=blue 103 [label="Enter block"]; 104 [label="Access variable R|/x|"]; 105 [label="Smart cast: R|/x|"]; 106 [label="Function call: R|/x|.R|/B.bar|()" style="filled" fillcolor=yellow]; 107 [label="Exit block"]; } 108 [label="Exit when branch result"]; 109 [label="Enter when branch result"]; subgraph cluster_26 { color=blue 110 [label="Enter block"]; 111 [label="Access variable R|/x|"]; 112 [label="Smart cast: R|/x|"]; 113 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 114 [label="Exit block"]; } 115 [label="Exit when branch result"]; 116 [label="Exit when"]; } subgraph cluster_27 { color=blue 117 [label="Enter when"]; 118 [label="Access variable R|/x|"]; subgraph cluster_28 { color=blue 119 [label="Enter when branch condition "]; 120 [label="Exit $subj"]; 121 [label="Type operator: ($subj$ !is R|A|)"]; 122 [label="Exit when branch condition"]; } subgraph cluster_29 { color=blue 123 [label="Enter when branch condition "]; 124 [label="Exit $subj"]; 125 [label="Type operator: ($subj$ !is R|B|)"]; 126 [label="Exit when branch condition"]; } subgraph cluster_30 { color=blue 127 [label="Enter when branch condition "]; 128 [label="Exit $subj"]; 129 [label="Type operator: ($subj$ is R|kotlin/Int|)"]; 130 [label="Exit when branch condition"]; } subgraph cluster_31 { color=blue 131 [label="Enter when branch condition else"]; 132 [label="Exit when branch condition"]; } 133 [label="Enter when branch result"]; subgraph cluster_32 { color=blue 134 [label="Enter block"]; 135 [label="Access variable R|/x|"]; 136 [label="Smart cast: R|/x|"]; 137 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 138 [label="Access variable R|/x|"]; 139 [label="Smart cast: R|/x|"]; 140 [label="Function call: R|/x|.R|/B.bar|()" style="filled" fillcolor=yellow]; 141 [label="Exit block"]; } 142 [label="Exit when branch result"]; 143 [label="Enter when branch result"]; subgraph cluster_33 { color=blue 144 [label="Enter block"]; 145 [label="Access variable R|/x|"]; 146 [label="Smart cast: R|/x|"]; 147 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 148 [label="Access variable R|/x|"]; 149 [label="Smart cast: R|/x|"]; 150 [label="Function call: R|/x|.R|/B.bar|()" style="filled" fillcolor=yellow]; 151 [label="Access variable R|/x|"]; 152 [label="Smart cast: R|/x|"]; 153 [label="Function call: R|/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow]; 154 [label="Exit block"]; } 155 [label="Exit when branch result"]; 156 [label="Enter when branch result"]; subgraph cluster_34 { color=blue 157 [label="Enter block"]; 158 [label="Access variable R|/x|"]; 159 [label="Smart cast: R|/x|"]; 160 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 161 [label="Exit block"]; } 162 [label="Exit when branch result"]; 163 [label="Enter when branch result"]; subgraph cluster_35 { color=blue 164 [label="Enter block"]; 165 [label="Exit block"]; } 166 [label="Exit when branch result"]; 167 [label="Exit when"]; } 168 [label="Exit block"]; } 169 [label="Exit function test_2" style="filled" fillcolor=red]; } 89 -> {90}; 90 -> {91}; 91 -> {92}; 92 -> {93}; 93 -> {94}; 94 -> {95}; 95 -> {96}; 96 -> {97 109}; 97 -> {98}; 98 -> {99}; 99 -> {100}; 100 -> {101 102}; 101 -> {116}; 102 -> {103}; 103 -> {104}; 104 -> {105}; 105 -> {106}; 106 -> {107}; 107 -> {108}; 108 -> {116}; 109 -> {110}; 110 -> {111}; 111 -> {112}; 112 -> {113}; 113 -> {114}; 114 -> {115}; 115 -> {116}; 116 -> {117}; 117 -> {118}; 118 -> {119}; 119 -> {120}; 120 -> {121}; 121 -> {122}; 122 -> {123 163}; 123 -> {124}; 124 -> {125}; 125 -> {126}; 126 -> {127 156}; 127 -> {128}; 128 -> {129}; 129 -> {130}; 130 -> {131 143}; 131 -> {132}; 132 -> {133}; 133 -> {134}; 134 -> {135}; 135 -> {136}; 136 -> {137}; 137 -> {138}; 138 -> {139}; 139 -> {140}; 140 -> {141}; 141 -> {142}; 142 -> {167}; 143 -> {144}; 144 -> {145}; 145 -> {146}; 146 -> {147}; 147 -> {148}; 148 -> {149}; 149 -> {150}; 150 -> {151}; 151 -> {152}; 152 -> {153}; 153 -> {154}; 154 -> {155}; 155 -> {167}; 156 -> {157}; 157 -> {158}; 158 -> {159}; 159 -> {160}; 160 -> {161}; 161 -> {162}; 162 -> {167}; 163 -> {164}; 164 -> {165}; 165 -> {166}; 166 -> {167}; 167 -> {168}; 168 -> {169}; subgraph cluster_36 { color=red 170 [label="Enter function test_3" style="filled" fillcolor=red]; subgraph cluster_37 { color=blue 171 [label="Enter block"]; subgraph cluster_38 { color=blue 172 [label="Enter when"]; 173 [label="Access variable R|/x|"]; 174 [label="Variable declaration: lval y: R|kotlin/Any?|"]; subgraph cluster_39 { color=blue 175 [label="Enter when branch condition "]; 176 [label="Exit $subj"]; 177 [label="Type operator: ($subj$ is R|A|)"]; 178 [label="Exit when branch condition"]; } subgraph cluster_40 { color=blue 179 [label="Enter when branch condition "]; 180 [label="Exit $subj"]; 181 [label="Type operator: ($subj$ is R|B|)"]; 182 [label="Exit when branch condition"]; } 183 [label="Synthetic else branch"]; 184 [label="Enter when branch result"]; subgraph cluster_41 { color=blue 185 [label="Enter block"]; 186 [label="Access variable R|/x|"]; 187 [label="Smart cast: R|/x|"]; 188 [label="Function call: R|/x|.R|/B.bar|()" style="filled" fillcolor=yellow]; 189 [label="Access variable R|/y|"]; 190 [label="Smart cast: R|/y|"]; 191 [label="Function call: R|/y|.R|/B.bar|()" style="filled" fillcolor=yellow]; 192 [label="Exit block"]; } 193 [label="Exit when branch result"]; 194 [label="Enter when branch result"]; subgraph cluster_42 { color=blue 195 [label="Enter block"]; 196 [label="Access variable R|/x|"]; 197 [label="Smart cast: R|/x|"]; 198 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 199 [label="Access variable R|/y|"]; 200 [label="Smart cast: R|/y|"]; 201 [label="Function call: R|/y|.R|/A.foo|()" style="filled" fillcolor=yellow]; 202 [label="Exit block"]; } 203 [label="Exit when branch result"]; 204 [label="Exit when"]; } subgraph cluster_43 { color=blue 205 [label="Enter when"]; 206 [label="Access variable R|/x|"]; 207 [label="Variable declaration: lval y: R|kotlin/Any?|"]; subgraph cluster_44 { color=blue 208 [label="Enter when branch condition "]; 209 [label="Exit $subj"]; 210 [label="Type operator: ($subj$ !is R|A|)"]; 211 [label="Exit when branch condition"]; } subgraph cluster_45 { color=blue 212 [label="Enter when branch condition "]; 213 [label="Exit $subj"]; 214 [label="Type operator: ($subj$ !is R|B|)"]; 215 [label="Exit when branch condition"]; } subgraph cluster_46 { color=blue 216 [label="Enter when branch condition "]; 217 [label="Exit $subj"]; 218 [label="Type operator: ($subj$ is R|kotlin/Int|)"]; 219 [label="Exit when branch condition"]; } subgraph cluster_47 { color=blue 220 [label="Enter when branch condition else"]; 221 [label="Exit when branch condition"]; } 222 [label="Enter when branch result"]; subgraph cluster_48 { color=blue 223 [label="Enter block"]; 224 [label="Access variable R|/x|"]; 225 [label="Smart cast: R|/x|"]; 226 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 227 [label="Access variable R|/x|"]; 228 [label="Smart cast: R|/x|"]; 229 [label="Function call: R|/x|.R|/B.bar|()" style="filled" fillcolor=yellow]; 230 [label="Access variable R|/y|"]; 231 [label="Smart cast: R|/y|"]; 232 [label="Function call: R|/y|.R|/A.foo|()" style="filled" fillcolor=yellow]; 233 [label="Access variable R|/y|"]; 234 [label="Smart cast: R|/y|"]; 235 [label="Function call: R|/y|.R|/B.bar|()" style="filled" fillcolor=yellow]; 236 [label="Exit block"]; } 237 [label="Exit when branch result"]; 238 [label="Enter when branch result"]; subgraph cluster_49 { color=blue 239 [label="Enter block"]; 240 [label="Access variable R|/x|"]; 241 [label="Smart cast: R|/x|"]; 242 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 243 [label="Access variable R|/x|"]; 244 [label="Smart cast: R|/x|"]; 245 [label="Function call: R|/x|.R|/B.bar|()" style="filled" fillcolor=yellow]; 246 [label="Access variable R|/x|"]; 247 [label="Smart cast: R|/x|"]; 248 [label="Function call: R|/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow]; 249 [label="Access variable R|/y|"]; 250 [label="Smart cast: R|/y|"]; 251 [label="Function call: R|/y|.R|/A.foo|()" style="filled" fillcolor=yellow]; 252 [label="Access variable R|/y|"]; 253 [label="Smart cast: R|/y|"]; 254 [label="Function call: R|/y|.R|/B.bar|()" style="filled" fillcolor=yellow]; 255 [label="Access variable R|/y|"]; 256 [label="Smart cast: R|/y|"]; 257 [label="Function call: R|/y|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow]; 258 [label="Exit block"]; } 259 [label="Exit when branch result"]; 260 [label="Enter when branch result"]; subgraph cluster_50 { color=blue 261 [label="Enter block"]; 262 [label="Access variable R|/x|"]; 263 [label="Smart cast: R|/x|"]; 264 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 265 [label="Access variable R|/y|"]; 266 [label="Smart cast: R|/y|"]; 267 [label="Function call: R|/y|.R|/A.foo|()" style="filled" fillcolor=yellow]; 268 [label="Exit block"]; } 269 [label="Exit when branch result"]; 270 [label="Enter when branch result"]; subgraph cluster_51 { color=blue 271 [label="Enter block"]; 272 [label="Exit block"]; } 273 [label="Exit when branch result"]; 274 [label="Exit when"]; } 275 [label="Exit block"]; } 276 [label="Exit function test_3" style="filled" fillcolor=red]; } 170 -> {171}; 171 -> {172}; 172 -> {173}; 173 -> {174}; 174 -> {175}; 175 -> {176}; 176 -> {177}; 177 -> {178}; 178 -> {179 194}; 179 -> {180}; 180 -> {181}; 181 -> {182}; 182 -> {183 184}; 183 -> {204}; 184 -> {185}; 185 -> {186}; 186 -> {187}; 187 -> {188}; 188 -> {189}; 189 -> {190}; 190 -> {191}; 191 -> {192}; 192 -> {193}; 193 -> {204}; 194 -> {195}; 195 -> {196}; 196 -> {197}; 197 -> {198}; 198 -> {199}; 199 -> {200}; 200 -> {201}; 201 -> {202}; 202 -> {203}; 203 -> {204}; 204 -> {205}; 205 -> {206}; 206 -> {207}; 207 -> {208}; 208 -> {209}; 209 -> {210}; 210 -> {211}; 211 -> {212 270}; 212 -> {213}; 213 -> {214}; 214 -> {215}; 215 -> {216 260}; 216 -> {217}; 217 -> {218}; 218 -> {219}; 219 -> {220 238}; 220 -> {221}; 221 -> {222}; 222 -> {223}; 223 -> {224}; 224 -> {225}; 225 -> {226}; 226 -> {227}; 227 -> {228}; 228 -> {229}; 229 -> {230}; 230 -> {231}; 231 -> {232}; 232 -> {233}; 233 -> {234}; 234 -> {235}; 235 -> {236}; 236 -> {237}; 237 -> {274}; 238 -> {239}; 239 -> {240}; 240 -> {241}; 241 -> {242}; 242 -> {243}; 243 -> {244}; 244 -> {245}; 245 -> {246}; 246 -> {247}; 247 -> {248}; 248 -> {249}; 249 -> {250}; 250 -> {251}; 251 -> {252}; 252 -> {253}; 253 -> {254}; 254 -> {255}; 255 -> {256}; 256 -> {257}; 257 -> {258}; 258 -> {259}; 259 -> {274}; 260 -> {261}; 261 -> {262}; 262 -> {263}; 263 -> {264}; 264 -> {265}; 265 -> {266}; 266 -> {267}; 267 -> {268}; 268 -> {269}; 269 -> {274}; 270 -> {271}; 271 -> {272}; 272 -> {273}; 273 -> {274}; 274 -> {275}; 275 -> {276}; subgraph cluster_52 { color=red 277 [label="Enter function test_4" style="filled" fillcolor=red]; subgraph cluster_53 { color=blue 278 [label="Enter block"]; subgraph cluster_54 { color=blue 279 [label="Enter when"]; 280 [label="Access variable R|/x|"]; 281 [label="Type operator: (R|/x| as R|kotlin/Int|)"]; subgraph cluster_55 { color=blue 282 [label="Enter when branch condition "]; 283 [label="Exit $subj"]; 284 [label="Const: Int(1)"]; 285 [label="Equality operator =="]; 286 [label="Exit when branch condition"]; } 287 [label="Synthetic else branch"]; 288 [label="Enter when branch result"]; subgraph cluster_56 { color=blue 289 [label="Enter block"]; 290 [label="Access variable R|/x|"]; 291 [label="Smart cast: R|/x|"]; 292 [label="Function call: R|/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow]; 293 [label="Exit block"]; } 294 [label="Exit when branch result"]; 295 [label="Exit when"]; } 296 [label="Access variable R|/x|"]; 297 [label="Smart cast: R|/x|"]; 298 [label="Function call: R|/x|.R|kotlin/Int.inc|()" style="filled" fillcolor=yellow]; 299 [label="Exit block"]; } 300 [label="Exit function test_4" style="filled" fillcolor=red]; } 277 -> {278}; 278 -> {279}; 279 -> {280}; 280 -> {281}; 281 -> {282}; 282 -> {283}; 283 -> {284}; 284 -> {285}; 285 -> {286}; 286 -> {287 288}; 287 -> {295}; 288 -> {289}; 289 -> {290}; 290 -> {291}; 291 -> {292}; 292 -> {293}; 293 -> {294}; 294 -> {295}; 295 -> {296}; 296 -> {297}; 297 -> {298}; 298 -> {299}; 299 -> {300}; }