digraph elvis_kt { graph [nodesep=3] node [shape=box penwidth=2] edge [penwidth=2] subgraph cluster_0 { color=red 0 [label="Enter file elvis.kt" style="filled" fillcolor=red]; 1 [label="Exit file elvis.kt" style="filled" fillcolor=red]; } 0 -> {1} [color=green]; 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 foo" style="filled" fillcolor=red]; 5 [label="Exit function foo" style="filled" fillcolor=red]; } 4 -> {5}; subgraph cluster_3 { color=red 6 [label="Enter function test_1" style="filled" fillcolor=red]; subgraph cluster_4 { color=blue 7 [label="Enter block"]; subgraph cluster_5 { color=blue 8 [label="Enter when"]; subgraph cluster_6 { color=blue 9 [label="Enter when branch condition "]; 10 [label="Access variable R|/x|"]; 11 [label="Enter safe call"]; 12 [label="Access variable R|/A.b|"]; 13 [label="Exit safe call"]; 14 [label="Exit lhs of ?:"]; 15 [label="Enter rhs of ?:"]; 16 [label="Jump: ^test_1 Unit"]; 17 [label="Stub" style="filled" fillcolor=gray]; 18 [label="Lhs of ?: is not null"]; 19 [label="Exit ?:"]; 20 [label="Exit when branch condition"]; } 21 [label="Synthetic else branch"]; 22 [label="Enter when branch result"]; subgraph cluster_7 { color=blue 23 [label="Enter block"]; 24 [label="Access variable R|/x|"]; 25 [label="Smart cast: R|/x|"]; 26 [label="Function call: R|/x|.R|/A.foo|()" style="filled" fillcolor=yellow]; 27 [label="Exit block"]; } 28 [label="Exit when branch result"]; 29 [label="Exit when"]; } 30 [label="Exit block"]; } 31 [label="Exit function test_1" style="filled" fillcolor=red]; } 6 -> {7}; 7 -> {8}; 8 -> {9}; 9 -> {10}; 10 -> {11 15}; 11 -> {12}; 12 -> {13}; 13 -> {14}; 14 -> {15 18}; 15 -> {16}; 16 -> {31}; 16 -> {17} [style=dotted]; 17 -> {19} [style=dotted]; 18 -> {19}; 19 -> {20}; 20 -> {21 22}; 21 -> {29}; 22 -> {23}; 23 -> {24}; 24 -> {25}; 25 -> {26}; 26 -> {27}; 27 -> {28}; 28 -> {29}; 29 -> {30}; 30 -> {31}; subgraph cluster_8 { color=red 32 [label="Enter function test2" style="filled" fillcolor=red]; subgraph cluster_9 { color=blue 33 [label="Enter block"]; subgraph cluster_10 { color=blue 34 [label="Enter when"]; subgraph cluster_11 { color=blue 35 [label="Enter when branch condition "]; 36 [label="Access variable R|/b|"]; 37 [label="Type operator: (R|/b| !is R|kotlin/String|)"]; 38 [label="Exit when branch condition"]; } 39 [label="Synthetic else branch"]; 40 [label="Enter when branch result"]; subgraph cluster_12 { color=blue 41 [label="Enter block"]; 42 [label="Const: String()"]; 43 [label="Jump: ^test2 String()"]; 44 [label="Stub" style="filled" fillcolor=gray]; 45 [label="Exit block" style="filled" fillcolor=gray]; } 46 [label="Exit when branch result" style="filled" fillcolor=gray]; 47 [label="Exit when"]; } subgraph cluster_13 { color=blue 48 [label="Enter when"]; subgraph cluster_14 { color=blue 49 [label="Enter when branch condition "]; 50 [label="Access variable R|/a|"]; 51 [label="Type operator: (R|/a| !is R|kotlin/String?|)"]; 52 [label="Exit when branch condition"]; } 53 [label="Synthetic else branch"]; 54 [label="Enter when branch result"]; subgraph cluster_15 { color=blue 55 [label="Enter block"]; 56 [label="Const: String()"]; 57 [label="Jump: ^test2 String()"]; 58 [label="Stub" style="filled" fillcolor=gray]; 59 [label="Exit block" style="filled" fillcolor=gray]; } 60 [label="Exit when branch result" style="filled" fillcolor=gray]; 61 [label="Exit when"]; } 62 [label="Access variable R|/a|"]; 63 [label="Smart cast: R|/a|"]; 64 [label="Exit lhs of ?:"]; 65 [label="Enter rhs of ?:"]; 66 [label="Access variable R|/b|"]; 67 [label="Smart cast: R|/b|"]; 68 [label="Lhs of ?: is not null"]; 69 [label="Exit ?:"]; 70 [label="Jump: ^test2 R|/a| ?: R|/b|"]; 71 [label="Stub" style="filled" fillcolor=gray]; 72 [label="Exit block" style="filled" fillcolor=gray]; } 73 [label="Exit function test2" style="filled" fillcolor=red]; } 32 -> {33}; 33 -> {34}; 34 -> {35}; 35 -> {36}; 36 -> {37}; 37 -> {38}; 38 -> {39 40}; 39 -> {47}; 40 -> {41}; 41 -> {42}; 42 -> {43}; 43 -> {73}; 43 -> {44} [style=dotted]; 44 -> {45} [style=dotted]; 45 -> {46} [style=dotted]; 46 -> {47} [style=dotted]; 47 -> {48}; 48 -> {49}; 49 -> {50}; 50 -> {51}; 51 -> {52}; 52 -> {53 54}; 53 -> {61}; 54 -> {55}; 55 -> {56}; 56 -> {57}; 57 -> {73}; 57 -> {58} [style=dotted]; 58 -> {59} [style=dotted]; 59 -> {60} [style=dotted]; 60 -> {61} [style=dotted]; 61 -> {62}; 62 -> {63}; 63 -> {64}; 64 -> {65 68}; 65 -> {66}; 66 -> {67}; 67 -> {69}; 68 -> {69}; 69 -> {70}; 70 -> {73}; 70 -> {71} [style=dotted]; 71 -> {72} [style=dotted]; 72 -> {73} [style=dotted]; }