digraph when_kt { graph [nodesep=3] node [shape=box penwidth=2] edge [penwidth=2] subgraph cluster_0 { color=red 0 [label="Enter file when.kt" style="filled" fillcolor=red]; 1 [label="Exit file when.kt" style="filled" fillcolor=red]; } 0 -> {1} [color=green]; subgraph cluster_1 { color=red 2 [label="Enter function test_1" style="filled" fillcolor=red]; subgraph cluster_2 { color=blue 3 [label="Enter block"]; subgraph cluster_3 { color=blue 4 [label="Enter when"]; subgraph cluster_4 { color=blue 5 [label="Enter when branch condition "]; 6 [label="Access variable R|/x|"]; 7 [label="Const: Int(1)"]; 8 [label="Equality operator =="]; 9 [label="Exit when branch condition"]; } subgraph cluster_5 { color=blue 10 [label="Enter when branch condition "]; subgraph cluster_6 { color=blue 11 [label="Function call arguments enter"]; 12 [label="Access variable R|/x|"]; 13 [label="Const: Int(2)"]; 14 [label="Function call arguments exit"]; } 15 [label="Function call: R|/x|.R|kotlin/Int.rem|(...)" style="filled" fillcolor=yellow]; 16 [label="Const: Int(0)"]; 17 [label="Equality operator =="]; 18 [label="Exit when branch condition"]; } subgraph cluster_7 { color=blue 19 [label="Enter when branch condition "]; subgraph cluster_8 { color=blue 20 [label="Function call arguments enter"]; 21 [label="Const: Int(1)"]; 22 [label="Const: Int(1)"]; 23 [label="Function call arguments exit"]; } 24 [label="Function call: Int(1).R|kotlin/Int.minus|(...)" style="filled" fillcolor=yellow]; 25 [label="Const: Int(0)"]; 26 [label="Equality operator =="]; 27 [label="Exit when branch condition"]; } subgraph cluster_9 { color=blue 28 [label="Enter when branch condition else"]; 29 [label="Exit when branch condition"]; } 30 [label="Enter when branch result"]; subgraph cluster_10 { color=blue 31 [label="Enter block"]; 32 [label="Const: Int(5)"]; 33 [label="Exit block"]; } 34 [label="Exit when branch result"]; 35 [label="Enter when branch result"]; subgraph cluster_11 { color=blue 36 [label="Enter block"]; 37 [label="Jump: ^test_1 Unit"]; 38 [label="Stub" style="filled" fillcolor=gray]; 39 [label="Exit block" style="filled" fillcolor=gray]; } 40 [label="Exit when branch result" style="filled" fillcolor=gray]; 41 [label="Enter when branch result"]; subgraph cluster_12 { color=blue 42 [label="Enter block"]; 43 [label="Const: Int(20)"]; 44 [label="Exit block"]; } 45 [label="Exit when branch result"]; 46 [label="Enter when branch result"]; subgraph cluster_13 { color=blue 47 [label="Enter block"]; 48 [label="Const: Int(10)"]; 49 [label="Exit block"]; } 50 [label="Exit when branch result"]; 51 [label="Exit when"]; } 52 [label="Variable declaration: lval y: R|kotlin/Int|"]; 53 [label="Exit block"]; } 54 [label="Exit function test_1" style="filled" fillcolor=red]; } 2 -> {3}; 3 -> {4}; 4 -> {5}; 5 -> {6}; 6 -> {7}; 7 -> {8}; 8 -> {9}; 9 -> {10 46}; 10 -> {11}; 11 -> {12}; 12 -> {13}; 13 -> {14}; 14 -> {15}; 15 -> {16}; 16 -> {17}; 17 -> {18}; 18 -> {19 41}; 19 -> {20}; 20 -> {21}; 21 -> {22}; 22 -> {23}; 23 -> {24}; 24 -> {25}; 25 -> {26}; 26 -> {27}; 27 -> {28 35}; 28 -> {29}; 29 -> {30}; 30 -> {31}; 31 -> {32}; 32 -> {33}; 33 -> {34}; 34 -> {51}; 35 -> {36}; 36 -> {37}; 37 -> {54}; 37 -> {38} [style=dotted]; 38 -> {39} [style=dotted]; 39 -> {40} [style=dotted]; 40 -> {51} [style=dotted]; 41 -> {42}; 42 -> {43}; 43 -> {44}; 44 -> {45}; 45 -> {51}; 46 -> {47}; 47 -> {48}; 48 -> {49}; 49 -> {50}; 50 -> {51}; 51 -> {52}; 52 -> {53}; 53 -> {54}; subgraph cluster_14 { color=red 55 [label="Enter class A" style="filled" fillcolor=red]; 56 [label="Exit class A" style="filled" fillcolor=red]; } 55 -> {56} [color=green]; subgraph cluster_15 { color=red 57 [label="Enter class B" style="filled" fillcolor=red]; 58 [label="Exit class B" style="filled" fillcolor=red]; } 57 -> {58} [color=green]; subgraph cluster_16 { color=red 59 [label="Enter function test_2" style="filled" fillcolor=red]; subgraph cluster_17 { color=blue 60 [label="Enter block"]; subgraph cluster_18 { color=blue 61 [label="Enter when"]; subgraph cluster_19 { color=blue 62 [label="Enter when branch condition "]; subgraph cluster_20 { color=blue 63 [label="Enter &&"]; 64 [label="Access variable R|/x|"]; 65 [label="Type operator: (R|/x| is R|A|)"]; 66 [label="Exit left part of &&"]; 67 [label="Enter right part of &&"]; 68 [label="Access variable R|/x|"]; 69 [label="Smart cast: R|/x|"]; 70 [label="Type operator: (R|/x| is R|B|)"]; 71 [label="Exit &&"]; } 72 [label="Exit when branch condition"]; } 73 [label="Synthetic else branch"]; 74 [label="Enter when branch result"]; subgraph cluster_21 { color=blue 75 [label="Enter block"]; 76 [label="Access variable R|/x|"]; 77 [label="Smart cast: R|/x|"]; 78 [label="Type operator: (R|/x| is R|A|)"]; 79 [label="Exit block"]; } 80 [label="Exit when branch result"]; 81 [label="Exit when"]; } 82 [label="Exit block"]; } 83 [label="Exit function test_2" style="filled" fillcolor=red]; } 59 -> {60}; 60 -> {61}; 61 -> {62}; 62 -> {63}; 63 -> {64}; 64 -> {65}; 65 -> {66}; 66 -> {67 71}; 67 -> {68}; 68 -> {69}; 69 -> {70}; 70 -> {71}; 71 -> {72}; 72 -> {73 74}; 73 -> {81}; 74 -> {75}; 75 -> {76}; 76 -> {77}; 77 -> {78}; 78 -> {79}; 79 -> {80}; 80 -> {81}; 81 -> {82}; 82 -> {83}; }