digraph smartcastFromArgument_kt { graph [nodesep=3] node [shape=box penwidth=2] edge [penwidth=2] subgraph cluster_0 { color=red 0 [label="Enter file smartcastFromArgument.kt" style="filled" fillcolor=red]; 1 [label="Exit file smartcastFromArgument.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 takeA" style="filled" fillcolor=red]; subgraph cluster_4 { color=blue 7 [label="Enter block"]; 8 [label="Const: Boolean(true)"]; 9 [label="Jump: ^takeA Boolean(true)"]; 10 [label="Stub" style="filled" fillcolor=gray]; 11 [label="Exit block" style="filled" fillcolor=gray]; } 12 [label="Exit function takeA" style="filled" fillcolor=red]; } 6 -> {7}; 7 -> {8}; 8 -> {9}; 9 -> {12}; 9 -> {10} [style=dotted]; 10 -> {11} [style=dotted]; 11 -> {12} [style=dotted]; subgraph cluster_5 { color=red 13 [label="Enter function test" style="filled" fillcolor=red]; subgraph cluster_6 { color=blue 14 [label="Enter block"]; subgraph cluster_7 { color=blue 15 [label="Enter when"]; subgraph cluster_8 { color=blue 16 [label="Enter when branch condition "]; subgraph cluster_9 { color=blue 17 [label="Function call arguments enter"]; 18 [label="Access variable R|/a|"]; 19 [label="Type operator: (R|/a| as? R|A|)"]; 20 [label="Exit lhs of ?:"]; 21 [label="Enter rhs of ?:"]; 22 [label="Jump: ^test Unit"]; 23 [label="Stub" style="filled" fillcolor=gray]; 24 [label="Lhs of ?: is not null"]; 25 [label="Exit ?:"]; 26 [label="Function call arguments exit"]; } 27 [label="Function call: R|/takeA|(...)" style="filled" fillcolor=yellow]; 28 [label="Exit when branch condition"]; } 29 [label="Synthetic else branch"]; 30 [label="Enter when branch result"]; subgraph cluster_10 { color=blue 31 [label="Enter block"]; subgraph cluster_11 { color=blue 32 [label="Function call arguments enter"]; 33 [label="Access variable R|/a|"]; 34 [label="Smart cast: R|/a|"]; 35 [label="Function call arguments exit"]; } 36 [label="Function call: R|/a|.R|/A.foo|()" style="filled" fillcolor=yellow]; 37 [label="Exit block"]; } 38 [label="Exit when branch result"]; 39 [label="Exit when"]; } 40 [label="Exit block"]; } 41 [label="Exit function test" style="filled" fillcolor=red]; } 13 -> {14}; 14 -> {15}; 15 -> {16}; 16 -> {17}; 17 -> {18}; 18 -> {19}; 19 -> {20}; 20 -> {21 24}; 21 -> {22}; 22 -> {41}; 22 -> {23} [style=dotted]; 23 -> {25} [style=dotted]; 24 -> {25}; 25 -> {26}; 26 -> {27}; 27 -> {28}; 28 -> {29 30}; 29 -> {39}; 30 -> {31}; 31 -> {32}; 32 -> {33}; 33 -> {34}; 34 -> {35}; 35 -> {36}; 36 -> {37}; 37 -> {38}; 38 -> {39}; 39 -> {40}; 40 -> {41}; }