digraph safeCalls_kt { graph [nodesep=3] node [shape=box penwidth=2] edge [penwidth=2] subgraph cluster_0 { color=red 0 [label="Enter file safeCalls.kt" style="filled" fillcolor=red]; 1 [label="Exit file safeCalls.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 bar" style="filled" fillcolor=red]; 7 [label="Exit function bar" style="filled" fillcolor=red]; } 6 -> {7}; subgraph cluster_4 { color=red 8 [label="Enter class B" style="filled" fillcolor=red]; 9 [label="Exit class B" style="filled" fillcolor=red]; } 8 -> {9} [color=green]; subgraph cluster_5 { color=red 10 [label="Enter function test_1" style="filled" fillcolor=red]; subgraph cluster_6 { color=blue 11 [label="Enter block"]; 12 [label="Access variable R|/x|"]; 13 [label="Enter safe call"]; subgraph cluster_7 { color=blue 14 [label="Function call arguments enter"]; 15 [label="Function call arguments exit"]; } 16 [label="Function call: $subj$.R|/A.foo|()" style="filled" fillcolor=yellow]; 17 [label="Enter safe call"]; subgraph cluster_8 { color=blue 18 [label="Function call arguments enter"]; 19 [label="Const: String()"]; 20 [label="Function call arguments exit"]; } 21 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow]; 22 [label="Exit safe call"]; 23 [label="Exit safe call"]; 24 [label="Exit block"]; } 25 [label="Exit function test_1" style="filled" fillcolor=red]; } 10 -> {11}; 11 -> {12}; 12 -> {13 22}; 13 -> {14}; 14 -> {15}; 15 -> {16}; 16 -> {17 22}; 17 -> {18}; 18 -> {19}; 19 -> {20}; 20 -> {21}; 21 -> {23}; 22 -> {23}; 23 -> {24}; 24 -> {25}; subgraph cluster_9 { color=red 26 [label="Enter function test_2" style="filled" fillcolor=red]; subgraph cluster_10 { color=blue 27 [label="Enter block"]; 28 [label="Access variable R|/x|"]; 29 [label="Enter safe call"]; 30 [label="Access variable R|/B.foo|"]; 31 [label="Enter safe call"]; 32 [label="Access variable R|/B.bar|"]; 33 [label="Exit safe call"]; 34 [label="Exit safe call"]; 35 [label="Exit block"]; } 36 [label="Exit function test_2" style="filled" fillcolor=red]; } 26 -> {27}; 27 -> {28}; 28 -> {29 33}; 29 -> {30}; 30 -> {31 33}; 31 -> {32}; 32 -> {34}; 33 -> {34}; 34 -> {35}; 35 -> {36}; subgraph cluster_11 { color=red 37 [label="Enter function test_3" style="filled" fillcolor=red]; subgraph cluster_12 { color=blue 38 [label="Enter block"]; subgraph cluster_13 { color=blue 39 [label="Enter when"]; subgraph cluster_14 { color=blue 40 [label="Enter when branch condition "]; 41 [label="Access variable R|/x|"]; 42 [label="Enter safe call"]; subgraph cluster_15 { color=blue 43 [label="Function call arguments enter"]; 44 [label="Access variable R|/y|"]; 45 [label="Type operator: (R|/y| as R|kotlin/String|)"]; 46 [label="Function call arguments exit"]; } 47 [label="Function call: $subj$.R|/A.bar|(...)" style="filled" fillcolor=yellow]; 48 [label="Exit safe call"]; 49 [label="Const: Null(null)"]; 50 [label="Equality operator !="]; 51 [label="Exit when branch condition"]; } 52 [label="Synthetic else branch"]; 53 [label="Enter when branch result"]; subgraph cluster_16 { color=blue 54 [label="Enter block"]; 55 [label="Access variable R|/y|"]; 56 [label="Smart cast: R|/y|"]; 57 [label="Access variable R|kotlin/String.length|"]; 58 [label="Exit block"]; } 59 [label="Exit when branch result"]; 60 [label="Exit when"]; } 61 [label="Exit block"]; } 62 [label="Exit function test_3" style="filled" fillcolor=red]; } 37 -> {38}; 38 -> {39}; 39 -> {40}; 40 -> {41}; 41 -> {42 48}; 42 -> {43}; 43 -> {44}; 44 -> {45}; 45 -> {46}; 46 -> {47}; 47 -> {48}; 48 -> {49}; 49 -> {50}; 50 -> {51}; 51 -> {52 53}; 52 -> {60}; 53 -> {54}; 54 -> {55}; 55 -> {56}; 56 -> {57}; 57 -> {58}; 58 -> {59}; 59 -> {60}; 60 -> {61}; 61 -> {62}; }