digraph functionCallBound_kt { graph [nodesep=3] node [shape=box penwidth=2] edge [penwidth=2] subgraph cluster_0 { color=red 0 [label="Enter class Base" style="filled" fillcolor=red]; subgraph cluster_1 { color=blue 1 [label="Enter function " style="filled" fillcolor=red]; 2 [label="Delegated constructor call: super()" style="filled" fillcolor=yellow]; 3 [label="Exit function " style="filled" fillcolor=red]; } 4 [label="Exit class Base" style="filled" fillcolor=red]; } 0 -> {1} [color=green]; 0 -> {4} [style=dotted]; 0 -> {1} [style=dashed]; 1 -> {2}; 2 -> {3}; 3 -> {4} [color=green]; subgraph cluster_2 { color=red 5 [label="Enter class Sub" style="filled" fillcolor=red]; subgraph cluster_3 { color=blue 6 [label="Enter property" style="filled" fillcolor=red]; 7 [label="Access variable R|/data|"]; 8 [label="Exit property" style="filled" fillcolor=red]; } subgraph cluster_4 { color=blue 9 [label="Enter function " style="filled" fillcolor=red]; 10 [label="Delegated constructor call: super()" style="filled" fillcolor=yellow]; 11 [label="Exit function " style="filled" fillcolor=red]; } 12 [label="Exit class Sub" style="filled" fillcolor=red]; } 5 -> {6} [color=green]; 5 -> {12} [style=dotted]; 5 -> {6 9} [style=dashed]; 6 -> {7}; 7 -> {8}; 8 -> {9} [color=green]; 9 -> {10}; 10 -> {11}; 11 -> {12} [color=green]; subgraph cluster_5 { color=red 13 [label="Enter function isOk" style="filled" fillcolor=red]; subgraph cluster_6 { color=blue 14 [label="Enter block"]; 15 [label="Const: Boolean(true)"]; 16 [label="Jump: ^isOk Boolean(true)"]; 17 [label="Stub" style="filled" fillcolor=gray]; 18 [label="Exit block" style="filled" fillcolor=gray]; } 19 [label="Exit function isOk" style="filled" fillcolor=red]; } 13 -> {14}; 14 -> {15}; 15 -> {16}; 16 -> {19}; 16 -> {17} [style=dotted]; 17 -> {18} [style=dotted]; 18 -> {19} [style=dotted]; subgraph cluster_7 { color=red 20 [label="Enter function check" style="filled" fillcolor=red]; subgraph cluster_8 { color=blue 21 [label="Enter block"]; subgraph cluster_9 { color=blue 22 [label="Enter when"]; subgraph cluster_10 { color=blue 23 [label="Enter when branch condition "]; 24 [label="Access variable R|/base|"]; 25 [label="Type operator: (R|/base| as? R|Sub|)"]; 26 [label="Enter safe call"]; 27 [label="Function call: $subj$.R|/isOk|()" style="filled" fillcolor=yellow]; 28 [label="Exit safe call"]; 29 [label="Const: Boolean(true)"]; 30 [label="Equality operator =="]; 31 [label="Exit when branch condition"]; } subgraph cluster_11 { color=blue 32 [label="Enter when branch condition else"]; 33 [label="Exit when branch condition"]; } 34 [label="Enter when branch result"]; subgraph cluster_12 { color=blue 35 [label="Enter block"]; 36 [label="Access variable R|/base|"]; 37 [label="Exit block"]; } 38 [label="Exit when branch result"]; 39 [label="Enter when branch result"]; subgraph cluster_13 { color=blue 40 [label="Enter block"]; 41 [label="Access variable R|/base|"]; 42 [label="Smart cast: R|/base|"]; 43 [label="Access variable R|/Sub.data|"]; 44 [label="Exit block"]; } 45 [label="Exit when branch result"]; 46 [label="Exit when"]; } 47 [label="Jump: ^check when () { ==((R|/base| as? R|Sub|)?.{ $subj$.R|/isOk|() }, Boolean(true)) -> { R|/base|.R|/Sub.data| } else -> { R|/base| } } "]; 48 [label="Stub" style="filled" fillcolor=gray]; 49 [label="Exit block" style="filled" fillcolor=gray]; } 50 [label="Exit function check" style="filled" fillcolor=red]; } 20 -> {21}; 21 -> {22}; 22 -> {23}; 23 -> {24}; 24 -> {25}; 25 -> {26 28}; 26 -> {27}; 27 -> {28}; 28 -> {29}; 29 -> {30}; 30 -> {31}; 31 -> {32 39}; 32 -> {33}; 33 -> {34}; 34 -> {35}; 35 -> {36}; 36 -> {37}; 37 -> {38}; 38 -> {46}; 39 -> {40}; 40 -> {41}; 41 -> {42}; 42 -> {43}; 43 -> {44}; 44 -> {45}; 45 -> {46}; 46 -> {47}; 47 -> {50}; 47 -> {48} [style=dotted]; 48 -> {49} [style=dotted]; 49 -> {50} [style=dotted]; }